This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
Some time ago, I caught a few strange boxes while fishing. I thought it was strange to catch so many things that weren't fish! I quickly learned that some people will pay very well for these boxes! I think they're intrigued by the mystery of what's inside...<br>
|
||||
You must use a special bait to recover items from the water. This special bait uses the magical attraction of elements to change the polarity of sunken items and raise them to the surface! I mention this because I think you may be good at it!<br>
|
||||
<a action="bypass -h Quest Q00050_LanoscosSpecialBait 31570-03.htm">"What do you want me to do?"</a>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
Some time ago, I caught a few strange boxes while fishing. I thought it was strange to catch so many things that weren't fish! Most fishermen would've just thrown them back, but I know better! Some people will pay well for such things! They must be intrigued by not knowing what's inside... It could be something very expensive or completely worthless!<br>
|
||||
I have a knack for finding these boxes, but I can't show you how to do it yet.<br>
|
||||
(This quest may only be undertaken by a character of level 27 or above with a fishing skill of level 9.)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
The power to attract items by switching their polarity is present in all four elements. Wind, ice, land and flame each have unique attractions to submerged items. Me and some of my buddies here at the guild have learned to make bait that uses these attractions to retrieve lost items.<br>
|
||||
To use the power of wind, go to Windy Hill, far to the north of Gludin. You'll find some low-level wind spirits there known as singing winds. Collect <font color="LEVEL">100 essences of wind</font> and bring them to me. I'll make an special bait for you.
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-04.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-04.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
Thanks for your help. I can't get around to get the materials I need like I used to... Now I'll make the <font color="LEVEL">bait of wind</font> for you. I use the repulsive power between the elements of water and wind. Just as water and air don't mix, things that are underwater begin to float.<br>
|
||||
Now, give me the <font color="LEVEL">100 essences of wind</font>!<br>
|
||||
<a action="bypass -h Quest Q00050_LanoscosSpecialBait 31570-07.html">"Here they are."</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
You haven't brought the materials I need. You can get <font color="LEVEL">Essence of Wind</font> from <font color="LEVEL">the singing winds</font> on Windy Hill, far to the north of Gludin.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-06.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-06.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
You've obtained all of the Essence of Wind I need to make the bait. Please accept this as a token of my appreciation. This will increase your chances of finding lost treasure, but how often you actually land your catch will depend on your skill.<br>
|
||||
Your fishing skill should be exactly level 9 to obtain the optimum performance from this bait. If you're not level 9, you might consider giving to bait to someone who is. Remember, bring anything you recover to me unopened!
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/31570-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fishermen's Guild Member Lanosco:<br>
|
||||
You didn't bring enough ingredients! This isn't enough to make bait! You must bring more Essence of Wind!
|
||||
</body></html>
|
||||
134
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/Q00050_LanoscosSpecialBait.java
vendored
Normal file
134
trunk/dist/game/data/scripts/quests/Q00050_LanoscosSpecialBait/Q00050_LanoscosSpecialBait.java
vendored
Normal file
@@ -0,0 +1,134 @@
|
||||
/*
|
||||
* 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.Q00050_LanoscosSpecialBait;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
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;
|
||||
|
||||
/**
|
||||
* Lanosco's Special Bait (50)<br>
|
||||
* Original Jython script by Kilkenny.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q00050_LanoscosSpecialBait extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int LANOSCO = 31570;
|
||||
private static final int SINGING_WIND = 21026;
|
||||
// Items
|
||||
private static final int ESSENCE_OF_WIND = 7621;
|
||||
private static final int WIND_FISHING_LURE = 7610;
|
||||
|
||||
public Q00050_LanoscosSpecialBait()
|
||||
{
|
||||
super(50, Q00050_LanoscosSpecialBait.class.getSimpleName(), "Lanosco's Special Bait");
|
||||
addStartNpc(LANOSCO);
|
||||
addTalkId(LANOSCO);
|
||||
addKillId(SINGING_WIND);
|
||||
registerQuestItems(ESSENCE_OF_WIND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31570-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31570-07.html":
|
||||
if ((st.isCond(2)) && (st.getQuestItemsCount(ESSENCE_OF_WIND) >= 100))
|
||||
{
|
||||
htmltext = "31570-06.htm";
|
||||
st.giveItems(WIND_FISHING_LURE, 4);
|
||||
st.exitQuest(false, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final L2PcInstance partyMember = getRandomPartyMember(player, 1);
|
||||
if (partyMember == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
final QuestState st = getQuestState(partyMember, false);
|
||||
|
||||
if (st.getQuestItemsCount(ESSENCE_OF_WIND) < 100)
|
||||
{
|
||||
float chance = 33 * Config.RATE_QUEST_DROP;
|
||||
if (getRandom(100) < chance)
|
||||
{
|
||||
st.rewardItems(ESSENCE_OF_WIND, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
|
||||
if (st.getQuestItemsCount(ESSENCE_OF_WIND) >= 100)
|
||||
{
|
||||
st.setCond(2, true);
|
||||
|
||||
}
|
||||
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@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:
|
||||
htmltext = (player.getLevel() >= 27) ? "31570-01.htm" : "31570-02.html";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = (st.isCond(1)) ? "31570-05.html" : "31570-04.html";
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user