|  |  | @ -49,9 +49,10 @@ public class HellgateManager { | 
			
		
	
		
		
			
				
					
					|  |  |  |             mob.atrHandOne = 1800; |  |  |  |             mob.atrHandOne = 1800; | 
			
		
	
		
		
			
				
					
					|  |  |  |             mob.defenseRating = 2200; |  |  |  |             mob.defenseRating = 2200; | 
			
		
	
		
		
			
				
					
					|  |  |  |             mob.setFirstName("Hellgate Commander"); |  |  |  |             mob.setFirstName("Hellgate Commander"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             WorldGrid.addObject(mob,realLoc.x,realLoc.z); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             InterestManager.setObjectDirty(mob); |  |  |  |             InterestManager.setObjectDirty(mob); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             WorldGrid.addObject(mob,realLoc.x,realLoc.z); | 
			
		
	
		
		
			
				
					
					|  |  |  |             WorldGrid.updateObject(mob); |  |  |  |             WorldGrid.updateObject(mob); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             mob.runAfterLoad(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             LootManager.GenerateStrongholdLoot(mob,true,false); |  |  |  |             LootManager.GenerateStrongholdLoot(mob,true,false); | 
			
		
	
		
		
			
				
					
					|  |  |  |             hellgate.mini_bosses.add(mob); |  |  |  |             hellgate.mini_bosses.add(mob); | 
			
		
	
		
		
			
				
					
					|  |  |  |             mob.setObjectUUID(mob.getObjectUUID() - (10000 + offsetUID)); |  |  |  |             mob.setObjectUUID(mob.getObjectUUID() - (10000 + offsetUID)); | 
			
		
	
	
		
		
			
				
					|  |  | @ -76,6 +77,7 @@ public class HellgateManager { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 WorldGrid.addObject(minion,offset.x,offset.z); |  |  |  |                 WorldGrid.addObject(minion,offset.x,offset.z); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 InterestManager.setObjectDirty(minion); |  |  |  |                 InterestManager.setObjectDirty(minion); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 WorldGrid.updateObject(minion); |  |  |  |                 WorldGrid.updateObject(minion); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 minion.runAfterLoad(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 LootManager.GenerateStrongholdLoot(minion,false,false); |  |  |  |                 LootManager.GenerateStrongholdLoot(minion,false,false); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 hellgate.mobs.add(minion); |  |  |  |                 hellgate.mobs.add(minion); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 minion.setObjectUUID(minion.getObjectUUID() - (10000 + offsetUID)); |  |  |  |                 minion.setObjectUUID(minion.getObjectUUID() - (10000 + offsetUID)); | 
			
		
	
	
		
		
			
				
					|  |  | @ -93,6 +95,7 @@ public class HellgateManager { | 
			
		
	
		
		
			
				
					
					|  |  |  |         WorldGrid.addObject(mob,hellgate.parent.getLoc().x,hellgate.parent.getLoc().z); |  |  |  |         WorldGrid.addObject(mob,hellgate.parent.getLoc().x,hellgate.parent.getLoc().z); | 
			
		
	
		
		
			
				
					
					|  |  |  |         InterestManager.setObjectDirty(mob); |  |  |  |         InterestManager.setObjectDirty(mob); | 
			
		
	
		
		
			
				
					
					|  |  |  |         WorldGrid.updateObject(mob); |  |  |  |         WorldGrid.updateObject(mob); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         mob.runAfterLoad(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         LootManager.GenerateStrongholdLoot(mob,false,true); |  |  |  |         LootManager.GenerateStrongholdLoot(mob,false,true); | 
			
		
	
		
		
			
				
					
					|  |  |  |         hellgate.boss = mob; |  |  |  |         hellgate.boss = mob; | 
			
		
	
		
		
			
				
					
					|  |  |  |         mob.setObjectUUID(mob.getObjectUUID() - (10000 + offsetUID)); |  |  |  |         mob.setObjectUUID(mob.getObjectUUID() - (10000 + offsetUID)); | 
			
		
	
	
		
		
			
				
					|  |  | @ -157,8 +160,8 @@ public class HellgateManager { | 
			
		
	
		
		
			
				
					
					|  |  |  |         mobWithoutID.level = (short) level; |  |  |  |         mobWithoutID.level = (short) level; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         // Set the parent zone and parentZoneID
 |  |  |  |         // Set the parent zone and parentZoneID
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         mobWithoutID.parentZone = null; |  |  |  |         mobWithoutID.parentZone = ZoneManager.getZoneByUUID(993); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         mobWithoutID.parentZoneID = 0; |  |  |  |         mobWithoutID.parentZoneID = 993; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         // Avoid database actions and directly return the created mobWithoutID
 |  |  |  |         // Avoid database actions and directly return the created mobWithoutID
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         mobWithoutID.setObjectTypeMask(MBServerStatics.MASK_MOB | mobWithoutID.getTypeMasks()); |  |  |  |         mobWithoutID.setObjectTypeMask(MBServerStatics.MASK_MOB | mobWithoutID.getTypeMasks()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -167,7 +170,7 @@ public class HellgateManager { | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static void pulseHellgates(){ |  |  |  |     public static void pulseHellgates(){ | 
			
		
	
		
		
			
				
					
					|  |  |  |         if(HellgateManager.hellgates == null){ |  |  |  |         if(HellgateManager.hellgates == null || HellgateManager.hellgates.isEmpty()){ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             HellgateManager.hellgates = new ArrayList<>(); |  |  |  |             HellgateManager.hellgates = new ArrayList<>(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             Hellgate hellgate = new Hellgate(993); |  |  |  |             Hellgate hellgate = new Hellgate(993); | 
			
		
	
		
		
			
				
					
					|  |  |  |             HellgateManager.hellgates.add(hellgate); |  |  |  |             HellgateManager.hellgates.add(hellgate); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |