Gave Wall Archers mob AI

This commit is contained in:
2023-04-18 20:47:49 -05:00
parent 914575a360
commit 0914580bea
5 changed files with 55 additions and 4 deletions
@@ -481,6 +481,19 @@ public enum BuildingManager {
mob.setParentZone(zone);
return true;
}
if (NPC.ISWallArcher(contractID.getContractID())) {
mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID());
if (mob == null)
return false;
mob.setRank(rank);
mob.setPlayerGuard(true);
mob.setParentZone(zone);
mob.BehaviourType = Enum.MobBehaviourType.GuardWallArcher;
return true;
}
npc = NPC.createNPC( pirateName, contractID.getObjectUUID(), NpcLoc, contractOwner.getGuild(), false, zone, (short) rank, false, building);
if (npc == null)