|
|
|
@ -18,6 +18,7 @@ import java.util.ArrayList;
@@ -18,6 +18,7 @@ import java.util.ArrayList;
|
|
|
|
|
public class HellgateManager { |
|
|
|
|
public static ArrayList<Hellgate> hellgates; |
|
|
|
|
public static void Reset(Hellgate hellgate){ |
|
|
|
|
hellgate.completionTime = 0L; |
|
|
|
|
for(Mob mob : hellgate.mobs){ |
|
|
|
|
mob.respawn(); |
|
|
|
|
mob.destination = mob.bindLoc; |
|
|
|
@ -86,7 +87,7 @@ public class HellgateManager {
@@ -86,7 +87,7 @@ public class HellgateManager {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Mob CreateHellgateMob(){ |
|
|
|
|
int soldierID = 14161; |
|
|
|
|
int soldierID = 14163; |
|
|
|
|
Mob mob = null; |
|
|
|
|
mob = createHellgateMob(soldierID,Vector3fImmutable.ZERO,"Hellgate Minion",75); |
|
|
|
|
mob.equipmentSetID = 7545; |
|
|
|
@ -94,7 +95,7 @@ public class HellgateManager {
@@ -94,7 +95,7 @@ public class HellgateManager {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Mob CreateHellgateMiniBoss(){ |
|
|
|
|
int miniBossID = 14180; |
|
|
|
|
int miniBossID = 12761; |
|
|
|
|
Mob mob = null; |
|
|
|
|
mob = createHellgateMob(miniBossID,Vector3fImmutable.ZERO,"Hellgate Commander",75); |
|
|
|
|
mob.equipmentSetID = 7816; |
|
|
|
@ -162,13 +163,16 @@ public class HellgateManager {
@@ -162,13 +163,16 @@ public class HellgateManager {
|
|
|
|
|
|
|
|
|
|
//handle MobAI controller
|
|
|
|
|
for(Hellgate hellgate : HellgateManager.hellgates){ |
|
|
|
|
//for(Mob mob : hellgate.mobs){
|
|
|
|
|
// MobAI.DetermineAction(mob);
|
|
|
|
|
//}
|
|
|
|
|
//for(Mob mob : hellgate.mini_bosses){
|
|
|
|
|
// MobAI.DetermineAction(mob);
|
|
|
|
|
//}
|
|
|
|
|
for(Mob mob : hellgate.mobs){ |
|
|
|
|
//MobAI.DetermineAction(mob);
|
|
|
|
|
//mob.teleport(mob.bindLoc);
|
|
|
|
|
} |
|
|
|
|
for(Mob mob : hellgate.mini_bosses){ |
|
|
|
|
//MobAI.DetermineAction(mob);
|
|
|
|
|
//mob.teleport(mob.bindLoc);
|
|
|
|
|
} |
|
|
|
|
//MobAI.DetermineAction(hellgate.boss);
|
|
|
|
|
//hellgate.boss.teleport(hellgate.boss.bindLoc);
|
|
|
|
|
|
|
|
|
|
//check if boss has been defeated
|
|
|
|
|
if(!hellgate.boss.isAlive() && hellgate.completionTime == 0L){ |
|
|
|
|