Addition of quest 336, 337, 386, 492, 551, 754, 755, 756, 943, 10382, 10383, 10384, 10453, 10465, 10790.

This commit is contained in:
MobiusDev
2016-07-25 14:20:18 +00:00
parent 7d24436cfa
commit dfc47df2f2
690 changed files with 8528 additions and 15 deletions

View File

@@ -0,0 +1,120 @@
/*
* 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.util.Util;
import quests.Q10381_ToTheSeedOfHellfire.Q10381_ToTheSeedOfHellfire;
/**
* @author 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);
addStartNpc(SIZRAK);
addTalkId(SIZRAK);
addKillId(TAUTI);
addCondMinLevel(MIN_LEVEL, "sofa_sizraku_q10382_04.html");
addCondCompletedQuest(Q10381_ToTheSeedOfHellfire.class.getSimpleName(), "sofa_sizraku_q10382_05.html");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final String htmltext = event;
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return getNoQuestMsg(player);
}
switch (event)
{
case "sofa_sizraku_q10382_03.html":
{
qs.startQuest();
qs.set(Integer.toString(TAUTI), 0);
break;
}
case "sofa_sizraku_q10382_10.html":
{
addExpAndSp(player, 951127800, 435041400);
giveAdena(player, 3256740, true);
giveItems(player, 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);
if (qs.isCreated())
{
htmltext = "sofa_sizraku_q10382_01.htm";
}
else if (qs.isStarted())
{
if (qs.isCond(1))
{
htmltext = "sofa_sizraku_q10382_07.html";
}
else if (qs.isCond(2))
{
htmltext = "sofa_sizraku_q10382_08.html";
}
}
else if (qs.isCompleted())
{
htmltext = "sofa_sizraku_q10382_06.html";
}
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);
}
}

View 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>

View 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.html">"I got it."</button>
</body></html>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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.html">"How did your men fare?"</button>
</body></html>

View 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.html">"Indeed, it was not."</button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Sizrak:<br>
This is our independence day. We will remember your role in this!
</body></html>