This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31256-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31256-01.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Leon:<br>
|
||||
All right. Guard Cadmon sent you here, didn't he? I'm glad you made it here. A number of young men have tried to come here, but they all ran away even before they reached the Orc barracks. I've sustained a great loss.<br>
|
||||
As you know, the Ketra Orcs are the most daring and ferocious tribe. They never lag behind in terms of body structure or strength. So those who are weak run away at the sight of those orcs, causing me a great deal of trouble. But since Cadmon sent you here and you seem to possess great skills, I guess I don't have to worry about that. The task is simple. Take this box of supplies to the Ketra Orc outpost and deliver them to <font color="LEVEL">Messenger Wahkan</font>. It won't be difficult to find Wahkan since he's staying in the base center. Although it may be a little difficult to enter the base...<br>
|
||||
<a action="bypass -h Quest Q00011_SecretMeetingWithKetraOrcs 31256-02.html">"OK. Entrust me with the task."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31256-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31256-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Trader Leon:<br>
|
||||
Man, you are really a dependable person. Don't forget.
|
||||
You must take the box of supplies to <font color="LEVEL">Messenger Wahkan of Ketra</font> at the Ketra Orc base.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31256-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31256-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Leon:<br>
|
||||
What are you doing? Take the box of supplies I gave you to Messenger Wahkan of Ketra. You are already running late. Hurry. They're very bad-tempered.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31296-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31296-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Cadmon:<br>
|
||||
Are you interested in the Ketra Orcs, stranger? Well, if you are, I can tell you an interesting story. Right now, the Ketra Orcs are hiring mercenaries! It's a great opportunity to get into their outpost under the pretext of delivering military supplies! Are you interested?<br>
|
||||
<a action="bypass -h Quest Q00011_SecretMeetingWithKetraOrcs 31296-03.html">"I'm interested!"</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31296-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31296-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Guard Cadmon:<br>
|
||||
I appreciate your interest, but the Ketra Orcs are some dangerous characters! You wouldn't stand a chance against them!<br>
|
||||
(Only a character of level 74 or above may undertake this quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31296-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31296-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Guard Cadmon:<br>
|
||||
Good! Find Trader Leon at the weapons and armor shop. He'll give you the details. Basically, you're delivering goods to them. The next step is up to you. You will either gain their trust or become their enemy!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31296-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31296-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Guard Cadmon:<br>
|
||||
Find Trader Leon in the weapons and armor shop to deliver military supplies to the Ketra Orcs.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31371-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31371-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Ketra's Messenger Wahkan:<br>
|
||||
What brings you to the land of the Ketra, stranger?<br>
|
||||
<a action="bypass -h Quest Q00011_SecretMeetingWithKetraOrcs 31371-02.html">"Here are some military supplies."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31371-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31371-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Ketra's Messenger Wahkan:<br>
|
||||
Good job, stranger.<br>
|
||||
Well, are you a mercenary? Will you fight alongside the Ketra Orcs?
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31371-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00011_SecretMeetingWithKetraOrcs/31371-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Ketra's Messenger Wahkan:<br>
|
||||
You don't have required items.
|
||||
</body></html>
|
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* 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.Q00011_SecretMeetingWithKetraOrcs;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Secret Meeting With Ketra Orcs (11)<br>
|
||||
* Original Jython script by Emperorc.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q00011_SecretMeetingWithKetraOrcs extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int CADMON = 31296;
|
||||
private static final int LEON = 31256;
|
||||
private static final int WAHKAN = 31371;
|
||||
// Item
|
||||
private static final int BOX = 7231;
|
||||
|
||||
public Q00011_SecretMeetingWithKetraOrcs()
|
||||
{
|
||||
super(11, Q00011_SecretMeetingWithKetraOrcs.class.getSimpleName(), "Secret Meeting With Ketra Orcs");
|
||||
addStartNpc(CADMON);
|
||||
addTalkId(CADMON, LEON, WAHKAN);
|
||||
registerQuestItems(BOX);
|
||||
}
|
||||
|
||||
@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 "31296-03.html":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31256-02.html":
|
||||
if (st.isCond(1))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
st.giveItems(BOX, 1);
|
||||
}
|
||||
break;
|
||||
case "31371-02.html":
|
||||
if (st.isCond(2) && st.hasQuestItems(BOX))
|
||||
{
|
||||
st.addExpAndSp(233125, 18142);
|
||||
st.exitQuest(false, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31371-03.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;
|
||||
}
|
||||
|
||||
int npcId = npc.getId();
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
case State.CREATED:
|
||||
if (npcId == CADMON)
|
||||
{
|
||||
htmltext = (player.getLevel() >= 74) ? "31296-01.htm" : "31296-02.html";
|
||||
}
|
||||
break;
|
||||
case State.STARTED:
|
||||
if ((npcId == CADMON) && st.isCond(1))
|
||||
{
|
||||
htmltext = "31296-04.html";
|
||||
}
|
||||
else if (npcId == LEON)
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "31256-01.html";
|
||||
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "31256-03.html";
|
||||
}
|
||||
}
|
||||
else if ((npcId == WAHKAN) && st.isCond(2))
|
||||
{
|
||||
htmltext = "31371-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user