Browse Source

bane mechanic thread

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
8b4eb96262
  1. 9
      src/engine/objects/Bane.java

9
src/engine/objects/Bane.java

@ -305,6 +305,7 @@ public final class Bane { @@ -305,6 +305,7 @@ 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);
WorldGrid.addObject(baneCommander,spawnLoc.x,spawnLoc.z);
WorldGrid.updateObject(baneCommander);
}
@ -312,11 +313,11 @@ public final class Bane { @@ -312,11 +313,11 @@ public final class Bane {
{
baneCommander = NPC.getNPC(commanderuuid);
}
try {
NPCManager.slotCharacterInBuilding(baneCommander);
}catch (Exception e){
//try {
// NPCManager.slotCharacterInBuilding(baneCommander);
//}catch (Exception e){
//swallow it
}
//}
baneCommander.runAfterLoad();
//baneCommander.setLoc(spawnLoc);
InterestManager.setObjectDirty(baneCommander);

Loading…
Cancel
Save