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 {
//add bane commander NPC //add bane commander NPC
int contractID = 1502042; int contractID = 1502042;
baneCommander = NPC.createNPC("Bane Commander", contractID, spawnLoc, bane.getCity().getGuild(), ZoneManager.findSmallestZone(bane.getStone().loc), (short) 70, bane.getStone()); 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.addObject(baneCommander,spawnLoc.x,spawnLoc.z);
WorldGrid.updateObject(baneCommander); WorldGrid.updateObject(baneCommander);
} }
@ -312,11 +313,11 @@ public final class Bane {
{ {
baneCommander = NPC.getNPC(commanderuuid); baneCommander = NPC.getNPC(commanderuuid);
} }
try { //try {
NPCManager.slotCharacterInBuilding(baneCommander); // NPCManager.slotCharacterInBuilding(baneCommander);
}catch (Exception e){ //}catch (Exception e){
//swallow it //swallow it
} //}
baneCommander.runAfterLoad(); baneCommander.runAfterLoad();
//baneCommander.setLoc(spawnLoc); //baneCommander.setLoc(spawnLoc);
InterestManager.setObjectDirty(baneCommander); InterestManager.setObjectDirty(baneCommander);

Loading…
Cancel
Save