Sync with L2JServer Jan 9th 2015.

This commit is contained in:
mobius
2015-01-09 19:55:02 +00:00
parent 9c9b0aaff7
commit 4c2db62a63
618 changed files with 19803 additions and 7853 deletions

View File

@@ -0,0 +1,15 @@
<html>
<head>
<body>Hermuncus:<br>
Thank you for listening to my plea for help. You have saved me from a most terrible fate! Because of you I am free from
the bindings that the gods placed upon me.<br>
I am the Last Giant Hermuncus. I am the true and rightful master to all races of this world. As I promised, I will show
you the way to become Awakened and learn how to use the Giant's power. Here is the <font color="LEVEL">Scroll of
Afterlife</font>. The power of the Giants has been passed down from generation to generation embedding their power
within this tome.<br>
Before accepting this power I must warn you that you will have to give up all that you have learned. Also, you can be
consumed by this power if you do not know how to control it. Although, by looking at you I can tell that despite these
warnings you still wish to accept the power of the Giants.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10338_SeizeYourDestiny 33340-02.htm">Accept the Scroll of Afterlife.</Button>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<html>
<head>
<body>Hermuncus:<br>
Even for Giants, there were far too many that were consumed by the power they received. Your inner strength will decide
the final outcome, not my influence.<br>
Take the <font color="LEVEL">Scroll of Afterlife</font> to one of the <font color="LEVEL">Ancient Giant statues</font>
in the <font color="LEVEL">Reliquary of the Giants</font>. There you will learn about which Giant hero you wish to
receive your power from and become <font color="LEVEL">Awakened</font>.<br>
When you are ready I will send you there.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10338_SeizeYourDestiny TELEPORT">Go to the Reliquary of the Giants.</Button>
</html>

View File

@@ -0,0 +1,6 @@
<html><head><body>Hermuncus:<br>
Use the <font color="LEVEL">Scroll of Afterlife</font> that I gave you in front of the ancient <font color="LEVEL">Mark of the Giant</font> in the Reliquary of the Giants. If you're strong enough, you'll <font color="LEVEL">awaken</font> with new power! <br1>
I will send you there, if you're ready.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10338_SeizeYourDestiny TELEPORT">"I am ready!"</Button>(You already completed this quest. To awaken, you need to go to the Reliquary of the Giants.)
<br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><head><body>Hermuncus:<br>
Come back in your natural form.<br>
(This quest can only be fulfilled while you are in the same class state as when you accepted the quest.)
<br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><head><body>Hermuncus:<br>
I cannot send you to the Reliquary of the Giants as you are. Return to your original form. <br>
(This quest may be undertaken only while in the class that accepted the quest.)
<br>
</body></html>

View File

@@ -0,0 +1,10 @@
<html>
<head>
<body>Hadel:<br>
There is something… strange about you. I am Hadel, a disciple of the great Giant Hermuncus.
What brings you to this place? Are you another one of those tomb raiders looking to steal artifacts from the Giants? Speak!<br>
Oh, Cellphine sent you here… then that is what I sense about you. You are here to free my master Hermuncus.
I can feel strong and unyielding energy resonating within your soul. Yes, you do seem to have certain strength about you suitable to save the master.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10338_SeizeYourDestiny 33344-02.htm">"Tell me more about Hermuncus."</Button>
</body>
</html>

View File

@@ -0,0 +1,15 @@
<html>
<head>
<body>Hadel:<br>
My master, <font color="LEVEL">Hermuncus</font>, is the last Giant. In the distant past, there was a war between the
gods and the Giants. My master fought against the light and managed to steal the power from the gods! But, in the end,
the Giants were defeated. All but my master were exterminated, and my master was facing his final days...<br>
Even the gods found it too difficult to kill a Giant as huge and powerful as my master. For his crimes, his soul was
torn from his body and imprisoned in Ye Sagira. His shell of a corpse was ripped apart and scattered across the land. He
was to be an example of what would happen if anyone challenged the gods ever again.<br>
When Shilen tore Ye Sagira from the sky causing it to crash it broke part of the seal that contained Hermuncus soul,
allowing him to find those who would be able help him. You need to find Hermuncus and break the remaining seals to free
his soul.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10338_SeizeYourDestiny 33344-03.htm">"Is that safe? I mean, he challenged the gods!"</Button>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<html>
<head>
<body>Hadel:<br>
The gods? Take a moment to reflect on the gods, <font color="LEVEL">Einhasad</font>, <font color="LEVEL">Gran Kain</font>,
and their ilk. Think upon the origins of the gods, their abilities and their inabilities. All the gods are capable of creation
and destruction... that is it. And, they do it indiscriminately.<br>Theyre like children who build cities in the sand only to
destroy them... for the sheer joy of creation and destruction. Do they ever for once do anything other than repeat this cycle?
The Giants wanted to change all that. They felt that everything that existed in the world had a purpose and a right to exist.
People believe that they are the beginning and end simply because they were here first... What kind of reasoning is that?<br>
Look around you...Our world is collapsing into chaos and we are at the end of this cycle. The gods have sent in their destroyer.
Shilen will destroy this world so that the gods may start again. Why do you think they are not doing anything to stop her?
They are simply sitting and waiting... there is no interest in saving what is already here. How about you? Can you just sit
here and wait for the world to come to an end?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10338_SeizeYourDestiny 33344-04.htm">"No. No I can't!"</Button>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<html>
<head>
<body>Hadel:<br>
Im sorry. I get too passionate when I think about this. I do not mean to force my beliefs upon you. Exterminating the
gods would be no better than what they did to the Giants and what they are planning on doing to us. If you
<font color="LEVEL">free Hermuncus... if you accept the power that he can give you... you will wield the power to save our world.</font>!<br>
The choice is yours. <font color="LEVEL">Do you wish to wield the power of Giants</font>, or
<font color="LEVEL">do you want to wait for Shilen to destroy us all</font>?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10338_SeizeYourDestiny 33344-05.htm">"I'll help Hermuncus."</Button>
</body>
</html>

View File

@@ -0,0 +1,12 @@
<html>
<head>
<body>Hadel:<br>
I know you have heard the masters call. Only a part of his soul was free but the rest remains by the seal of light
within the <font color="LEVEL">Disconnected Labyrinth</font> of Ruins of Ye Sagira. The ghost of the Ancient Giant King,
<font color="LEVEL">Harnak's Wraith</font>, serves as the warden of the prison where Hermuncus is held. You will face the
ghosts of Giants corrupted by the light. Defeat Harnak and the seal will be completely broken freeing the soul of Hermuncus.
<br>Once Hermuncus has been freed, he will instruct you on how to acquire the <font color="LEVEL">power</font> that the
ancient giants once used.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest HarnakUndergroundRuins enter_instance">Enter the Disconnected Labyrinth</Button>
</body>
</html>

View File

@@ -0,0 +1,5 @@
<html><head><body>Hadel:<br>
Your level is low to enter this place. I'm sorry, but it would be too dangerous for you. <br>
(This quest can only be fulfilled by level 85 or above characters, with no awakening.)
<br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><head><body>Hadel:<br>
We have no need of your services at this time. Rest assured, we will contact you again when we next have need of your unique skills. <br>
(You have already completed this quest.)
<br>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><head><body>Hadel:<br>
I know you have heard the masters call. Only a part of his soul was free but the rest remains by the seal of light within the <font color="LEVEL">Disconnected Labyrinth</font> of the Ruins of Ye Sagira. The ghost of the Ancient Giant King, <font color="LEVEL">Harnak's Wraith</font>, serves as the warden of the prison where Hermuncus is held. You will face the ghosts of giants corrupted by the light. Defeat Harnak and the seal will be completely broken freeing the soul of Hermuncus.<br>
Once Hermuncus has been freed, he will instruct you on how to acquire the <font color="LEVEL">power</font> that the ancient giants once used.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest HarnakUndergroundRuins enter_instance">Enter the Disconnected Labyrinth</Button>
<br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><head><body>Hadel:<br>
You've changed since we last me. Change back, then come see me again. <br>
(This quest can only be finished if the character is in the same class state as when the quest was accepted.)
<br>
</body></html>

View File

@@ -0,0 +1,11 @@
<html>
<head>
<body>Cellphine:<br>
Tell me, do you still believe the gods look after you? I am Cellphine. I serve the Giants and despite what you may have
heard they are not completely extinct. I serve one who has awoken after thousands of years. I’ve been searching for one
who is able to free him from his imprisonment.<br>
Was it fate that brought you here, or something else? I can sense that you have a power that few possess that could help
my master. Will you help free my master from his imprisonment?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10338_SeizeYourDestiny 33477-02.htm">"Depends. Who's your master?"</Button>
</body>
</html>

View File

@@ -0,0 +1,14 @@
<html>
<head>
<body>Cellphine:<br>
My master is the last Giant… the leader of the Giants… Hermuncus. After the war was lost, the Gods convicted him of
stealing their power. His soul was torn from his body and was to spend eternity imprisoned within Ye Sagira. His body
was ripped apart and scattered the land. He was to be an example to those who would dare rise against the gods. Makes me
shudder just thinking about it.<br>
Hermuncus soul slept until recently. When Shilen tore Ye Sagira from the sky causing it to crash into this island this
act released a seal on his spirit allowing him to call upon those who would help him.<br>
If you help him, it could be possible that he will help you Awaken your true power. You could have the same power that
the gods and Giants once had. Will you help free Hermuncus?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10338_SeizeYourDestiny 33477-03.htm">The power of the Giants do sound nice.</Button>
</body>
</html>

View File

@@ -0,0 +1,10 @@
<html>
<head>
<body>Cellphine:<br>
If you can absorb the power of the Giants who faced the very gods themselves¦ Tou'll be such a hero as has not been seen
in thousands of years. A tempting offer, no? Hmm... With that kind of power you could easily face Shilen. No more
trembling in fear¦ not that I think you're trembling. Not you...<br>
You must find <font color="LEVEL">Hadel</font> in <font color="LEVEL">Ye Sagira Ruins</font>. Tell her that I sent you
and she will show you the way to our master.
</body>
</html>

View File

@@ -0,0 +1,6 @@
<html>
<head>
<body>Cellphine:<br>Go talk to <font color="LEVEL">Hadel</font> in the <font color="LEVEL">Sagira Ruins, exploration
zone 1</font>. Tell her that I sent you and she'll lead you to the master.
</body>
</html>

View File

@@ -0,0 +1,5 @@
<html><head><body>Cellphine:<br>
I'll need your help to completely resurrect the master. I'll call you when it's time. <br>
(This quest is already completed.)
<br>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><head><body>Cellphine:<br>
Go talk to <font color="LEVEL">Hadel</font> in the <font color="LEVEL">Sagira Ruins, exploration zone 1</font>. Tell her that I sent you and she'll lead you to the master.
<br>
</body></html>

View File

@@ -0,0 +1,223 @@
/*
* Copyright (C) 2004-2015 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J DataPack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package quests.Q10338_SeizeYourDestiny;
import com.l2jserver.gameserver.enums.CategoryType;
import com.l2jserver.gameserver.model.Location;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.base.ClassId;
import com.l2jserver.gameserver.model.holders.ItemHolder;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.network.NpcStringId;
import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
/**
* @author Sdw
*/
public class Q10338_SeizeYourDestiny extends Quest
{
// NPCs
private static final int CELLPHINE = 33477;
private static final int HADEL = 33344;
private static final int HERMUNCUS = 33340;
// Monsters
private static final int HARNAKS_WRAITH = 27445;
// Items
private static final ItemHolder SCROLL_OF_AFTERLIFE = new ItemHolder(17600, 1);
private static final ItemHolder STEEL_DOOR_GUILD_COIN = new ItemHolder(37045, 400);
// Teleport
private static final Location RELIQUARY_OF_THE_GIANT = new Location(-114962, 226564, -2864);
// Movie
private static final int RELIQUARY_OF_THE_GIANT_SCENE = 55;
public Q10338_SeizeYourDestiny()
{
super(10338, Q10338_SeizeYourDestiny.class.getSimpleName(), "Seize Your Destiny");
addStartNpc(CELLPHINE);
addTalkId(CELLPHINE, HADEL, HERMUNCUS);
addKillId(HARNAKS_WRAITH);
addCondNotClassId(ClassId.JUDICATOR, "33477-04.htm");
addCondIsNotSubClassActive("33477-04.htm");
addCondMinLevel(85, "33477-04.htm");
addCondInCategory(CategoryType.FOURTH_CLASS_GROUP, "33477-04.htm");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "TELEPORT":
{
if (player.isSubClassActive() && !player.isDualClassActive())
{
htmltext = "";
break;
}
teleportPlayer(player, RELIQUARY_OF_THE_GIANT, 0);
player.showQuestMovie(RELIQUARY_OF_THE_GIANT_SCENE);
break;
}
case "33477-03.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "33344-05.htm":
{
if (qs.isCond(1))
{
qs.setCond(2, true);
htmltext = event;
}
break;
}
case "33340-02.htm":
{
if (qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.YOU_MAY_USE_SCROLL_OF_AFTERLIFE_FROM_HERMUNCUS_TO_AWAKEN, ExShowScreenMessage.TOP_CENTER, 10000);
giveItems(player, SCROLL_OF_AFTERLIFE);
rewardItems(player, STEEL_DOOR_GUILD_COIN);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
case "33344-02.htm":
case "33344-03.htm":
case "33344-04.htm":
case "33477-02.htm":
{
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (npc.getId())
{
case CELLPHINE:
{
if (qs.isStarted())
{
htmltext = "33477-06.htm";
}
else if (qs.hasQuestItems(SCROLL_OF_AFTERLIFE.getId()) || qs.isCompleted())
{
htmltext = "33477-05.htm";
}
else if (qs.isCreated())
{
htmltext = "33477-01.htm";
}
break;
}
case HADEL:
{
if (qs.isCompleted() || player.isInCategory(CategoryType.AWAKEN_GROUP) || qs.hasQuestItems(SCROLL_OF_AFTERLIFE.getId()))
{
htmltext = "33344-07.htm";
}
else if (player.getLevel() < 85)
{
htmltext = "33344-06.htm";
}
else if (player.isSubClassActive() && !player.isDualClassActive())
{
htmltext = "33344-09.htm";
}
else
{
switch (qs.getCond())
{
case 1:
{
htmltext = "33344-01.htm";
break;
}
case 2:
{
htmltext = "33344-08.htm";
break;
}
case 3:
{
htmltext = "33344-07.htm";
break;
}
}
}
break;
}
case HERMUNCUS:
{
if (player.isSubClassActive() && !player.isDualClassActive())
{
htmltext = "33340-04.htm";
break;
}
else if (qs.isCond(3))
{
htmltext = "33340-01.htm";
break;
}
else if (qs.hasQuestItems(SCROLL_OF_AFTERLIFE.getId()))
{
htmltext = "33340-03.htm";
break;
}
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
if (npc.getId() == HARNAKS_WRAITH)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
{
qs.setCond(3, true);
}
}
return super.onKill(npc, player, isSummon);
}
}