Quest Lets Go Fishing (10407).
Contributed by gigilo1968.
This commit is contained in:
parent
81e3a7666c
commit
c4da9e6a6e
@ -76,7 +76,6 @@
|
||||
10357 Altar of Blood that Awakens Destruction
|
||||
10373 Exploring the Dimension - Sealing the Dimension
|
||||
10396 Witch of Spores
|
||||
10407 Let's Go Fishing
|
||||
10418 The Immortal Pirate King
|
||||
10456 Operation: Rescue
|
||||
10457 Kefensis' Illusion
|
||||
|
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-01.htm
vendored
Normal file
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-01.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Fishing Guild Member:<br>
|
||||
Could it be that you'd like to learn how to fish, but don't know where to start or don't have the necessary equipment? Oh, you've come to just the place. I have a great opportunity for you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-02.htm">"Go on.</Button>
|
||||
</body></html>
|
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-02.htm
vendored
Normal file
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-02.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Fishing Guild Member:<br>
|
||||
We give you the opportunity to learn and experience new things, in return for which you will be given fishing supplies. Would you like to try it out?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-03.htm">"Okay. I'd like to try it out."</Button>
|
||||
</body></html>
|
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-03.htm
vendored
Normal file
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-03.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Fishing Guild Member:<br>
|
||||
Good. Then I will give you a simple explanation first. Whatever it is you want to learn, you have to start with theory, right?<br>
|
||||
In order to fish, you need to find a <font color="LEVEL">fishing dock</font>. Once you arrive at the right spot, you'll see the button on the right side of your screen that alerts you that you can fish. If you see that button, it means you've found a right spot.<br>
|
||||
Fishing docks are at the <font color="LEVEL">Iris Lake, Narsell Lake, Giran Harbor, near the Plains of the Lizardmen, the banks near the Town of Gludio, the Neutral Zone, Heine, Fellmere Lake, and the bridge near the Town of Giran</font>. Understand so far?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-04.html">"I understand."</Button>
|
||||
</body></html>
|
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-04.html
vendored
Normal file
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-04.html
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Fishing Guild Member:<br>
|
||||
Then you'll need to prepare your fishing tools. You'll need <font color="LEVEL">Fishing Rod</font> and <font color="LEVEL">Bait</font>. You can only fish if you have them.<br>
|
||||
You can receive the Normal Bait from me, but if you want to catch more expensive fish, I recommend you use the Special Bait. I have never seen Special Bait, but I heard that you can get it from the boxes you get from fishing.<br>
|
||||
You can also purchase Fishing Rods from me, but for now, I will lend one to you for practice. If you already have it, feel free to use it. So, what do you think? Nothing difficult, hmm?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-05.html">"I understand."</Button>
|
||||
</body></html>
|
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-05.html
vendored
Normal file
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-05.html
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Fishing Guild Member O'Fulle:<br>
|
||||
Oh, one more thing. I need to tell you about the <font color="LEVEL">Fishing Shot</font>. This is a kind of the Soulshot made for fishing. Use it while fishing to <font color="LEVEL">increase your odds of catching a fish</font>. For added convenience, register it in tool tips to use it automatically.<br>
|
||||
Unfortunately, you're practicing at the moment, which means you're not eligible to receive a Fishing Shot just yet. If you take some time to prepare, you'll be done practicing in no time.<br>
|
||||
That should be everything I need to explain. Let's get practicing now!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-06.html">"Tell me about practice."</Button>
|
||||
</body></html>
|
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-06.html
vendored
Normal file
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-06.html
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Fishing Guild Member O'Fulle:<br>
|
||||
Well.. practice is... practice, what else? You'll be having a go at fishing. Find a fishing dock, and use the fishing tools to catch a fish.<br>
|
||||
First, let me give you the fishing tools I told you about. Your goal is to catch <font color="LEVEL">5 practice fish</font> using the fishing rod. Do that, and you're no longer a novice fisher.<br>
|
||||
Oh, remember that <font color="LEVEL">practice fish can only be caught using the practice bait</font> I'll be giving you. It isn't worth much, but you'll catch them faster than normal fish, and that makes them perfect for practice!<br>
|
||||
Good luck to you, then!
|
||||
</body></html>
|
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-07.html
vendored
Normal file
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-07.html
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Fishing Guild Member %name%:<br>
|
||||
You've not caught 5 practice fish yet. What brings you to me, then?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-08.html">"Tell me about fishing again."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing give_rod">"I need another practice fishing rod."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing give_bait">"I need some more practice bait."</Button>
|
||||
</body></html>
|
5
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-08.html
vendored
Normal file
5
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-08.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Fishing Guild Member :<br>
|
||||
You need explanation again? Sure, as many times as you need.<br>
|
||||
In order to fish, you need to find a <font color="LEVEL">fishing dock</font>. Once you arrive at the right spot, you'll see the button on the right side of your screen that alerts you that you can fish. If you see that button, it means you've found a right spot.<br>Fishing docks are at the <font color="LEVEL">Iris Lake, Narsell Lake, Giran Harbor, near the Plains of the Lizardmen, the banks near the Town of Gludio, the Neutral Zone, Heine, Fellmere Lake, and the bridge near the Town of Giran</font>. Understand so far?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-09.html">"I understand."</Button>
|
||||
</body></html>
|
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-09.html
vendored
Normal file
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-09.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Fishing Guild Member:<br>
|
||||
Then you'll need to prepare your fishing tools. You'll need a <font color="LEVEL">Fishing Rod</font> and <font color="LEVEL">Bait</font>. You can only fish if you have them. You can purchase these from me, but for now, I will lend them to you for practice. If you already have it, feel free to use it.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-10.html">"I understand."</Button>
|
||||
</body></html>
|
5
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-10.html
vendored
Normal file
5
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-10.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Fishing Guild Member:<br>
|
||||
Oh, one more thing. I need to tell you about the <font color="LEVEL">Fishing Shot</font>. This is a kind of the Soulshot made for fishing. Use it while fishing to <font color="LEVEL">increase your odds of catching a fish</font>. For added convenience, register it in tool tips to use it automatically. If you need to buy any, come to me.<br>
|
||||
That's all. Do you need me to go again?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-11.html">"All right, all right. I'm ready!"</Button>
|
||||
</body></html>
|
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-11.html
vendored
Normal file
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-11.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Fishing Guild Member:<br>
|
||||
Alright, that's all the explaining you need. Now go and get practicing again. Use the tools that I gave you before, and catch <font color="LEVEL">5 practice fish</font>.<br>
|
||||
Good luck to you, then!
|
||||
</body></html>
|
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-12.html
vendored
Normal file
6
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-12.html
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Fishing Guild Member %name%:<br>
|
||||
Before practicing, let me explain some things to you first. Whatever it is you might want to learn, you'll always want to start with theory.<br>
|
||||
In order to fish, you need to find a <font color="LEVEL">fishing dock</font>. Once you arrive at the right spot, you'll see the button on the right side of your screen that alerts you that you can fish. If you see that button, it means you've found a right spot.<br>
|
||||
Fishing docks are at the <font color="LEVEL">Iris Lake, Narsell Lake, Giran Harbor, near the Plains of the Lizardmen, the banks near the Town of Gludio, the Neutral Zone, Heine, Fellmere Lake, and the bridge near the Town of Giran</font>. Understand so far?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-04.html">"I understand."</Button>
|
||||
</body></html>
|
5
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-13.html
vendored
Normal file
5
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-13.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Fishing Guild Member %name%:<br>
|
||||
Ah, you've caught all the practice fish you need.<br>
|
||||
What did you think? Not too hard, eh?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10407_LetsGoFishing 31572-14.html">"Yes, I think so."</Button>
|
||||
</body></html>
|
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-14.html
vendored
Normal file
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/31572-14.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Fishing Guild Member:<br>
|
||||
Good job.<br>
|
||||
As a reward, here is a chest full of fishing tools. Why not pick up fishing as your favorite hobby? Hahaha!
|
||||
</body></html>
|
3
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/GiveBait.html
vendored
Normal file
3
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/GiveBait.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Fishing Guild Member %name%:<br>
|
||||
Hmm.. so you've used up all your bait, but not caught any fish? Well, may be I haven't given you enough, and since you won't get any fishing done without some bait, I'll give you some more. I hope you succeed this time around.
|
||||
</body></html>
|
3
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/GiveRod.html
vendored
Normal file
3
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/GiveRod.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Fishing Guild Member %name%:<br>
|
||||
Hmm.. so you've lost your fishing rod? Well, it's nothing expensive, and since you won't get any fishing done without a rod, I'll give you a new one. I hope you succeed this time around.
|
||||
</body></html>
|
239
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/Q10407_LetsGoFishing.java
vendored
Normal file
239
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/Q10407_LetsGoFishing.java
vendored
Normal file
@ -0,0 +1,239 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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.Q10407_LetsGoFishing;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.ListenerRegisterType;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.Id;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.RegisterEvent;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.RegisterType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.player.OnPlayerItemAdd;
|
||||
import com.l2jmobius.gameserver.model.holders.NpcLogListHolder;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||
|
||||
/**
|
||||
* Lets Go Fishing (10407)
|
||||
* @author Gigi
|
||||
* @date 2017-04-23 - [11:23:40]
|
||||
*/
|
||||
public class Q10407_LetsGoFishing extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int OFULLE = 31572;
|
||||
private static final int LINNAEUS = 31577;
|
||||
private static final int PERELIN = 31563;
|
||||
private static final int BLEAKER = 31567;
|
||||
private static final int CYANO = 31569;
|
||||
private static final int PAMFUS = 31568;
|
||||
private static final int LANOSCO = 31570;
|
||||
private static final int HUFS = 31571;
|
||||
private static final int MONAKAN = 31573;
|
||||
private static final int BERIX = 31576;
|
||||
private static final int LITULON = 31575;
|
||||
private static final int WILLIE = 31574;
|
||||
private static final int HILGENDORF = 31578;
|
||||
private static final int PLATIS = 31696;
|
||||
private static final int KLAUS = 31579;
|
||||
private static final int BATIDAE = 31989;
|
||||
private static final int EINDARKNER = 31697;
|
||||
private static final int GALBA = 32007;
|
||||
// Item
|
||||
private static final int PRACTICE_FISHING_ROD = 47580;
|
||||
private static final int PRACTICE_BAIT = 46737;
|
||||
private static final int PRACTICE_FISH = 46736;
|
||||
private static final int FISHING_SHOT = 38154;
|
||||
private static final int REWARD_FISHING_ROD_PACK = 46739;
|
||||
private static final int BAIT = 47547;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 85;
|
||||
private static final String COUNT_VAR = "FishCount";
|
||||
|
||||
public Q10407_LetsGoFishing()
|
||||
{
|
||||
super(10407);
|
||||
addStartNpc(OFULLE, LINNAEUS, PERELIN, BLEAKER, CYANO, PAMFUS, LANOSCO, HUFS, MONAKAN, BERIX, LITULON, WILLIE, HILGENDORF, PLATIS, KLAUS, BATIDAE, EINDARKNER, GALBA);
|
||||
addTalkId(OFULLE, LINNAEUS, PERELIN, BLEAKER, CYANO, PAMFUS, LANOSCO, HUFS, MONAKAN, BERIX, LITULON, WILLIE, HILGENDORF, PLATIS, KLAUS, BATIDAE, EINDARKNER, GALBA);
|
||||
registerQuestItems(PRACTICE_FISHING_ROD, PRACTICE_BAIT, PRACTICE_FISH);
|
||||
addCondMinLevel(MIN_LEVEL, "noLevel.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "31572-02.htm":
|
||||
case "31572-04.html":
|
||||
case "31572-05.html":
|
||||
case "31572-08.html":
|
||||
case "31572-09.html":
|
||||
case "31572-10.html":
|
||||
case "31572-11.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "give_rod":
|
||||
{
|
||||
if (!hasQuestItems(player, PRACTICE_FISHING_ROD))
|
||||
{
|
||||
giveItems(player, PRACTICE_FISHING_ROD, 1);
|
||||
htmltext = getHtm(player.getHtmlPrefix(), "GiveRod.html").replace("%name%", npc.getName());
|
||||
break;
|
||||
}
|
||||
htmltext = getHtm(player.getHtmlPrefix(), "noNeed.html").replace("%name%", npc.getName());
|
||||
break;
|
||||
}
|
||||
case "give_bait":
|
||||
{
|
||||
if (!hasQuestItems(player, PRACTICE_BAIT))
|
||||
{
|
||||
giveItems(player, PRACTICE_BAIT, 20);
|
||||
htmltext = getHtm(player.getHtmlPrefix(), "GiveBait.html").replace("%name%", npc.getName());
|
||||
break;
|
||||
}
|
||||
htmltext = getHtm(player.getHtmlPrefix(), "noNeed.html").replace("%name%", npc.getName());
|
||||
break;
|
||||
}
|
||||
case "31572-03.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31572-06.html":
|
||||
{
|
||||
giveItems(player, PRACTICE_FISHING_ROD, 1);
|
||||
giveItems(player, PRACTICE_BAIT, 20);
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31572-14.html":
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
addExpAndSp(player, 2469600, 2963);
|
||||
giveItems(player, FISHING_SHOT, 60);
|
||||
giveItems(player, REWARD_FISHING_ROD_PACK, 1);
|
||||
giveItems(player, BAIT, 60);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = null;
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = "31572-01.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = getHtm(player.getHtmlPrefix(), "31572-12.html").replace("%name%", npc.getName());
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = getHtm(player.getHtmlPrefix(), "31572-07.html").replace("%name%", npc.getName());
|
||||
}
|
||||
else if (qs.isCond(3))
|
||||
{
|
||||
htmltext = getHtm(player.getHtmlPrefix(), "31572-13.html").replace("%name%", npc.getName());
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@RegisterEvent(EventType.ON_PLAYER_ITEM_ADD)
|
||||
@RegisterType(ListenerRegisterType.ITEM)
|
||||
@Id(PRACTICE_FISH)
|
||||
public void onItemAdd(OnPlayerItemAdd event)
|
||||
{
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs != null)
|
||||
{
|
||||
int count = qs.getInt(COUNT_VAR);
|
||||
qs.set(COUNT_VAR, ++count);
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
if ((count >= 5) && (getQuestItemsCount(player, PRACTICE_FISH) == 5))
|
||||
{
|
||||
qs.setCond(0);
|
||||
qs.setCond(3, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendNpcLogList(player);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<NpcLogListHolder> getNpcLogList(L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && qs.isCond(2))
|
||||
{
|
||||
final int Count = qs.getInt(COUNT_VAR);
|
||||
if (Count > 0)
|
||||
{
|
||||
final Set<NpcLogListHolder> holder = new HashSet<>();
|
||||
holder.add(new NpcLogListHolder(NpcStringId.FISHING_PRACTICE, Count));
|
||||
return holder;
|
||||
}
|
||||
}
|
||||
return super.getNpcLogList(player);
|
||||
}
|
||||
}
|
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/noLevel.htm
vendored
Normal file
4
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/noLevel.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><head><body>Fishing Guild Member:<br>
|
||||
Look outside... it's a fine day for fishing. Hmm, what's that? Busy out of your mind hunting? Haha, alright, then. Hmm....<br>
|
||||
(Only characters above Lv. 85.)
|
||||
</body></html>
|
3
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/noNeed.html
vendored
Normal file
3
L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10407_LetsGoFishing/noNeed.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Fishing Guild Member %name%:<br>
|
||||
You already have what you need, and it appears there's no need for me to give you a new one. Please come back to me when you really need it.
|
||||
</body></html>
|
@ -289,6 +289,7 @@ import quests.Q10403_TheGuardianGiant.Q10403_TheGuardianGiant;
|
||||
import quests.Q10404_KekropusLetterAHiddenMeaning.Q10404_KekropusLetterAHiddenMeaning;
|
||||
import quests.Q10405_KartiasSeed.Q10405_KartiasSeed;
|
||||
import quests.Q10406_BeforeDarknessBearsFruit.Q10406_BeforeDarknessBearsFruit;
|
||||
import quests.Q10407_LetsGoFishing.Q10407_LetsGoFishing;
|
||||
import quests.Q10408_KekropusLetterTheSwampOfScreams.Q10408_KekropusLetterTheSwampOfScreams;
|
||||
import quests.Q10409_ASuspiciousVagabondInTheSwamp.Q10409_ASuspiciousVagabondInTheSwamp;
|
||||
import quests.Q10410_EmbryoInTheSwampOfScreams.Q10410_EmbryoInTheSwampOfScreams;
|
||||
@ -708,6 +709,7 @@ public class QuestMasterHandler
|
||||
Q10404_KekropusLetterAHiddenMeaning.class,
|
||||
Q10405_KartiasSeed.class,
|
||||
Q10406_BeforeDarknessBearsFruit.class,
|
||||
Q10407_LetsGoFishing.class,
|
||||
Q10408_KekropusLetterTheSwampOfScreams.class,
|
||||
Q10409_ASuspiciousVagabondInTheSwamp.class,
|
||||
Q10410_EmbryoInTheSwampOfScreams.class,
|
||||
|
@ -534,11 +534,15 @@
|
||||
<!-- Bait used to catch practice fish. Ineffective in catching other types of fish. -->
|
||||
<set name="icon" val="icon.etc_normal_lure" />
|
||||
<set name="default_action" val="EQUIP" />
|
||||
<set name="etcitem_type" val="LURE" />
|
||||
<set name="immediate_effect" val="true" />
|
||||
<set name="bodypart" val="lhand" />
|
||||
<set name="is_tradable" val="false" />
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_depositable" val="false" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="is_oly_restricted" val="true" />
|
||||
<set name="is_freightable" val="false" />
|
||||
</item>
|
||||
<item id="46738" name="Practice Fishing Rod" type="Weapon">
|
||||
<!-- A shoddy fishing rod that has been given to you for practice. It's fine for practice, though. -->
|
||||
@ -567,11 +571,15 @@
|
||||
<set name="icon" val="icon.etc_box_of_adventure_1_i00" />
|
||||
<set name="default_action" val="PEEL" />
|
||||
<set name="immediate_effect" val="true" />
|
||||
<set name="handler" val="ExtractableItems" />
|
||||
<set name="is_tradable" val="false" />
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_depositable" val="false" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<capsuled_items>
|
||||
<item id="46740" min="1" max="1" chance="100" /> <!-- Reward Fishing Rod -->
|
||||
</capsuled_items>
|
||||
</item>
|
||||
<item id="46740" name="Reward Fishing Rod" additionalName="7-day" type="Weapon">
|
||||
<!-- A fishing rod obtained by training in fishing. -->
|
||||
|
@ -494,23 +494,31 @@
|
||||
<!-- Fishing time: 105 seconds. Standby time: 15 seconds. Standard Fishing Bait. Fish using this bait to catch a Blueish Box with low probability. -->
|
||||
<set name="icon" val="icon.etc_normal_lure" />
|
||||
<set name="default_action" val="EQUIP" />
|
||||
<set name="etcitem_type" val="LURE" />
|
||||
<set name="immediate_effect" val="true" />
|
||||
<set name="bodypart" val="lhand" />
|
||||
<set name="price" val="3000" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="is_oly_restricted" val="true" />
|
||||
</item>
|
||||
<item id="47548" name="Bait" additionalName="R99" type="EtcItem">
|
||||
<!-- Fishing time: 105 seconds. Standby time: 15 seconds. Fishing bait that can be used by characters of Level 99 or higher. Fish using this bait to catch a Reddish Box with low probability. -->
|
||||
<set name="icon" val="icon.etc_huge_lure" />
|
||||
<set name="default_action" val="EQUIP" />
|
||||
<set name="etcitem_type" val="LURE" />
|
||||
<set name="immediate_effect" val="true" />
|
||||
<set name="bodypart" val="lhand" />
|
||||
<set name="price" val="20000" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="is_oly_restricted" val="true" />
|
||||
</item>
|
||||
<item id="47549" name="PC Cafe Bait" type="EtcItem">
|
||||
<!-- Fishing time: 105 seconds. Standby time: 15 seconds. Special Fishing Bait. Fish using this bait to catch a Purplish Box with low probability. Can be used outside PC Cafes. -->
|
||||
<set name="icon" val="icon.etc_bait_i01" />
|
||||
<set name="default_action" val="EQUIP" />
|
||||
<set name="etcitem_type" val="LURE" />
|
||||
<set name="immediate_effect" val="true" />
|
||||
<set name="bodypart" val="lhand" />
|
||||
<set name="is_tradable" val="false" />
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_depositable" val="false" />
|
||||
@ -538,13 +546,19 @@
|
||||
<item id="47553" name="Blueish Box" type="EtcItem">
|
||||
<!-- Double click to obtain the item. -->
|
||||
<set name="icon" val="icon.etc_treasure_box_i01" />
|
||||
<set name="default_action" val="SKILL_REDUCE_ON_SKILL_SUCCESS" />
|
||||
<set name="default_action" val="PEEL" />
|
||||
<set name="immediate_effect" val="true" />
|
||||
<set name="weight" val="10" />
|
||||
<set name="is_tradable" val="false" />
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_depositable" val="false" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="handler" val="ExtractableItems" />
|
||||
<capsuled_items>
|
||||
<item id="45494" min="1" max="1" chance="100" /> <!-- Sturdy Fishing Rod -->
|
||||
<item id="38154" min="50" max="50" chance="100" /> <!-- Fishing Shot -->
|
||||
</capsuled_items>
|
||||
</item>
|
||||
<item id="47554" name="Reddish Box" type="EtcItem">
|
||||
<!-- Double click to obtain the item. -->
|
||||
@ -867,6 +881,7 @@
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_depositable" val="false" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="time" val="60" />
|
||||
<stats>
|
||||
<stat type="pAtk">1</stat>
|
||||
<stat type="mAtk">1</stat>
|
||||
|
@ -12768,6 +12768,9 @@ public final class NpcStringId
|
||||
@ClientString(id = 540655, message = "Hah! You believe that is enough to stand in the path of darkness?")
|
||||
public static NpcStringId HAH_YOU_BELIEVE_THAT_IS_ENOUGH_TO_STAND_IN_THE_PATH_OF_DARKNESS;
|
||||
|
||||
@ClientString(id = 540712, message = "Fishing practice")
|
||||
public static NpcStringId FISHING_PRACTICE;
|
||||
|
||||
@ClientString(id = 540801, message = "Kekropus' Letter: The Swamp of Screams (Lv. 65-69)")
|
||||
public static NpcStringId KEKROPUS_LETTER_THE_SWAMP_OF_SCREAMS_LV_65_69;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user