This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
I may look chipper, but I feel terrible! Recently a delivery of ingredients for our bait of chill was hijacked by <font color="LEVEL">fettered souls</font> at the <font color="LEVEL">Death Pass</font>! It was several years worth of supplies! A devastating loss!<br>
|
||||
Are you here for bait? Sorry, I couldn't make any if I wanted to. What can I do?<br>
|
||||
<a action="bypass -h Quest Q00051_OFullesSpecialBait 31572-03.htm">"I'll help you."</a>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
A while back, I ordered some special seeds from Goddard that are designed for cold weather. The flowers of the plants are used to make a very special bait! They're called ice snow flowers because they bloom in the dead of winter. All of my order was stolen by bandits, and with the chaos left after the war, I haven't been able to order any more! But I'm just a poor fisherman, and no better equipped to deal with them than you are!<br>
|
||||
(This quest may only be undertaken by characters of level 36 or above.)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
A while back, I ordered some special seeds from Goddard that are designed for cold weather. The flowers of the plants are used to make bait of chill. My entire order was stolen by fettered souls! In the chaos left after the war, I haven't been able to order any more. I'm just a poor fisherman, and not equipped to deal with those ruffians!<br>
|
||||
Would you help me? Bring me <font color="LEVEL">100 of the lost bait materials</font> from the <font color="LEVEL">fettered souls</font> at the <font color="LEVEL">Death Pass</font>. I'll make <font color="LEVEL">bait of chill</font> for you.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
Did you recover my stolen bait materials? Awesome! Please accept this <font color="LEVEL">bait of chill</font> from my inventory as a token of my gratitude! Please give me the <font color="LEVEL">100 lost bait materials</font> that you found!<br>
|
||||
<a action="bypass -h Quest Q00051_OFullesSpecialBait 31572-07.html">"Here they are."</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
You haven't recovered the <font color="LEVEL">lost bait materials</font> from the <font color="LEVEL">fettered souls</font> at the Death Pass in northern Giran yet? Go on! They're no use to those beasts, anyway!
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-06.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-06.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
Well, you could've brought more... Oh well, take this <font color="LEVEL">bait of chill</font>. It will increase your chance of finding lost items in the water. No good at all for catching fish, though! You won't always land your catch with this bait.<br>
|
||||
It works best if your fishing skill is exactly level 12. If it's not, you should consider giving it to someone who can use it more effectively. Remember, bring anything you recover to me unopened!
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/31572-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fishermen's Guild Member O'Fulle:<br>
|
||||
You say that you brought 100 bait materials, but you don't seem to have brought enough for me to make bait! Honestly, I'm more interested in getting rid of the bandits than getting the bait materials back! Get busy, will you?
|
||||
</body></html>
|
||||
130
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/Q00051_OFullesSpecialBait.java
vendored
Normal file
130
trunk/dist/game/data/scripts/quests/Q00051_OFullesSpecialBait/Q00051_OFullesSpecialBait.java
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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.Q00051_OFullesSpecialBait;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* O'Fulle's Special Bait (51)<br>
|
||||
* Original Jython script by Kilkenny.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q00051_OFullesSpecialBait extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int OFULLE = 31572;
|
||||
private static final int FETTERED_SOUL = 20552;
|
||||
// Items
|
||||
private static final int LOST_BAIT = 7622;
|
||||
private static final int ICY_AIR_LURE = 7611;
|
||||
|
||||
public Q00051_OFullesSpecialBait()
|
||||
{
|
||||
super(51, Q00051_OFullesSpecialBait.class.getSimpleName(), "O'Fulle's Special Bait");
|
||||
addStartNpc(OFULLE);
|
||||
addTalkId(OFULLE);
|
||||
addKillId(FETTERED_SOUL);
|
||||
registerQuestItems(LOST_BAIT);
|
||||
}
|
||||
|
||||
@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 "31572-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31572-07.html":
|
||||
if ((st.isCond(2)) && (st.getQuestItemsCount(LOST_BAIT) >= 100))
|
||||
{
|
||||
htmltext = "31572-06.htm";
|
||||
st.giveItems(ICY_AIR_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(LOST_BAIT) < 100)
|
||||
{
|
||||
float chance = 33 * Config.RATE_QUEST_DROP;
|
||||
if (getRandom(100) < chance)
|
||||
{
|
||||
st.rewardItems(LOST_BAIT, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
|
||||
if (st.getQuestItemsCount(LOST_BAIT) >= 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() >= 36) ? "31572-01.htm" : "31572-02.html";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = (st.isCond(1)) ? "31572-05.html" : "31572-04.html";
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user