Enchanted Megaliths stage 2 monster titles.
Thanks gigilo1968.
This commit is contained in:
@@ -25,6 +25,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
|||||||
import com.l2jmobius.gameserver.model.spawns.SpawnTemplate;
|
import com.l2jmobius.gameserver.model.spawns.SpawnTemplate;
|
||||||
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
|
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
|
||||||
import com.l2jmobius.gameserver.model.zone.type.L2ScriptZone;
|
import com.l2jmobius.gameserver.model.zone.type.L2ScriptZone;
|
||||||
|
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.Earthquake;
|
import com.l2jmobius.gameserver.network.serverpackets.Earthquake;
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.OnEventTrigger;
|
import com.l2jmobius.gameserver.network.serverpackets.OnEventTrigger;
|
||||||
|
|
||||||
@@ -74,6 +75,7 @@ public class EnchantedMegaliths extends AbstractNpcAI
|
|||||||
private EnchantedMegaliths()
|
private EnchantedMegaliths()
|
||||||
{
|
{
|
||||||
addKillId(MONSTERS);
|
addKillId(MONSTERS);
|
||||||
|
addSpawnId(MONSTERS);
|
||||||
addEnterZoneId(HELLBOUND_ZONE.getId());
|
addEnterZoneId(HELLBOUND_ZONE.getId());
|
||||||
startQuestTimer("CHECK_STATUS", 60000, null, null, true);
|
startQuestTimer("CHECK_STATUS", 60000, null, null, true);
|
||||||
stage = GlobalVariablesManager.getInstance().getInt(HB_MEGALITH_STAGE, 1);
|
stage = GlobalVariablesManager.getInstance().getInt(HB_MEGALITH_STAGE, 1);
|
||||||
@@ -311,6 +313,16 @@ public class EnchantedMegaliths extends AbstractNpcAI
|
|||||||
return super.onKill(npc, killer, isSummon);
|
return super.onKill(npc, killer, isSummon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onSpawn(L2Npc npc)
|
||||||
|
{
|
||||||
|
if ((stage == 2) && (npc.getSpawn().getNpcSpawnTemplate().getSpawnTemplate().getName().equals("enchanted_megaliths_stage_1")))
|
||||||
|
{
|
||||||
|
npc.setTitleString(NpcStringId.ABNORMAL_MAGIC_CIRCLE);
|
||||||
|
}
|
||||||
|
return super.onSpawn(npc);
|
||||||
|
}
|
||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
new EnchantedMegaliths();
|
new EnchantedMegaliths();
|
||||||
|
@@ -112,10 +112,6 @@
|
|||||||
<npc id="23359" x="-21302" y="236118" z="-2608" heading="9372" respawnTime="60sec" />
|
<npc id="23359" x="-21302" y="236118" z="-2608" heading="9372" respawnTime="60sec" />
|
||||||
<npc id="23359" x="-21792" y="239867" z="-2856" heading="19217" respawnTime="60sec" />
|
<npc id="23359" x="-21792" y="239867" z="-2856" heading="19217" respawnTime="60sec" />
|
||||||
<npc id="23359" x="-21897" y="238915" z="-2848" heading="29247" respawnTime="60sec" />
|
<npc id="23359" x="-21897" y="238915" z="-2848" heading="29247" respawnTime="60sec" />
|
||||||
<npc id="23359" x="-23296" y="245040" z="-3136" heading="60082" respawnTime="60sec" />
|
|
||||||
<npc id="23359" x="-23696" y="245719" z="-3136" heading="38312" respawnTime="60sec" />
|
|
||||||
<npc id="23359" x="-23826" y="243747" z="-3112" heading="8382" respawnTime="60sec" />
|
|
||||||
<npc id="23359" x="-24576" y="245623" z="-3136" heading="5547" respawnTime="60sec" />
|
|
||||||
<npc id="23360" x="-12384" y="237508" z="-3256" heading="42891" respawnTime="60sec" />
|
<npc id="23360" x="-12384" y="237508" z="-3256" heading="42891" respawnTime="60sec" />
|
||||||
<npc id="23360" x="-12906" y="238829" z="-3336" heading="20119" respawnTime="60sec" />
|
<npc id="23360" x="-12906" y="238829" z="-3336" heading="20119" respawnTime="60sec" />
|
||||||
<npc id="23360" x="-14034" y="238635" z="-3272" heading="64519" respawnTime="60sec" />
|
<npc id="23360" x="-14034" y="238635" z="-3272" heading="64519" respawnTime="60sec" />
|
||||||
@@ -252,4 +248,4 @@
|
|||||||
<npc id="23373" x="-21687" y="239595" z="-2856" heading="63336" respawnTime="30sec" />
|
<npc id="23373" x="-21687" y="239595" z="-2856" heading="63336" respawnTime="30sec" />
|
||||||
</group>
|
</group>
|
||||||
</spawn>
|
</spawn>
|
||||||
</list>
|
</list>
|
||||||
|
@@ -25,6 +25,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
|||||||
import com.l2jmobius.gameserver.model.spawns.SpawnTemplate;
|
import com.l2jmobius.gameserver.model.spawns.SpawnTemplate;
|
||||||
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
|
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
|
||||||
import com.l2jmobius.gameserver.model.zone.type.L2ScriptZone;
|
import com.l2jmobius.gameserver.model.zone.type.L2ScriptZone;
|
||||||
|
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.Earthquake;
|
import com.l2jmobius.gameserver.network.serverpackets.Earthquake;
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.OnEventTrigger;
|
import com.l2jmobius.gameserver.network.serverpackets.OnEventTrigger;
|
||||||
|
|
||||||
@@ -74,6 +75,7 @@ public class EnchantedMegaliths extends AbstractNpcAI
|
|||||||
private EnchantedMegaliths()
|
private EnchantedMegaliths()
|
||||||
{
|
{
|
||||||
addKillId(MONSTERS);
|
addKillId(MONSTERS);
|
||||||
|
addSpawnId(MONSTERS);
|
||||||
addEnterZoneId(HELLBOUND_ZONE.getId());
|
addEnterZoneId(HELLBOUND_ZONE.getId());
|
||||||
startQuestTimer("CHECK_STATUS", 60000, null, null, true);
|
startQuestTimer("CHECK_STATUS", 60000, null, null, true);
|
||||||
stage = GlobalVariablesManager.getInstance().getInt(HB_MEGALITH_STAGE, 1);
|
stage = GlobalVariablesManager.getInstance().getInt(HB_MEGALITH_STAGE, 1);
|
||||||
@@ -311,6 +313,16 @@ public class EnchantedMegaliths extends AbstractNpcAI
|
|||||||
return super.onKill(npc, killer, isSummon);
|
return super.onKill(npc, killer, isSummon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onSpawn(L2Npc npc)
|
||||||
|
{
|
||||||
|
if ((stage == 2) && (npc.getSpawn().getNpcSpawnTemplate().getSpawnTemplate().getName().equals("enchanted_megaliths_stage_1")))
|
||||||
|
{
|
||||||
|
npc.setTitleString(NpcStringId.ABNORMAL_MAGIC_CIRCLE);
|
||||||
|
}
|
||||||
|
return super.onSpawn(npc);
|
||||||
|
}
|
||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
new EnchantedMegaliths();
|
new EnchantedMegaliths();
|
||||||
|
@@ -112,10 +112,6 @@
|
|||||||
<npc id="23359" x="-21302" y="236118" z="-2608" heading="9372" respawnTime="60sec" />
|
<npc id="23359" x="-21302" y="236118" z="-2608" heading="9372" respawnTime="60sec" />
|
||||||
<npc id="23359" x="-21792" y="239867" z="-2856" heading="19217" respawnTime="60sec" />
|
<npc id="23359" x="-21792" y="239867" z="-2856" heading="19217" respawnTime="60sec" />
|
||||||
<npc id="23359" x="-21897" y="238915" z="-2848" heading="29247" respawnTime="60sec" />
|
<npc id="23359" x="-21897" y="238915" z="-2848" heading="29247" respawnTime="60sec" />
|
||||||
<npc id="23359" x="-23296" y="245040" z="-3136" heading="60082" respawnTime="60sec" />
|
|
||||||
<npc id="23359" x="-23696" y="245719" z="-3136" heading="38312" respawnTime="60sec" />
|
|
||||||
<npc id="23359" x="-23826" y="243747" z="-3112" heading="8382" respawnTime="60sec" />
|
|
||||||
<npc id="23359" x="-24576" y="245623" z="-3136" heading="5547" respawnTime="60sec" />
|
|
||||||
<npc id="23360" x="-12384" y="237508" z="-3256" heading="42891" respawnTime="60sec" />
|
<npc id="23360" x="-12384" y="237508" z="-3256" heading="42891" respawnTime="60sec" />
|
||||||
<npc id="23360" x="-12906" y="238829" z="-3336" heading="20119" respawnTime="60sec" />
|
<npc id="23360" x="-12906" y="238829" z="-3336" heading="20119" respawnTime="60sec" />
|
||||||
<npc id="23360" x="-14034" y="238635" z="-3272" heading="64519" respawnTime="60sec" />
|
<npc id="23360" x="-14034" y="238635" z="-3272" heading="64519" respawnTime="60sec" />
|
||||||
@@ -252,4 +248,4 @@
|
|||||||
<npc id="23373" x="-21687" y="239595" z="-2856" heading="63336" respawnTime="30sec" />
|
<npc id="23373" x="-21687" y="239595" z="-2856" heading="63336" respawnTime="30sec" />
|
||||||
</group>
|
</group>
|
||||||
</spawn>
|
</spawn>
|
||||||
</list>
|
</list>
|
||||||
|
@@ -25,6 +25,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
|||||||
import com.l2jmobius.gameserver.model.spawns.SpawnTemplate;
|
import com.l2jmobius.gameserver.model.spawns.SpawnTemplate;
|
||||||
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
|
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
|
||||||
import com.l2jmobius.gameserver.model.zone.type.L2ScriptZone;
|
import com.l2jmobius.gameserver.model.zone.type.L2ScriptZone;
|
||||||
|
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.Earthquake;
|
import com.l2jmobius.gameserver.network.serverpackets.Earthquake;
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.OnEventTrigger;
|
import com.l2jmobius.gameserver.network.serverpackets.OnEventTrigger;
|
||||||
|
|
||||||
@@ -74,6 +75,7 @@ public class EnchantedMegaliths extends AbstractNpcAI
|
|||||||
private EnchantedMegaliths()
|
private EnchantedMegaliths()
|
||||||
{
|
{
|
||||||
addKillId(MONSTERS);
|
addKillId(MONSTERS);
|
||||||
|
addSpawnId(MONSTERS);
|
||||||
addEnterZoneId(HELLBOUND_ZONE.getId());
|
addEnterZoneId(HELLBOUND_ZONE.getId());
|
||||||
startQuestTimer("CHECK_STATUS", 60000, null, null, true);
|
startQuestTimer("CHECK_STATUS", 60000, null, null, true);
|
||||||
stage = GlobalVariablesManager.getInstance().getInt(HB_MEGALITH_STAGE, 1);
|
stage = GlobalVariablesManager.getInstance().getInt(HB_MEGALITH_STAGE, 1);
|
||||||
@@ -311,6 +313,16 @@ public class EnchantedMegaliths extends AbstractNpcAI
|
|||||||
return super.onKill(npc, killer, isSummon);
|
return super.onKill(npc, killer, isSummon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onSpawn(L2Npc npc)
|
||||||
|
{
|
||||||
|
if ((stage == 2) && (npc.getSpawn().getNpcSpawnTemplate().getSpawnTemplate().getName().equals("enchanted_megaliths_stage_1")))
|
||||||
|
{
|
||||||
|
npc.setTitleString(NpcStringId.ABNORMAL_MAGIC_CIRCLE);
|
||||||
|
}
|
||||||
|
return super.onSpawn(npc);
|
||||||
|
}
|
||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
new EnchantedMegaliths();
|
new EnchantedMegaliths();
|
||||||
|
@@ -112,10 +112,6 @@
|
|||||||
<npc id="23359" x="-21302" y="236118" z="-2608" heading="9372" respawnTime="60sec" />
|
<npc id="23359" x="-21302" y="236118" z="-2608" heading="9372" respawnTime="60sec" />
|
||||||
<npc id="23359" x="-21792" y="239867" z="-2856" heading="19217" respawnTime="60sec" />
|
<npc id="23359" x="-21792" y="239867" z="-2856" heading="19217" respawnTime="60sec" />
|
||||||
<npc id="23359" x="-21897" y="238915" z="-2848" heading="29247" respawnTime="60sec" />
|
<npc id="23359" x="-21897" y="238915" z="-2848" heading="29247" respawnTime="60sec" />
|
||||||
<npc id="23359" x="-23296" y="245040" z="-3136" heading="60082" respawnTime="60sec" />
|
|
||||||
<npc id="23359" x="-23696" y="245719" z="-3136" heading="38312" respawnTime="60sec" />
|
|
||||||
<npc id="23359" x="-23826" y="243747" z="-3112" heading="8382" respawnTime="60sec" />
|
|
||||||
<npc id="23359" x="-24576" y="245623" z="-3136" heading="5547" respawnTime="60sec" />
|
|
||||||
<npc id="23360" x="-12384" y="237508" z="-3256" heading="42891" respawnTime="60sec" />
|
<npc id="23360" x="-12384" y="237508" z="-3256" heading="42891" respawnTime="60sec" />
|
||||||
<npc id="23360" x="-12906" y="238829" z="-3336" heading="20119" respawnTime="60sec" />
|
<npc id="23360" x="-12906" y="238829" z="-3336" heading="20119" respawnTime="60sec" />
|
||||||
<npc id="23360" x="-14034" y="238635" z="-3272" heading="64519" respawnTime="60sec" />
|
<npc id="23360" x="-14034" y="238635" z="-3272" heading="64519" respawnTime="60sec" />
|
||||||
@@ -252,4 +248,4 @@
|
|||||||
<npc id="23373" x="-21687" y="239595" z="-2856" heading="63336" respawnTime="30sec" />
|
<npc id="23373" x="-21687" y="239595" z="-2856" heading="63336" respawnTime="30sec" />
|
||||||
</group>
|
</group>
|
||||||
</spawn>
|
</spawn>
|
||||||
</list>
|
</list>
|
||||||
|
Reference in New Issue
Block a user