This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Kadun Zu Ketra:<br>
|
||||
We must destroy the Varka Silenos, our ancient rivals! Who will join our cause?<br>
|
||||
<a action="bypass -h Quest Q00606_BattleAgainstVarkaSilenos 31370-03.htm">"I'll fight the Varka Silenos."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Kadun Zu Ketra:<br>
|
||||
Your courage is admirable, but your abilities are lacking! Come back when you've developed your skills a bit more.<br>
|
||||
(This quest may only be undertaken by a character of level 74 or above.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-03.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-03.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kadun Zu Ketra:<br>
|
||||
Attack the garrison of the Varka Silenos and kill as many of them as possible! Cut off their Shillien Manes and bring them back as proof of your valor! Bring back 100 of them and I'll give you a reward! Tejakar Ketra!
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-04.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-04.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kadun Zu Ketra:<br>
|
||||
My colleague, have you slaughtered our enemies, the warriors of Varka Silenos? Did you hear their pitiful cries of defeat?<br>
|
||||
<a action="bypass -h Quest Q00606_BattleAgainstVarkaSilenos 31370-06.html">"I will come back after killing more enemies."</a><br>
|
||||
<a action="bypass -h Quest Q00606_BattleAgainstVarkaSilenos 31370-07.html">"I brought 100 manes for a start."</a><br>
|
||||
<a action="bypass -h Quest Q00606_BattleAgainstVarkaSilenos 31370-09.html">"I want to quit."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kadun Zu Ketra:<br>
|
||||
Wipe out the enemy! Don't let any Varka Silenos survive! Kill them all!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kadun Zu Ketra:<br>
|
||||
The fight must go on! Victory is ours!
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-07.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-07.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kadun Zu Ketra:<br>
|
||||
Excellent! Today's victory will always be remembered! Oh, brave warrior! You'll be well-rewarded for your valor! At one time, this Buffalo horn was only given to the bravest soldiers of our tribe. It's quite valuable! You could trade it for something you really need!<br>
|
||||
<a action="bypass -h Quest Q00606_BattleAgainstVarkaSilenos 31370-06.html">"I want to go back to the battlefield."</a><br>
|
||||
<a action="bypass -h Quest Q00606_BattleAgainstVarkaSilenos 31370-07.html">"I have more manes."</a><br>
|
||||
<a action="bypass -h Quest Q00606_BattleAgainstVarkaSilenos 31370-09.html">"I want to quit."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-08.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-08.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kadun Zu Ketra:<br>
|
||||
Didn't I ask for at least 100 Shillien Manes? Return to the battlefield now!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-09.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00606_BattleAgainstVarkaSilenos/31370-09.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kadun Zu Ketra:<br>
|
||||
Even the most invincible warrior should take a break once in a while! You've done well! Come back when you're rested!
|
||||
</body></html>
|
@@ -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.Q00606_BattleAgainstVarkaSilenos;
|
||||
|
||||
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 Varka Silenos (606)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00606_BattleAgainstVarkaSilenos extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int KADUN = 31370;
|
||||
// Monsters
|
||||
private static final Map<Integer, Integer> MOBS = new HashMap<>();
|
||||
static
|
||||
{
|
||||
MOBS.put(21350, 500); // Varka Silenos Recruit
|
||||
MOBS.put(21353, 510); // Varka Silenos Scout
|
||||
MOBS.put(21354, 522); // Varka Silenos Hunter
|
||||
MOBS.put(21355, 519); // Varka Silenos Shaman
|
||||
MOBS.put(21357, 529); // Varka Silenos Priest
|
||||
MOBS.put(21358, 529); // Varka Silenos Warrior
|
||||
MOBS.put(21360, 539); // Varka Silenos Medium
|
||||
MOBS.put(21362, 539); // Varka Silenos Officer
|
||||
MOBS.put(21364, 558); // Varka Silenos Seer
|
||||
MOBS.put(21365, 568); // Varka Silenos Great Magus
|
||||
MOBS.put(21366, 568); // Varka Silenos General
|
||||
MOBS.put(21368, 568); // Varka Silenos Great Seer
|
||||
MOBS.put(21369, 664); // Varka's Commander
|
||||
MOBS.put(21371, 713); // Varka's Head Magus
|
||||
MOBS.put(21373, 738); // Varka's Prophet
|
||||
}
|
||||
// Items
|
||||
private static final int HORN = 7186;
|
||||
private static final int MANE = 7233;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 74;
|
||||
private static final int MANE_COUNT = 100;
|
||||
|
||||
public Q00606_BattleAgainstVarkaSilenos()
|
||||
{
|
||||
super(606, Q00606_BattleAgainstVarkaSilenos.class.getSimpleName(), "Battle against Varka Silenos");
|
||||
addStartNpc(KADUN);
|
||||
addTalkId(KADUN);
|
||||
addKillId(MOBS.keySet());
|
||||
registerQuestItems(MANE);
|
||||
}
|
||||
|
||||
@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 "31370-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31370-06.html":
|
||||
break;
|
||||
case "31370-07.html":
|
||||
if (st.getQuestItemsCount(MANE) < MANE_COUNT)
|
||||
{
|
||||
return "31370-08.html";
|
||||
}
|
||||
st.takeItems(MANE, MANE_COUNT);
|
||||
st.giveItems(HORN, 20);
|
||||
break;
|
||||
case "31370-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(MANE, 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) ? "31370-01.htm" : "31370-02.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = (st.hasQuestItems(MANE)) ? "31370-04.html" : "31370-05.html";
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user