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,130 @@
/*
* 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;
/**
* @author 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);
addStartNpc(AKU);
addTalkId(AKU);
addKillId(MONSTERS);
registerQuestItems(PETRA);
addCondMinLevel(MIN_LEVEL, "sofa_aku_q0755_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);
}
if (event.equals("sofa_aku_q0755_04.html"))
{
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.html";
}
else if (qs.isCond(2))
{
takeItems(player, PETRA, -1L);
addExpAndSp(player, 570676680, 26102484);
giveItems(player, AKUS_SUPPLY_BOX, 1);
giveItems(player, ENERGY_OF_DESTRUCTION, 1);
qs.exitQuest(QuestType.DAILY, true);
htmltext = "sofa_aku_q0755_08.html";
}
}
else if (qs.isCompleted())
{
htmltext = "sofa_aku_q0755_06.html";
}
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() && 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.html">"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.html">"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.html">"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>