This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Chief Ashas Varka Durai:<br>
|
||||
Our ancient battle against the Ketra Orcs continues to this very day. We must defeat them once and for all and reclaim our promised land! Who will join our fight?<br>
|
||||
<a action="bypass -h Quest Q00612_BattleAgainstKetraOrcs 31377-03.htm">"I will fight the Ketra Orcs."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Chief Ashas Varka Durai:<br>
|
||||
Your courage is admirable, but you're not quite ready for the fight. Improve your skills and come back.<br>
|
||||
(This quest may only be undertaken by characters of level 74 or above.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-03.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-03.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Chief Ashas Varka Durai:<br>
|
||||
Excellent! Raid the advance base of Ketra Orcs and kill as many as you can! Bring back their molars as proof of victory. Bring back 100 of them and I'll give you a prize of valor!
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-04.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-04.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Chief Ashas Varka Durai<br>
|
||||
My colleague, have you slaughtered many enemies, those barbarian Orcs of Ketra? Did you place the shadow of humiliation and disgrace upon them?<br>
|
||||
<a action="bypass -h Quest Q00612_BattleAgainstKetraOrcs 31377-06.html">"I will come back after killing more enemies."</a><br>
|
||||
<a action="bypass -h Quest Q00612_BattleAgainstKetraOrcs 31377-07.html">"I brought 100 molars for a start."</a><br>
|
||||
<a action="bypass -h Quest Q00612_BattleAgainstKetraOrcs 31377-09.html">"I'm going to quit fighting."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Chief Ashas Varka Durai:<br>
|
||||
Drive the Ketra Orcs from the promised land of the Varka! Don't let a single invader escape! Kill them all!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Chief Ashas Varka Durai:<br>
|
||||
The fight continues! Onward to victory!
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-07.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-07.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Chief Ashas Varka Durai:<br>
|
||||
Excellent job, my friend! Today's was a stellar victory! You're our hero! You shall be well rewarded! At one time, this Buffalo horn was given only to soldiers of our tribe. It's quite valuable! You could trade it for something you really need!<br>
|
||||
<a action="bypass -h Quest Q00612_BattleAgainstKetraOrcs 31377-06.html">"I want to go back to the battlefield."</a><br>
|
||||
<a action="bypass -h Quest Q00612_BattleAgainstKetraOrcs 31377-07.html">"I have more molars."</a><br>
|
||||
<a action="bypass -h Quest Q00612_BattleAgainstKetraOrcs 31377-09.html">"I want to quit."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-08.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-08.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Chief Ashas Varka Durai:<br>
|
||||
Didn't I ask for at least 100 molars of Ketra Orcs! Return to the battlefield now!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-09.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/31377-09.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Chief Ashas Varka Durai:<br>
|
||||
Even an invincible warrior must rest occasionally! You've done a noble service! Come back when you're rested!
|
||||
</body></html>
|
144
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/Q00612_BattleAgainstKetraOrcs.java
vendored
Normal file
144
trunk/dist/game/data/scripts/quests/Q00612_BattleAgainstKetraOrcs/Q00612_BattleAgainstKetraOrcs.java
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 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.Q00612_BattleAgainstKetraOrcs;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
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;
|
||||
|
||||
/**
|
||||
* Battle against Ketra Orcs (612)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00612_BattleAgainstKetraOrcs extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int ASHAS = 31377;
|
||||
// Monsters
|
||||
private static final Map<Integer, Integer> MOBS = new HashMap<>();
|
||||
static
|
||||
{
|
||||
MOBS.put(21324, 500); // Ketra Orc Footman
|
||||
MOBS.put(21327, 510); // Ketra Orc Raider
|
||||
MOBS.put(21328, 522); // Ketra Orc Scout
|
||||
MOBS.put(21329, 519); // Ketra Orc Shaman
|
||||
MOBS.put(21331, 529); // Ketra Orc Warrior
|
||||
MOBS.put(21332, 529); // Ketra Orc Lieutenant
|
||||
MOBS.put(21334, 539); // Ketra Orc Medium
|
||||
MOBS.put(21336, 548); // Ketra Orc White Captain
|
||||
MOBS.put(21338, 558); // Ketra Orc Seer
|
||||
MOBS.put(21339, 568); // Ketra Orc General
|
||||
MOBS.put(21340, 568); // Ketra Orc Battalion Commander
|
||||
MOBS.put(21342, 578); // Ketra Orc Grand Seer
|
||||
MOBS.put(21343, 664); // Ketra Commander
|
||||
MOBS.put(21345, 713); // Ketra's Head Shaman
|
||||
MOBS.put(21347, 738); // Ketra Prophet
|
||||
}
|
||||
// Items
|
||||
private static final int SEED = 7187;
|
||||
private static final int MOLAR = 7234;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 74;
|
||||
private static final int MOLAR_COUNT = 100;
|
||||
|
||||
public Q00612_BattleAgainstKetraOrcs()
|
||||
{
|
||||
super(612, Q00612_BattleAgainstKetraOrcs.class.getSimpleName(), "Battle against Ketra Orcs");
|
||||
addStartNpc(ASHAS);
|
||||
addTalkId(ASHAS);
|
||||
addKillId(MOBS.keySet());
|
||||
registerQuestItems(MOLAR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "31377-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31377-06.html":
|
||||
break;
|
||||
case "31377-07.html":
|
||||
if (st.getQuestItemsCount(MOLAR) < MOLAR_COUNT)
|
||||
{
|
||||
return "31377-08.html";
|
||||
}
|
||||
st.takeItems(MOLAR, MOLAR_COUNT);
|
||||
st.giveItems(SEED, 20);
|
||||
break;
|
||||
case "31377-09.html":
|
||||
st.exitQuest(true, true);
|
||||
break;
|
||||
default:
|
||||
htmltext = null;
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final L2PcInstance member = getRandomPartyMember(killer, 1);
|
||||
if ((member != null) && (getRandom(1000) < MOBS.get(npc.getId())))
|
||||
{
|
||||
final QuestState st = getQuestState(member, false);
|
||||
st.giveItems(MOLAR, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() >= MIN_LEVEL) ? "31377-01.htm" : "31377-02.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = (st.hasQuestItems(MOLAR)) ? "31377-04.html" : "31377-05.html";
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user