bane commander NPC

This commit is contained in:
2024-12-28 05:09:51 -06:00
parent b3a24d0158
commit 5a9901d775
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -166,9 +166,12 @@ public class MobAI {
try {
if(mob == null || target == null)
return;
if (target.getRank() == -1 || !target.isVulnerable() || BuildingManager.getBuildingFromCache(target.getObjectUUID()) == null) {
mob.setCombatTarget(null);
return;
return;
}
City playercity = ZoneManager.getCityAtLocation(mob.getLoc());
+4
View File
@@ -266,6 +266,10 @@ public final class Bane {
BaneRecord baneRecord = BaneRecord.borrow(bane, Enum.RecordEventType.PENDING);
DataWarehouse.pushToWarehouse(baneRecord);
//add bane commander NPC
int contractID = 1502042;
NPC.createNPC("Bane Commander",contractID,Vector3fImmutable.getRandomPointOnCircle(stone.loc,15),targetCity.getGuild(),cityZone,(short)70,stone);
return true;
}