This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Chief Ashas Varka Durai:<br>
The time has come for the Varka to strike back! If we are to prevail, we must first slay the commander of Ketra Orcs! Who will step forward to kill this beast?<br>
<a action="bypass -h Quest Q00614_SlayTheEnemyCommanderVarka 31377-04.htm">I'll do it!</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Chief Ashas Varka Durai:<br>
The time has not yet come. If we are to achieve victory, we must have patience. A superior strategist waits patiently for just the right moment... and when that moment comes... he strikes!<br>
(Only characters who possess the mark of Varka's friend - 4th level can undertake this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Chief Ashas Varka Durai:<br>
You're not quite ready. Go improve your skills!<br>
(This quest may only be undertaken by characters of level 75 or above.)
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Chief Ashas Varka Durai:<br>
Are you ready? You've already defeated Hekaton, hero of the Ketra, you should be able to defeat Tayre as well!<br>
Tayre is the commander of Ketra forces. He's a typical savage, little more than a beast! He has cruelly massacred hundreds of Varka soldiers! He must be stopped! Kill Tayre, cut off his head and bring it to me!<br>
Bear this in mind! Commander Tayre is every bit as powerful as Hekaton! You're strong but you can't fight him alone! Take some friends with you!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Chief Ashas Varka Durai:<br>
Dear friend of Varka, have you brought the Head of Tayre, the commander of the Ketras?<br>
<a action="bypass -h Quest Q00614_SlayTheEnemyCommanderVarka 31377-07.html">"Here's Tayre's head."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Chief Ashas Varka Durai:<br>
I await the news of your victory! You are very brave! Kill Tayre, the commander of the Ketra forces and bring back his head!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Chief Ashas Varka Durai:<br>
Is this the Head of Tayre? Ugly bastard, wasn't he? I'm very proud of you! Take this Feather of Wisdom in recognition your outstanding military achievements. This is the Feather of Wisdom. It's the custom of the Varka to give this to the our most respected friends! Congratulations!
</body></html>

View File

@@ -0,0 +1,127 @@
/*
* 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.Q00614_SlayTheEnemyCommanderVarka;
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;
import com.l2jserver.gameserver.util.Util;
/**
* Slay the Enemy Commander! (Varka) (614)
* @author malyelfik
*/
public class Q00614_SlayTheEnemyCommanderVarka extends Quest
{
// NPC
private static final int ASHAS = 31377;
// Monster
private static final int TAYR = 25302;
// Items
private static final int TAYR_HEAD = 7241;
private static final int WISDOM_FEATHER = 7230;
private static final int VARKA_ALLIANCE_FOUR = 7224;
// Misc
private static final int MIN_LEVEL = 75;
public Q00614_SlayTheEnemyCommanderVarka()
{
super(614, Q00614_SlayTheEnemyCommanderVarka.class.getSimpleName(), "Slay the Enemy Commander! (Varka)");
addStartNpc(ASHAS);
addTalkId(ASHAS);
addKillId(TAYR);
registerQuestItems(TAYR_HEAD);
}
@Override
public void actionForEachPlayer(L2PcInstance player, L2Npc npc, boolean isSummon)
{
final QuestState st = getQuestState(player, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, player, false))
{
st.giveItems(TAYR_HEAD, 1);
st.setCond(2, true);
}
}
@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-04.htm":
st.startQuest();
break;
case "31377-07.html":
if (st.hasQuestItems(TAYR_HEAD) && st.isCond(2))
{
st.giveItems(WISDOM_FEATHER, 1);
st.addExpAndSp(10000, 0);
st.exitQuest(true, true);
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
default:
htmltext = null;
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
executeForEachPlayer(killer, npc, isSummon, true, false);
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) ? (st.hasQuestItems(VARKA_ALLIANCE_FOUR)) ? "31377-01.htm" : "31377-02.htm" : "31377-03.htm";
break;
case State.STARTED:
htmltext = (st.isCond(2) && st.hasQuestItems(TAYR_HEAD)) ? "31377-05.html" : "31377-06.html";
break;
}
return htmltext;
}
}