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?");
//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?");
@ -96,7 +96,7 @@ public enum MovementManager {
@@ -96,7 +96,7 @@ public enum MovementManager {
if(!toMove.isMoving())
toMove.resetLastSetLocUpdate();
else
toMove.update();
toMove.update(false);
// 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();
ac.update(false);
ac.stopMovement(ac.getLoc());
if(ac.isAlive())
MovementManager.sendRWSSMsg(ac);
@ -408,7 +408,7 @@ public enum MovementManager {
@@ -408,7 +408,7 @@ public enum MovementManager {
@ -39,7 +40,7 @@ public class DatabaseUpdateJob extends AbstractScheduleJob {
@@ -39,7 +40,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();
pc.update(false);
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();
pc.update(false);
pc.setSit(msg.toggleSitStand());
@ -560,12 +560,30 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -560,12 +560,30 @@ public class ClientMessagePump implements NetMsgHandler {
@ -585,19 +603,19 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -585,19 +603,19 @@ public class ClientMessagePump implements NetMsgHandler {
switch(type){
caseMBServerStatics.STAT_STR_ID:
pc.addStr(msg.getAmount());
PlayerManager.addStr(pc,msg.getAmount());
break;
caseMBServerStatics.STAT_DEX_ID:
pc.addDex(msg.getAmount());
PlayerManager.addDex(pc,msg.getAmount());
break;
caseMBServerStatics.STAT_CON_ID:
pc.addCon(msg.getAmount());
PlayerManager.addCon(pc,msg.getAmount());
break;
caseMBServerStatics.STAT_INT_ID:
pc.addInt(msg.getAmount());
PlayerManager.addInt(pc,msg.getAmount());
break;
caseMBServerStatics.STAT_SPI_ID:
pc.addSpi(msg.getAmount());
PlayerManager.addSpi(pc,msg.getAmount());
break;
}
}
@ -623,7 +641,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -623,7 +641,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -654,6 +672,8 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -654,6 +672,8 @@ public class ClientMessagePump implements NetMsgHandler {
@ -685,7 +705,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -685,7 +705,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -699,7 +719,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -699,7 +719,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -789,7 +809,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -789,7 +809,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -798,7 +818,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -798,7 +818,7 @@ public class ClientMessagePump implements NetMsgHandler {
return;
}elseif(targetType==GameObjectType.NPC.ordinal())
tar=NPC.getFromCache(targetID);
tar=NPCManager.getFromCache(targetID);
elseif(targetType==GameObjectType.Mob.ordinal())
tar=Mob.getFromCache(targetID);
if(tar==null)
@ -993,9 +1013,9 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -993,9 +1013,9 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1130,7 +1150,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1130,7 +1150,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(sourcePlayer==null)
return;
NPCnpc=NPC.getFromCache(msg.getNPCID());
NPCnpc=NPCManager.getFromCache(msg.getNPCID());
if(npc==null)
return;
@ -1146,7 +1166,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1146,7 +1166,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1179,7 +1199,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1179,7 +1199,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(itemMan==null)
return;
NPCnpc=NPC.getFromCache(msg.getNPCID());
NPCnpc=NPCManager.getFromCache(msg.getNPCID());
if(npc==null)
return;
@ -1243,13 +1263,15 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1243,13 +1263,15 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1341,12 +1363,14 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1341,12 +1363,14 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1358,219 +1382,192 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1358,219 +1382,192 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1579,14 +1576,43 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1579,14 +1576,43 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1597,7 +1623,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1597,7 +1623,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(player==null)
return;
NPCnpc=NPC.getFromCache(msg.getNPCID());
NPCnpc=NPCManager.getFromCache(msg.getNPCID());
if(npc==null)
return;
@ -1646,14 +1672,21 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1646,14 +1672,21 @@ public class ClientMessagePump implements NetMsgHandler {
max*=(1+(durMod*0.01f));
if(dur>=max||dur<1){
//redundancy message to clear item from window in client
@ -1788,7 +1821,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1788,7 +1821,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1809,7 +1842,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1809,7 +1842,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -83,7 +80,7 @@ public class AcceptInviteToGuildHandler extends AbstractClientMsgHandler {
@@ -83,7 +80,7 @@ public class AcceptInviteToGuildHandler extends AbstractClientMsgHandler {
@ -53,7 +53,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
@@ -53,7 +53,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
@ -35,26 +36,28 @@ public class ArcMineChangeProductionMsgHandler extends AbstractClientMsgHandler
@@ -35,26 +36,28 @@ public class ArcMineChangeProductionMsgHandler extends AbstractClientMsgHandler
//TODO verify this against the warehouse?
if(GuildStatusController.isInnerCouncil(playerCharacter.getGuildStatus())==false)// is this only GL?
if(!GuildStatusController.isInnerCouncil(playerCharacter.getGuildStatus()))// is this only GL?
@ -144,7 +144,7 @@ public class AssetSupportMsgHandler extends AbstractClientMsgHandler {
@@ -144,7 +144,7 @@ public class AssetSupportMsgHandler extends AbstractClientMsgHandler {
@ -55,7 +56,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@@ -55,7 +56,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
// Guild leader can't leave guild. must pass GL or disband
@ -83,7 +84,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@@ -83,7 +84,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@ -110,7 +111,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@@ -110,7 +111,7 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@ -42,18 +43,21 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -42,18 +43,21 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
if(!AbstractCharacter.CanFly(pc))
returnfalse;
if(pc.isSwimming())
if(PlayerManager.isSwimming(pc))
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
@ -67,7 +71,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -67,7 +71,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
if(pc.getAltitude()==0&&!msg.up())
returntrue;
pc.update();
pc.update(false);
pc.stopMovement(pc.getLoc());
msg.setStartAlt(pc.getAltitude());
if(msg.up()){
@ -132,7 +136,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -132,7 +136,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
}
if(msg.up()){
pc.update();
pc.update(false);
pc.setDesiredAltitude(targetAlt);
pc.setTakeOffTime(System.currentTimeMillis());
}else{
@ -158,7 +162,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -158,7 +162,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@ -97,9 +98,9 @@ public class ChangeGuildLeaderHandler extends AbstractClientMsgHandler {
@@ -97,9 +98,9 @@ public class ChangeGuildLeaderHandler extends AbstractClientMsgHandler {
}
targetPlayer.setGuildLeader(true);
targetPlayer.setInnerCouncil(true);
targetPlayer.setFullMember(true);
PlayerManager.setGuildLeader(targetPlayer,true);
PlayerManager.setInnerCouncil(targetPlayer,true);
PlayerManager.setFullMember(targetPlayer,true);
targetPlayer.incVer();
targetName=targetPlayer.getFirstName();
updateTarget=true;
@ -113,9 +114,9 @@ public class ChangeGuildLeaderHandler extends AbstractClientMsgHandler {
@@ -113,9 +114,9 @@ public class ChangeGuildLeaderHandler extends AbstractClientMsgHandler {
@ -63,14 +64,14 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@@ -63,14 +64,14 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@ -98,7 +99,7 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@@ -98,7 +99,7 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@ -106,16 +107,16 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@@ -106,16 +107,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 {
@ -98,8 +99,8 @@ public class DisbandGuildHandler extends AbstractClientMsgHandler {
@@ -98,8 +99,8 @@ public class DisbandGuildHandler extends AbstractClientMsgHandler {
@ -102,7 +102,7 @@ public class GroupInviteResponseHandler extends AbstractClientMsgHandler {
@@ -102,7 +102,7 @@ public class GroupInviteResponseHandler extends AbstractClientMsgHandler {
@ -60,7 +61,7 @@ public class GuildControlHandler extends AbstractClientMsgHandler {
@@ -60,7 +61,7 @@ public class GuildControlHandler extends AbstractClientMsgHandler {
@ -130,10 +127,10 @@ public class GuildCreationFinalizeHandler extends AbstractClientMsgHandler {
@@ -130,10 +127,10 @@ public class GuildCreationFinalizeHandler extends AbstractClientMsgHandler {
@ -43,7 +44,7 @@ public class GuildInfoHandler extends AbstractClientMsgHandler {
@@ -43,7 +44,7 @@ public class GuildInfoHandler extends AbstractClientMsgHandler {
@ -52,7 +53,7 @@ public class HirelingServiceMsgHandler extends AbstractClientMsgHandler {
@@ -52,7 +53,7 @@ public class HirelingServiceMsgHandler extends AbstractClientMsgHandler {
if(building==null)
returntrue;
NPCnpc=NPC.getFromCache(msg.npcID);
NPCnpc=NPCManager.getFromCache(msg.npcID);
if(npc==null)
returntrue;
@ -61,7 +62,7 @@ public class HirelingServiceMsgHandler extends AbstractClientMsgHandler {
@@ -61,7 +62,7 @@ public class HirelingServiceMsgHandler extends AbstractClientMsgHandler {
@ -360,6 +360,11 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
@@ -360,6 +360,11 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
@ -62,16 +62,23 @@ public class MOTDEditHandler extends AbstractClientMsgHandler {
@@ -62,16 +62,23 @@ public class MOTDEditHandler extends AbstractClientMsgHandler {
returntrue;
}
if(type==1)// Guild MOTD
if(type==1){ // Guild MOTD
msg.setMessage(guild.getMOTD());
elseif(type==3)// IC MOTD
guild.updateDatabase();
}elseif(type==3){// IC MOTD
msg.setMessage(guild.getICMOTD());
elseif(type==0){// Nation MOTD
guild.updateDatabase();
}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()==false){
if(!realm.getCanBeClaimed()){
ErrorPopupMsg.sendErrorPopup(player,180);// This territory cannot be ruled by anyone
return;
}
if(realm.isRuled()==true){
if(realm.isRuled()){
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,11 +171,9 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -171,11 +171,9 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -191,16 +189,31 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -191,16 +189,31 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
return;
}
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);
@ -260,60 +273,85 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -260,60 +273,85 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -377,7 +415,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -377,7 +415,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
player=SessionManager.getPlayerCharacter(origin);
msg=(MerchantMsg)baseMsg;
npc=NPC.getNPC(msg.getNPCID());
npc=NPCManager.getNPC(msg.getNPCID());
// Early exit if something goes awry
@ -420,7 +458,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -420,7 +458,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,35 +417,16 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -417,35 +417,16 @@ 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)){
@ -462,7 +443,12 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -462,7 +443,12 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
itemMan.consume(item);
}
break;
}elseif(uuid>252122&&uuid<252128){//mastery runes
}elseif(uuid>252122&&uuid<252137){//blood runes
if(ApplyRuneMsg.applyRune(uuid,origin,player)){
itemMan.consume(item);
}
break;
}elseif(uuid>252128&&uuid<252128){//mastery runes
if(ApplyRuneMsg.applyRune(uuid,origin,player)){
itemMan.consume(item);
}
@ -528,7 +514,6 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -528,7 +514,6 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@ -543,7 +528,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -543,7 +528,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@ -71,9 +69,9 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@@ -71,9 +69,9 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@ -214,7 +212,7 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@@ -214,7 +212,7 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@ -303,7 +301,7 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@@ -303,7 +301,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=NPC.getFromCache(msg.getNpcUUID());
npc=NPCManager.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=NPC.GetNPCProfits(npc);
NPCProfitsprofit=NPCManager.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=NPC.GetNPCProfits(npc);
NPCProfitsprofit=NPCManager.GetNPCProfits(npc);
if(profit==null)
return;
@ -428,7 +428,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@@ -428,7 +428,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@ -57,7 +58,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
@@ -57,7 +58,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
returntrue;
}
player.setEnteredWorld(false);
PlayerManager.setEnteredWorld(player,false);
Accountacc=SessionManager.getAccount(origin);
@ -118,7 +119,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
@@ -118,7 +119,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
@ -63,7 +64,7 @@ public class SwearInHandler extends AbstractClientMsgHandler {
@@ -63,7 +64,7 @@ public class SwearInHandler extends AbstractClientMsgHandler {
}
// Swear target in and send message to guild
target.setFullMember(true);
PlayerManager.setFullMember(target,true);
target.incVer();
ChatManager.chatGuildInfo(source,target.getFirstName()+" has been sworn in as a full member!");
@ -135,7 +135,8 @@ public class TaxCityMsgHandler extends AbstractClientMsgHandler {
@@ -135,7 +135,8 @@ public class TaxCityMsgHandler extends AbstractClientMsgHandler {
@ -35,7 +36,7 @@ public class TransferAssetMsgHandler extends AbstractClientMsgHandler {
@@ -35,7 +36,7 @@ public class TransferAssetMsgHandler extends AbstractClientMsgHandler {
intTargetType=transferAssetMsg.getTargetType();//ToDue later
@ -102,12 +104,12 @@ public class ArcViewAssetTransactionsMsg extends ClientNetMsg {
@@ -102,12 +104,12 @@ public class ArcViewAssetTransactionsMsg extends ClientNetMsg {
@ -91,7 +93,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
@@ -91,7 +93,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
floatsellPercent=1;
NPCnpc=NPC.getFromCache(npcID);
NPCnpc=NPCManager.getFromCache(npcID);
CharacterItemManagerman=null;
ArrayList<Item>inventory=null;
ArrayList<MobEquipment>sellInventory=null;
@ -100,7 +102,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
@@ -100,7 +102,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
man=npc.getCharItemManager();
Contractcontract=npc.getContract();
if(player!=null){
floatbarget=player.getBargain();
floatbarget=PlayerManager.getBargain(player);
floatprofit=npc.getSellPercent(player)-barget;
if(profit<1)
@ -112,6 +114,12 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
@@ -112,6 +114,12 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
@ -485,36 +485,19 @@ public class ManageCityAssetsMsg extends ClientNetMsg {
@@ -485,36 +485,19 @@ public class ManageCityAssetsMsg extends ClientNetMsg {