From 7cc07b1ab406e4e72682809faa54b51ce95a2a12 Mon Sep 17 00:00:00 2001
From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com>
Date: Sun, 7 Aug 2016 20:27:41 +0000
Subject: [PATCH] Quest Assassination of the Ketra Orc Commander (10426).
Contributed by Stayway.
---
.../data/scripts/quests/MissingQuests.txt | 1 -
.../33852-01.htm | 4 +
.../33852-02.htm | 4 +
.../33852-03.htm | 4 +
.../33852-04.htm | 3 +
.../33852-05.html | 4 +
.../33852-06.html | 9 ++
.../33852-07.html | 4 +
.../33852-08.html | 4 +
.../33852-09.htm | 4 +
...6_AssassinationOfTheKetraOrcCommander.java | 145 ++++++++++++++++++
.../scripts/quests/QuestMasterHandler.java | 2 +
12 files changed, 187 insertions(+), 1 deletion(-)
create mode 100644 trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-01.htm
create mode 100644 trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-02.htm
create mode 100644 trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-03.htm
create mode 100644 trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-04.htm
create mode 100644 trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-05.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-06.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-07.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-08.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-09.htm
create mode 100644 trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/Q10426_AssassinationOfTheKetraOrcCommander.java
diff --git a/trunk/dist/game/data/scripts/quests/MissingQuests.txt b/trunk/dist/game/data/scripts/quests/MissingQuests.txt
index 8ade6271a9..65b7448a46 100644
--- a/trunk/dist/game/data/scripts/quests/MissingQuests.txt
+++ b/trunk/dist/game/data/scripts/quests/MissingQuests.txt
@@ -93,7 +93,6 @@
10380 The Executioner's Execution
10388 Conspiracy Behind Doors
10389 The Voice of Authority
-10426 Assassination of the Ketra Orc Commander
10427 Assassination of the Ketra Orc Chief
10430 Kekropus' Letter: Tracking the Evil (9/9)
10431 The Seal of Punishment: Den of Evil
diff --git a/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-01.htm b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-01.htm
new file mode 100644
index 0000000000..a80e3a8d6e
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-01.htm
@@ -0,0 +1,4 @@
+
Giant's Minion Lugonnes:
+Hmm... They are being more cautious than expected after your assault. Belos is nowhere to be found! I think we should be more aggressive.
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-02.htm b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-02.htm
new file mode 100644
index 0000000000..b515fc9235
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-02.htm
@@ -0,0 +1,4 @@
+Giant's Minion Lugonnes:
+We will have to assassinate their commander. With someone in such a high position eliminated, they will have to bring out Belos. When that happens, kill Belos as well.
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-03.htm b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-03.htm
new file mode 100644
index 0000000000..1991e27ebb
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-03.htm
@@ -0,0 +1,4 @@
+Giant's Minion Lugonnes:
+Of course, it won't be easy to assassinate the Ketra Orcs' commander. But that's why we have you, right? It's worth trying even though there is a chance Belos won't show up at all.
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-04.htm b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-04.htm
new file mode 100644
index 0000000000..bd9023a88f
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-04.htm
@@ -0,0 +1,3 @@
+Giant's Minion Lugonnes:
+Let me explain again. Find and kill Ketra's Commander Tayr in the Ketra Orc Outpost and come back to me.
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-05.html b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-05.html
new file mode 100644
index 0000000000..8d7d47d22b
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-05.html
@@ -0,0 +1,4 @@
+Giant's Minion Lugonnes:
+You haven't finished the mission yet.
+Again, find and kill Ketra's Commander Tayr here at the Ketra Orc Outpost and report to me.
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-06.html b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-06.html
new file mode 100644
index 0000000000..f45dd919e2
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-06.html
@@ -0,0 +1,9 @@
+Giant's Minion Lugonnes:
+Hmm… Even after Ketra's Commander Tayr was killed, Belos didn't show up. Well, killing Tayr was still a good thing. No good having him around now that the alliance between Embryo and the Ketra Orcs is clear. So, time for your rewards! Which attribute stones do you want?
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-07.html b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-07.html
new file mode 100644
index 0000000000..1e3556c5ee
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-07.html
@@ -0,0 +1,4 @@
+Giant's Minion Lugonnes:
+Be that as it may, you are not ready yet.
+(This quest may only be undertaken by a Wizard class character of level 76 or above who has completed the quest "The Ketra Orc Supporters".)
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-08.html b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-08.html
new file mode 100644
index 0000000000..57f985258f
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-08.html
@@ -0,0 +1,4 @@
+Giant's Minion Lugonnes:
+I don't trust you.
+(Ertheia classes cannot perform this quest.)
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-09.htm b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-09.htm
new file mode 100644
index 0000000000..6a15d580c2
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/33852-09.htm
@@ -0,0 +1,4 @@
+Giant's Minion Lugonnes:
+I don't think it's time to act quite yet.
+(This quest may only be undertaken by a Wizard class character of level 76 to 80 who has completed the quest "The Ketra Orc Supporters".)
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/Q10426_AssassinationOfTheKetraOrcCommander.java b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/Q10426_AssassinationOfTheKetraOrcCommander.java
new file mode 100644
index 0000000000..e2d054e6ab
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10426_AssassinationOfTheKetraOrcCommander/Q10426_AssassinationOfTheKetraOrcCommander.java
@@ -0,0 +1,145 @@
+/*
+ * 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 .
+ */
+package quests.Q10426_AssassinationOfTheKetraOrcCommander;
+
+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.Q10425_TheKetraOrcSupporters.Q10425_TheKetraOrcSupporters;
+
+/**
+ * Assassination of the Ketra Orc Commander (10426)
+ * @author Stayway
+ */
+public final class Q10426_AssassinationOfTheKetraOrcCommander extends Quest
+{
+ // NPCs
+ private static final int LUGONNES = 33852;
+ private static final int COMMANDER_TAYR = 27500;
+ // 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 Q10426_AssassinationOfTheKetraOrcCommander()
+ {
+ super(10426);
+ addStartNpc(LUGONNES);
+ addTalkId(LUGONNES);
+ addKillId(COMMANDER_TAYR);
+ addCondNotRace(Race.ERTHEIA, "33852-08.html");
+ addCondInCategory(CategoryType.WIZARD_GROUP, "33852-09.htm");
+ addCondMinLevel(MIN_LEVEL, "33852-09.htm");
+ addCondMaxLevel(MAX_LEVEL, "33852-09.htm");
+ addCondCompletedQuest(Q10425_TheKetraOrcSupporters.class.getSimpleName(), "33852-09.htm");
+ }
+
+ @Override
+ public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
+ {
+ final QuestState qs = getQuestState(player, false);
+ if (qs == null)
+ {
+ return null;
+ }
+
+ String htmltext = null;
+ switch (event)
+ {
+ case "33852-02.htm":
+ case "33852-03.htm":
+ {
+ htmltext = event;
+ break;
+ }
+ case "33852-04.htm":
+ {
+ qs.startQuest();
+ htmltext = event;
+ break;
+ }
+ case "reward_9546":
+ case "reward_9547":
+ case "reward_9548":
+ case "reward_9549":
+ case "reward_9550":
+ case "reward_9551":
+ {
+ if (qs.isCond(2))
+ {
+ final int stoneId = Integer.parseInt(event.replaceAll("reward_", ""));
+ qs.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 = "33852-07.html";
+ }
+ break;
+ }
+ }
+ return htmltext;
+ }
+
+ @Override
+ public String onTalk(L2Npc npc, L2PcInstance player)
+ {
+ final QuestState qs = getQuestState(player, true);
+ String htmltext = null;
+
+ switch (qs.getState())
+ {
+ case State.CREATED:
+ {
+ htmltext = "33852-01.htm";
+ break;
+ }
+ case State.STARTED:
+ {
+ htmltext = qs.isCond(1) ? "33852-05.html" : "33852-06.html";
+ break;
+ }
+ case State.COMPLETED:
+ {
+ htmltext = getAlreadyCompletedMsg(player);
+ break;
+ }
+ }
+ 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);
+ }
+ return super.onKill(npc, killer, isSummon);
+ }
+}
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java
index 69d02ef620..9bee99a16e 100644
--- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java
+++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java
@@ -285,6 +285,7 @@ import quests.Q10421_AssassinationOfTheVarkaSilenosCommander.Q10421_Assassinatio
import quests.Q10422_AssassinationOfTheVarkaSilenosChief.Q10422_AssassinationOfTheVarkaSilenosChief;
import quests.Q10424_KekropusLetterBelosWhereabouts.Q10424_KekropusLetterBelosWhereabouts;
import quests.Q10425_TheKetraOrcSupporters.Q10425_TheKetraOrcSupporters;
+import quests.Q10426_AssassinationOfTheKetraOrcCommander.Q10426_AssassinationOfTheKetraOrcCommander;
import quests.Q10442_TheAnnihilatedPlains1.Q10442_TheAnnihilatedPlains1;
import quests.Q10445_AnImpendingThreat.Q10445_AnImpendingThreat;
import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition;
@@ -652,6 +653,7 @@ public class QuestMasterHandler
Q10422_AssassinationOfTheVarkaSilenosChief.class,
Q10424_KekropusLetterBelosWhereabouts.class,
Q10425_TheKetraOrcSupporters.class,
+ Q10426_AssassinationOfTheKetraOrcCommander.class,
Q10442_TheAnnihilatedPlains1.class,
Q10445_AnImpendingThreat.class,
Q10450_ADarkAmbition.class,