bane mechanic thread
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user