This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31434-00.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31434-00.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Blueprint Seller Shaling:<br>
|
||||
Hello! what ca I do for you? Do you need the blueprint for an extraordinary golem? Sorry, but I have only ordinary ones left now.<br>
|
||||
Recently, I completed a really great golem bluprint, but I accidently dropped it off of the bridge and lost it! What a terrible loss!<br>
|
||||
<a action="bypass -h Quest Q00027_ChestCaughtWithABaitOfWind 31434-02.htm">"I found it!"</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31434-01.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31434-01.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blueprint Seller Shaling:<br>
|
||||
This is amazing! How did you find it? You must be a great adventurer! Thank you so much! Please accept this token of my appreciation!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31434-02.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31434-02.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blueprint Seller Shaling:<br>
|
||||
You said you'd found the blueprint, but you have neither the blueprint nor the box! Are you teasing me?
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
Hello again! You got the <font color="LEVEL">bait of wind</font> from me before. Did it work? Honestly, it's not intended to catch fish at all!<br>
|
||||
But you look rather pleased with yourself! Did you catch anything? Besides fish, I mean!<br>
|
||||
<a action="bypass -h Quest Q00027_ChestCaughtWithABaitOfWind 31570-03.htm">"What do you mean?"</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<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 27 or above who have completed Lanosco's Special Bait quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
A while back someone was here asking about a <font color="LEVEL">large blue treasure box</font>. The bait I gave you earlier was designed to find it! Don't look so hurt! It only works if the person using it doesn't know about it. If you haven't found it yet, please continue to look for it. Only you can use that bait now.<br>
|
||||
This should be easy for you! I can't tell you who the <font color="LEVEL">large blue treasure box</font> belongs to now, but I will if you find it! It was lost near the shore. Look for it there. Your fishing skill must be level 9 and you must bring the box to me unopened. Someone else may have found it by now, so make sure to ask around about it in the market.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
You're back! Did you finish your assignment already? Maybe I should've made it harder for you! Let me check it out... Is that the <font color="LEVEL">large blue treasure box</font>?<br>
|
||||
<a action="bypass -h Quest Q00027_ChestCaughtWithABaitOfWind 31570-05.htm">"Here it is."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-05.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-05.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
You're back! Did you finish your assignment already? No? Well then, by all means, go and find the <font color="LEVEL">large blue treasure box</font>. It won't be easy to find, but I'm really counting on you!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-06.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-06.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
I think this is the <font color="LEVEL">large blue treasure box</font> that my client lost. It seems to contain a blueprint of golem. The only blacksmith in this whole area capable of making such a thing is Shaling in this village. She told me recently that she had dropped a box containing a blueprint in the river while she was traveling. This must be it! Please take this blueprint of golem to Shaling in the Blacksmith Shop.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-07.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00027_ChestCaughtWithABaitOfWind/31570-07.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
Why haven't you gone to see Shaling yet? Take the blueprint of golem to her in the Blacksmith Shop immediately!
|
||||
</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.Q00027_ChestCaughtWithABaitOfWind;
|
||||
|
||||
import quests.Q00050_LanoscosSpecialBait.Q00050_LanoscosSpecialBait;
|
||||
|
||||
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 Wind (27)<br>
|
||||
* Original Jython script by DooMIta.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q00027_ChestCaughtWithABaitOfWind extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int LANOSCO = 31570;
|
||||
private static final int SHALING = 31434;
|
||||
// Items
|
||||
private static final int BLUE_TREASURE_BOX = 6500;
|
||||
private static final int STRANGE_BLUESPRINT = 7625;
|
||||
private static final int BLACK_PEARL_RING = 880;
|
||||
|
||||
public Q00027_ChestCaughtWithABaitOfWind()
|
||||
{
|
||||
super(27, Q00027_ChestCaughtWithABaitOfWind.class.getSimpleName(), "Chest Caught With A Bait Of Wind");
|
||||
addStartNpc(LANOSCO);
|
||||
addTalkId(LANOSCO, SHALING);
|
||||
registerQuestItems(STRANGE_BLUESPRINT);
|
||||
}
|
||||
|
||||
@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 "31570-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31570-05.htm":
|
||||
if (st.isCond(1) && st.hasQuestItems(BLUE_TREASURE_BOX))
|
||||
{
|
||||
htmltext = "31570-06.htm";
|
||||
st.setCond(2, true);
|
||||
st.giveItems(STRANGE_BLUESPRINT, 1);
|
||||
st.takeItems(BLUE_TREASURE_BOX, -1);
|
||||
}
|
||||
break;
|
||||
case "31434-02.htm":
|
||||
if (st.isCond(2) && st.hasQuestItems(STRANGE_BLUESPRINT))
|
||||
{
|
||||
st.giveItems(BLACK_PEARL_RING, 1);
|
||||
st.exitQuest(false, true);
|
||||
htmltext = "31434-01.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;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
case State.CREATED:
|
||||
final QuestState qs = player.getQuestState(Q00050_LanoscosSpecialBait.class.getSimpleName());
|
||||
if (npc.getId() == LANOSCO)
|
||||
{
|
||||
htmltext = "31570-02.htm";
|
||||
if (qs != null)
|
||||
{
|
||||
htmltext = ((player.getLevel() >= 27) && qs.isCompleted()) ? "31570-01.htm" : htmltext;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case State.STARTED:
|
||||
switch (npc.getId())
|
||||
{
|
||||
case LANOSCO:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
if (st.hasQuestItems(BLUE_TREASURE_BOX))
|
||||
{
|
||||
htmltext = "31570-04.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31570-05.htm";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31570-07.htm";
|
||||
}
|
||||
break;
|
||||
case SHALING:
|
||||
if (st.isCond(2))
|
||||
{
|
||||
htmltext = "31434-00.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user