This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<html><body>Helvetia:<br>
Adventurer, you are not too busy, are you?<br>
Please help me! I promise that I will give you a generous reward.<br>
<a action="bypass -h Quest Q00040_ASpecialOrder accept">"How can I help you?"</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Helvetia:<br>
Adventurer...<br>
Oh, never mind. I'm sorry to have disturbed you.<br>
(Only characters level 40 and above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Helvetia:<br>
The thing is, I asked <font color="LEVEL">O'Fulle</font> to bring me a chest of fish for one of my most important customers, but it's not here yet. Will you find out what's happened?
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Helvetia:<br>
The thing is, I asked <font color="LEVEL">Warehouse Chief Gesto</font> to bring me a jar of seeds for one of my most important customers, but it's not here yet. Will you find out what's happened?
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Helvetia:<br>
There's not much time. Please go to <font color="LEVEL">O'Fulle</font> and bring me the chest of fish I ordered.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Helvetia:<br>
Did you have to catch the fish yourself?! Why did it take you so long?<br>
Please give me the chest of fish right away -- my customer will be here soon!<br>
<a action="bypass -h Quest Q00040_ASpecialOrder 30081-07.html">Hand over the chest of fish.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Helvetia:<br>
Fortunately, the items look good. Thank you! Please take this cube in exchange for your hard work. Use it well!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Helvetia:<br>
There's not much time! Please go to <font color="LEVEL">Gesto</font> and get the jar of seeds for me.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Helvetia:<br>
Did you have to gather the seeds yourself?! Why did it take so long?<br>
Please give me the jar of seeds right away -- my customer will be here any moment.<br>
<a action="bypass -h Quest Q00040_ASpecialOrder 30081-10.html">Hand over the jar of seeds.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Helvetia:<br>
Fortunately, the items look good. Thank you! Please take this cube in exchange for your hard work. Use it well!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Warehouse Chief Gesto:<br>
Why are you here?<br>
<a action="bypass -h Quest Q00040_ASpecialOrder 30511-02.html">"I came to get the seed jar Miss Helvetia ordered."</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Warehouse Chief Gesto:<br>
Seed jar!<br>
Oh my, I completely forgot about it! It's late! Would you help me? Since you'll have to wait for it anyway, it'll be faster if you help me.<br>
<a action="bypass -h Quest Q00040_ASpecialOrder 30511-03.html">"What can I do for you?"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Warehouse Chief Gesto:<br>
You can bring me some of the crops she ordered. I need 40 crops from each of the following: the <font color="LEVEL">Thorn Cobol, Golden Cobol and Great Cobol</font>. Go to the Manor Manager and get the crops. I'm counting on you -- for both our sakes!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Warehouse Chief Gesto:<br>
Did you get all the seeds I asked for? I need 40 from each of the following: <font color="LEVEL">Thorn Cobol, Golden Cobol and Great Cobol</font>. I'm counting on you!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Warehouse Chief Gesto:<br>
Thank you. Now to carefully put the seeds you brought into this jar...<br>
Finished! Now deliver this seed jar to Miss <font color="LEVEL">Helvetia</font>. Hurry so you don't get scolded for being late!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Warehouse Chief Gesto:<br>
Deliver this seed jar to Miss <font color="LEVEL">Helvetia</font>. Hurry so you don't get scolded for being late!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>O'Fulle:<br>
What brought you here?<br>
<a action="bypass -h Quest Q00040_ASpecialOrder 31572-02.html">"I'm here to receive a chest of fish that Helvetia ordered."</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>O'Fulle:<br>
A chest of fish!<br>
Oh, I forgot about it. Since I forgot... say, why don't you help me? You have to get it anyhow. That should speed things up.<br>
<a action="bypass -h Quest Q00040_ASpecialOrder 31572-03.html">"What can I do to help?"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>O'Fulle:<br>
You can get me some fish that was ordered. Uh... let's see... I need 10 of each of the following: <font color="LEVEL">Orange Nimble Fish, Orange Ugly Fish and Orange Fat Fish</font>. Can you do me this favor? With your help, I'll do the rest.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>O'Fulle:<br>
Have you been able to acquire all the fish I asked you to? Right now, I need 10 of each of the following: <font color="LEVEL">Orange Nimble Fish, Orange Ugly Fish and Orange Fat Fish</font>. Please do me this favor.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>O'Fulle:<br>
Thank you! When I put all the fish you got me in a chest...<br>
There! Now take this chest of fish to <font color="LEVEL">Helvetia</font>. Please be sure to deliver it while the fish are still fresh!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>O'Fulle:<br>
Fish spoil quickly, you know. Deliver this chest to <font color="LEVEL">Helvetia</font> while the fish are still fresh.
</body></html>

View File

@@ -0,0 +1,264 @@
/*
* Copyright (C) 2004-2014 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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.
*
* L2J DataPack 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.Q00040_ASpecialOrder;
import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* A Special Order (40)
* @author janiko
*/
public final class Q00040_ASpecialOrder extends Quest
{
// NPCs
private static final int HELVETIA = 30081;
private static final int OFULLE = 31572;
private static final int GESTO = 30511;
// Items
private static final int ORANGE_SWIFT_FISH = 6450;
private static final int ORANGE_UGLY_FISH = 6451;
private static final int ORANGE_WIDE_FISH = 6452;
private static final int GOLDEN_COBOL = 5079;
private static final int BUR_COBOL = 5082;
private static final int GREAT_COBOL = 5084;
private static final int WONDROUS_CUBIC = 10632;
private static final int BOX_OF_FISH = 12764;
private static final int BOX_OF_SEED = 12765;
// Misc
private static final int MIN_LVL = 40;
public Q00040_ASpecialOrder()
{
super(40, Q00040_ASpecialOrder.class.getSimpleName(), "A Special Order");
addStartNpc(HELVETIA);
addTalkId(HELVETIA, OFULLE, GESTO);
registerQuestItems(BOX_OF_FISH, BOX_OF_SEED);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "accept":
{
st.setState(State.STARTED);
st.playSound(QuestSound.ITEMSOUND_QUEST_ACCEPT);
if (getRandomBoolean())
{
st.setCond(2);
htmltext = "30081-03.html";
}
else
{
st.setCond(5);
htmltext = "30081-04.html";
}
break;
}
case "30081-07.html":
{
if (st.isCond(4) && st.hasQuestItems(BOX_OF_FISH))
{
st.rewardItems(WONDROUS_CUBIC, 1);
st.exitQuest(false, true);
htmltext = event;
}
break;
}
case "30081-10.html":
{
if (st.isCond(7) && st.hasQuestItems(BOX_OF_SEED))
{
st.rewardItems(WONDROUS_CUBIC, 1);
st.exitQuest(false, true);
htmltext = event;
}
break;
}
case "31572-02.html":
case "30511-02.html":
{
htmltext = event;
break;
}
case "31572-03.html":
{
if (st.isCond(2))
{
st.setCond(3, true);
htmltext = event;
}
break;
}
case "30511-03.html":
{
if (st.isCond(5))
{
st.setCond(6, true);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (st == null)
{
return htmltext;
}
switch (npc.getId())
{
case HELVETIA:
{
switch (st.getState())
{
case State.CREATED:
{
htmltext = (player.getLevel() >= MIN_LVL) ? "30081-01.htm" : "30081-02.htm";
break;
}
case State.STARTED:
{
switch (st.getCond())
{
case 2:
case 3:
{
htmltext = "30081-05.html";
break;
}
case 4:
{
if (st.hasQuestItems(BOX_OF_FISH))
{
htmltext = "30081-06.html";
}
break;
}
case 5:
case 6:
{
htmltext = "30081-08.html";
break;
}
case 7:
{
if (st.hasQuestItems(BOX_OF_SEED))
{
htmltext = "30081-09.html";
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
break;
}
case OFULLE:
{
switch (st.getCond())
{
case 2:
{
htmltext = "31572-01.html";
break;
}
case 3:
{
if ((st.getQuestItemsCount(ORANGE_SWIFT_FISH) >= 10) && (st.getQuestItemsCount(ORANGE_UGLY_FISH) >= 10) && (st.getQuestItemsCount(ORANGE_WIDE_FISH) >= 10))
{
st.setCond(4, true);
st.giveItems(BOX_OF_FISH, 1);
takeItems(player, 10, ORANGE_SWIFT_FISH, ORANGE_UGLY_FISH, ORANGE_WIDE_FISH);
htmltext = "31572-05.html";
}
else
{
htmltext = "31572-04.html";
}
break;
}
case 4:
{
htmltext = "31572-06.html";
break;
}
}
break;
}
case GESTO:
{
switch (st.getCond())
{
case 5:
{
htmltext = "30511-01.html";
break;
}
case 6:
{
if ((st.getQuestItemsCount(GOLDEN_COBOL) >= 40) && (st.getQuestItemsCount(BUR_COBOL) >= 40) && (st.getQuestItemsCount(GREAT_COBOL) >= 40))
{
st.setCond(7, true);
st.giveItems(BOX_OF_SEED, 1);
takeItems(player, 40, GOLDEN_COBOL, BUR_COBOL, GREAT_COBOL);
htmltext = "30511-05.html";
}
else
{
htmltext = "30511-04.html";
}
break;
}
case 7:
{
htmltext = "30511-06.html";
break;
}
}
break;
}
}
return htmltext;
}
}