|
|
@ -212,10 +212,6 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (AbstractCharacter guard : building.getHirelings().keySet()) { |
|
|
|
|
|
|
|
if (guard.getObjectType() == GameObjectType.Mob) |
|
|
|
|
|
|
|
((Mob) guard).setPatrolPointIndex(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (building.getPatrolPoints() != null) |
|
|
|
} else if (building.getPatrolPoints() != null) |
|
|
|
ClearPatrolPoints(building.getObjectUUID()); |
|
|
|
ClearPatrolPoints(building.getObjectUUID()); |
|
|
|
|
|
|
|
|
|
|
@ -223,10 +219,6 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler { |
|
|
|
AddSentryPoints(building.getObjectUUID(), orderNpcMsg.getSentryPoints()); |
|
|
|
AddSentryPoints(building.getObjectUUID(), orderNpcMsg.getSentryPoints()); |
|
|
|
} else if (building.getSentryPoints() != null) |
|
|
|
} else if (building.getSentryPoints() != null) |
|
|
|
ClearSentryPoints(building.getObjectUUID()); |
|
|
|
ClearSentryPoints(building.getObjectUUID()); |
|
|
|
|
|
|
|
|
|
|
|
// Dispatch dispatch = Dispatch.borrow(pc, msg);
|
|
|
|
|
|
|
|
// DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static void processUpgradeNPC(PlayerCharacter player, AbstractCharacter abstractCharacter) { |
|
|
|
private static void processUpgradeNPC(PlayerCharacter player, AbstractCharacter abstractCharacter) { |
|
|
@ -541,7 +533,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler { |
|
|
|
|
|
|
|
|
|
|
|
} else if (orderNPCMsg.getObjectType() == GameObjectType.Mob.ordinal()) { |
|
|
|
} else if (orderNPCMsg.getObjectType() == GameObjectType.Mob.ordinal()) { |
|
|
|
|
|
|
|
|
|
|
|
mob = Mob.getFromCacheDBID(orderNPCMsg.getNpcUUID()); |
|
|
|
mob = Mob.getMob(orderNPCMsg.getNpcUUID()); |
|
|
|
|
|
|
|
|
|
|
|
if (mob == null) |
|
|
|
if (mob == null) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|