Quest Assassination of the Varka Silenos Chief (10422).

Contributed by Stayway.
This commit is contained in:
MobiusDev
2016-08-07 17:59:58 +00:00
parent 16020d0252
commit 1f38c2062f
12 changed files with 196 additions and 1 deletions

View File

@@ -94,7 +94,6 @@
10380 The Executioner's Execution
10388 Conspiracy Behind Doors
10389 The Voice of Authority
10422 Assassination of the Varka Silenos Chief
10424 Kekropus' Letter: Belos' Whereabouts (8/9)
10425 The Ketra Orc Supporters
10426 Assassination of the Ketra Orc Commander

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<br>
Since you assassinated their commander, security's been tight around here. But we won't give up!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10422_AssassinationOfTheVarkaSilenosChief 33853-02.htm">"What should we do?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<br>
I know it will be dangerous, but we have no other choice. We have to assassinate their chief. If they lose their chief on top of their commander, they will fall into chaos. So, I bet <font color="LEVEL">Kampf</font> will show up this time.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10422_AssassinationOfTheVarkaSilenosChief 33853-03.htm">"Here we go again..."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<br>
Hey, watch it! Of course, it won't be easy to assassinate the chief of the <font color="LEVEL">Varka Silenoses</font>. But I believe you can pull it off.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10422_AssassinationOfTheVarkaSilenosChief 33853-04.html">"I'll be back."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Giant's Minion Hansen:<br>
Let me explain again. Find and kill <font color="LEVEL">Varka's Chief Horus</font> here in the <font color="LEVEL">Varka Silenos Barracks</font> and report back to me.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<br>
You haven't finished the mission yet.<br>
Let me explain again. Find and kill <font color="LEVEL">Varka's Chief Horus</font> here in the <font color="LEVEL">Varka Silenos Barracks</font> and report back to me.
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body>Giant's Minion Hansen:<br>
So you killed <font color="LEVEL">Varka's Commander Mos</font>, and still no <font color="LEVEL">Kampf</font>, huh.<br>
This is troubling, but at least you did get rid of <font color="LEVEL">Mos</font>. That probably dealt a blow to the <font color="LEVEL">Embryo</font> and <font color="LEVEL">Varka Silenos</font> alliance.<br>
Allow me to pay you for your work. Which color would you like?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10422_AssassinationOfTheVarkaSilenosChief reward_9546">15 Fire Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10422_AssassinationOfTheVarkaSilenosChief reward_9547">15 Water Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10422_AssassinationOfTheVarkaSilenosChief reward_9548">15 Earth Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10422_AssassinationOfTheVarkaSilenosChief reward_9549">15 Wind Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10422_AssassinationOfTheVarkaSilenosChief reward_9550">15 Dark Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10422_AssassinationOfTheVarkaSilenosChief reward_9551">15 Holy Stones</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Giant's Minion Hansen:<br>
Thank you for your hard work. Our greatest headache is gone! <br>.
Of course, we'll keep close eyes on <font color="LEVEL">Embryo</font>. They'll be back for sure with a new plot, I'm sure. <br>
I'll be sure to let <font color="LEVEL">Kekropus</font> know of your role in these dealings. You will always be honored among us!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<br>
I don't trust you.<br>
(Ertheia classes cannot perform this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<br>
I don't think it's time to act quite yet.<br>
(This quest may only be undertaken by a Fighter class character of level 76 to 80 who has completed the quest "Assassination Of The VarkaSilenos Commander".)
</body></html>

View File

@@ -0,0 +1,151 @@
/*
* This file is part of the L2J Mobius project.
*
* This program 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.
*
* This program 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.Q10422_AssassinationOfTheVarkaSilenosChief;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import quests.Q10421_AssassinationOfTheVarkaSilenosCommander.Q10421_AssassinationOfTheVarkaSilenosCommander;
/**
* Assassination of the Varka Silenos Chief (10422)
* @author Stayway
*/
public final class Q10422_AssassinationOfTheVarkaSilenosChief extends Quest
{
// NPCs
private static final int HANSEN = 33853;
private static final int CHIEF_HORUS = 27503;
private static final int KAMPF = 27516;
// Items
private static final int EAS = 26353; // Scroll: Enchant Armor (S-grade)
// Misc
private static final int MIN_LEVEL = 76;
private static final int MAX_LEVEL = 80;
public Q10422_AssassinationOfTheVarkaSilenosChief()
{
super(10422);
addStartNpc(HANSEN);
addTalkId(HANSEN);
addKillId(CHIEF_HORUS);
addSpawnId(KAMPF);
addCondNotRace(Race.ERTHEIA, "33853-08.html");
addCondInCategory(CategoryType.FIGHTER_GROUP, "33853-09.htm");
addCondMinLevel(MIN_LEVEL, "33853-09.htm");
addCondMaxLevel(MAX_LEVEL, "33853-09.htm");
addCondCompletedQuest(Q10421_AssassinationOfTheVarkaSilenosCommander.class.getSimpleName(), "33853-09.htm");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "33853-02.htm":
case "33853-04.html":
{
htmltext = event;
break;
}
case "33853-03.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "reward_9546":
case "reward_9547":
case "reward_9548":
case "reward_9549":
case "reward_9550":
case "reward_9551":
{
if (st.isCond(2))
{
final int stoneId = Integer.parseInt(event.replaceAll("reward_", ""));
st.exitQuest(false, true);
giveItems(player, stoneId, 15);
giveItems(player, EAS, 2);
giveStoryQuestReward(player, 30);
if ((player.getLevel() >= MIN_LEVEL) && (player.getLevel() <= MAX_LEVEL))
{
addExpAndSp(player, 7_665_840, 1839);
}
htmltext = "33853-07.html";
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, true);
if (npc.getId() == HANSEN)
{
if (qs.getState() == State.CREATED)
{
htmltext = "33853-01.htm";
}
else if (qs.getState() == State.STARTED)
{
if (qs.isCond(1))
{
htmltext = "33853-05.html";
}
else if (qs.isCond(2))
{
htmltext = "33853-06.html";
}
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1))
{
qs.setCond(2, true);
}
if ((qs != null) && qs.isCond(2))
{
addSpawn(KAMPF, 105626, -43053, -1721, 0, true, 60000);
}
return super.onKill(npc, killer, isSummon);
}
}

View File

@@ -277,6 +277,7 @@ import quests.Q10415_KekropusLetterWithWisdom.Q10415_KekropusLetterWithWisdom;
import quests.Q10416_InSearchOfTheEyeOfArgos.Q10416_InSearchOfTheEyeOfArgos;
import quests.Q10417_DaimonTheWhiteEyed.Q10417_DaimonTheWhiteEyed;
import quests.Q10421_AssassinationOfTheVarkaSilenosCommander.Q10421_AssassinationOfTheVarkaSilenosCommander;
import quests.Q10422_AssassinationOfTheVarkaSilenosChief.Q10422_AssassinationOfTheVarkaSilenosChief;
import quests.Q10442_TheAnnihilatedPlains1.Q10442_TheAnnihilatedPlains1;
import quests.Q10445_AnImpendingThreat.Q10445_AnImpendingThreat;
import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition;
@@ -635,6 +636,7 @@ public class QuestMasterHandler
Q10416_InSearchOfTheEyeOfArgos.class,
Q10417_DaimonTheWhiteEyed.class,
Q10421_AssassinationOfTheVarkaSilenosCommander.class,
Q10422_AssassinationOfTheVarkaSilenosChief.class,
Q10442_TheAnnihilatedPlains1.class,
Q10445_AnImpendingThreat.class,
Q10450_ADarkAmbition.class,