This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/30909-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/30909-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Anabel:<br>
|
||||
Neither love nor friendship will ever last between a mortal Human and an Elf.<br>
|
||||
They fade with time, but memories, they'll last forever. What can I do for you?<br>
|
||||
<a action="bypass -h Quest Q00029_ChestCaughtWithABaitOfEarth 30909-03.htm">"I found the box with the names Anabel and Liesel on it."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/30909-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/30909-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Magister Anabel:<br>
|
||||
Really? I asked Willie to find it for me... That bait has power beyond normal magic. It draws on the four elements of nature, earth, water, fire and air. The lost items find their own way in the water through the elements in the bait rather than trying to catch them with magic. I've studied magic for a hundred years, and I could never come up with that!<br>
|
||||
Ah, Liesel. I miss her so much. We met long ago, and swore we would be friends forever. We made this Secret Box and buried it in the sand on Talking Island, where it was washed away by the waves. I am now 400 years old and she was Human, so only her ancestors are left. For this memory of my past, I offer you this gift, please take it.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/30909-03.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/30909-03.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Magister Anabel:<br>
|
||||
A box with our names? Ah Liesel, I miss her so. You don't have the box with you, but if you find it, please bring it to me.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-01.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-01.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Fishermen's Guild Member Willie:<br>
|
||||
Did the bait of land that I gave you work?<br>
|
||||
Mastering the spirits of land can be tricky, but it's worth the effort.<br>
|
||||
You may find that you catch more than you bargained for! Actually, this bait isn't intended to catch fish at all! We've had a few complaints about that...<br>
|
||||
<a action="bypass -h Quest Q00029_ChestCaughtWithABaitOfEarth 31574-04.htm">"What's it good for, then?"</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member Willie:<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 think of when you need bait!<br>
|
||||
(This quest may only be undertaken by characters of level 48 or above who have completed Willie's Special Bait quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member Willie:<br>
|
||||
A while back someone was here asking about a <font color="LEVEL">small purple treasure box</font>. The bait that I gave you before was designed to find it. The problem is that the bait occasionally catches other things, but it's the best hope you have of recovering the box. If you've found the box, please give it to me. If not, I must ask you to go and find it for me.<br>
|
||||
I apologize for being untruthful earlier. The bait works better if the fisherman doesn't know about its properties. Bring me the <font color="LEVEL">small purple treasure box</font> and I'll tell you who it belongs to! He lost it near the shore. Look for it there. Remember, your fishing skill must be level 16, and you must bring the box to me unopened. Someone else may have already found it, so ask around in the market.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-05.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member Willie:<br>
|
||||
Certainly you're not finished already! I don't believe it! Have you already found the <font color="LEVEL">small purple treasure box</font>? Let me see it!<br>
|
||||
<a action="bypass -h Quest Q00029_ChestCaughtWithABaitOfEarth 31574-08.htm">"Here it is."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-06.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-06.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fishermen's Guild Member Willie:<br>
|
||||
Welcome back! You've already finished, eh? No? Well, I don't have all day, buddy! Bring me the <font color="LEVEL">small purple treasure box</font>. I realize it's like looking for a needle in a haystack, but I'm counting on you! Maybe you should ask around in the market... Someone may have already found it!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-07.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-07.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member Willie:<br>
|
||||
This seems to be the <font color="LEVEL">small purple treasure box</font> that my client lost. When I opened it, I found this <font color="LEVEL">Small Glass Box</font>.<br>
|
||||
It has the names of <font color="LEVEL">Anabel</font> and <font color="LEVEL">Liesel</font> engraved on it. I don't know who Liesel is, but Anabel is my client. Anabel is a Magister in Heine Castle Town. She's kept the temple there for centuries. Please deliver this glass box to her.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-08.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-08.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fishermen's Guild Member Willie:<br>
|
||||
Didn't you say you found the <font color="LEVEL">small purple treasure box</font>? I must authenticate its contents. If you opened it, it's useless! You'll need to bring another one. You don't seem to have the box.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-09.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00029_ChestCaughtWithABaitOfEarth/31574-09.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member Willie:<br>
|
||||
Why haven't you taken the glass box to Anabel in Heine Castle Town?<br>
|
||||
She's been waiting for it an awful long time. I'm sure she's anxious to get it back!
|
||||
</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.Q00029_ChestCaughtWithABaitOfEarth;
|
||||
|
||||
import quests.Q00052_WilliesSpecialBait.Q00052_WilliesSpecialBait;
|
||||
|
||||
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 Earth (29)<br>
|
||||
* Original Jython script by Skeleton.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q00029_ChestCaughtWithABaitOfEarth extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int WILLIE = 31574;
|
||||
private static final int ANABEL = 30909;
|
||||
// Items
|
||||
private static final int PURPLE_TREASURE_BOX = 6507;
|
||||
private static final int SMALL_GLASS_BOX = 7627;
|
||||
private static final int PLATED_LEATHER_GLOVES = 2455;
|
||||
|
||||
public Q00029_ChestCaughtWithABaitOfEarth()
|
||||
{
|
||||
super(29, Q00029_ChestCaughtWithABaitOfEarth.class.getSimpleName(), "Chest Caught With A Bait Of Earth");
|
||||
addStartNpc(WILLIE);
|
||||
addTalkId(WILLIE, ANABEL);
|
||||
registerQuestItems(SMALL_GLASS_BOX);
|
||||
}
|
||||
|
||||
@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 "31574-04.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31574-08.htm":
|
||||
if (st.isCond(1) && st.hasQuestItems(PURPLE_TREASURE_BOX))
|
||||
{
|
||||
st.giveItems(SMALL_GLASS_BOX, 1);
|
||||
st.takeItems(PURPLE_TREASURE_BOX, -1);
|
||||
st.setCond(2, true);
|
||||
htmltext = "31574-07.htm";
|
||||
}
|
||||
break;
|
||||
case "30909-03.htm":
|
||||
if (st.isCond(2) && st.hasQuestItems(SMALL_GLASS_BOX))
|
||||
{
|
||||
st.giveItems(PLATED_LEATHER_GLOVES, 1);
|
||||
st.exitQuest(false, true);
|
||||
htmltext = "30909-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(Q00052_WilliesSpecialBait.class.getSimpleName());
|
||||
if (npcId == WILLIE)
|
||||
{
|
||||
htmltext = "31574-02.htm";
|
||||
if (qs != null)
|
||||
{
|
||||
htmltext = ((player.getLevel() >= 48) && qs.isCompleted()) ? "31574-01.htm" : htmltext;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case State.STARTED:
|
||||
switch (npcId)
|
||||
{
|
||||
case WILLIE:
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
htmltext = "31574-06.htm";
|
||||
if (st.hasQuestItems(PURPLE_TREASURE_BOX))
|
||||
{
|
||||
htmltext = "31574-05.htm";
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
htmltext = "31574-09.htm";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case ANABEL:
|
||||
if (st.isCond(2))
|
||||
{
|
||||
htmltext = "30909-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user