Trasken NPC spawns and dialogs.

This commit is contained in:
MobiusDev 2017-09-12 18:24:11 +00:00
parent 9e8cdc27b4
commit 7b3c76b6b1
30 changed files with 126 additions and 78 deletions

View File

@ -0,0 +1,4 @@
<html><body>Bronze Key Captain:<br>
There are three types of Earth Wyrm attacks. First, it attacks by slapping down its body, you can dodge to the side to avoid this type of attack. Secondly, it attacks by soaring and chopping at those around it. When that happens, you'll want to be as far away from it as possible. Lastly, it attacks by calling down waves of power from above. When this happens, it doesn't matter if your close or far away. You'll die instantly if you don't evade it well.<br>
Ah, one more thing! The Earth Wyrm's <font color="LEVEL">tail</font> is its weakest point, so whenever it makes an odd action, quickly attack its tail.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Bronze Key Captain:<br>
The Bronze Key Guild has been trying to fight Earth Wyrm Trasken, but we were barely able to scratch it. I dread to think where it gets its power from.<br>
Still, we are able to find out some potentially useful information about how it fights, which I'm happy to share with you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Please tell me all you know.</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Black Anvil Medic:<br>
Well, there are three types of egg: Red, Yellow, and Blue. You must use a repellent in a matching color on each type of egg. Not to brag, but the Black Anvil have a new repellant that has proven most effective... against the eggs, at least. The worm itself is another story.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Black Anvil Medic:<br>
Well, it looks like that blasted Earth Wyrm is too powerful for the dwarf teams we sent out. Swain Ken Orwen, the Lord of Shuttgart, is worried. We can't expect help from Rune... At least we now know how to defeat the Earth Wyrm Eggs. It's a start, but perhaps we need a hero to help us.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">How do you defeat eggs?</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Shade of Chaos Troop Captain:<br>
If you damage the Earth Wyrm enough, you will distract it enough to get inside and attack the heart. Destroy the heart, and you'll be able to destroy the whole--but be careful of the stomach acid. Get rid of it before it reaches you, or you'll be in trouble.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Teleport Device:<br>
This is a teleport device made to move to the ground.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EarthWyrmCave exitInstance">Go up to the town.</Button>
</body></html>

View File

@ -39,11 +39,8 @@
<spawnlist> <spawnlist>
<group> <group>
<!-- Belenora --> <!-- Belenora -->
<!--
<npc id="33506" x="75254" y="-182400" z="-9888" heading="40960" /> <npc id="33506" x="75254" y="-182400" z="-9888" heading="40960" />
-->
<!-- Dark Elf Soldier --> <!-- Dark Elf Soldier -->
<!--
<npc id="33507" x="75210" y="-182546" z="-9896" heading="8192" /> <npc id="33507" x="75210" y="-182546" z="-9896" heading="8192" />
<npc id="33507" x="76280" y="-182298" z="-9888" heading="0" /> <npc id="33507" x="76280" y="-182298" z="-9888" heading="0" />
<npc id="33507" x="75106" y="-182365" z="-9888" heading="8192" /> <npc id="33507" x="75106" y="-182365" z="-9888" heading="8192" />
@ -60,13 +57,9 @@
<npc id="33507" x="75199" y="-182458" z="-9896" heading="8192" /> <npc id="33507" x="75199" y="-182458" z="-9896" heading="8192" />
<npc id="33507" x="75133" y="-182552" z="-9864" heading="8192" /> <npc id="33507" x="75133" y="-182552" z="-9864" heading="8192" />
<npc id="33507" x="75032" y="-182453" z="-9888" heading="8192" /> <npc id="33507" x="75032" y="-182453" z="-9888" heading="8192" />
-->
<!-- Alejandro --> <!-- Alejandro -->
<!--
<npc id="33502" x="75179" y="-182148" z="-9888" heading="32768" /> <npc id="33502" x="75179" y="-182148" z="-9888" heading="32768" />
-->
<!-- Dwarf Soldier --> <!-- Dwarf Soldier -->
<!--
<npc id="33503" x="75067" y="-182208" z="-9896" heading="0" /> <npc id="33503" x="75067" y="-182208" z="-9896" heading="0" />
<npc id="33503" x="75015" y="-182211" z="-9896" heading="0" /> <npc id="33503" x="75015" y="-182211" z="-9896" heading="0" />
<npc id="33503" x="75067" y="-182148" z="-9896" heading="0" /> <npc id="33503" x="75067" y="-182148" z="-9896" heading="0" />
@ -84,28 +77,20 @@
<npc id="33503" x="76277" y="-181919" z="-9896" heading="0" /> <npc id="33503" x="76277" y="-181919" z="-9896" heading="0" />
<npc id="33503" x="76342" y="-181971" z="-9896" heading="0" /> <npc id="33503" x="76342" y="-181971" z="-9896" heading="0" />
<npc id="33503" x="75067" y="-182085" z="-9896" heading="0" /> <npc id="33503" x="75067" y="-182085" z="-9896" heading="0" />
-->
<!-- Teleport Device --> <!-- Teleport Device -->
<!--
<npc id="33513" x="75179" y="-181893" z="-9896" heading="0" /> <npc id="33513" x="75179" y="-181893" z="-9896" heading="0" />
-->
<!-- Wooden Medic --> <!-- Wooden Medic -->
<!--
<npc id="33505" x="75372" y="-181770" z="-9888" heading="24576" /> <npc id="33505" x="75372" y="-181770" z="-9888" heading="24576" />
-->
<!-- Dwarf Soldier --> <!-- Dwarf Soldier -->
<!--
<npc id="33504" x="75372" y="-181644" z="-9888" heading="45056" /> <npc id="33504" x="75372" y="-181644" z="-9888" heading="45056" />
<npc id="33504" x="75459" y="-181612" z="-9896" heading="16384" /> <npc id="33504" x="75459" y="-181612" z="-9896" heading="16384" />
<npc id="33504" x="75287" y="-181685" z="-9896" heading="32768" /> <npc id="33504" x="75287" y="-181685" z="-9896" heading="32768" />
<npc id="33504" x="75205" y="-181755" z="-9888" heading="0" /> <npc id="33504" x="75205" y="-181755" z="-9888" heading="0" />
-->
<!-- Fernando --> <!-- Fernando -->
<!-- <!--
<npc id="33160" x="77154" y="-182196" z="-9888" heading="30708" /> <npc id="33160" x="77154" y="-182196" z="-9888" heading="30708" />
--> -->
<!-- Tentacle --> <!-- Tentacle -->
<!-- Tentacle -->
<npc id="29198" x="79526" y="-181507" z="-9896" heading="42749" /> <npc id="29198" x="79526" y="-181507" z="-9896" heading="42749" />
<npc id="29198" x="80432" y="-180356" z="-9896" heading="19795" /> <npc id="29198" x="80432" y="-180356" z="-9896" heading="19795" />
<npc id="29198" x="80432" y="-180850" z="-9896" heading="44991" /> <npc id="29198" x="80432" y="-180850" z="-9896" heading="44991" />

View File

@ -61,7 +61,16 @@ public final class EarthWyrmCave extends AbstractInstance
case "enterInstance": case "enterInstance":
{ {
enterInstance(player, npc, TEMPLATE_ID); enterInstance(player, npc, TEMPLATE_ID);
startQuestTimer("OPEN_DOOR", OPEN_DOOR * 60 * 1000, null, player, false); startQuestTimer("OPEN_DOOR", OPEN_DOOR * 60 * 1000, null, player);
break;
}
case "exitInstance":
{
if (player.getInstanceId() == 0)
{
return null;
}
player.getInstanceWorld().ejectPlayer(player);
break; break;
} }
case "OPEN_DOOR": case "OPEN_DOOR":
@ -73,8 +82,8 @@ public final class EarthWyrmCave extends AbstractInstance
final Instance world = player.getInstanceWorld(); final Instance world = player.getInstanceWorld();
world.openCloseDoor(DOOR_ID, true); world.openCloseDoor(DOOR_ID, true);
world.broadcastPacket(new ExShowScreenMessage(NpcStringId.ELIMINATE_THOSE_WHO_PROTECT_THE_HEART_OF_THE_EARTH_WYRM, ExShowScreenMessage.TOP_CENTER, 7000)); world.broadcastPacket(new ExShowScreenMessage(NpcStringId.ELIMINATE_THOSE_WHO_PROTECT_THE_HEART_OF_THE_EARTH_WYRM, ExShowScreenMessage.TOP_CENTER, 7000));
startQuestTimer("CLOSE_DOOR", 60000, null, player, false); // close door after a minute startQuestTimer("CLOSE_DOOR", 60000, null, player); // close door after a minute
startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player, false); startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player);
break; break;
} }
case "CLOSE_DOOR": case "CLOSE_DOOR":
@ -97,12 +106,11 @@ public final class EarthWyrmCave extends AbstractInstance
if (world.getAliveNpcs(L2MonsterInstance.class).isEmpty()) if (world.getAliveNpcs(L2MonsterInstance.class).isEmpty())
{ {
addSpawn(TRASKEN, TRASKEN_SPAWN_LOC, false, 0, false, player.getInstanceId()); addSpawn(TRASKEN, TRASKEN_SPAWN_LOC, false, 0, false, player.getInstanceId());
world.broadcastPacket(new ExShowScreenMessage(NpcStringId.FIND_THE_EARTH_WYRM_S_WEAKNESS_TO_DEFEAT_IT, ExShowScreenMessage.TOP_CENTER, 5000)); world.broadcastPacket(new ExShowScreenMessage(NpcStringId.FIND_THE_EARTH_WYRM_S_WEAKNESS_TO_DEFEAT_IT, ExShowScreenMessage.TOP_CENTER, 5000));
} }
else else
{ {
startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player, false); startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player);
} }
return null; return null;
} }

View File

@ -1959,7 +1959,7 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="18" /> <!-- Dwarves --> <skill id="4416" level="18" /> <!-- Dwarves -->
<skill id="4415" level="1" /> <!-- Bare Hands --> <skill id="4415" level="1" /> <!-- Bare Hands -->

View File

@ -126,7 +126,7 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="18" /> <!-- Dwarves --> <skill id="4416" level="18" /> <!-- Dwarves -->
<skill id="4415" level="11" /> <!-- Spears --> <skill id="4415" level="11" /> <!-- Spears -->
@ -160,13 +160,13 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="18" /> <!-- Dwarves --> <skill id="4416" level="18" /> <!-- Dwarves -->
<skill id="4415" level="3" /> <!-- One-handed Sword --> <skill id="4415" level="3" /> <!-- One-handed Sword -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack --> <skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
</skill_list> </skill_list>
<ai clanHelpRange="300" aggroRange="450" /> <ai type="CORPSE" clanHelpRange="300" aggroRange="450" />
<collision> <collision>
<radius normal="13" /> <radius normal="13" />
<height normal="19" /> <height normal="19" />
@ -263,7 +263,7 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="16" /> <!-- Dark Elves --> <skill id="4416" level="16" /> <!-- Dark Elves -->
<skill id="4415" level="3" /> <!-- One-handed Sword --> <skill id="4415" level="3" /> <!-- One-handed Sword -->

View File

@ -0,0 +1,4 @@
<html><body>Bronze Key Captain:<br>
There are three types of Earth Wyrm attacks. First, it attacks by slapping down its body, you can dodge to the side to avoid this type of attack. Secondly, it attacks by soaring and chopping at those around it. When that happens, you'll want to be as far away from it as possible. Lastly, it attacks by calling down waves of power from above. When this happens, it doesn't matter if your close or far away. You'll die instantly if you don't evade it well.<br>
Ah, one more thing! The Earth Wyrm's <font color="LEVEL">tail</font> is its weakest point, so whenever it makes an odd action, quickly attack its tail.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Bronze Key Captain:<br>
The Bronze Key Guild has been trying to fight Earth Wyrm Trasken, but we were barely able to scratch it. I dread to think where it gets its power from.<br>
Still, we are able to find out some potentially useful information about how it fights, which I'm happy to share with you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Please tell me all you know.</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Black Anvil Medic:<br>
Well, there are three types of egg: Red, Yellow, and Blue. You must use a repellent in a matching color on each type of egg. Not to brag, but the Black Anvil have a new repellant that has proven most effective... against the eggs, at least. The worm itself is another story.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Black Anvil Medic:<br>
Well, it looks like that blasted Earth Wyrm is too powerful for the dwarf teams we sent out. Swain Ken Orwen, the Lord of Shuttgart, is worried. We can't expect help from Rune... At least we now know how to defeat the Earth Wyrm Eggs. It's a start, but perhaps we need a hero to help us.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">How do you defeat eggs?</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Shade of Chaos Troop Captain:<br>
If you damage the Earth Wyrm enough, you will distract it enough to get inside and attack the heart. Destroy the heart, and you'll be able to destroy the whole--but be careful of the stomach acid. Get rid of it before it reaches you, or you'll be in trouble.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Teleport Device:<br>
This is a teleport device made to move to the ground.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EarthWyrmCave exitInstance">Go up to the town.</Button>
</body></html>

View File

@ -39,11 +39,8 @@
<spawnlist> <spawnlist>
<group> <group>
<!-- Belenora --> <!-- Belenora -->
<!--
<npc id="33506" x="75254" y="-182400" z="-9888" heading="40960" /> <npc id="33506" x="75254" y="-182400" z="-9888" heading="40960" />
-->
<!-- Dark Elf Soldier --> <!-- Dark Elf Soldier -->
<!--
<npc id="33507" x="75210" y="-182546" z="-9896" heading="8192" /> <npc id="33507" x="75210" y="-182546" z="-9896" heading="8192" />
<npc id="33507" x="76280" y="-182298" z="-9888" heading="0" /> <npc id="33507" x="76280" y="-182298" z="-9888" heading="0" />
<npc id="33507" x="75106" y="-182365" z="-9888" heading="8192" /> <npc id="33507" x="75106" y="-182365" z="-9888" heading="8192" />
@ -60,13 +57,9 @@
<npc id="33507" x="75199" y="-182458" z="-9896" heading="8192" /> <npc id="33507" x="75199" y="-182458" z="-9896" heading="8192" />
<npc id="33507" x="75133" y="-182552" z="-9864" heading="8192" /> <npc id="33507" x="75133" y="-182552" z="-9864" heading="8192" />
<npc id="33507" x="75032" y="-182453" z="-9888" heading="8192" /> <npc id="33507" x="75032" y="-182453" z="-9888" heading="8192" />
-->
<!-- Alejandro --> <!-- Alejandro -->
<!--
<npc id="33502" x="75179" y="-182148" z="-9888" heading="32768" /> <npc id="33502" x="75179" y="-182148" z="-9888" heading="32768" />
-->
<!-- Dwarf Soldier --> <!-- Dwarf Soldier -->
<!--
<npc id="33503" x="75067" y="-182208" z="-9896" heading="0" /> <npc id="33503" x="75067" y="-182208" z="-9896" heading="0" />
<npc id="33503" x="75015" y="-182211" z="-9896" heading="0" /> <npc id="33503" x="75015" y="-182211" z="-9896" heading="0" />
<npc id="33503" x="75067" y="-182148" z="-9896" heading="0" /> <npc id="33503" x="75067" y="-182148" z="-9896" heading="0" />
@ -84,28 +77,20 @@
<npc id="33503" x="76277" y="-181919" z="-9896" heading="0" /> <npc id="33503" x="76277" y="-181919" z="-9896" heading="0" />
<npc id="33503" x="76342" y="-181971" z="-9896" heading="0" /> <npc id="33503" x="76342" y="-181971" z="-9896" heading="0" />
<npc id="33503" x="75067" y="-182085" z="-9896" heading="0" /> <npc id="33503" x="75067" y="-182085" z="-9896" heading="0" />
-->
<!-- Teleport Device --> <!-- Teleport Device -->
<!--
<npc id="33513" x="75179" y="-181893" z="-9896" heading="0" /> <npc id="33513" x="75179" y="-181893" z="-9896" heading="0" />
-->
<!-- Wooden Medic --> <!-- Wooden Medic -->
<!--
<npc id="33505" x="75372" y="-181770" z="-9888" heading="24576" /> <npc id="33505" x="75372" y="-181770" z="-9888" heading="24576" />
-->
<!-- Dwarf Soldier --> <!-- Dwarf Soldier -->
<!--
<npc id="33504" x="75372" y="-181644" z="-9888" heading="45056" /> <npc id="33504" x="75372" y="-181644" z="-9888" heading="45056" />
<npc id="33504" x="75459" y="-181612" z="-9896" heading="16384" /> <npc id="33504" x="75459" y="-181612" z="-9896" heading="16384" />
<npc id="33504" x="75287" y="-181685" z="-9896" heading="32768" /> <npc id="33504" x="75287" y="-181685" z="-9896" heading="32768" />
<npc id="33504" x="75205" y="-181755" z="-9888" heading="0" /> <npc id="33504" x="75205" y="-181755" z="-9888" heading="0" />
-->
<!-- Fernando --> <!-- Fernando -->
<!-- <!--
<npc id="33160" x="77154" y="-182196" z="-9888" heading="30708" /> <npc id="33160" x="77154" y="-182196" z="-9888" heading="30708" />
--> -->
<!-- Tentacle --> <!-- Tentacle -->
<!-- Tentacle -->
<npc id="29198" x="79526" y="-181507" z="-9896" heading="42749" /> <npc id="29198" x="79526" y="-181507" z="-9896" heading="42749" />
<npc id="29198" x="80432" y="-180356" z="-9896" heading="19795" /> <npc id="29198" x="80432" y="-180356" z="-9896" heading="19795" />
<npc id="29198" x="80432" y="-180850" z="-9896" heading="44991" /> <npc id="29198" x="80432" y="-180850" z="-9896" heading="44991" />

View File

@ -61,7 +61,16 @@ public final class EarthWyrmCave extends AbstractInstance
case "enterInstance": case "enterInstance":
{ {
enterInstance(player, npc, TEMPLATE_ID); enterInstance(player, npc, TEMPLATE_ID);
startQuestTimer("OPEN_DOOR", OPEN_DOOR * 60 * 1000, null, player, false); startQuestTimer("OPEN_DOOR", OPEN_DOOR * 60 * 1000, null, player);
break;
}
case "exitInstance":
{
if (player.getInstanceId() == 0)
{
return null;
}
player.getInstanceWorld().ejectPlayer(player);
break; break;
} }
case "OPEN_DOOR": case "OPEN_DOOR":
@ -73,8 +82,8 @@ public final class EarthWyrmCave extends AbstractInstance
final Instance world = player.getInstanceWorld(); final Instance world = player.getInstanceWorld();
world.openCloseDoor(DOOR_ID, true); world.openCloseDoor(DOOR_ID, true);
world.broadcastPacket(new ExShowScreenMessage(NpcStringId.ELIMINATE_THOSE_WHO_PROTECT_THE_HEART_OF_THE_EARTH_WYRM, ExShowScreenMessage.TOP_CENTER, 7000)); world.broadcastPacket(new ExShowScreenMessage(NpcStringId.ELIMINATE_THOSE_WHO_PROTECT_THE_HEART_OF_THE_EARTH_WYRM, ExShowScreenMessage.TOP_CENTER, 7000));
startQuestTimer("CLOSE_DOOR", 60000, null, player, false); // close door after a minute startQuestTimer("CLOSE_DOOR", 60000, null, player); // close door after a minute
startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player, false); startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player);
break; break;
} }
case "CLOSE_DOOR": case "CLOSE_DOOR":
@ -97,12 +106,11 @@ public final class EarthWyrmCave extends AbstractInstance
if (world.getAliveNpcs(L2MonsterInstance.class).isEmpty()) if (world.getAliveNpcs(L2MonsterInstance.class).isEmpty())
{ {
addSpawn(TRASKEN, TRASKEN_SPAWN_LOC, false, 0, false, player.getInstanceId()); addSpawn(TRASKEN, TRASKEN_SPAWN_LOC, false, 0, false, player.getInstanceId());
world.broadcastPacket(new ExShowScreenMessage(NpcStringId.FIND_THE_EARTH_WYRM_S_WEAKNESS_TO_DEFEAT_IT, ExShowScreenMessage.TOP_CENTER, 5000)); world.broadcastPacket(new ExShowScreenMessage(NpcStringId.FIND_THE_EARTH_WYRM_S_WEAKNESS_TO_DEFEAT_IT, ExShowScreenMessage.TOP_CENTER, 5000));
} }
else else
{ {
startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player, false); startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player);
} }
return null; return null;
} }

View File

@ -1959,7 +1959,7 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="18" /> <!-- Dwarves --> <skill id="4416" level="18" /> <!-- Dwarves -->
<skill id="4415" level="1" /> <!-- Bare Hands --> <skill id="4415" level="1" /> <!-- Bare Hands -->

View File

@ -126,7 +126,7 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="18" /> <!-- Dwarves --> <skill id="4416" level="18" /> <!-- Dwarves -->
<skill id="4415" level="11" /> <!-- Spears --> <skill id="4415" level="11" /> <!-- Spears -->
@ -160,13 +160,13 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="18" /> <!-- Dwarves --> <skill id="4416" level="18" /> <!-- Dwarves -->
<skill id="4415" level="3" /> <!-- One-handed Sword --> <skill id="4415" level="3" /> <!-- One-handed Sword -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack --> <skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
</skill_list> </skill_list>
<ai clanHelpRange="300" aggroRange="450" /> <ai type="CORPSE" clanHelpRange="300" aggroRange="450" />
<collision> <collision>
<radius normal="13" /> <radius normal="13" />
<height normal="19" /> <height normal="19" />
@ -263,7 +263,7 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="16" /> <!-- Dark Elves --> <skill id="4416" level="16" /> <!-- Dark Elves -->
<skill id="4415" level="3" /> <!-- One-handed Sword --> <skill id="4415" level="3" /> <!-- One-handed Sword -->

View File

@ -0,0 +1,4 @@
<html><body>Bronze Key Captain:<br>
There are three types of Earth Wyrm attacks. First, it attacks by slapping down its body, you can dodge to the side to avoid this type of attack. Secondly, it attacks by soaring and chopping at those around it. When that happens, you'll want to be as far away from it as possible. Lastly, it attacks by calling down waves of power from above. When this happens, it doesn't matter if your close or far away. You'll die instantly if you don't evade it well.<br>
Ah, one more thing! The Earth Wyrm's <font color="LEVEL">tail</font> is its weakest point, so whenever it makes an odd action, quickly attack its tail.
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Bronze Key Captain:<br>
The Bronze Key Guild has been trying to fight Earth Wyrm Trasken, but we were barely able to scratch it. I dread to think where it gets its power from.<br>
Still, we are able to find out some potentially useful information about how it fights, which I'm happy to share with you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Please tell me all you know.</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Black Anvil Medic:<br>
Well, there are three types of egg: Red, Yellow, and Blue. You must use a repellent in a matching color on each type of egg. Not to brag, but the Black Anvil have a new repellant that has proven most effective... against the eggs, at least. The worm itself is another story.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Black Anvil Medic:<br>
Well, it looks like that blasted Earth Wyrm is too powerful for the dwarf teams we sent out. Swain Ken Orwen, the Lord of Shuttgart, is worried. We can't expect help from Rune... At least we now know how to defeat the Earth Wyrm Eggs. It's a start, but perhaps we need a hero to help us.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">How do you defeat eggs?</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Shade of Chaos Troop Captain:<br>
If you damage the Earth Wyrm enough, you will distract it enough to get inside and attack the heart. Destroy the heart, and you'll be able to destroy the whole--but be careful of the stomach acid. Get rid of it before it reaches you, or you'll be in trouble.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Teleport Device:<br>
This is a teleport device made to move to the ground.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EarthWyrmCave exitInstance">Go up to the town.</Button>
</body></html>

View File

@ -39,11 +39,8 @@
<spawnlist> <spawnlist>
<group> <group>
<!-- Belenora --> <!-- Belenora -->
<!--
<npc id="33506" x="75254" y="-182400" z="-9888" heading="40960" /> <npc id="33506" x="75254" y="-182400" z="-9888" heading="40960" />
-->
<!-- Dark Elf Soldier --> <!-- Dark Elf Soldier -->
<!--
<npc id="33507" x="75210" y="-182546" z="-9896" heading="8192" /> <npc id="33507" x="75210" y="-182546" z="-9896" heading="8192" />
<npc id="33507" x="76280" y="-182298" z="-9888" heading="0" /> <npc id="33507" x="76280" y="-182298" z="-9888" heading="0" />
<npc id="33507" x="75106" y="-182365" z="-9888" heading="8192" /> <npc id="33507" x="75106" y="-182365" z="-9888" heading="8192" />
@ -60,13 +57,9 @@
<npc id="33507" x="75199" y="-182458" z="-9896" heading="8192" /> <npc id="33507" x="75199" y="-182458" z="-9896" heading="8192" />
<npc id="33507" x="75133" y="-182552" z="-9864" heading="8192" /> <npc id="33507" x="75133" y="-182552" z="-9864" heading="8192" />
<npc id="33507" x="75032" y="-182453" z="-9888" heading="8192" /> <npc id="33507" x="75032" y="-182453" z="-9888" heading="8192" />
-->
<!-- Alejandro --> <!-- Alejandro -->
<!--
<npc id="33502" x="75179" y="-182148" z="-9888" heading="32768" /> <npc id="33502" x="75179" y="-182148" z="-9888" heading="32768" />
-->
<!-- Dwarf Soldier --> <!-- Dwarf Soldier -->
<!--
<npc id="33503" x="75067" y="-182208" z="-9896" heading="0" /> <npc id="33503" x="75067" y="-182208" z="-9896" heading="0" />
<npc id="33503" x="75015" y="-182211" z="-9896" heading="0" /> <npc id="33503" x="75015" y="-182211" z="-9896" heading="0" />
<npc id="33503" x="75067" y="-182148" z="-9896" heading="0" /> <npc id="33503" x="75067" y="-182148" z="-9896" heading="0" />
@ -84,28 +77,20 @@
<npc id="33503" x="76277" y="-181919" z="-9896" heading="0" /> <npc id="33503" x="76277" y="-181919" z="-9896" heading="0" />
<npc id="33503" x="76342" y="-181971" z="-9896" heading="0" /> <npc id="33503" x="76342" y="-181971" z="-9896" heading="0" />
<npc id="33503" x="75067" y="-182085" z="-9896" heading="0" /> <npc id="33503" x="75067" y="-182085" z="-9896" heading="0" />
-->
<!-- Teleport Device --> <!-- Teleport Device -->
<!--
<npc id="33513" x="75179" y="-181893" z="-9896" heading="0" /> <npc id="33513" x="75179" y="-181893" z="-9896" heading="0" />
-->
<!-- Wooden Medic --> <!-- Wooden Medic -->
<!--
<npc id="33505" x="75372" y="-181770" z="-9888" heading="24576" /> <npc id="33505" x="75372" y="-181770" z="-9888" heading="24576" />
-->
<!-- Dwarf Soldier --> <!-- Dwarf Soldier -->
<!--
<npc id="33504" x="75372" y="-181644" z="-9888" heading="45056" /> <npc id="33504" x="75372" y="-181644" z="-9888" heading="45056" />
<npc id="33504" x="75459" y="-181612" z="-9896" heading="16384" /> <npc id="33504" x="75459" y="-181612" z="-9896" heading="16384" />
<npc id="33504" x="75287" y="-181685" z="-9896" heading="32768" /> <npc id="33504" x="75287" y="-181685" z="-9896" heading="32768" />
<npc id="33504" x="75205" y="-181755" z="-9888" heading="0" /> <npc id="33504" x="75205" y="-181755" z="-9888" heading="0" />
-->
<!-- Fernando --> <!-- Fernando -->
<!-- <!--
<npc id="33160" x="77154" y="-182196" z="-9888" heading="30708" /> <npc id="33160" x="77154" y="-182196" z="-9888" heading="30708" />
--> -->
<!-- Tentacle --> <!-- Tentacle -->
<!-- Tentacle -->
<npc id="29198" x="79526" y="-181507" z="-9896" heading="42749" /> <npc id="29198" x="79526" y="-181507" z="-9896" heading="42749" />
<npc id="29198" x="80432" y="-180356" z="-9896" heading="19795" /> <npc id="29198" x="80432" y="-180356" z="-9896" heading="19795" />
<npc id="29198" x="80432" y="-180850" z="-9896" heading="44991" /> <npc id="29198" x="80432" y="-180850" z="-9896" heading="44991" />

View File

@ -61,7 +61,16 @@ public final class EarthWyrmCave extends AbstractInstance
case "enterInstance": case "enterInstance":
{ {
enterInstance(player, npc, TEMPLATE_ID); enterInstance(player, npc, TEMPLATE_ID);
startQuestTimer("OPEN_DOOR", OPEN_DOOR * 60 * 1000, null, player, false); startQuestTimer("OPEN_DOOR", OPEN_DOOR * 60 * 1000, null, player);
break;
}
case "exitInstance":
{
if (player.getInstanceId() == 0)
{
return null;
}
player.getInstanceWorld().ejectPlayer(player);
break; break;
} }
case "OPEN_DOOR": case "OPEN_DOOR":
@ -73,8 +82,8 @@ public final class EarthWyrmCave extends AbstractInstance
final Instance world = player.getInstanceWorld(); final Instance world = player.getInstanceWorld();
world.openCloseDoor(DOOR_ID, true); world.openCloseDoor(DOOR_ID, true);
world.broadcastPacket(new ExShowScreenMessage(NpcStringId.ELIMINATE_THOSE_WHO_PROTECT_THE_HEART_OF_THE_EARTH_WYRM, ExShowScreenMessage.TOP_CENTER, 7000)); world.broadcastPacket(new ExShowScreenMessage(NpcStringId.ELIMINATE_THOSE_WHO_PROTECT_THE_HEART_OF_THE_EARTH_WYRM, ExShowScreenMessage.TOP_CENTER, 7000));
startQuestTimer("CLOSE_DOOR", 60000, null, player, false); // close door after a minute startQuestTimer("CLOSE_DOOR", 60000, null, player); // close door after a minute
startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player, false); startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player);
break; break;
} }
case "CLOSE_DOOR": case "CLOSE_DOOR":
@ -97,12 +106,11 @@ public final class EarthWyrmCave extends AbstractInstance
if (world.getAliveNpcs(L2MonsterInstance.class).isEmpty()) if (world.getAliveNpcs(L2MonsterInstance.class).isEmpty())
{ {
addSpawn(TRASKEN, TRASKEN_SPAWN_LOC, false, 0, false, player.getInstanceId()); addSpawn(TRASKEN, TRASKEN_SPAWN_LOC, false, 0, false, player.getInstanceId());
world.broadcastPacket(new ExShowScreenMessage(NpcStringId.FIND_THE_EARTH_WYRM_S_WEAKNESS_TO_DEFEAT_IT, ExShowScreenMessage.TOP_CENTER, 5000)); world.broadcastPacket(new ExShowScreenMessage(NpcStringId.FIND_THE_EARTH_WYRM_S_WEAKNESS_TO_DEFEAT_IT, ExShowScreenMessage.TOP_CENTER, 5000));
} }
else else
{ {
startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player, false); startQuestTimer("WAIT_TO_CLEAR_MONSTERS", 5000, null, player);
} }
return null; return null;
} }

View File

@ -1959,7 +1959,7 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="18" /> <!-- Dwarves --> <skill id="4416" level="18" /> <!-- Dwarves -->
<skill id="4415" level="1" /> <!-- Bare Hands --> <skill id="4415" level="1" /> <!-- Bare Hands -->

View File

@ -126,7 +126,7 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="18" /> <!-- Dwarves --> <skill id="4416" level="18" /> <!-- Dwarves -->
<skill id="4415" level="11" /> <!-- Spears --> <skill id="4415" level="11" /> <!-- Spears -->
@ -160,13 +160,13 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="18" /> <!-- Dwarves --> <skill id="4416" level="18" /> <!-- Dwarves -->
<skill id="4415" level="3" /> <!-- One-handed Sword --> <skill id="4415" level="3" /> <!-- One-handed Sword -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack --> <skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
</skill_list> </skill_list>
<ai clanHelpRange="300" aggroRange="450" /> <ai type="CORPSE" clanHelpRange="300" aggroRange="450" />
<collision> <collision>
<radius normal="13" /> <radius normal="13" />
<height normal="19" /> <height normal="19" />
@ -263,7 +263,7 @@
</attribute> </attribute>
<abnormalResist physical="10" magical="10" /> <abnormalResist physical="10" magical="10" />
</stats> </stats>
<status attackable="false" targetable="false" showName="false" /> <status attackable="false" targetable="false" showName="false" talkable="false" />
<skill_list> <skill_list>
<skill id="4416" level="16" /> <!-- Dark Elves --> <skill id="4416" level="16" /> <!-- Dark Elves -->
<skill id="4415" level="3" /> <!-- One-handed Sword --> <skill id="4415" level="3" /> <!-- One-handed Sword -->