From 21377b0df1b614c439011515ad197374a715c501 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 7 Aug 2016 20:30:47 +0000 Subject: [PATCH] Quest Assassination of the Ketra Orc Chief (10427). Contributed by Stayway. --- .../data/scripts/quests/MissingQuests.txt | 1 - .../33852-01.htm | 4 + .../33852-02.htm | 4 + .../33852-03.htm | 4 + .../33852-04.html | 3 + .../33852-05.html | 4 + .../33852-06.html | 8 + .../33852-07.html | 3 + .../33852-08.html | 4 + .../33852-09.htm | 4 + ...10427_AssassinationOfTheKetraOrcChief.java | 151 ++++++++++++++++++ .../scripts/quests/QuestMasterHandler.java | 2 + 12 files changed, 191 insertions(+), 1 deletion(-) create mode 100644 trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-03.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-04.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-05.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-06.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-07.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-08.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-09.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/Q10427_AssassinationOfTheKetraOrcChief.java diff --git a/trunk/dist/game/data/scripts/quests/MissingQuests.txt b/trunk/dist/game/data/scripts/quests/MissingQuests.txt index 65b7448a46..8b7abe918e 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 -10427 Assassination of the Ketra Orc Chief 10430 Kekropus' Letter: Tracking the Evil (9/9) 10431 The Seal of Punishment: Den of Evil 10432 Chasing Varangka diff --git a/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-01.htm b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-01.htm new file mode 100644 index 0000000000..22afd7a63e --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-01.htm @@ -0,0 +1,4 @@ +Giant's Minion Lugonnes:
+Things are not proceeding as expected. Since the Orcs' commander was assassinated, they have tightened their security. But we cannot just give up.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-02.htm b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-02.htm new file mode 100644 index 0000000000..72e2bf61eb --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-02.htm @@ -0,0 +1,4 @@ +Giant's Minion Lugonnes:
+I know it will be dangerous, but there is no other choice. We have to assassinate their chief, Brakki. If they lose their chief on top of their commander, the Ketra Orcs will surely fall into disorder. At that point, Belos must appear.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-03.htm b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-03.htm new file mode 100644 index 0000000000..109d8a988b --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-03.htm @@ -0,0 +1,4 @@ +Giant's Minion Lugonnes:
+Of course, it won't be easy to assassinate the chief of the Ketra Orcs. But you've shown great skills thus far.
< +Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10427_AssassinationOfTheKetraOrcChief 33852-04.html">"I'll take care of everything." + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-04.html b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-04.html new file mode 100644 index 0000000000..1cc7afb802 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-04.html @@ -0,0 +1,3 @@ +Giant's Minion Lugonnes:
+Let me explain again. Find and kill Ketra's Chief Brakki here in the Ketra Orc Barracks and come back to me. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-05.html b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-05.html new file mode 100644 index 0000000000..c331703581 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-05.html @@ -0,0 +1,4 @@ +Giant's Minion Lugonnes:
+You haven't finished the mission yet.
+Let me explain again. Find and kill Ketra's Chief Brakki here in the Ketra Orc Barracks and come back to me. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-06.html b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-06.html new file mode 100644 index 0000000000..1887d81213 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-06.html @@ -0,0 +1,8 @@ +Giant's Minion Lugonnes:
Finally! Killing Ketra's Chief Brakki was exactly what we needed to flush out Belos. We should have done that first!
Well, I think that's it for both of us now. Time for some rest.
Oh right, rewards first! Hey, what kinds of attribute stones do you want?
+ + + + + + + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-07.html b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-07.html new file mode 100644 index 0000000000..c113eeadc9 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-07.html @@ -0,0 +1,3 @@ +Giant's Minion Lugonnes:
+So you got rid of Belos, and killed the chief of Ketra Orcs working with Embryo, huh? What progress!
Of course, that doesn't mean we can let our guard down against Embryo. They'll be up to no good somewhere else before long!
Anyway, I'll let Kekropus know of your valor. We will always remember you. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-08.html b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-08.html new file mode 100644 index 0000000000..57f985258f --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/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/Q10427_AssassinationOfTheKetraOrcChief/33852-09.htm b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/33852-09.htm new file mode 100644 index 0000000000..d98f145037 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/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 "Assassination Of The Ketra Orc Commander".) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/Q10427_AssassinationOfTheKetraOrcChief.java b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/Q10427_AssassinationOfTheKetraOrcChief.java new file mode 100644 index 0000000000..e5c35231e2 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10427_AssassinationOfTheKetraOrcChief/Q10427_AssassinationOfTheKetraOrcChief.java @@ -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 . + */ +package quests.Q10427_AssassinationOfTheKetraOrcChief; + +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.Q10426_AssassinationOfTheKetraOrcCommander.Q10426_AssassinationOfTheKetraOrcCommander; + +/** + * Assassination of the Ketra Orc Chief (10427) + * @author Stayway + */ +public final class Q10427_AssassinationOfTheKetraOrcChief extends Quest +{ + // NPCs + private static final int LUGONNES = 33852; + private static final int CHIEF_BRAKKI = 27501; + 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 Q10427_AssassinationOfTheKetraOrcChief() + { + super(10427); + addStartNpc(LUGONNES); + addTalkId(LUGONNES); + addKillId(CHIEF_BRAKKI); + addSpawnId(KAMPF); + 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(Q10426_AssassinationOfTheKetraOrcCommander.class.getSimpleName(), "33853-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-04.html": + { + htmltext = event; + break; + } + case "33852-03.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) + { + String htmltext = getNoQuestMsg(player); + final QuestState qs = getQuestState(player, true); + + if (npc.getId() == LUGONNES) + { + if (qs.getState() == State.CREATED) + { + htmltext = "33852-01.htm"; + } + else if (qs.getState() == State.STARTED) + { + if (qs.isCond(1)) + { + htmltext = "33852-05.html"; + } + else if (qs.isCond(2)) + { + htmltext = "33852-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, 142130, -82520, -6487, 0, true, 60000); + } + 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 9bee99a16e..945b5f4927 100644 --- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -286,6 +286,7 @@ import quests.Q10422_AssassinationOfTheVarkaSilenosChief.Q10422_AssassinationOfT import quests.Q10424_KekropusLetterBelosWhereabouts.Q10424_KekropusLetterBelosWhereabouts; import quests.Q10425_TheKetraOrcSupporters.Q10425_TheKetraOrcSupporters; import quests.Q10426_AssassinationOfTheKetraOrcCommander.Q10426_AssassinationOfTheKetraOrcCommander; +import quests.Q10427_AssassinationOfTheKetraOrcChief.Q10427_AssassinationOfTheKetraOrcChief; import quests.Q10442_TheAnnihilatedPlains1.Q10442_TheAnnihilatedPlains1; import quests.Q10445_AnImpendingThreat.Q10445_AnImpendingThreat; import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition; @@ -654,6 +655,7 @@ public class QuestMasterHandler Q10424_KekropusLetterBelosWhereabouts.class, Q10425_TheKetraOrcSupporters.class, Q10426_AssassinationOfTheKetraOrcCommander.class, + Q10427_AssassinationOfTheKetraOrcChief.class, Q10442_TheAnnihilatedPlains1.class, Q10445_AnImpendingThreat.class, Q10450_ADarkAmbition.class,