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,3 @@
<html><body>Fishing Guild Member Batidae:<br>
Oh, thank you so much! My son has returned to me and started learning to fish! Please, accept this token of my gratitude. I wish I could give you more... I'm just a poor fisherman, and I don't catch as many fish as I used to... I don't blame my son for wanting to run away from home, but what can I do... People will always need fish!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Ivan:<br>
Oh, you're an adventurer, aren't you? Phew... I'm Ivan. I'm a fisherman like my father! But to tell you the truth, I hate the smell of fish! So I left home... I've been wandering around this dangerous place, and now I'm thinking that maybe my father was right after all! I wish I could go back home... Please help me!!<br>
<a action="bypass -h Quest Q00651_RunawayYouth 32014-04.htm">"Here's a Scroll of Escape."</a><br>
<a action="bypass -h Quest Q00651_RunawayYouth 32014-03.html">"Get lost! I've got my own problems."</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Ivan:<br>
The boy appears not to trust you.<br>
He doesn't want to talk to you.<br>
(Only characters level 26 and above are permitted to take on this quest.)
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Ivan:<br>
Thanks to you, I can get home safely. Thank you again!<br>
My father is <font color="LEVEL">Batidae, a Fishing Guild Member of the Town of Schuttgart</font>.<br>
If you go there, please look for my father. He'll reward you.<br>
I'm leaving now... Good luck!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ivan:<br>
You're such a cold person... I never should've left home.... If I die out here, I will curse you and haunt you forever!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Ivan:<br>
Thank you so much! Now I can now get home safely. Again, thank you.<br>
My father is <font color="LEVEL">Batidae, a Fishing Guild Member of the Town of Schuttgart</font>.<br>
If you go there, please look for my father. He'll reward you.<br>
I'm leaving now... Good luck!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ivan:<br>
You don't have the Scroll of Escape... If you ever meet someone who has one, please ask them to help me! By all that is Holy, I beg you!
</body></html>

View File

@@ -0,0 +1,110 @@
/*
* 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.Q00651_RunawayYouth;
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;
/**
* Runaway Youth (651)
* @author malyelfik
*/
public class Q00651_RunawayYouth extends Quest
{
// NPCs
private static final int BATIDAE = 31989;
private static final int IVAN = 32014;
// Item
private static final int SOE = 736;
// Misc
private static final int MIN_LEVEL = 26;
public Q00651_RunawayYouth()
{
super(651, Q00651_RunawayYouth.class.getSimpleName(), "Runaway Youth");
addStartNpc(IVAN);
addTalkId(BATIDAE, IVAN);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
if (event.equals("32014-03.html"))
{
htmltext = event;
}
else if (event.equals("32014-04.htm"))
{
if (!st.hasQuestItems(SOE))
{
return "32014-05.htm";
}
st.startQuest();
st.takeItems(SOE, 1);
npc.deleteMe();
htmltext = event;
}
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 (npc.getId())
{
case IVAN:
switch (st.getState())
{
case State.CREATED:
htmltext = (player.getLevel() >= MIN_LEVEL) ? "32014-01.htm" : "32014-01a.htm";
break;
case State.STARTED:
htmltext = "32014-02.html";
break;
}
break;
case BATIDAE:
if (st.isStarted())
{
st.giveAdena(2883, true);
st.exitQuest(true, true);
htmltext = "31989-01.html";
}
break;
}
return htmltext;
}
}