bane commander NPC work
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user