ChatSystemMsgchatMsg=newChatSystemMsg(null,mob.getName()+" in "+mob.getParentZone().getName()+" has found the "+specialDrop.getName()+". Are you tough enough to take it?");
//lastly, check mobs inventory for godly or disc runes to send a server announcement
for(Itemit:mob.getInventory()){
ItemBaseib=it.getItemBase();
if(ib==null)
break;
if(ib.isDiscRune()||ib.getName().toLowerCase().contains("of the gods")){
ChatSystemMsgchatMsg=newChatSystemMsg(null,mob.getName()+" in "+mob.getParentZone().getName()+" has found the "+ib.getName()+". Are you tough enough to take it?");
if(ib.isDiscRune()||ib.getName().toLowerCase().contains("of the gods")){
ChatSystemMsgchatMsg=newChatSystemMsg(null,mob.getName()+" in "+mob.getParentZone().getName()+" has found the "+ib.getName()+". Are you tough enough to take it?");
@ -96,7 +96,7 @@ public enum MovementManager {
@@ -96,7 +96,7 @@ public enum MovementManager {
if(!toMove.isMoving())
toMove.resetLastSetLocUpdate();
else
toMove.update(false);
toMove.update();
// Update movement for the player
@ -351,7 +351,7 @@ public enum MovementManager {
@@ -351,7 +351,7 @@ public enum MovementManager {
ChatManager.chatSystemInfo((PlayerCharacter)ac,"Finished Alt change, setting the end location to "+ac.getEndLoc().getX()+' '+ac.getEndLoc().getZ()+" moving="+ac.isMoving()+" and current location is "+curLoc.getX()+' '+curLoc.getZ());
//Send run/walk/sit/stand to tell the client we are flying / landing etc
ac.update(false);
ac.update();
ac.stopMovement(ac.getLoc());
if(ac.isAlive())
MovementManager.sendRWSSMsg(ac);
@ -408,7 +408,7 @@ public enum MovementManager {
@@ -408,7 +408,7 @@ public enum MovementManager {
@ -40,7 +39,7 @@ public class DatabaseUpdateJob extends AbstractScheduleJob {
@@ -40,7 +39,7 @@ public class DatabaseUpdateJob extends AbstractScheduleJob {
@ -47,13 +47,13 @@ public class FinishSummonsJob extends AbstractScheduleJob {
@@ -47,13 +47,13 @@ public class FinishSummonsJob extends AbstractScheduleJob {
return;
// cannot summon a player in combat
//if (this.target.isCombat()) {
if(this.target.isCombat()){
// ErrorPopupMsg.sendErrorMsg(this.source, "Cannot summon player in combat.");
ErrorPopupMsg.sendErrorMsg(this.source,"Cannot summon player in combat.");
ErrorPopupMsg.sendErrorMsg(this.target,"You have been blocked from receiving summons!");
@ -64,7 +64,7 @@ public class FinishSummonsJob extends AbstractScheduleJob {
@@ -64,7 +64,7 @@ public class FinishSummonsJob extends AbstractScheduleJob {
@ -85,7 +85,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -85,7 +85,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(pc==null)
return;
pc.update(false);
pc.update();
if(msg.getSpeed()==2)
pc.setWalkMode(false);
else
@ -114,7 +114,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -114,7 +114,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(pc==null)
return;
pc.update(false);
pc.update();
pc.setSit(msg.toggleSitStand());
@ -560,30 +560,12 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -560,30 +560,12 @@ public class ClientMessagePump implements NetMsgHandler {
@ -603,19 +585,19 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -603,19 +585,19 @@ public class ClientMessagePump implements NetMsgHandler {
switch(type){
caseMBServerStatics.STAT_STR_ID:
PlayerManager.addStr(pc,msg.getAmount());
pc.addStr(msg.getAmount());
break;
caseMBServerStatics.STAT_DEX_ID:
PlayerManager.addDex(pc,msg.getAmount());
pc.addDex(msg.getAmount());
break;
caseMBServerStatics.STAT_CON_ID:
PlayerManager.addCon(pc,msg.getAmount());
pc.addCon(msg.getAmount());
break;
caseMBServerStatics.STAT_INT_ID:
PlayerManager.addInt(pc,msg.getAmount());
pc.addInt(msg.getAmount());
break;
caseMBServerStatics.STAT_SPI_ID:
PlayerManager.addSpi(pc,msg.getAmount());
pc.addSpi(msg.getAmount());
break;
}
}
@ -641,7 +623,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -641,7 +623,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -672,8 +654,6 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -672,8 +654,6 @@ public class ClientMessagePump implements NetMsgHandler {
@ -705,7 +685,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -705,7 +685,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -719,7 +699,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -719,7 +699,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -809,7 +789,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -809,7 +789,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -818,7 +798,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -818,7 +798,7 @@ public class ClientMessagePump implements NetMsgHandler {
return;
}elseif(targetType==GameObjectType.NPC.ordinal())
tar=NPCManager.getFromCache(targetID);
tar=NPC.getFromCache(targetID);
elseif(targetType==GameObjectType.Mob.ordinal())
tar=Mob.getFromCache(targetID);
if(tar==null)
@ -1013,9 +993,9 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1013,9 +993,9 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1150,7 +1130,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1150,7 +1130,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(sourcePlayer==null)
return;
NPCnpc=NPCManager.getFromCache(msg.getNPCID());
NPCnpc=NPC.getFromCache(msg.getNPCID());
if(npc==null)
return;
@ -1166,7 +1146,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1166,7 +1146,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1199,7 +1179,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1199,7 +1179,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(itemMan==null)
return;
NPCnpc=NPCManager.getFromCache(msg.getNPCID());
NPCnpc=NPC.getFromCache(msg.getNPCID());
if(npc==null)
return;
@ -1263,15 +1243,13 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1263,15 +1243,13 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1363,14 +1341,12 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1363,14 +1341,12 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1382,192 +1358,219 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1382,192 +1358,219 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1576,43 +1579,14 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1576,43 +1579,14 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1623,7 +1597,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1623,7 +1597,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(player==null)
return;
NPCnpc=NPCManager.getFromCache(msg.getNPCID());
NPCnpc=NPC.getFromCache(msg.getNPCID());
if(npc==null)
return;
@ -1672,21 +1646,14 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1672,21 +1646,14 @@ public class ClientMessagePump implements NetMsgHandler {
max*=(1+(durMod*0.01f));
if(dur>=max||dur<1){
//redundancy message to clear item from window in client
@ -1821,7 +1788,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1821,7 +1788,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1842,7 +1809,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1842,7 +1809,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -80,7 +83,7 @@ public class AcceptInviteToGuildHandler extends AbstractClientMsgHandler {
@@ -80,7 +83,7 @@ public class AcceptInviteToGuildHandler extends AbstractClientMsgHandler {
@ -53,7 +53,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
@@ -53,7 +53,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
@ -36,28 +35,26 @@ public class ArcMineChangeProductionMsgHandler extends AbstractClientMsgHandler
@@ -36,28 +35,26 @@ public class ArcMineChangeProductionMsgHandler extends AbstractClientMsgHandler
//TODO verify this against the warehouse?
if(!GuildStatusController.isInnerCouncil(playerCharacter.getGuildStatus()))// is this only GL?
if(GuildStatusController.isInnerCouncil(playerCharacter.getGuildStatus())==false)// is this only GL?
@ -144,7 +144,7 @@ public class AssetSupportMsgHandler extends AbstractClientMsgHandler {
@@ -144,7 +144,7 @@ public class AssetSupportMsgHandler extends AbstractClientMsgHandler {
@ -56,7 +55,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@@ -56,7 +55,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
// Guild leader can't leave guild. must pass GL or disband
@ -84,7 +83,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@@ -84,7 +83,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@ -111,7 +110,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@@ -111,7 +110,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@ -43,21 +42,18 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -43,21 +42,18 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
if(!AbstractCharacter.CanFly(pc))
returnfalse;
if(PlayerManager.isSwimming(pc))
if(pc.isSwimming())
returnfalse;
if(pc.region!=null&&!pc.region.isOutside())
returnfalse;
// Find out if we already have an altitude timer running and if so
// do not process more alt change requests
pc.updateFlight();
if(pc.getTakeOffTime()!=0)
returnfalse;
pc.setTakeOffTime(System.currentTimeMillis());
// remove all movement timers and jobs
//TODO: test if they can fly
@ -71,7 +67,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -71,7 +67,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
if(pc.getAltitude()==0&&!msg.up())
returntrue;
pc.update(false);
pc.update();
pc.stopMovement(pc.getLoc());
msg.setStartAlt(pc.getAltitude());
if(msg.up()){
@ -136,7 +132,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -136,7 +132,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
}
if(msg.up()){
pc.update(false);
pc.update();
pc.setDesiredAltitude(targetAlt);
pc.setTakeOffTime(System.currentTimeMillis());
}else{
@ -162,7 +158,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -162,7 +158,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@ -98,9 +97,9 @@ public class ChangeGuildLeaderHandler extends AbstractClientMsgHandler {
@@ -98,9 +97,9 @@ public class ChangeGuildLeaderHandler extends AbstractClientMsgHandler {
}
PlayerManager.setGuildLeader(targetPlayer,true);
PlayerManager.setInnerCouncil(targetPlayer,true);
PlayerManager.setFullMember(targetPlayer,true);
targetPlayer.setGuildLeader(true);
targetPlayer.setInnerCouncil(true);
targetPlayer.setFullMember(true);
targetPlayer.incVer();
targetName=targetPlayer.getFirstName();
updateTarget=true;
@ -114,9 +113,9 @@ public class ChangeGuildLeaderHandler extends AbstractClientMsgHandler {
@@ -114,9 +113,9 @@ public class ChangeGuildLeaderHandler extends AbstractClientMsgHandler {
@ -64,14 +63,14 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@@ -64,14 +63,14 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@ -99,7 +98,7 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@@ -99,7 +98,7 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@ -107,16 +106,16 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@@ -107,16 +106,16 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
//This logic branch only executes if targetPlayer has passed a null check...
@ -63,7 +63,7 @@ public class CityDataHandler extends AbstractClientMsgHandler {
@@ -63,7 +63,7 @@ public class CityDataHandler extends AbstractClientMsgHandler {
// If the hotZone has changed then update the client's map accordingly.
@ -62,7 +62,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
@@ -62,7 +62,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
@ -99,8 +98,8 @@ public class DisbandGuildHandler extends AbstractClientMsgHandler {
@@ -99,8 +98,8 @@ public class DisbandGuildHandler extends AbstractClientMsgHandler {
@ -102,7 +102,7 @@ public class GroupInviteResponseHandler extends AbstractClientMsgHandler {
@@ -102,7 +102,7 @@ public class GroupInviteResponseHandler extends AbstractClientMsgHandler {
@ -61,7 +60,7 @@ public class GuildControlHandler extends AbstractClientMsgHandler {
@@ -61,7 +60,7 @@ public class GuildControlHandler extends AbstractClientMsgHandler {
@ -127,10 +130,10 @@ public class GuildCreationFinalizeHandler extends AbstractClientMsgHandler {
@@ -127,10 +130,10 @@ public class GuildCreationFinalizeHandler extends AbstractClientMsgHandler {
@ -44,7 +43,7 @@ public class GuildInfoHandler extends AbstractClientMsgHandler {
@@ -44,7 +43,7 @@ public class GuildInfoHandler extends AbstractClientMsgHandler {
@ -53,7 +52,7 @@ public class HirelingServiceMsgHandler extends AbstractClientMsgHandler {
@@ -53,7 +52,7 @@ public class HirelingServiceMsgHandler extends AbstractClientMsgHandler {
if(building==null)
returntrue;
NPCnpc=NPCManager.getFromCache(msg.npcID);
NPCnpc=NPC.getFromCache(msg.npcID);
if(npc==null)
returntrue;
@ -62,7 +61,7 @@ public class HirelingServiceMsgHandler extends AbstractClientMsgHandler {
@@ -62,7 +61,7 @@ public class HirelingServiceMsgHandler extends AbstractClientMsgHandler {
@ -360,11 +360,6 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
@@ -360,11 +360,6 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
@ -62,23 +62,16 @@ public class MOTDEditHandler extends AbstractClientMsgHandler {
@@ -62,23 +62,16 @@ public class MOTDEditHandler extends AbstractClientMsgHandler {
returntrue;
}
if(type==1){ // Guild MOTD
if(type==1)// Guild MOTD
msg.setMessage(guild.getMOTD());
guild.updateDatabase();
}elseif(type==3){// IC MOTD
elseif(type==3)// IC MOTD
msg.setMessage(guild.getICMOTD());
guild.updateDatabase();
}elseif(type==0){// Nation MOTD
elseif(type==0){// Nation MOTD
Guildnation=guild.getNation();
if(nation==null||!nation.isNation()){
ErrorPopupMsg.sendErrorMsg(playerCharacter,"You do not have such authority!");
@ -105,7 +105,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -105,7 +105,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
ErrorPopupMsg.sendErrorPopup(player,173);// You must be the leader of a guild to receive a blessing
return;
}
@ -126,12 +126,12 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -126,12 +126,12 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
realm=RealmMap.getRealmForCity(city);
if(!realm.getCanBeClaimed()){
if(realm.getCanBeClaimed()==false){
ErrorPopupMsg.sendErrorPopup(player,180);// This territory cannot be ruled by anyone
return;
}
if(realm.isRuled()){
if(realm.isRuled()==true){
ErrorPopupMsg.sendErrorPopup(player,178);// This territory is already claimed
return;
}
@ -142,12 +142,12 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -142,12 +142,12 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -155,7 +155,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -155,7 +155,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -171,9 +171,11 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -171,9 +171,11 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -189,31 +191,16 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -189,31 +191,16 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
return;
}
inttrains=0;
switch(npc.getRank()){
case1:
trains=10;
break;
case2:
trains=15;
break;
case3:
trains=20;
break;
case4:
trains=25;
break;
case5:
trains=30;
break;
case6:
trains=35;
break;
case7:
trains=40;
break;
}
intrank=shrine.getRank();
//R8 trees always get atleast rank 2 boons. rank uses index, where 0 is first place, 1 is second, etc...
ChatManager.chatGuildInfo(player.getGuild(),player.getName()+" has recieved a boon costing "+1+" point of favor.");
shrineBuilding.addEffectBit(1000000<<2);
@ -273,85 +260,60 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -273,85 +260,60 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -415,7 +377,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -415,7 +377,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
player=SessionManager.getPlayerCharacter(origin);
msg=(MerchantMsg)baseMsg;
npc=NPCManager.getNPC(msg.getNPCID());
npc=NPC.getNPC(msg.getNPCID());
// Early exit if something goes awry
@ -458,7 +420,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -458,7 +420,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -45,7 +45,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@@ -45,7 +45,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@ -417,16 +417,35 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -417,16 +417,35 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
// Item gift = MobLoot.createItemForPlayer(player, annyIB);
// if (gift != null) {
// itemMan.addItemToInventory(gift);
// itemMan.consume(item);
// }
// }
// break;
//}
LootManager.peddleFate(player,item);
break;
case30://water bucket
case8://potions, tears of saedron
case5://runes, petition, warrant, scrolls
if(uuid>3000&&uuid<3050){//Discipline Runes
if(ApplyRuneMsg.applyRune(uuid,origin,player)){
@ -443,12 +462,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -443,12 +462,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
itemMan.consume(item);
}
break;
}elseif(uuid>252122&&uuid<252137){//blood runes
if(ApplyRuneMsg.applyRune(uuid,origin,player)){
itemMan.consume(item);
}
break;
}elseif(uuid>252128&&uuid<252128){//mastery runes
}elseif(uuid>252122&&uuid<252128){//mastery runes
if(ApplyRuneMsg.applyRune(uuid,origin,player)){
itemMan.consume(item);
}
@ -514,6 +528,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -514,6 +528,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@ -528,9 +543,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -528,9 +543,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@ -69,9 +71,9 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@@ -69,9 +71,9 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@ -212,7 +214,7 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@@ -212,7 +214,7 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@ -301,7 +303,7 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@@ -301,7 +303,7 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
//Check to see if the invited is already on the friends list.
@ -91,7 +91,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@@ -91,7 +91,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@ -110,7 +110,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@@ -110,7 +110,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
if(player==null)
return;
npc=NPCManager.getFromCache(msg.getNpcUUID());
npc=NPC.getFromCache(msg.getNpcUUID());
if(npc==null)
return;
@ -120,7 +120,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@@ -120,7 +120,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
if(building==null)
return;
NPCProfitsprofit=NPCManager.GetNPCProfits(npc);
NPCProfitsprofit=NPC.GetNPCProfits(npc);
if(profit==null)
return;
@ -155,7 +155,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@@ -155,7 +155,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@ -165,7 +165,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@@ -165,7 +165,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
if(building==null)
return;
NPCProfitsprofit=NPCManager.GetNPCProfits(npc);
NPCProfitsprofit=NPC.GetNPCProfits(npc);
if(profit==null)
return;
@ -428,7 +428,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@@ -428,7 +428,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@ -58,7 +57,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
@@ -58,7 +57,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
returntrue;
}
PlayerManager.setEnteredWorld(player,false);
player.setEnteredWorld(false);
Accountacc=SessionManager.getAccount(origin);
@ -119,7 +118,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
@@ -119,7 +118,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
@ -64,7 +63,7 @@ public class SwearInHandler extends AbstractClientMsgHandler {
@@ -64,7 +63,7 @@ public class SwearInHandler extends AbstractClientMsgHandler {
}
// Swear target in and send message to guild
PlayerManager.setFullMember(target,true);
target.setFullMember(true);
target.incVer();
ChatManager.chatGuildInfo(source,target.getFirstName()+" has been sworn in as a full member!");
@ -135,8 +135,7 @@ public class TaxCityMsgHandler extends AbstractClientMsgHandler {
@@ -135,8 +135,7 @@ public class TaxCityMsgHandler extends AbstractClientMsgHandler {
@ -36,7 +35,7 @@ public class TransferAssetMsgHandler extends AbstractClientMsgHandler {
@@ -36,7 +35,7 @@ public class TransferAssetMsgHandler extends AbstractClientMsgHandler {
intTargetType=transferAssetMsg.getTargetType();//ToDue later
@ -104,12 +102,12 @@ public class ArcViewAssetTransactionsMsg extends ClientNetMsg {
@@ -104,12 +102,12 @@ public class ArcViewAssetTransactionsMsg extends ClientNetMsg {
@ -93,7 +91,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
@@ -93,7 +91,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
floatsellPercent=1;
NPCnpc=NPCManager.getFromCache(npcID);
NPCnpc=NPC.getFromCache(npcID);
CharacterItemManagerman=null;
ArrayList<Item>inventory=null;
ArrayList<MobEquipment>sellInventory=null;
@ -102,7 +100,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
@@ -102,7 +100,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
man=npc.getCharItemManager();
Contractcontract=npc.getContract();
if(player!=null){
floatbarget=PlayerManager.getBargain(player);
floatbarget=player.getBargain();
floatprofit=npc.getSellPercent(player)-barget;
if(profit<1)
@ -114,12 +112,6 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
@@ -114,12 +112,6 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
@ -485,19 +485,36 @@ public class ManageCityAssetsMsg extends ClientNetMsg {
@@ -485,19 +485,36 @@ public class ManageCityAssetsMsg extends ClientNetMsg {