Register Kelbim at GrandBossManager on spawn.
Contributed by facab.
This commit is contained in:
parent
de8eb81969
commit
7851c5ade7
@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.StatSet;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
@ -191,6 +192,7 @@ public class Kelbim extends AbstractNpcAI
|
|||||||
case "stage_1_kelbim_spawn":
|
case "stage_1_kelbim_spawn":
|
||||||
{
|
{
|
||||||
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
||||||
|
GrandBossManager.getInstance().addBoss((GrandBossInstance) _kelbimBoss);
|
||||||
_lastAction = System.currentTimeMillis();
|
_lastAction = System.currentTimeMillis();
|
||||||
startQuestTimer("check_activity_task", 60000, null, null);
|
startQuestTimer("check_activity_task", 60000, null, null);
|
||||||
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
||||||
|
@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.StatSet;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
@ -191,6 +192,7 @@ public class Kelbim extends AbstractNpcAI
|
|||||||
case "stage_1_kelbim_spawn":
|
case "stage_1_kelbim_spawn":
|
||||||
{
|
{
|
||||||
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
||||||
|
GrandBossManager.getInstance().addBoss((GrandBossInstance) _kelbimBoss);
|
||||||
_lastAction = System.currentTimeMillis();
|
_lastAction = System.currentTimeMillis();
|
||||||
startQuestTimer("check_activity_task", 60000, null, null);
|
startQuestTimer("check_activity_task", 60000, null, null);
|
||||||
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
||||||
|
@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.StatSet;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
@ -191,6 +192,7 @@ public class Kelbim extends AbstractNpcAI
|
|||||||
case "stage_1_kelbim_spawn":
|
case "stage_1_kelbim_spawn":
|
||||||
{
|
{
|
||||||
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
||||||
|
GrandBossManager.getInstance().addBoss((GrandBossInstance) _kelbimBoss);
|
||||||
_lastAction = System.currentTimeMillis();
|
_lastAction = System.currentTimeMillis();
|
||||||
startQuestTimer("check_activity_task", 60000, null, null);
|
startQuestTimer("check_activity_task", 60000, null, null);
|
||||||
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
||||||
|
@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.StatSet;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
@ -191,6 +192,7 @@ public class Kelbim extends AbstractNpcAI
|
|||||||
case "stage_1_kelbim_spawn":
|
case "stage_1_kelbim_spawn":
|
||||||
{
|
{
|
||||||
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
||||||
|
GrandBossManager.getInstance().addBoss((GrandBossInstance) _kelbimBoss);
|
||||||
_lastAction = System.currentTimeMillis();
|
_lastAction = System.currentTimeMillis();
|
||||||
startQuestTimer("check_activity_task", 60000, null, null);
|
startQuestTimer("check_activity_task", 60000, null, null);
|
||||||
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
||||||
|
@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.StatSet;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
@ -191,6 +192,7 @@ public class Kelbim extends AbstractNpcAI
|
|||||||
case "stage_1_kelbim_spawn":
|
case "stage_1_kelbim_spawn":
|
||||||
{
|
{
|
||||||
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
||||||
|
GrandBossManager.getInstance().addBoss((GrandBossInstance) _kelbimBoss);
|
||||||
_lastAction = System.currentTimeMillis();
|
_lastAction = System.currentTimeMillis();
|
||||||
startQuestTimer("check_activity_task", 60000, null, null);
|
startQuestTimer("check_activity_task", 60000, null, null);
|
||||||
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
||||||
|
@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.StatSet;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
@ -191,6 +192,7 @@ public class Kelbim extends AbstractNpcAI
|
|||||||
case "stage_1_kelbim_spawn":
|
case "stage_1_kelbim_spawn":
|
||||||
{
|
{
|
||||||
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
||||||
|
GrandBossManager.getInstance().addBoss((GrandBossInstance) _kelbimBoss);
|
||||||
_lastAction = System.currentTimeMillis();
|
_lastAction = System.currentTimeMillis();
|
||||||
startQuestTimer("check_activity_task", 60000, null, null);
|
startQuestTimer("check_activity_task", 60000, null, null);
|
||||||
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
||||||
|
@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.StatSet;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
import org.l2jmobius.gameserver.model.quest.QuestTimer;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
@ -191,6 +192,7 @@ public class Kelbim extends AbstractNpcAI
|
|||||||
case "stage_1_kelbim_spawn":
|
case "stage_1_kelbim_spawn":
|
||||||
{
|
{
|
||||||
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
_kelbimBoss = addSpawn(KELBIM, -56340, 60801, -269, 54262, false, 0);
|
||||||
|
GrandBossManager.getInstance().addBoss((GrandBossInstance) _kelbimBoss);
|
||||||
_lastAction = System.currentTimeMillis();
|
_lastAction = System.currentTimeMillis();
|
||||||
startQuestTimer("check_activity_task", 60000, null, null);
|
startQuestTimer("check_activity_task", 60000, null, null);
|
||||||
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
startQuestTimer("stage_all_random_area_attack", Rnd.get(2, 3) * 60000, null, null);
|
||||||
|
Loading…
Reference in New Issue
Block a user