Merged with released L2J-Unity files.
This commit is contained in:
@@ -1,5 +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>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder accept">"How can I help you?"</Button>
|
||||
<html><body>Grocer Helvetia:<br>
|
||||
Hey! You're not busy, are you?<br>
|
||||
I need you to help me! I'll make it worth your while.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 30081-02.htm">"What do you need?"</Button>
|
||||
</body></html>
|
@@ -1,5 +1,4 @@
|
||||
<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.)
|
||||
<html><body>Grocer Helvetia:<br>
|
||||
I need some things for important clients. Could you fetch them for me?<br>
|
||||
I need a <font color="LEVEL">Fish Chest</font> from <font color="LEVEL">Fishing Guild Member O'Fulle</font> and a <font color="LEVEL">Seed Jar</font> from <font color="LEVEL">Warehouse Chief Gesto</font>. They're not far!
|
||||
</body></html>
|
@@ -1,3 +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?
|
||||
<html><body>Grocer Helvetia:<br>
|
||||
Hurry, hurry! Please bring a <font color="LEVEL">Fish Chest</font> from <font color="LEVEL">Fishing Guild Member O'Fulle</font> and a <font color="LEVEL">Seed Jar</font> from <font color="LEVEL">Warehouse Chief Gesto</font>.
|
||||
</body></html>
|
@@ -1,3 +1,4 @@
|
||||
<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?
|
||||
<html><body>Grocer Helvetia:<br>
|
||||
So do you have the stuff? I swear, if they mess up again I'm going to stop doing business with them!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 30081-05.html">"Easy there. I have it, look."</Button>
|
||||
</body></html>
|
@@ -1,3 +1,5 @@
|
||||
<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.
|
||||
<html><body>Grocer Helvetia:<br>
|
||||
Oh, good. Great condition! Wait, can I ask you one more favor? I just need some <font color="LEVEL">Elcyum Crystals</font>, and that's it, I swear!<br>
|
||||
It's kinda tied to the first mission you did, so I'll pay you after you do this for me. What do you say?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 30081-06.html">"...FINE."</Button>
|
||||
</body></html>
|
@@ -1,5 +1,4 @@
|
||||
<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>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 30081-07.html">Hand over the chest of fish.</Button>
|
||||
<html><body>Grocer Helvetia:<br>
|
||||
I know it seems like a big ask, but do try to hurry.<br>
|
||||
You can get Elcyum Crystals by crystallizing high-grade equipment, but I heard that you can also fish for it. Weird, huh?
|
||||
</body></html>
|
@@ -1,3 +1,4 @@
|
||||
<html><body>Helvetia:<br>
|
||||
Fortunately, the items look good. Thank you! Please take this cube in exchange for your hard work. Use it well!
|
||||
<html><body>Grocer Helvetia:<br>
|
||||
Come on, go get those <font color="LEVEL">Elcyum Crystals</font> for me.<br>
|
||||
Remember, you can get them by crystallizing high-grade equipment or fishing!
|
||||
</body></html>
|
@@ -1,3 +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.
|
||||
<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>
|
@@ -1,5 +0,0 @@
|
||||
<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>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 30081-10.html">Hand over the jar of seeds.</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00040_ASpecialOrder/30081-10.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00040_ASpecialOrder/30081-10.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Grocer Helvetia:<br>
|
||||
Um, hello?<br>
|
||||
Uh, nothing. Never mind.<br>
|
||||
(Only characters Lv. 40 or above may undertake this quest.)
|
||||
</body></html>
|
@@ -1,3 +0,0 @@
|
||||
<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>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Warehouse Chief Gesto:<br>
|
||||
Why are you here?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 30511-02.html">"I came to get the seed jar Miss Helvetia ordered."</Button>
|
||||
<html><body>Warehouse Chief Gesto:<br>
|
||||
Ya need something?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 30511-02.html">I'm here for the Seed Jar at Miss Helvetia's request</Button>
|
||||
</body></html>
|
@@ -1,5 +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>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 30511-03.html">"What can I do for you?"</Button>
|
||||
<html><body>Warehouse Chief Gesto:<br>
|
||||
Seed jar!<br>
|
||||
Oh goodness, I forgot! Lucky that I have all these seeds. Here, I'll put these in the jar right now...<br>
|
||||
There ya go! Now go bring this to Miss <font color="LEVEL">Helvetia</font>, before she scolds you for being a lazy slug!
|
||||
</body></html>
|
@@ -1,3 +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!
|
||||
<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>
|
@@ -1,3 +0,0 @@
|
||||
<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>
|
@@ -1,4 +0,0 @@
|
||||
<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>
|
@@ -1,3 +0,0 @@
|
||||
<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>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>O'Fulle:<br>
|
||||
What brought you here?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 31572-02.html">"I'm here to receive a chest of fish that Helvetia ordered."</Button>
|
||||
<html><body>O'Fulle:<br>
|
||||
Did you need something from me?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 31572-02.html">"I came for the Fish Chest Helvetia ordered."</Button>
|
||||
</body></html>
|
@@ -1,5 +1,4 @@
|
||||
<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>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00040_ASpecialOrder 31572-03.html">"What can I do to help?"</Button>
|
||||
<html><body>O'Fulle:<br>
|
||||
A chest of fish?<br>
|
||||
Oh, I totally forgot! Good thing it's fishing season, eh? All right... here's the fish she ordered! You can take this chest to <font color="LEVEL">Helvetia</font>. Hurry before the fish go bad!
|
||||
</body></html>
|
@@ -1,3 +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.
|
||||
<html><body>O'Fulle:<br>
|
||||
Fish spoil quickly, so deliver this Fish Chest to <font color="LEVEL">Grocer Helvetia</font> as soon as you can.
|
||||
</body></html>
|
@@ -1,3 +0,0 @@
|
||||
<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>
|
@@ -1,4 +0,0 @@
|
||||
<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>
|
@@ -1,3 +0,0 @@
|
||||
<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>
|
@@ -1,262 +1,204 @@
|
||||
/*
|
||||
* 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.Q00040_ASpecialOrder;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
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.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 qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "accept":
|
||||
{
|
||||
qs.setState(State.STARTED);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ACCEPT);
|
||||
if (getRandomBoolean())
|
||||
{
|
||||
qs.setCond(2);
|
||||
htmltext = "30081-03.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
qs.setCond(5);
|
||||
htmltext = "30081-04.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30081-07.html":
|
||||
{
|
||||
if (qs.isCond(4) && hasQuestItems(player, BOX_OF_FISH))
|
||||
{
|
||||
rewardItems(player, WONDROUS_CUBIC, 1);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30081-10.html":
|
||||
{
|
||||
if (qs.isCond(7) && hasQuestItems(player, BOX_OF_SEED))
|
||||
{
|
||||
rewardItems(player, WONDROUS_CUBIC, 1);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "31572-02.html":
|
||||
case "30511-02.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31572-03.html":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30511-03.html":
|
||||
{
|
||||
if (qs.isCond(5))
|
||||
{
|
||||
qs.setCond(6, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
switch (npc.getId())
|
||||
{
|
||||
case HELVETIA:
|
||||
{
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = (player.getLevel() >= MIN_LVL) ? "30081-01.htm" : "30081-02.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 2:
|
||||
case 3:
|
||||
{
|
||||
htmltext = "30081-05.html";
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
if (hasQuestItems(player, BOX_OF_FISH))
|
||||
{
|
||||
htmltext = "30081-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 5:
|
||||
case 6:
|
||||
{
|
||||
htmltext = "30081-08.html";
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
if (hasQuestItems(player, BOX_OF_SEED))
|
||||
{
|
||||
htmltext = "30081-09.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case OFULLE:
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 2:
|
||||
{
|
||||
htmltext = "31572-01.html";
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
if ((getQuestItemsCount(player, ORANGE_SWIFT_FISH) >= 10) && (getQuestItemsCount(player, ORANGE_UGLY_FISH) >= 10) && (getQuestItemsCount(player, ORANGE_WIDE_FISH) >= 10))
|
||||
{
|
||||
qs.setCond(4, true);
|
||||
giveItems(player, 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 (qs.getCond())
|
||||
{
|
||||
case 5:
|
||||
{
|
||||
htmltext = "30511-01.html";
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
{
|
||||
if ((getQuestItemsCount(player, GOLDEN_COBOL) >= 40) && (getQuestItemsCount(player, BUR_COBOL) >= 40) && (getQuestItemsCount(player, GREAT_COBOL) >= 40))
|
||||
{
|
||||
qs.setCond(7, true);
|
||||
giveItems(player, 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;
|
||||
}
|
||||
/*
|
||||
* 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.Q00040_ASpecialOrder;
|
||||
|
||||
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.model.quest.State;
|
||||
|
||||
/**
|
||||
* A Special Order (40)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q00040_ASpecialOrder extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int HELVETIA = 30081;
|
||||
private static final int O_FULLE = 31572;
|
||||
private static final int GESTO = 30511;
|
||||
// Items
|
||||
private static final int FISH_CHEST = 12764;
|
||||
private static final int SEED_JAR = 12765;
|
||||
private static final int ELCYUM_CRYSTAL = 36514;
|
||||
private static final int WONDEROUS_CUBIC = 10632;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 40;
|
||||
|
||||
public Q00040_ASpecialOrder()
|
||||
{
|
||||
super(40);
|
||||
addStartNpc(HELVETIA);
|
||||
addTalkId(HELVETIA, O_FULLE, GESTO);
|
||||
registerQuestItems(FISH_CHEST, SEED_JAR);
|
||||
addCondMinLevel(MIN_LEVEL, "30081-10.htm");
|
||||
}
|
||||
|
||||
@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 "30081-05.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "30081-02.htm":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31572-02.html":
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
giveItems(player, FISH_CHEST, 1);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30511-02.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.setCond(3, true);
|
||||
giveItems(player, SEED_JAR, 1);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30081-06.html":
|
||||
{
|
||||
if (st.isCond(3))
|
||||
{
|
||||
st.setCond(4, true);
|
||||
takeItems(player, -1, FISH_CHEST, SEED_JAR);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player, boolean isSimulated)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (npc.getId() == HELVETIA)
|
||||
{
|
||||
htmltext = "30081-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
if (npc.getId() == HELVETIA)
|
||||
{
|
||||
htmltext = "30081-03.html";
|
||||
}
|
||||
else if (npc.getId() == O_FULLE)
|
||||
{
|
||||
htmltext = "31572-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case HELVETIA:
|
||||
htmltext = "30081-03.html";
|
||||
break;
|
||||
case O_FULLE:
|
||||
htmltext = "31572-03.html";
|
||||
break;
|
||||
case GESTO:
|
||||
htmltext = "30511-01.html";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
if (npc.getId() == HELVETIA)
|
||||
{
|
||||
htmltext = "30081-04.html";
|
||||
}
|
||||
else if (npc.getId() == GESTO)
|
||||
{
|
||||
htmltext = "30511-03.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
if (npc.getId() == HELVETIA)
|
||||
{
|
||||
if (hasQuestItems(player, ELCYUM_CRYSTAL))
|
||||
{
|
||||
if (!isSimulated)
|
||||
{
|
||||
takeItems(player, ELCYUM_CRYSTAL, 1);
|
||||
giveItems(player, WONDEROUS_CUBIC, 1);
|
||||
st.exitQuest(false, true);
|
||||
}
|
||||
htmltext = "30081-08.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30081-07.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (npc.getId() == HELVETIA)
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user