This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<html><body>Fishermen's Guild Member Willie:<br>
Hi, traveler! You look like an experienced fisherman! You know, if you want to catch something really special, you've got to use special bait!<br>
I think you're ready for the big time, my friend! I suggest you try this bait made of Tarlk basilisk's eyes! It pulls the most incredible things from the deep! It's one of the most powerful of my products! It uses the power of the spirit of the land! Will you bring the materials I need to make it for you?<br>
<a action="bypass -h Quest Q00052_WilliesSpecialBait 31574-03.htm">What is it for anyways?</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Fishermen's Guild Member Willie:<br>
Hi, traveler! Have you ever been fishing? You'll find it much more relaxing than the life of a soldier! Why don't you come back and let me teach you to fish when you have the time. It won't be free, but your fishing skill should be exactly level 16.<br>
(This quest may only be undertaken by characters of level 48 or above.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Fishermen's Guild Member Willie:<br>
The powers of attraction of elements lie within the elements themselves. The elements are wind, ice, land and flame. Me and some of my buddies at the guild have figured out how to make bait from the elements! I use the power of land.<br>
To use it, you must travel all the way to the <font color="LEVEL">Forest of Outlaws in Oren</font>. There you'll find Tarlk basilisks, a middle-level spirits of land. Bring me <font color="LEVEL">100 Tarlk basilisks' eyes</font>. I'll make a very special bait for you.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Fishermen's Guild Member Willie:<br>
Good job, my friend! You brought everything I need to make the bait! You're really getting a good deal! Well, our guild wants to build our customer base, so we work for free! OK, give me the eyes...<br>
<a action="bypass -h Quest Q00052_WilliesSpecialBait 31574-07.html">"Here they are."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Fishermen's Guild Member Willie:<br>
I need 100 Tarlk basilisk's eyes to make the bait. I'm working for free, so the least you can do it bring me the materials I need! Go to the Forest of Outlaws, slaughter the <font color="LEVEL">Tarlk basilisks</font> and bring me their eyes.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Fishermen's Guild Member Willie:<br>
Thanks for the eyes. Take this <font color="LEVEL">bait of land</font>. It finds more valuable items than baits of wind or chill.<br>
Remember, this bait only works when your fishing level is exactly 16. Whether or not you land your catch will depend on your skill.<br>
Remember, if you catch anything besides fish, bring it to me unopened! Don't even bother bringing me opened boxes.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Fishermen's Guild Member Willie:<br>
There aren't 100 Tarlk basilisk's eyes here. This isn't enough to make bait!
</body></html>

View 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.Q00052_WilliesSpecialBait;
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;
/**
* Willie's Special Bait (52)<br>
* Original Jython script by Kilkenny.
* @author nonom
*/
public class Q00052_WilliesSpecialBait extends Quest
{
// NPCs
private static final int WILLIE = 31574;
private static final int TARLK_BASILISK = 20573;
// Items
private static final int TARLK_EYE = 7623;
private static final int EARTH_FISHING_LURE = 7612;
public Q00052_WilliesSpecialBait()
{
super(52, Q00052_WilliesSpecialBait.class.getSimpleName(), "Willie's Special Bait");
addStartNpc(WILLIE);
addTalkId(WILLIE);
addKillId(TARLK_BASILISK);
registerQuestItems(TARLK_EYE);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return getNoQuestMsg(player);
}
String htmltext = event;
switch (event)
{
case "31574-03.htm":
st.startQuest();
break;
case "31574-07.html":
if (st.isCond(2) && (st.getQuestItemsCount(TARLK_EYE) >= 100))
{
htmltext = "31574-06.htm";
st.giveItems(EARTH_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(TARLK_EYE) < 100)
{
float chance = 33 * Config.RATE_QUEST_DROP;
if (getRandom(100) < chance)
{
st.rewardItems(TARLK_EYE, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
if (st.getQuestItemsCount(TARLK_EYE) >= 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() >= 48) ? "31574-01.htm" : "31574-02.html";
break;
case State.STARTED:
htmltext = (st.isCond(1)) ? "31574-05.html" : "31574-04.html";
break;
}
return htmltext;
}
}