This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/31979-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/31979-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Seer Moira:<br>
|
||||
Are you qualified to receive the blessings of Pa'agrio?<br>
|
||||
(Characters must have reached level 20 to undertake this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/31979-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/31979-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Seer Moira:<br>
|
||||
Oh, sighing rock! I'd like to end your wandering for good. Do you wish to help me do that?<br>
|
||||
<a action="bypass -h Quest Q00122_OminousNews 31979-02.htm">"Do you know the path I have to follow?"</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/31979-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/31979-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Seer Moira:<br>
|
||||
If you follow the path from the western part of the village, you'll meet someone who'll stop your wandering. His name is <font color="LEVEL">Karuda</font>.<br>
|
||||
When you meet him, tell him to wait.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/31979-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/31979-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Seer Moira:<br>
|
||||
Why are you still wandering around here? Follow the path in the western part of the village until you meet someone who'll stop your wandering. His name is <font color="LEVEL">Karuda.</font> Don't forget.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/32017-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/32017-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Karuda:<br>
|
||||
What misfortune brought you here? You don't want any part of what's happening here. This place is in chaos. Trust me, it's best if you just pass on by.<br>
|
||||
<a action="bypass -h Quest Q00122_OminousNews 32017-02.html">"The Seer Moira sent me."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/32017-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/32017-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Karuda:<br>
|
||||
Seer Moira sent you? Well, I'm sort of busy at the moment. Do you think you could come back again later? I do have a job for you. In fact, here's some money - a deposit to retain your services for the future.
|
||||
</body></html>
|
103
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/Q00122_OminousNews.java
vendored
Normal file
103
trunk/dist/game/data/scripts/quests/Q00122_OminousNews/Q00122_OminousNews.java
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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.Q00122_OminousNews;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Ominous News (122)<br>
|
||||
* Original Jython script by Polo.
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00122_OminousNews extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int MOIRA = 31979;
|
||||
private static final int KARUDA = 32017;
|
||||
|
||||
public Q00122_OminousNews()
|
||||
{
|
||||
super(122, Q00122_OminousNews.class.getSimpleName(), "Ominous News");
|
||||
addStartNpc(MOIRA);
|
||||
addTalkId(MOIRA, KARUDA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31979-02.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "32017-02.html":
|
||||
st.giveAdena(8923, true);
|
||||
st.addExpAndSp(45151, 2310);
|
||||
st.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@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 MOIRA:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() >= 20) ? "31979-01.htm" : "31979-00.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = "31979-03.html";
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case KARUDA:
|
||||
if (st.isStarted())
|
||||
{
|
||||
htmltext = "32017-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user