Seed of Hellfire quests.

Contributed by hlwrave.
This commit is contained in:
MobiusDev
2016-02-09 10:01:07 +00:00
parent 2ab94e6daf
commit cc24fc452c
96 changed files with 1398 additions and 0 deletions

View File

@@ -0,0 +1,134 @@
/*
* 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.Q00755_InNeedOfPetras;
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;
/**
* @hlwrave
*/
public class Q00755_InNeedOfPetras extends Quest
{
// NPCs
private static final int AKU = 33671;
// Monsters
private static final int[] MONSTERS =
{
23213,
23214,
23227,
23228,
23229,
23230,
23215,
23216,
23217,
23218,
23231,
23232,
23233,
23234,
23237,
23219
};
// Items
private static final int AKUS_SUPPLY_BOX = 35550;
private static final int ENERGY_OF_DESTRUCTION = 35562;
private static final int PETRA = 34959;
// Other
private static final int MIN_LEVEL = 97;
public Q00755_InNeedOfPetras()
{
super(755, Q00755_InNeedOfPetras.class.getSimpleName(), "In Need Of Petras");
addStartNpc(AKU);
addTalkId(AKU);
addKillId(MONSTERS);
registerQuestItems(PETRA);
addCondMinLevel(MIN_LEVEL, "sofa_aku_q0755_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);
}
if (event.equals("sofa_aku_q0755_04.htm"))
{
qs.startQuest();
}
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_aku_q0755_01.htm";
}
else if (qs.isStarted())
{
if (qs.isCond(1))
{
htmltext = "sofa_aku_q0755_07.htm";
}
else if (qs.isCond(2))
{
qs.takeItems(PETRA, -1L);
qs.addExpAndSp(570676680, 26102484);
qs.giveItems(AKUS_SUPPLY_BOX, 1);
qs.giveItems(ENERGY_OF_DESTRUCTION, 1);
qs.exitQuest(QuestType.DAILY, true);
htmltext = "sofa_aku_q0755_08.htm";
}
}
else if (qs.isCompleted())
{
htmltext = "sofa_aku_q0755_06.htm";
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1) && qs.isStarted())
{
if (giveItemRandomly(killer, npc, PETRA, 1, 50, 0.75, true))
{
qs.setCond(2);
}
}
return super.onKill(npc, killer, isSummon);
}
}

View File

@@ -0,0 +1,4 @@
<html><body>Aku:<br>
Hmm? Oh, it's you! I'm so glad you are here. Could you collect <font color="LEVEL">Petra</font> for me again?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00755_InNeedOfPetras sofa_aku_q0755_03.htm">"Sure."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Aku:<br>
I'm collecting <font color="LEVEL">Petra</font> right now, and I need help. You look like you need something to do, hee! <br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00755_InNeedOfPetras sofa_aku_q0755_03.htm">"Sure, I'll help."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Aku:<br>
Hee, hat's what I like to hear! Go to <font color="LEVEL">Seed of Hellfire</font> and kill the Zofans. They carry the <font color="LEVEL">Petra</font>.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00755_InNeedOfPetras sofa_aku_q0755_04.htm">"Here I go!"</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Aku:<br>
You can collect <font color="LEVEL">Petra</font> by killing <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>. <font color="LEVEL">50</font> should do it, hee!<br>
Oh yes! You can also give them to <font color="LEVEL">Aku's Minions</font> if it's too hard to bring <font color="LEVEL">Petras</font> all the way back here.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Aku:<br>
Hee! You can't help, you dingbat!<br>
(You must be level 97 or above.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Aku:<br>
That's as much as I can hold, hee! Let's do this again tomorrow.<br>
(You can only do this quest once a day. This quest is reset everyday at 6:30 AM.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Aku:<br>
What? This isn't enough, you dingbat! Bring me more!<br>
You can collect <font color="LEVEL">Petra</font> by killing <font color="LEVEL">Beggar Zofan</font>, <font color="LEVEL">Zofan</font>, <font color="LEVEL">Young Zofan</font> and <font color="LEVEL">Engineer Zofan</font>. Hee!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Aku:<br>
Hee! That's as much as I can take for today. Let's do this again tomorrow!<br>
</body></html>