From 9078a41c581c1ae0a316aba20331192f2959700d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 12 Mar 2025 20:37:47 -0500 Subject: [PATCH] add mob adding stronghold mobs --- src/engine/devcmd/cmds/AddMobCmd.java | 18 +++++++++--------- src/engine/objects/Mob.java | 2 ++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/engine/devcmd/cmds/AddMobCmd.java b/src/engine/devcmd/cmds/AddMobCmd.java index a721d384..ef5d6218 100644 --- a/src/engine/devcmd/cmds/AddMobCmd.java +++ b/src/engine/devcmd/cmds/AddMobCmd.java @@ -88,8 +88,8 @@ public class AddMobCmd extends AbstractDevCmd { } - //Mob mob = Mob.createMob(loadID, pc.getLoc(),null, true, zone, null, 0, "", 1); - Mob mob = Mob.createStrongholdMob(loadID,pc.loc,Guild.getErrantGuild(),true,zone,null,0,"Whitehorn Militant",75); + Mob mob = Mob.createMob(loadID, pc.getLoc(),null, true, zone, null, 0, "", 1); + //Mob mob = Mob.createStrongholdMob(loadID,pc.loc,Guild.getErrantGuild(),true,zone,null,0,"Whitehorn Militant",75); if (mob != null) { mob.updateDatabase(); ChatManager.chatSayInfo(pc, @@ -99,25 +99,25 @@ public class AddMobCmd extends AbstractDevCmd { mob.parentZone = zone; mob.bindLoc = pc.loc; mob.setLoc(pc.loc); - mob.StrongholdGuardian = true; mob.equipmentSetID = 6327; mob.runAfterLoad(); mob.setLevel((short)75); mob.setResists(new Resists("Elite")); - mob.spawnTime = 1000000000; + mob.spawnTime = 10; mob.BehaviourType = Enum.MobBehaviourType.Aggro; zone.zoneMobSet.add(mob); + mob.isHellgateMob = true; LootManager.GenerateStrongholdLoot(mob,false,false); - mob.healthMax = 12500; + mob.healthMax = mob.mobBase.getHealthMax(); mob.setHealth(mob.healthMax); mob.maxDamageHandOne = 1550; mob.minDamageHandOne = 750; mob.atrHandOne = 1800; mob.defenseRating = 2200; - mob.setFirstName("Elite Guardian"); - InterestManager.setObjectDirty(mob); - WorldGrid.addObject(mob,pc.loc.x,pc.loc.z); - WorldGrid.updateObject(mob); + mob.setFirstName("Whitehorn Militant"); + //InterestManager.setObjectDirty(mob); + //WorldGrid.addObject(mob,pc.loc.x,pc.loc.z); + //WorldGrid.updateObject(mob); //guard.stronghold = mine; mob.mobPowers.clear(); mob.mobPowers.put(429399948,20); // find weakness diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 4d4cfdd6..7e24b89d 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -111,6 +111,8 @@ public class Mob extends AbstractIntelligenceAgent { public boolean StrongholdEpic = false; public boolean isDropper = false; + public Boolean isHellgateMob = false; + public HashMap hate_values;