|
|
@ -468,8 +468,7 @@ public enum BuildingManager { |
|
|
|
|
|
|
|
|
|
|
|
Mob mob = null; |
|
|
|
Mob mob = null; |
|
|
|
NPC npc = null; |
|
|
|
NPC npc = null; |
|
|
|
|
|
|
|
if (NPC.ISWallArcher(contractID.getContractID())) { |
|
|
|
if (NPC.ISGuardCaptain(contractID.getContractID())) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID()); |
|
|
|
mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID()); |
|
|
|
|
|
|
|
|
|
|
@ -479,9 +478,10 @@ public enum BuildingManager { |
|
|
|
mob.setRank(rank); |
|
|
|
mob.setRank(rank); |
|
|
|
mob.setPlayerGuard(true); |
|
|
|
mob.setPlayerGuard(true); |
|
|
|
mob.setParentZone(zone); |
|
|
|
mob.setParentZone(zone); |
|
|
|
|
|
|
|
mob.BehaviourType = Enum.MobBehaviourType.GuardWallArcher; |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
if (NPC.ISWallArcher(contractID.getContractID())) { |
|
|
|
if (NPC.ISGuardCaptain(contractID.getContractID())) { |
|
|
|
|
|
|
|
|
|
|
|
mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID()); |
|
|
|
mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID()); |
|
|
|
|
|
|
|
|
|
|
@ -491,7 +491,6 @@ public enum BuildingManager { |
|
|
|
mob.setRank(rank); |
|
|
|
mob.setRank(rank); |
|
|
|
mob.setPlayerGuard(true); |
|
|
|
mob.setPlayerGuard(true); |
|
|
|
mob.setParentZone(zone); |
|
|
|
mob.setParentZone(zone); |
|
|
|
mob.BehaviourType = Enum.MobBehaviourType.GuardWallArcher; |
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
npc = NPC.createNPC( pirateName, contractID.getObjectUUID(), NpcLoc, contractOwner.getGuild(), false, zone, (short) rank, false, building); |
|
|
|
npc = NPC.createNPC( pirateName, contractID.getObjectUUID(), NpcLoc, contractOwner.getGuild(), false, zone, (short) rank, false, building); |
|
|
|