This commit is contained in:
3
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/30180-01.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/30180-01.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Sara:<br>
|
||||
Thank you so much! My father-in-law came home safely, thanks to your help. You made him very happy, by the way! He hadn't met any fellow adventurers for quite a while. Please accept this as a token of my appreciation! Thank you again.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/30180-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/30180-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Sara:<br>
|
||||
I'm so sorry. I thought you were just a customer... You're the one who helped my father-in-law! Unfortunately, he was seriously injured on the way home by monsters! Luckily, he escaped with his life and is now at home. But still, you helped him make it out alive. Thank you so much! (Because the old man was injured, you don't have the heart to ask for a reward.)
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Tantan:<br>
|
||||
Ah-ha! You're a novice adventurer... I haven't met anyone like you on the plains for a long time. I'm Tantan. I may be old now, but in my day, I was a famous adventurer! You've heard of me, haven't you? Those young fellows in the village say I'm making it all up! Youngsters these days are just plain rude! So, I've come all the way out here to catch some monsters to show them. I'm out of Soulshots, and my strength is not what it used to be... I'm in a bit of a fix...<br>
|
||||
<a action="bypass -h Quest Q00652_AnAgedExAdventurer 32012-04.htm">"I'll share 100 C-grade Soulshots with you. Please make your way home safely with these."</a><br>
|
||||
<a action="bypass -h Quest Q00652_AnAgedExAdventurer 32012-03.html">"I've got problems of my own! Beat it!"</a>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-01a.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-01a.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Tantan:<br>
|
||||
Ah-ha! You're a novice adventurer... I haven't met anyone like you on the plains for a long time. I'm Tantan. I may be old now, but in my day, I was a famous adventurer! You've heard of me, haven't you? Those young fellows in the village say I'm making it all up! Youngsters these days are just plain rude! So, I've come all the way out here to catch some monsters to show them. I'm out of Soulshots, and my strength is not what it used to be... I'm in a bit of a fix...<br>
|
||||
If you were a little more experienced, I would've asked for your help.<br>
|
||||
Take care of yourself.<br>
|
||||
(Only characters of level 46 or above may undertake this quest.)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tantan:<br>
|
||||
You were the young fellow who helped me out! Thanks to you, I can now fight a monster if I meet one on my way back home... Thank you!<br>
|
||||
If you ever visit <font color="LEVEL">the Town of Oren</font>... speak with <font color="LEVEL">Grocer Sara</font>! She's my daughter-in-law and will reward you for your good heart.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Tantan:<br>
|
||||
Hump! Very well. Never mind an old fart like me, just go about your business! Like I said, young ones these days are just plain rude! It's different from my day... I want to go back home to my daughter-in-law...
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-04.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-04.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Tantan:<br>
|
||||
Thank you so much... There is still chivalry left in this world! You've made me realize that I can still have adventures! I'll show those whippersnappers! It's so nice to meet someone like you who understands me..<br>
|
||||
If you ever visit <font color="LEVEL">the Town of Oren</font>... speak with <font color="LEVEL">Grocer Sara</font>, my daughter-in-law. She's a good one who's always worrying about me... She'll reward you for your good heart.<br>
|
||||
I'm going back home then...<br>
|
||||
Good luck.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/32012-05.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tantan:<br>
|
||||
I guess you've used all your Soulshots... If you happen to meet any adventurers who have Soulshots... Would you ask them to help me out? Good luck!<br>
|
||||
(You need 100 C-grade Soulshots.)
|
||||
</body></html>
|
||||
119
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/Q00652_AnAgedExAdventurer.java
vendored
Normal file
119
trunk/dist/game/data/scripts/quests/Q00652_AnAgedExAdventurer/Q00652_AnAgedExAdventurer.java
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* 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.Q00652_AnAgedExAdventurer;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* An Aged Ex-Adventurer (652)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00652_AnAgedExAdventurer extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int TANTAN = 32012;
|
||||
private static final int SARA = 30180;
|
||||
// Items
|
||||
private static final int SOULSHOT_C = 1464;
|
||||
private static final int ENCHANT_ARMOR_D = 956;
|
||||
|
||||
public Q00652_AnAgedExAdventurer()
|
||||
{
|
||||
super(652, Q00652_AnAgedExAdventurer.class.getSimpleName(), "An Aged Ex-Adventurer");
|
||||
addStartNpc(TANTAN);
|
||||
addTalkId(TANTAN, SARA);
|
||||
}
|
||||
|
||||
@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("32012-04.htm"))
|
||||
{
|
||||
if (st.getQuestItemsCount(SOULSHOT_C) < 100)
|
||||
{
|
||||
return "32012-05.htm";
|
||||
}
|
||||
|
||||
st.startQuest();
|
||||
st.takeItems(SOULSHOT_C, 100);
|
||||
npc.deleteMe();
|
||||
htmltext = event;
|
||||
}
|
||||
else if (event.equals("32012-03.html"))
|
||||
{
|
||||
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 TANTAN:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() >= 46) ? "32012-01.htm" : "32012-01a.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = "32012-02.html";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case SARA:
|
||||
if (st.isStarted())
|
||||
{
|
||||
if (getRandom(10) <= 4)
|
||||
{
|
||||
st.giveItems(ENCHANT_ARMOR_D, 1);
|
||||
st.giveAdena(5026, true);
|
||||
htmltext = "30180-01.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
st.giveAdena(10000, true);
|
||||
htmltext = "30180-02.html";
|
||||
}
|
||||
st.exitQuest(true, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user