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>Varka's Messenger Naran Ashanuk:<br>
We Varka have shown our strength and tenacity in countless battles and wars, but know that we can't survive alone. Everyone needs friends. We're looking for friends to help us fight! Will you fight alongside the mighty Varka Silenos?<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-04.htm">"I'll do it!"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
We're looking for an exceptionally strong fighter! Why don't you 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>

View File

@@ -0,0 +1,3 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
You've got some nerve, coming around here after helping our enemy! Have you no shame?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
You seem pretty sure of yourself, but we can't afford to take in just anybody...<br>
If you wish to fight alongside the Varka Silenos, you must drive the Ketra Orcs from their advance base! Destroy the <font color="LEVEL">Ketra Orc footmen, raiders, scouts, shamans and war hounds</font> and bring back <font color="LEVEL">100</font> badges of Ketra grunts, then you will have proven your ability. Show us what you can do!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Friend of Varka. You've done well, and the trust of Varka will be growing as much as you've showed us. But, if you truly want to take our trust to a higher level, bring us <font color="LEVEL">200 badges of Ketra grunts and 100 badges of Ketra officers</font>. Fighters like you have become essential to our victory!<br>
You can get the captain's badge by killing <font color="LEVEL">Ketra Orc Warriors, Lieutenants, Mediums, Elite Soldiers, Commanders, Elite Guards, White Captains, and Seers</font>.<br>
<font color="LEVEL">However, if I hear that you've laid a hand on our Varka Silenos in the middle, I will not be able to trust you.</font>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Friend of Varka. You've shown great loyalty to the Varka twice before, dear friend! However, the trust of Varka will be growing as much as you've showed us. If you want to strengthen our alliance even further by becoming a 3rd level ally, bring us <font color="LEVEL">300 badges of Ketra grunts, 200 badges of Ketra officers and 100 badges of Ketra captains</font>.<br>
The badges of Ketra captains can be obtained from <font color="LEVEL">Ketra Orc captains, battalion commanders, grand seers, chief shamans, chief royal guards, prophets, Prophet's Guards, and Prophet's Aides</font>.<br>
<font color="LEVEL">However, if I hear that you've laid a hand on our Varka Silenos in the middle, I will not be able to trust you.</font>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Dear and faithful friend, your countless victories for the Varka have proven your loyalty to us. However, the trust of Varka will be growing as much as you've showed us. If you wish to strengthen our alliance and become our 4th level ally, bring from the <font color="LEVEL">Ketra 300 badges of grunts, 300 badges of officers, 200 badges of captains and a Feather of Valor</font>.<br>
The feather can be obtained by undertaking the <font color="LEVEL">Prove Your Courage</font> quest, a mission assigned by Ashas Varka Durai, the elder of our tribe.<br>
<font color="LEVEL">However, if I hear that you've laid a hand on our Varka Silenos in the middle, I will not be able to trust you.</font>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Dear and faithful friend, your countless victories for the Varka have proven your loyalty to us. There is one more mission that remains... If you wish to be our level 5 ally -- our highest honor of trust, obtain<font color="LEVEL">400 badges of Ketra grunts, 400 badges of Ketra officers, 200 badges of Ketra captains and a Feather of Wisdom</font>.<br>
The feather can be obtained by undertaking the <font color="LEVEL">Slay the Enemy Commander</font> quest, a mission assigned by Ashas Varka Durai, the elder of our tribe.<br>
<font color="LEVEL">However, if I hear that you've laid a hand on our Varka Silenos in the middle, I will not be able to trust you.</font>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Respected friend of the Varka. I no longer have any duties to give you. There is no one among us who is as courageous and faithful as you. The Varka Silenos of the village will give you their greatest service and benefit. Come to the Varka's village without hesitation.<br>
But if their treatment does not satisfy you, you may give up the alliance.<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-25.html">Give up the alliance with the Varka Silenos. </a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Are you still here? If you want to be a friend of the Varka Silenos, you must go to the advance base of the Ketra Orcs and kill them all! Kill their <font color="LEVEL">footmen, raiders, scouts, shamans and war hounds</font>. Bring back <font color="LEVEL">100 badges of Ketra grunts</font>, then you will have proven your friendship to the Varka.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
I bet you left a bitter taste in the Ketra Orcs' mouths. What have you brought me?<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-12.html">Hand over the Ketra badges.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
We Varka appreciate your help and friendship. Henceforth, you shall be known as a friend of the Varka! Congratulations! Please accept this Mark of Varka's Alliance - 1st level. It will guarantee you proper treatment in the village shops.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Friend of the Varka, go destroy our enemies!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
We value your trust, friend.
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
What are you still doing here? Get to the battlefield immediately!<br>
You've committed to bring <font color="LEVEL">200 badges of Ketra grunts and 100 badges of Ketra officers</font>.<br>
Get the officers' badges from <font color="LEVEL">Ketra Orc Warriors, lieutenants, mediums, elite soldiers, centurions, seers, legionnaire captains, and elite royal guards</font>.<br>
If you don't like this job, you're always welcome to quit!<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-12a.html">"I'll destroy my enemy!"</a><br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-25.html">"I want to quit."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Did those gutless Ketras cry when you beat them? How many did you kill? Where are the proofs?<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-15.html">"Here are the badges."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Good job! You've earned this Mark of Varka's Alliance - Level 2. It gives you even more benefits and privileges from the village. If you want to use the warehouse, speak with Warehouse Keeper Hagos.
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
What are you still doing here? Get to the battlefield immediately!<br>
Remember, you've agreed to bring <font color="LEVEL">300 badges of Ketra grunts, 200 badges of Ketra officers and 100 badges of Ketra captains</font>.<br>
You can get the General's Badge by slaying the <font color="LEVEL">Ketra Orc Generals, Battalion Commanders, Grand Seers, Head Shamans, Head Guards, Prophets, Prophet's Guard, and Prophet's Aide</font>.<br>
If you don't like your job, you're always welcome to quit!<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-12a.html">"I'll destroy my enemy!"</a><br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-25.html">"Fine, I quit!"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Ah, back from your visit with the Ketra Orcs, are you? What was your trophy?<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-18.html">Hand over the Ketra badges.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Were you successful? Congratulations! Take this Mark of Varka's Alliance - Level 3. This will give you even more benefits and privileges in the village. New specialty items are available to you, and you may now receive the blessing of Udan Mardui, guide of dead souls.
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
What are you still doing here? Get to the battlefield immediately!<br>
You've promised us you'd bring from the <font color="LEVEL">Ketra Orcs 300 badges of grunts, 300 badges of officers, 200 badges of captains and a Feather of Valor</font>. This feather can be obtained by undertaking the <font color="LEVEL">Prove Your Courage</font> quest, a mission assigned by Ashas Varka Durai, the elder of our tribe.<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-12a.html">"I will go destroy my enemy!"</a><br>
If you don't like your job, you're always welcome to quit!<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-25.html">"I want to quit."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Well, look who's back. from meeting with the Ketra Orcs. What did you find?<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-21.html">Hand over the Ketra badges.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Congratulations! Please accept this Mark of Varka's Alliance - Level 4. It will give you even more benefits and privileges in the village. Now you can travel to other villages through Gate Keeper Teranu Mardui.<br>
Now all that remains is for you to become our closest friend, one with the highest trust we bestow! Will you do it?
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
What are you still doing here? Get to the battlefield immediately!<br>
You've promised to bring <font color="LEVEL">400 badges of Ketra grunts, 400 badges of Ketra officers, 200 badges of Ketra captains and a Feather of Wisdom</font>. This feather can be obtained by undertaking the <font color="LEVEL">Slay the Enemy Commander</font> quest, a mission assigned by Ashas Varka Durai, the elder of our tribe.<br>
Remember, you can always quit!<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-12a.html">"I'll destroy my enemy!"</a><br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-25.html">"I want to quit."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Congratulations, friend of Varka! Please accept this Mark of Varka's Alliance - Level 5. This entitles you to all the privileges the village can offer! From now on, you can purchase new specialty items and travel to distant hunting grounds through our gatekeeper. We're truly honored to have such a powerful and trustworthy friend as you!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
You're braver than anyone I've ever seen! All the Varka will do their best to help you. You must visit our village and allow us to demonstrate our gratitude!<br>
But don't feel like you need to stay if you're unhappy...<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-12b.html">"I'll keep the promise with the Varka!"</a><br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-25.html">"I want to quit."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Friend of Varka. I, Varka's Messenger Naran Ashanuk, must warn you, friend of Varka! Once you end our alliance, we will become as strangers... as if we never met! Earning our friendship again will mean starting over at the beginning. Are you sure you want to quit?<br>
<a action="bypass -h Quest Q00611_AllianceWithVarkaSilenos 31378-26.html">"I want to quit."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Varka's Messenger Naran Ashanuk:<br>
Oh well, I suppose I was wrong about you! Good-bye, stranger!
</body></html>

View File

@@ -0,0 +1,333 @@
/*
* 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.Q00611_AllianceWithVarkaSilenos;
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;
/**
* Alliance with Varka Silenos (611)
* @author malyelfik
*/
public class Q00611_AllianceWithVarkaSilenos extends Quest
{
private static class DropInfo
{
private final int _chance;
private final int _minCond;
private final int _itemId;
public DropInfo(int chance, int minCond)
{
_chance = chance;
_minCond = minCond;
switch (_minCond)
{
case 1:
_itemId = KETRA_BADGE_SOLDIER;
break;
case 2:
_itemId = KETRA_BADGE_OFFICER;
break;
default:
_itemId = KETRA_BADGE_CAPTAIN;
break;
}
}
public int getMinCond()
{
return _minCond;
}
public int getChance()
{
return _chance;
}
public int getItemId()
{
return _itemId;
}
}
// NPC
private static final int NARAN_ASHANUK = 31378;
// Monsters
private static final Map<Integer, DropInfo> MOBS = new HashMap<>();
static
{
MOBS.put(21324, new DropInfo(500, 1)); // Ketra Orc Footman
MOBS.put(21325, new DropInfo(500, 1)); // Ketra's War Hound
MOBS.put(21327, new DropInfo(509, 1)); // Ketra Orc Raider
MOBS.put(21328, new DropInfo(521, 1)); // Ketra Orc Scout
MOBS.put(21329, new DropInfo(519, 1)); // Ketra Orc Shaman
MOBS.put(21331, new DropInfo(500, 2)); // Ketra Orc Warrior
MOBS.put(21332, new DropInfo(500, 2)); // Ketra Orc Lieutenant
MOBS.put(21334, new DropInfo(509, 2)); // Ketra Orc Medium
MOBS.put(21335, new DropInfo(518, 2)); // Ketra Orc Elite Soldier
MOBS.put(21336, new DropInfo(518, 2)); // Ketra Orc White Captain
MOBS.put(21338, new DropInfo(527, 2)); // Ketra Orc Seer
MOBS.put(21339, new DropInfo(500, 3)); // Ketra Orc General
MOBS.put(21340, new DropInfo(500, 3)); // Ketra Orc Battalion Commander
MOBS.put(21342, new DropInfo(508, 3)); // Ketra Orc Grand Seer
MOBS.put(21343, new DropInfo(628, 2)); // Ketra Commander
MOBS.put(21344, new DropInfo(604, 2)); // Ketra Elite Guard
MOBS.put(21345, new DropInfo(627, 3)); // Ketra's Head Shaman
MOBS.put(21346, new DropInfo(604, 3)); // Ketra's Head Guard
MOBS.put(21347, new DropInfo(649, 3)); // Ketra Prophet
MOBS.put(21348, new DropInfo(626, 3)); // Prophet's Guard
MOBS.put(21349, new DropInfo(626, 3)); // Prophet's Aide
}
// Items
private static final int KETRA_BADGE_SOLDIER = 7226;
private static final int KETRA_BADGE_OFFICER = 7227;
private static final int KETRA_BADGE_CAPTAIN = 7228;
private static final int VALOR_FEATHER = 7229;
private static final int WISDOM_FEATHER = 7230;
private static final int[] KETRA_MARKS =
{
7211, // Mark of Ketra's Alliance - Level 1
7212, // Mark of Ketra's Alliance - Level 2
7213, // Mark of Ketra's Alliance - Level 3
7214, // Mark of Ketra's Alliance - Level 4
7215, // Mark of Ketra's Alliance - Level 5
};
private static final int[] VARKA_MARKS =
{
7221, // Mark of Varka's Alliance - Level 1
7222, // Mark of Varka's Alliance - Level 2
7223, // Mark of Varka's Alliance - Level 3
7224, // Mark of Varka's Alliance - Level 4
7225, // Mark of Varka's Alliance - Level 5
};
// Misc
private static final int MIN_LEVEL = 74;
private static final int[] SOLDIER_BADGE_COUNT =
{
100, // cond 1
200, // cond 2
300, // cond 3
300, // cond 4
400, // cond 5
};
private static final int[] OFFICER_BADGE_COUNT =
{
0, // cond 1
100, // cond 2
200, // cond 3
300, // cond 4
400, // cond 5
};
private static final int[] CAPTAIN_BADGE_COUNT =
{
0, // cond 1
0, // cond 2
100, // cond 3
200, // cond 4
200, // cond 5
};
public Q00611_AllianceWithVarkaSilenos()
{
super(611, Q00611_AllianceWithVarkaSilenos.class.getSimpleName(), "Alliance with Varka Silenos");
addStartNpc(NARAN_ASHANUK);
addTalkId(NARAN_ASHANUK);
addKillId(MOBS.keySet());
registerQuestItems(KETRA_BADGE_CAPTAIN, KETRA_BADGE_OFFICER, KETRA_BADGE_SOLDIER);
}
private boolean canGetItem(QuestState st, int itemId)
{
int count = 0;
switch (itemId)
{
case KETRA_BADGE_SOLDIER:
count = SOLDIER_BADGE_COUNT[st.getCond() - 1];
break;
case KETRA_BADGE_OFFICER:
count = OFFICER_BADGE_COUNT[st.getCond() - 1];
break;
case KETRA_BADGE_CAPTAIN:
count = CAPTAIN_BADGE_COUNT[st.getCond() - 1];
break;
}
if (st.getQuestItemsCount(itemId) < count)
{
return true;
}
return false;
}
@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 "31378-12a.html":
case "31378-12b.html":
case "31378-25.html":
break;
case "31378-04.htm":
if (hasAtLeastOneQuestItem(player, KETRA_MARKS))
{
return "31378-03.htm";
}
st.setState(State.STARTED);
st.playSound(QuestSound.ITEMSOUND_QUEST_ACCEPT);
for (int i = 0; i < VARKA_MARKS.length; i++)
{
if (st.hasQuestItems(VARKA_MARKS[i]))
{
st.setCond(i + 2);
return "31378-0" + (i + 5) + ".htm";
}
}
st.setCond(1);
break;
case "31378-12.html":
if (st.getQuestItemsCount(KETRA_BADGE_SOLDIER) < SOLDIER_BADGE_COUNT[0])
{
return getNoQuestMsg(player);
}
st.takeItems(KETRA_BADGE_SOLDIER, -1);
st.giveItems(VARKA_MARKS[0], 1);
st.setCond(2, true);
break;
case "31378-15.html":
if ((st.getQuestItemsCount(KETRA_BADGE_SOLDIER) < SOLDIER_BADGE_COUNT[1]) || (st.getQuestItemsCount(KETRA_BADGE_OFFICER) < OFFICER_BADGE_COUNT[1]))
{
return getNoQuestMsg(player);
}
takeItems(player, -1, KETRA_BADGE_SOLDIER, KETRA_BADGE_OFFICER, VARKA_MARKS[0]);
st.giveItems(VARKA_MARKS[1], 1);
st.setCond(3, true);
break;
case "31378-18.html":
if ((st.getQuestItemsCount(KETRA_BADGE_SOLDIER) < SOLDIER_BADGE_COUNT[2]) || (st.getQuestItemsCount(KETRA_BADGE_OFFICER) < OFFICER_BADGE_COUNT[2]) || (st.getQuestItemsCount(KETRA_BADGE_CAPTAIN) < CAPTAIN_BADGE_COUNT[2]))
{
return getNoQuestMsg(player);
}
takeItems(player, -1, KETRA_BADGE_SOLDIER, KETRA_BADGE_OFFICER, KETRA_BADGE_CAPTAIN, VARKA_MARKS[1]);
st.giveItems(VARKA_MARKS[2], 1);
st.setCond(4, true);
break;
case "31378-21.html":
if (!st.hasQuestItems(VALOR_FEATHER) || (st.getQuestItemsCount(KETRA_BADGE_SOLDIER) < SOLDIER_BADGE_COUNT[3]) || (st.getQuestItemsCount(KETRA_BADGE_OFFICER) < OFFICER_BADGE_COUNT[3]) || (st.getQuestItemsCount(KETRA_BADGE_CAPTAIN) < CAPTAIN_BADGE_COUNT[3]))
{
return getNoQuestMsg(player);
}
takeItems(player, -1, KETRA_BADGE_SOLDIER, KETRA_BADGE_OFFICER, KETRA_BADGE_CAPTAIN, VALOR_FEATHER, VARKA_MARKS[2]);
st.giveItems(VARKA_MARKS[3], 1);
st.setCond(5, true);
break;
case "31378-26.html":
takeItems(player, -1, VARKA_MARKS);
takeItems(player, -1, VALOR_FEATHER, WISDOM_FEATHER);
st.exitQuest(true, true);
break;
default:
htmltext = null;
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final L2PcInstance member = getRandomPartyMemberState(killer, State.STARTED);
if (member != null)
{
final QuestState st = getQuestState(member, false);
final DropInfo info = MOBS.get(npc.getId());
if ((st.getCond() >= info.getMinCond()) && (st.getCond() < 6) && canGetItem(st, info.getItemId()) && (getRandom(1000) < info.getChance()))
{
st.giveItems(info.getItemId(), 1);
}
}
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) ? "31378-01.htm" : "31378-02.htm";
break;
case State.STARTED:
switch (st.getCond())
{
case 1:
htmltext = (st.getQuestItemsCount(KETRA_BADGE_SOLDIER) >= SOLDIER_BADGE_COUNT[0]) ? "31378-11.html" : "31378-10.html";
break;
case 2:
htmltext = (st.hasQuestItems(VARKA_MARKS[0]) && (st.getQuestItemsCount(KETRA_BADGE_SOLDIER) >= SOLDIER_BADGE_COUNT[1]) && (st.getQuestItemsCount(KETRA_BADGE_OFFICER) >= OFFICER_BADGE_COUNT[1])) ? "31378-14.html" : "31378-13.html";
break;
case 3:
htmltext = (st.hasQuestItems(VARKA_MARKS[1]) && (st.getQuestItemsCount(KETRA_BADGE_SOLDIER) >= SOLDIER_BADGE_COUNT[2]) && (st.getQuestItemsCount(KETRA_BADGE_OFFICER) >= OFFICER_BADGE_COUNT[2]) && (st.getQuestItemsCount(KETRA_BADGE_CAPTAIN) >= CAPTAIN_BADGE_COUNT[2])) ? "31378-17.html" : "31378-16.html";
break;
case 4:
htmltext = (hasQuestItems(player, VARKA_MARKS[2], VALOR_FEATHER) && (st.getQuestItemsCount(KETRA_BADGE_SOLDIER) >= SOLDIER_BADGE_COUNT[3]) && (st.getQuestItemsCount(KETRA_BADGE_OFFICER) >= OFFICER_BADGE_COUNT[3]) && (st.getQuestItemsCount(KETRA_BADGE_CAPTAIN) >= CAPTAIN_BADGE_COUNT[3])) ? "31378-20.html" : "31378-19.html";
break;
case 5:
if (!st.hasQuestItems(VARKA_MARKS[3]) || !st.hasQuestItems(WISDOM_FEATHER) || (st.getQuestItemsCount(KETRA_BADGE_SOLDIER) < SOLDIER_BADGE_COUNT[4]) || (st.getQuestItemsCount(KETRA_BADGE_OFFICER) < OFFICER_BADGE_COUNT[4]) || (st.getQuestItemsCount(KETRA_BADGE_CAPTAIN) < CAPTAIN_BADGE_COUNT[4]))
{
return "31378-22.html";
}
st.setCond(6, true);
takeItems(player, -1, KETRA_BADGE_SOLDIER, KETRA_BADGE_OFFICER, KETRA_BADGE_CAPTAIN, WISDOM_FEATHER, VARKA_MARKS[3]);
st.giveItems(VARKA_MARKS[4], 1);
htmltext = "31378-23.html";
break;
case 6:
if (st.hasQuestItems(VARKA_MARKS[4]))
{
htmltext = "31378-24.html";
}
break;
}
break;
}
return htmltext;
}
}