This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31263-00.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31263-00.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Liesel:<br>
|
||||
My friend left home to study archaeology a couple of years ago. His mother was just overcome by disease.<br>
|
||||
Could you deliver her last letter to him?<br>
|
||||
<a action="bypass -h Quest Q00014_WhereaboutsOfTheArchaeologist 31263-02.html">Yes</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31263-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31263-01.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Liesel:<br>
|
||||
My friend left to study archaeology at the Imperial Tomb a few years ago. I have a letter for him,
|
||||
but I think you aren't capable enough to handle this delivery yet.<br>
|
||||
(This quest may only be undertaken by a character of level 74 or above.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31263-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31263-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Liesel:<br>
|
||||
He may be hard to find, but his last letter mentioned the <font color="LEVEL">Imperial Tomb</font>. Maybe you can find him there!
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31538-00.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31538-00.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Ghost of Adventurer:<br>
|
||||
Huh? You were asked to give me this letter? Who writes a letter to a dead person? Hmm...Let me see...<br>
|
||||
Oh, it's from my mother! It's been so long since I've seen her! How is she?<br>
|
||||
<a action="bypass -h Quest Q00014_WhereaboutsOfTheArchaeologist 31538-01.html">Your mother is dead.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31538-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31538-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Ghost of Adventurer:<br>
|
||||
Oh, yes, I see. Well, I could never let her see me like this, anyway!<br>
|
||||
Thank you for bringing the letter to me. Please accept this token of my appreciation.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31538-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00014_WhereaboutsOfTheArchaeologist/31538-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Ghost of Adventurer:<br>
|
||||
You don't have the required items.
|
||||
</body></html>
|
@@ -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.Q00014_WhereaboutsOfTheArchaeologist;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Whereabouts of the Archaeologist (14)<br>
|
||||
* Original Jython script by disKret.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q00014_WhereaboutsOfTheArchaeologist extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int LIESEL = 31263;
|
||||
private static final int GHOST_OF_ADVENTURER = 31538;
|
||||
// Item
|
||||
private static final int LETTER = 7253;
|
||||
|
||||
public Q00014_WhereaboutsOfTheArchaeologist()
|
||||
{
|
||||
super(14, Q00014_WhereaboutsOfTheArchaeologist.class.getSimpleName(), "Whereabouts of the Archaeologist");
|
||||
addStartNpc(LIESEL);
|
||||
addTalkId(LIESEL, GHOST_OF_ADVENTURER);
|
||||
registerQuestItems(LETTER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31263-02.html":
|
||||
st.startQuest();
|
||||
st.giveItems(LETTER, 1);
|
||||
break;
|
||||
case "31538-01.html":
|
||||
if (st.isCond(1) && st.hasQuestItems(LETTER))
|
||||
{
|
||||
st.giveAdena(136928, true);
|
||||
st.addExpAndSp(325881, 32524);
|
||||
st.exitQuest(false, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31538-02.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
final int npcId = npc.getId();
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
case State.CREATED:
|
||||
if (npcId == LIESEL)
|
||||
{
|
||||
htmltext = (player.getLevel() < 74) ? "31263-01.html" : "31263-00.htm";
|
||||
}
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
switch (npcId)
|
||||
{
|
||||
case LIESEL:
|
||||
htmltext = "31263-02.html";
|
||||
break;
|
||||
case GHOST_OF_ADVENTURER:
|
||||
htmltext = "31538-00.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user