Seed of Hellfire quests.
Contributed by hlwrave.
This commit is contained in:
128
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/Q10382_DayOfLiberation.java
vendored
Normal file
128
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/Q10382_DayOfLiberation.java
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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.Q10382_DayOfLiberation;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestType;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
//import com.l2jmobius.gameserver.network.serverpackets.ExQuestNpcLogList;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import quests.Q10381_ToTheSeedOfHellfire.Q10381_ToTheSeedOfHellfire;
|
||||
|
||||
/**
|
||||
* @hlwrave
|
||||
*/
|
||||
public class Q10382_DayOfLiberation extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int SIZRAK = 33669;
|
||||
private static final int TAUTI = 29236;
|
||||
// Items
|
||||
private static final int TAUTIS_BRACELET = 35293;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 97;
|
||||
|
||||
public Q10382_DayOfLiberation()
|
||||
{
|
||||
super(10382, Q10382_DayOfLiberation.class.getSimpleName(), "Day of Liberation");
|
||||
addStartNpc(SIZRAK);
|
||||
addTalkId(SIZRAK);
|
||||
addKillId(TAUTI);
|
||||
addCondMinLevel(MIN_LEVEL, "sofa_sizraku_q10382_04.htm");
|
||||
addCondCompletedQuest(Q10381_ToTheSeedOfHellfire.class.getSimpleName(), "sofa_sizraku_q10382_05.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "sofa_sizraku_q10382_03.htm":
|
||||
{
|
||||
qs.setCond(1);
|
||||
qs.startQuest();
|
||||
qs.set(Integer.toString(TAUTI), 0);
|
||||
break;
|
||||
}
|
||||
case "sofa_sizraku_q10382_10.htm":
|
||||
{
|
||||
qs.addExpAndSp(951127800, 435041400);
|
||||
qs.giveItems(57, 3256740);
|
||||
qs.giveItems(TAUTIS_BRACELET, 1);
|
||||
qs.exitQuest(QuestType.ONE_TIME, true);
|
||||
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 SIZRAK:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "sofa_sizraku_q10382_01.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "sofa_sizraku_q10382_07.htm";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "sofa_sizraku_q10382_08.htm";
|
||||
}
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
htmltext = "sofa_sizraku_q10382_06.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
|
||||
if ((qs != null) && qs.isStarted() && qs.isCond(1) && Util.checkIfInRange(1500, npc, qs.getPlayer(), false))
|
||||
{
|
||||
qs.setCond(2);
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
5
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Sizrak:<br>
|
||||
Now is the time! Go to the <font color="LEVEL">Temple of Tauti</font> and drive <font color="LEVEL">Tauti</font> and his minions out! For the freedom of the <font color="LEVEL">Seed of Hellfire</font>!<br>
|
||||
Will you fight <font color="LEVEL">Tauti</font> with us?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayOfLiberation sofa_sizraku_q10382_02.htm">"My blade is at your command!"</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Sizrak:<br>
|
||||
Good! I will send out the orders. You rally your people--if they exist--and collect <font color="LEVEL">Mark of the Resistance</font>. You'll need them to get into the <font color="LEVEL">Temple of Tauti</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayOfLiberation sofa_sizraku_q10382_03.htm">"I got it."</button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_03.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_03.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Sizrak:<br>
|
||||
Once you and your troops are prepared, come to me. I will send you there.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Sizrak:<br>
|
||||
I'm not sure if we should trust you yet. Perhaps later.<br>
|
||||
(This quest is for players level 97 or above.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_05.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Sizrak:<br>
|
||||
Hmm? Who are you? You came from <font color="LEVEL">Keucereus Alliance Base</font>? Do you have any recommendation? Or, for that matter, proof of who you are? <br>
|
||||
(You haven't finished the prerequisite quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_06.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_06.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Sizrak:<br>
|
||||
Thanks to your help, our burden is lightened. We are grateful.<br>
|
||||
(You have already finished the quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_07.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_07.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Sizrak<br>
|
||||
You have the <font color="LEVEL">Mark of the Resistance</font>? Then I shall send you to the <font color="LEVEL">Temple of Tauti</font>, if you are prepared.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_08.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_08.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Sizrak:<br>
|
||||
<font color="LEVEL">Tauti</font> is on the run! You are our savior!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayOfLiberation sofa_sizraku_q10382_09.htm">"How did your men fare?"</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_09.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_09.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Sizrak:<br>
|
||||
Many lives were lost, but their sacrifice was not in vain.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10382_DayOfLiberation sofa_sizraku_q10382_10.htm">"Indeed, it was not."</button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_10.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10382_DayOfLiberation/sofa_sizraku_q10382_10.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Sizrak:<br>
|
||||
This is our independence day. We will remember your role in this!
|
||||
</body></html>
|
Reference in New Issue
Block a user