This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31442-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31442-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Mineral Trader Kiki:<br>
|
||||
If you're not here to buy minerals, why have you come?<br>
|
||||
You must be either a soldier or a traveler.<br>
|
||||
<a action="bypass -h Quest Q00028_ChestCaughtWithABaitOfIcyAir 31442-03.htm">"I have a letter for you."</a>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31442-02.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31442-02.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Mineral Trader Kiki:<br>
|
||||
The letter!<br>
|
||||
I had given up on it. The guild sent it a while back, but the ship ran aground and all was feared lost.<br>
|
||||
Thank you.<br>
|
||||
Don't let anyone else know about this! If word got out that Dwarves had lost it, it could damage our reputation as the most reliable race! Here is a gift for your trouble. As a Dwarf, I must show my gratitude for your kindness.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31442-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31442-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Mineral Trader Kiki:<br>
|
||||
A letter for me? You must be mistaken. Dwarves never lose anything! You must have misunderstood.<br>
|
||||
Now, if you're not going to buy anything, get lost!
|
||||
</body></html>
|
||||
7
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-01.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-01.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
Welcome back! You got the <font color="LEVEL">bait of chill</font> before.<br>
|
||||
You really did a number on those bandits! They're not all gone, however. Was the bait useful?<br>
|
||||
It's not designed to catch fish, but has another, more valuable power!<br>
|
||||
Did you catch anything? That bait was designed to catch something besides fish, by the way! If your fishing skill is level 12, you definitely should catch something with it! Have you found anything?<br>
|
||||
<a action="bypass -h Quest Q00028_ChestCaughtWithABaitOfIcyAir 31572-04.htm">"Why is that your business?"</a>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
Well, it's obvious you're not here to buy fishing gear! Have you ever been fishing? Try it once, you'll be hooked! Heh heh! I'm the man to see when you need bait!<br>
|
||||
(This quest may only be undertaken by characters of level 36 or above who have completed O'Fulle's Special Bait quest.)
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-03.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-03.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
Well, it's obvious you're not here to buy fishing gear!<br>
|
||||
Have you ever been fishing? Try it once, you'll be hooked!<br>
|
||||
Heh heh! I'm the man to see when you need bait!<br>
|
||||
(This quest may only be undertaken by characters of level 36 or above who have completed O'Fulle's Special Bait quest.)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
Well, I hate to bring this up, but a while back, someone asked me to find a <font color="LEVEL">large yellow treasure box</font>. The bait I gave you earlier was specifically designed to find it! Don't look at me like that! It wouldn't have worked if you had known!<br>
|
||||
I hope it won't be too much trouble for you to find the <font color="LEVEL">large yellow treasure box</font>. Use the <font color="LEVEL">bait of chill</font> to find it. You'll find this bait works best when your fishing skill level is exactly 12. Someone may have already found it, so you should also ask around in the market.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-05.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
Did you find the <font color="LEVEL">large yellow treasure box</font> If so, let me authenticate it! I'll open it to verify its contents.<br>
|
||||
<a action="bypass -h Quest Q00028_ChestCaughtWithABaitOfIcyAir 31572-08.htm">"Here it is."</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-06.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-06.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
Are you finished already? No? Please, find the <font color="LEVEL">large yellow treasure box</font>! If you can't find it by fishing, maybe you can get it from someone in the market.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-07.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-07.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
This seems to be the <font color="LEVEL">large yellow treasure box</font> that my client lost! When I opened it, it contained a letter addressed to Miss Kiki.<br>
|
||||
The Dwarves must've really hated to lose this one! They're always bragging that they've never lost an item! Take this chest to Mineral Trader Kiki.
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-08.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-08.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
Didn't you say you had found the <font color="LEVEL">large yellow treasure box</font>?<br>
|
||||
I must authenticate its contents!<br>
|
||||
If you opened it, it's useless!<br>
|
||||
You'll need to bring another, unopened one.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-09.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00028_ChestCaughtWithABaitOfIcyAir/31572-09.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
Why haven't you taken the chest to Miss Kiki yet? Take it to the Blacksmith Shop.<br>
|
||||
The Dwarves lost it in a shipwreck at the mouth of the river while delivering it to her. This loss would totally disgrace the Dwarves! Best to keep it to yourself!
|
||||
</body></html>
|
||||
@@ -0,0 +1,145 @@
|
||||
/*
|
||||
* 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.Q00028_ChestCaughtWithABaitOfIcyAir;
|
||||
|
||||
import quests.Q00051_OFullesSpecialBait.Q00051_OFullesSpecialBait;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Chest Caught With A Bait Of Icy Air (28)<br>
|
||||
* Original Jython script by Skeleton.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q00028_ChestCaughtWithABaitOfIcyAir extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int OFULLE = 31572;
|
||||
private static final int KIKI = 31442;
|
||||
// Items
|
||||
private static final int YELLOW_TREASURE_BOX = 6503;
|
||||
private static final int KIKIS_LETTER = 7626;
|
||||
private static final int ELVEN_RING = 881;
|
||||
|
||||
public Q00028_ChestCaughtWithABaitOfIcyAir()
|
||||
{
|
||||
super(28, Q00028_ChestCaughtWithABaitOfIcyAir.class.getSimpleName(), "Chest Caught With A Bait Of Icy Air");
|
||||
addStartNpc(OFULLE);
|
||||
addTalkId(OFULLE, KIKI);
|
||||
registerQuestItems(KIKIS_LETTER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31572-04.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31572-08.htm":
|
||||
if (st.isCond(1) && st.hasQuestItems(YELLOW_TREASURE_BOX))
|
||||
{
|
||||
st.giveItems(KIKIS_LETTER, 1);
|
||||
st.takeItems(YELLOW_TREASURE_BOX, -1);
|
||||
st.setCond(2, true);
|
||||
htmltext = "31572-07.htm";
|
||||
}
|
||||
break;
|
||||
case "31442-03.htm":
|
||||
if (st.isCond(2) && st.hasQuestItems(KIKIS_LETTER))
|
||||
{
|
||||
st.giveItems(ELVEN_RING, 1);
|
||||
st.exitQuest(false, true);
|
||||
htmltext = "31442-02.htm";
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
final int npcId = npc.getId();
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
case State.CREATED:
|
||||
final QuestState qs = player.getQuestState(Q00051_OFullesSpecialBait.class.getSimpleName());
|
||||
if (npcId == OFULLE)
|
||||
{
|
||||
htmltext = "31572-02.htm";
|
||||
if (qs != null)
|
||||
{
|
||||
htmltext = ((player.getLevel() >= 36) && qs.isCompleted()) ? "31572-01.htm" : htmltext;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case State.STARTED:
|
||||
switch (npcId)
|
||||
{
|
||||
case OFULLE:
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
htmltext = "31572-06.htm";
|
||||
if (st.hasQuestItems(YELLOW_TREASURE_BOX))
|
||||
{
|
||||
htmltext = "31572-05.htm";
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
htmltext = "31572-09.htm";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case KIKI:
|
||||
if (st.isCond(2))
|
||||
{
|
||||
htmltext = "31442-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user