From d55b5a075b6c1fefe9f1643effa7234ef7ea2521 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 8 Aug 2016 18:43:23 +0000 Subject: [PATCH] Quest The Annihilated Plains - 2 (10443). Contributed by gigilo1968. --- trunk/dist/game/data/html/default/33838.htm | 6 + trunk/dist/game/data/html/default/33842.htm | 5 + trunk/dist/game/data/html/default/33843.htm | 5 + .../scripts/ai/others/MinionSpawnManager.java | 1 + .../data/scripts/quests/MissingQuests.txt | 1 - .../33837-01.html | 3 + .../Q10443_TheAnnihilatedPlains2/33837.html | 4 + .../Q10443_TheAnnihilatedPlains2/33839-00.htm | 4 + .../Q10443_TheAnnihilatedPlains2/33839-01.htm | 7 + .../Q10443_TheAnnihilatedPlains2/33839-02.htm | 6 + .../Q10443_TheAnnihilatedPlains2/33839-03.htm | 5 + .../33839-04.html | 5 + .../33843-01.html | 5 + .../Q10443_TheAnnihilatedPlains2/33843-02.htm | 7 + .../Q10443_TheAnnihilatedPlains2.java | 162 ++++++++++++++++++ .../scripts/quests/QuestMasterHandler.java | 2 + trunk/dist/game/data/spawns/old/19_14.xml | 5 + 17 files changed, 232 insertions(+), 1 deletion(-) create mode 100644 trunk/dist/game/data/html/default/33838.htm create mode 100644 trunk/dist/game/data/html/default/33842.htm create mode 100644 trunk/dist/game/data/html/default/33843.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33837-01.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33837.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-00.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-03.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-04.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33843-01.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33843-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/Q10443_TheAnnihilatedPlains2.java diff --git a/trunk/dist/game/data/html/default/33838.htm b/trunk/dist/game/data/html/default/33838.htm new file mode 100644 index 0000000000..ea6734845c --- /dev/null +++ b/trunk/dist/game/data/html/default/33838.htm @@ -0,0 +1,6 @@ +Quincy:
+Hello, adventurer. Welcome to the Land of Chaos. You must be really brave. This place is in disastrous disarray.
+The blood strewn here is not just the monsters' blood. Refugees fled their villages because of Shilen's resurrection and the resulting disasters. They died in the exodus.
+The refugees' dead bodies melded with nearby monsters and became something even more grotesque. I'd like to help them somehow.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/html/default/33842.htm b/trunk/dist/game/data/html/default/33842.htm new file mode 100644 index 0000000000..a400419844 --- /dev/null +++ b/trunk/dist/game/data/html/default/33842.htm @@ -0,0 +1,5 @@ +Rune Backup Trooper Parajan:
+Who might you be, o gutsy one? Even my comrade Falk hasn't poked his head out of Gainak since passing by once.
+You have guts, I will give you that. But you'll need more than that to survive for long in these lands. The dark energy here is nothing like what you've seen elsewhere.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/html/default/33843.htm b/trunk/dist/game/data/html/default/33843.htm new file mode 100644 index 0000000000..40c5905cc4 --- /dev/null +++ b/trunk/dist/game/data/html/default/33843.htm @@ -0,0 +1,5 @@ +Rune Backup Trooper Falk:
+The Land of Chaos? It is a horrible place. Corpses piled up everywhere, the stench of blood... They say it's my responsibility, but the nightmares since I came back...
+I need someone who can... I won't go in there again.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/ai/others/MinionSpawnManager.java b/trunk/dist/game/data/scripts/ai/others/MinionSpawnManager.java index 48b233bcb3..a40b463db1 100644 --- a/trunk/dist/game/data/scripts/ai/others/MinionSpawnManager.java +++ b/trunk/dist/game/data/scripts/ai/others/MinionSpawnManager.java @@ -362,6 +362,7 @@ public final class MinionSpawnManager extends AbstractNpcAI NPC.add(25794); // Kernon NPC.add(25797); // Meanas Anor NPC.add(25800); // Mammon Collector Talos + NPC.add(25927); // Krogel NPC.add(27036); // Calpico NPC.add(27041); // Varangka's Messenger NPC.add(27062); // Tanukia diff --git a/trunk/dist/game/data/scripts/quests/MissingQuests.txt b/trunk/dist/game/data/scripts/quests/MissingQuests.txt index 8b7abe918e..4a5feddfb6 100644 --- a/trunk/dist/game/data/scripts/quests/MissingQuests.txt +++ b/trunk/dist/game/data/scripts/quests/MissingQuests.txt @@ -105,7 +105,6 @@ 10439 Kekropus' Letter: The Origins of a Rumor (9/9) 10440 The Seal of Punishment: The Fields 10441 Chasing Meccadan -10443 The Annihilated Plains - 2 10444 The Origin of Monsters 10446 Hit and Run 10447 Timing is Everything diff --git a/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33837-01.html b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33837-01.html new file mode 100644 index 0000000000..e1cddbf66a --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33837-01.html @@ -0,0 +1,3 @@ +Refugee Corpse:
+After examining the body, you extracted the neackles you were looking for... + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33837.html b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33837.html new file mode 100644 index 0000000000..33ed95e08f --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33837.html @@ -0,0 +1,4 @@ +Refugee Corpse:
+The corpse reeks of decay.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-00.htm b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-00.htm new file mode 100644 index 0000000000..4b58e37236 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-00.htm @@ -0,0 +1,4 @@ +Flame Patrol Vice Captain Tuska:
+This is a dangerous place! Do you want to get yourself killed?! Go away now! I will not be held responsible for a weakling like you.
+(This quest may only be undertaken by characters of level 99 or higher who have completed the "Annihilated Plains - 1" quest.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-01.htm b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-01.htm new file mode 100644 index 0000000000..4537cc899c --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-01.htm @@ -0,0 +1,7 @@ +Flame Patrol Vice Captain Tuska:
+Hey! Let me tell you how to get to the Land of Chaos. You have to meet someone there.
+But are you sure that you really want to be a mercenary...? You're braver than you look.
+Once you start this mission, you cannot abandon it. No matter how horrible the monsters look.
+Are you really ready?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-02.htm b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-02.htm new file mode 100644 index 0000000000..1c928f6f37 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-02.htm @@ -0,0 +1,6 @@ +Flame Patrol Vice Captain Tuska:
+Hahaha! Mathias has an eye for fresh meat, I mean... Uh... Talent! You are so brave! Let me now tell you how to get to the Land of Chaos and whom you have to meet.
+But there is a mission you have to finish on your way there.
+Feel up to it?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-03.htm b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-03.htm new file mode 100644 index 0000000000..4566bca870 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-03.htm @@ -0,0 +1,5 @@ +Flame Patrol Vice Captain Tuska:
+When you get to the Land of Chaos, you will see Refugee Corpses. Find a Refugee's Necklace and take it to Rune Backup Trooper Falk.
+I hear he and his people are investigating the corpses near the Land of Chaos. If you bring the necklace to him, it will help them.
+Ah! You can go to the Land of Chaos through the Sayune next to me! + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-04.html b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-04.html new file mode 100644 index 0000000000..8a21cb695c --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33839-04.html @@ -0,0 +1,5 @@ +Flame Patrol Vice Captain Tuska:
+Hey, you! You haven't left yet? Are you too scared to go to the Land of Chaos?
+When you get to the Land of Chaos, you will see Refugee Corpses. Find a Refugee's Necklace and take it to Rune Backup Trooper Falk.
+Ah! You can go to the Land of Chaos through the Sayune next to me. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33843-01.html b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33843-01.html new file mode 100644 index 0000000000..628d3091b0 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33843-01.html @@ -0,0 +1,5 @@ +Rune Backup Trooper Falk:
+Who's there? Answer me! I have a bow!
+Oh, leave me alone! My back... I think I'm dying from the pain...
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33843-02.htm b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33843-02.htm new file mode 100644 index 0000000000..7735bae88d --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/33843-02.htm @@ -0,0 +1,7 @@ +Rune Backup Trooper Falk:
+Ah! The mercenary, right.
+I thought you were another monster. What's that you have there, a Refugee's Necklace? Are you sure you're not a monster?
+Look, here's some money. Let's just forget this ever happened.
+I think Parajan over there is looking for someone. If you're set on dying in the Land of Chaos, talk to him.
+Just... just leave me alone now. I need to rest my back.
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/Q10443_TheAnnihilatedPlains2.java b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/Q10443_TheAnnihilatedPlains2.java new file mode 100644 index 0000000000..b89f96cfa5 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10443_TheAnnihilatedPlains2/Q10443_TheAnnihilatedPlains2.java @@ -0,0 +1,162 @@ +/* + * 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.Q10443_TheAnnihilatedPlains2; + +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.Q10442_TheAnnihilatedPlains1.Q10442_TheAnnihilatedPlains1; + +/** + * The Annihilated Plains - 2 (10443) + * @URL https://l2wiki.com/The_Annihilated_Plains_-_2 + * @author Gigi + */ +public final class Q10443_TheAnnihilatedPlains2 extends Quest +{ + // NPCs + private static final int TUSKA = 33839; + private static final int REFUGEE_CORPSE = 33837; + private static final int FALK = 33843; + // Item + private static final int REFUGEES_NEACKLES = 36678; + // Misc + private static final int MIN_LEVEL = 99; + + public Q10443_TheAnnihilatedPlains2() + { + super(10443); + addStartNpc(TUSKA); + addTalkId(TUSKA, REFUGEE_CORPSE, FALK); + addFirstTalkId(REFUGEE_CORPSE); + registerQuestItems(REFUGEES_NEACKLES); + addCondMinLevel(MIN_LEVEL, "33839-00.htm"); + addCondCompletedQuest(Q10442_TheAnnihilatedPlains1.class.getSimpleName(), "33839-00.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 "33839-02.htm": + { + htmltext = event; + break; + } + case "33839-03.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "33843-02.htm": + { + if (qs.isCond(2)) + { + addExpAndSp(player, 308731500, 74095); + giveItems(player, 30357, 50); + giveItems(player, 30358, 50); + giveItems(player, 34609, 10000); + giveItems(player, 34616, 10000); + giveItems(player, 37018, 1); + qs.exitQuest(false, true); + htmltext = event; + } + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = null; + if (qs == null) + { + return null; + } + switch (qs.getState()) + { + case State.CREATED: + { + if (npc.getId() == TUSKA) + { + htmltext = "33839-01.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case TUSKA: + { + if (qs.isCond(1)) + { + htmltext = "33839-04.html"; + } + break; + } + case REFUGEE_CORPSE: + { + if (qs.isStarted() && qs.isCond(1)) + { + giveItems(player, REFUGEES_NEACKLES, 1); + qs.setCond(2, true); + htmltext = "33837-01.html"; + } + break; + } + case FALK: + { + if (qs.isStarted() && qs.isCond(2)) + { + htmltext = "33843-01.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(L2Npc npc, L2PcInstance player) + { + return "33837.html"; + } +} \ 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 945b5f4927..18ed21b7e1 100644 --- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -288,6 +288,7 @@ 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.Q10443_TheAnnihilatedPlains2.Q10443_TheAnnihilatedPlains2; import quests.Q10445_AnImpendingThreat.Q10445_AnImpendingThreat; import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition; import quests.Q10453_StoppingTheWindDragon.Q10453_StoppingTheWindDragon; @@ -657,6 +658,7 @@ public class QuestMasterHandler Q10426_AssassinationOfTheKetraOrcCommander.class, Q10427_AssassinationOfTheKetraOrcChief.class, Q10442_TheAnnihilatedPlains1.class, + Q10443_TheAnnihilatedPlains2.class, Q10445_AnImpendingThreat.class, Q10450_ADarkAmbition.class, Q10453_StoppingTheWindDragon.class, diff --git a/trunk/dist/game/data/spawns/old/19_14.xml b/trunk/dist/game/data/spawns/old/19_14.xml index c0349b516c..e532c74d76 100644 --- a/trunk/dist/game/data/spawns/old/19_14.xml +++ b/trunk/dist/game/data/spawns/old/19_14.xml @@ -343,6 +343,11 @@ + + + + + \ No newline at end of file