Browse Source

npc manager error spam

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
a73c3453ea
  1. 6
      src/engine/objects/Bane.java

6
src/engine/objects/Bane.java

@ -305,7 +305,11 @@ public final class Bane { @@ -305,7 +305,11 @@ public final class Bane {
//add bane commander NPC
int contractID = 1502042;
baneCommander = NPC.createNPC("Bane Commander", contractID, spawnLoc, bane.getCity().getGuild(), ZoneManager.findSmallestZone(bane.getStone().loc), (short) 70, bane.getStone());
NPCManager.slotCharacterInBuilding(baneCommander);
try {
NPCManager.slotCharacterInBuilding(baneCommander);
}catch(Exception e){
}
WorldGrid.addObject(baneCommander,spawnLoc.x,spawnLoc.z);
WorldGrid.updateObject(baneCommander);
}

Loading…
Cancel
Save