From 8b4eb9626243a2fc7f0506aacc94f38274fd9e0a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 31 Dec 2024 17:39:28 -0600 Subject: [PATCH] bane mechanic thread --- src/engine/objects/Bane.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/Bane.java b/src/engine/objects/Bane.java index 693385c2..86ccfb7f 100644 --- a/src/engine/objects/Bane.java +++ b/src/engine/objects/Bane.java @@ -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 { { 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);