bane commander NPC work

This commit is contained in:
2024-12-30 16:29:16 -06:00
parent 63c6e2abd7
commit 15bc99d216
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -289,6 +289,8 @@ 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());
WorldGrid.addObject(baneCommander,spawnLoc.x,spawnLoc.z);
WorldGrid.updateObject(baneCommander);
}
else
{
+6
View File
@@ -208,6 +208,12 @@ public class Contract extends AbstractGameObject {
City city = ZoneManager.getCityAtLocation(npc.loc);
if(city != null){
bane = city.getBane();
if(!city.getGuild().equals(pc.guild))
return vd;
if(!GuildStatusController.isInnerCouncil(pc.getGuildStatus()) && !GuildStatusController.isGuildLeader(pc.getGuildStatus())){
return vd;
}
}
}
if(bane == null){