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,162 @@
/*
* 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.Q10383_FergasonsOffer;
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 quests.Q10381_ToTheSeedOfHellfire.Q10381_ToTheSeedOfHellfire;
/**
* @author hlwrave
*/
public class Q10383_FergasonsOffer extends Quest
{
// NPCs
private static final int SIZRAK = 33669;
private static final int AKU = 33671;
private static final int FERGASON = 33681;
// Monsters
private static final int[] MONSTERS =
{
23213,
23214,
23215,
23216,
23217,
23218,
23219
};
// Item
private static final int UNSTABLE_PETRA = 34958;
// Misc
private static final int MIN_LEVEL = 97;
public Q10383_FergasonsOffer()
{
super(10383);
addStartNpc(SIZRAK);
addTalkId(SIZRAK, AKU, FERGASON);
addKillId(MONSTERS);
registerQuestItems(UNSTABLE_PETRA);
addCondMinLevel(MIN_LEVEL, "sofa_sizraku_q10383_04.html");
addCondCompletedQuest(Q10381_ToTheSeedOfHellfire.class.getSimpleName(), "sofa_sizraku_q10383_07.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_q10383_03.html":
{
qs.startQuest();
break;
}
case "maestro_ferguson_q10383_04.html":
{
qs.setCond(2);
break;
}
case "sofa_aku_q10383_03.html":
{
takeItems(player, UNSTABLE_PETRA, -1L);
addExpAndSp(player, 951127800, 435041400);
giveAdena(player, 3256740, true);
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_q10383_01.htm";
}
else if (qs.isStarted())
{
htmltext = "sofa_sizraku_q10383_06.html";
}
else if (qs.isCompleted())
{
htmltext = "sofa_sizraku_q10383_05.html";
}
break;
}
case FERGASON:
{
if (qs.isCond(1))
{
htmltext = "maestro_ferguson_q10383_01.html";
}
else if (qs.isCond(2))
{
htmltext = "maestro_ferguson_q10383_05.html";
}
break;
}
case AKU:
{
if (qs.isCond(1))
{
htmltext = "sofa_aku_q10383_01.html";
}
else if (qs.isCond(3))
{
htmltext = "sofa_aku_q10383_02.html";
}
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(2) && qs.isStarted() && giveItemRandomly(killer, npc, UNSTABLE_PETRA, 1, 20, 0.75, true))
{
qs.setCond(3);
}
return super.onKill(npc, killer, isSummon);
}
}

View File

@@ -0,0 +1,4 @@
<html><body>Fergason:<br>
You're the outsider that <font color="LEVEL">Sizrak</font> was talking about. It's good to meet you. My name is <font color="LEVEL">Fergason</font>.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer maestro_ferguson_q10383_02.html">"Why are you here?"</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Fergason:<br>
I came here because I heard the rumor about <font color="LEVEL">Tauti</font> living here. I'm not sure if you know, but <font color="LEVEL">Tauti</font> is one of <font color="LEVEL">Bremnon's</font> weapons, and a brother to <font color="LEVEL">Demonic Sword Zariche</font>. <br>
To catch a glimpse of such a creature... not many have that honor.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer maestro_ferguson_q10383_03.html">"Can you actually help with this quest?"</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Fergason:<br>
Yes! Of course! What you need to do is collect <font color="LEVEL">Petra</font> and deliver them to <font color="LEVEL">Aku</font>.<br>
<font color="LEVEL">Petra</font> is a biological energy that emanates from <font color="LEVEL">Zofan</font>, found in the <font color="LEVEL">Seed of Hellfire</font>. <font color="LEVEL">Aku</font> is collecting them, and if you help him, he will arrange a meeting with <font color="LEVEL">Tauti</font>.What do you think? Will you try?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer maestro_ferguson_q10383_04.html">"Uh. Sure."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Fergason:<br>
Good! Now, to get <font color="LEVEL">Petra</font>, you must defeat <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>, and take their Petras away. Then you must deliver <font color="LEVEL">20</font> <font color="LEVEL">Unstable Petras</font> to <font color="LEVEL">Aku</font> located on the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font>.<br>
And one more thing! You can go to the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font> through <font color="LEVEL">Transportation Assistant</font>!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Fergason:<br>
To get <font color="LEVEL">Petra</font>, you must defeat <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>, and take their Petras away. Then you must deliver <font color="LEVEL">20</font> <font color="LEVEL">Unstable Petras</font> to <font color="LEVEL">Aku</font> located on the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font>.<br>
And one more thing! You can go to the <font color="LEVEL">1st floor of the Seed of Hellfire in the Southern District</font> through <font color="LEVEL">Transportation Assistant</font>!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Aku:<br>
Ooh, more <font color="LEVEL">Petra</font>? Hee, that's not enough, dingbat! Talk to me when you have more!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Aku:<br>
Hee, this <font color="LEVEL">Petra</font> is all you could find? And what? You want to see <font color="LEVEL">Lord Tauti</font>? Dingbat!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer sofa_aku_q10383_03.html">"Wait, that's not fair!"</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Aku:<br>
Hee! Fair! Fair is a <font color="LEVEL">Top Quality Petra</font>, and that is all! Then I will give you <font color="LEVEL">Aku's Mark</font>. <br>
Once you collect enough <font color="LEVEL">Aku's Mark</font>, then you can ask to see <font color="LEVEL">Lord Tauti</font>. Dingbat!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Sizrak:<br>
I talked to <font color="LEVEL">Fergason</font>, and he seemed to be interested in meeting you. How about it?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer sofa_sizraku_q10383_02.htm">"Who is Fergason?"</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Sizrak:<br>
He's an outsider, like you, who's given us help He has forged our weapon and refused our pay. He is a true comrade! Go to him.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10383_FergasonsOffer sofa_sizraku_q10383_03.html">"I think I might."</button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Sizrak:<br>
<font color="LEVEL">Fergason</font> is here in the <font color="LEVEL">Seed of Hellfire</font>. You'll find him easily enough.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Sizrak:<br>
Hmm... I think not. You can't help us at the moment.<br>
(This quest is for players level 97 or above.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Sizrak:<br>
You have done great things for us, comrade.<br>
(You have already finished the quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Sizrak:<br>
You haven't met <font color="LEVEL">Fergason</font> yet?<br>
He's right here in the <font color="LEVEL">Seed of Hellfire</font>. You'll find him easily enough.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Sizrak:<br>
Who are you? You came from <font color="LEVEL">Keucereus Alliance Base</font>? Do you have some sort of proof? Why should I trust you?<br>
(You haven't finished the prerequisite quest.)
</body></html>