Browse Source

bane commander NPC

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

7
src/engine/objects/Bane.java

@ -279,18 +279,15 @@ 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());
baneCommander.setLoc(spawnLoc);
baneCommander.setGuild(bane.getCity().getGuild());
} }
else else
{ {
baneCommander = NPC.getNPC(commanderuuid); baneCommander = NPC.getNPC(commanderuuid);
baneCommander.setLoc(spawnLoc);
baneCommander.setGuild(bane.getCity().getGuild());
} }
baneCommander.setLoc(spawnLoc);
InterestManager.setObjectDirty(baneCommander);
WorldGrid.addObject(baneCommander,spawnLoc.x, spawnLoc.z); WorldGrid.addObject(baneCommander,spawnLoc.x, spawnLoc.z);
WorldGrid.updateObject(baneCommander); WorldGrid.updateObject(baneCommander);
InterestManager.setObjectDirty(baneCommander);
} }
public static Bane getBane(int cityUUID) { public static Bane getBane(int cityUUID) {

Loading…
Cancel
Save