From 961f49ff7b738ffe0e5a82505ec5be420d82bcbb Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 21 Nov 2017 18:45:11 +0000 Subject: [PATCH] Quest Queen Navari's Letter, Ketra Orc Outpost (10525). --- .../data/scripts/quests/MissingQuests.txt | 1 - ...ueenNavarisLetterVarkaSilenosBarracks.java | 2 +- .../31279-01.htm | 4 + .../31279-02.htm | 5 + .../31279-03.htm | 5 + .../31279-04.html | 3 + .../33852-01.html | 4 + .../33852-02.htm | 6 + ...525_QueenNavarisLetterKetraOrcOutpost.java | 135 ++++++++++++++++++ .../popup.html | 7 + .../scripts/quests/QuestMasterHandler.java | 2 + 11 files changed, 172 insertions(+), 2 deletions(-) create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-01.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-02.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-03.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-04.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/33852-01.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/33852-02.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/Q10525_QueenNavarisLetterKetraOrcOutpost.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/popup.html diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/MissingQuests.txt index 462cf84bce..3261a6e08e 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/MissingQuests.txt @@ -147,7 +147,6 @@ 10456 Operation: Rescue 10457 Kefensis' Illusion 10506 Diana's Request -10525 Queen Navari's Letter, Ketra Orc Outpost Achieve Level 76 10527 The Assassination of the Ketra Orc Commander Defeat Ketra's Commander Tayr 10528 The Assassination of the Ketra Orc Chief Defeat Ketra's Chief Brakki 10530 Kekropus' Letter, The Dragon's Transition Achieve Level 81 diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10521_QueenNavarisLetterVarkaSilenosBarracks/Q10521_QueenNavarisLetterVarkaSilenosBarracks.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10521_QueenNavarisLetterVarkaSilenosBarracks/Q10521_QueenNavarisLetterVarkaSilenosBarracks.java index 32796a0672..81aa580e7e 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10521_QueenNavarisLetterVarkaSilenosBarracks/Q10521_QueenNavarisLetterVarkaSilenosBarracks.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10521_QueenNavarisLetterVarkaSilenosBarracks/Q10521_QueenNavarisLetterVarkaSilenosBarracks.java @@ -118,7 +118,7 @@ public class Q10521_QueenNavarisLetterVarkaSilenosBarracks extends LetterQuest { if (npc.getId() == GREGORY) { - htmltext = (qs.isCond(2)) ? "31279-01.htm" : "31279-04.htm"; + htmltext = (qs.isCond(2)) ? "31279-01.htm" : "31279-04.html"; } else if (qs.isCond(3)) { diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-01.htm new file mode 100644 index 0000000000..7eae5b38af --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-01.htm @@ -0,0 +1,4 @@ +High Priest Gregory:
+Haha. Queen Navari has already contacted me, and I have waiting for you. Have you heard what is happening?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-02.htm new file mode 100644 index 0000000000..70f5d24879 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-02.htm @@ -0,0 +1,5 @@ +High Priest Gregory:
+Hahaha. That's what I thought
+The Ertheia are quite impatient, and tend to rush over without asking too many questions when they're asked for help.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-03.htm new file mode 100644 index 0000000000..1cae17c304 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-03.htm @@ -0,0 +1,5 @@ +High Priest Gregory:
+I thought that the Ertheia had nothing to do with this, but the Ketra Orcs seem to be up to no good nowadays we have our eyes on them.
+We have been suspecting collision between the Embryo and the Ketra Orcs for a long time now. Since the Ertheia also have something to do with the Embryo, you have been called on to provide help.
+For details, find the Giant's Minion Lugonnes in the Ketra Orc Outpost. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-04.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-04.html new file mode 100644 index 0000000000..1d3c008a6a --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/31279-04.html @@ -0,0 +1,3 @@ +High Priest Gregory:
+In the Town of Goddard has told you to go to the Giant's Minion Lugonnes in the Ketra Orc Outpost.
+ \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/33852-01.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/33852-01.html new file mode 100644 index 0000000000..81c26d4af9 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/33852-01.html @@ -0,0 +1,4 @@ +Giant's Minion Lugonnes:
+You are... Ertheia. What brings you here?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/33852-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/33852-02.htm new file mode 100644 index 0000000000..a992775a15 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/33852-02.htm @@ -0,0 +1,6 @@ +Giant's Minion Lugonnes:
+I was worried that I hadn't received a reply to my request for backup. I was starting to think that it was difficult for the Ertheia to make it all the way out here.
+I wonder if you have heard about the ancient monster Sakum. We have gained intelligence that the ancient monster, who should have vanished years ago, was actually cloned by the Embryo and is currently in the Ketra Orc Outpost.
+It appears that the Embryo have colluded with the Ketra Orcs. That means that we need to stop it right away. There is a lot work for us to do. Please come to me when you are done preparing.
+(You can obtain the next Queen Navari's Letter at Lv. 81.)
+ \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/Q10525_QueenNavarisLetterKetraOrcOutpost.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/Q10525_QueenNavarisLetterKetraOrcOutpost.java new file mode 100644 index 0000000000..130a2acb2a --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/Q10525_QueenNavarisLetterKetraOrcOutpost.java @@ -0,0 +1,135 @@ +/* + * 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.Q10525_QueenNavarisLetterKetraOrcOutpost; + +import com.l2jmobius.gameserver.enums.QuestType; +import com.l2jmobius.gameserver.model.Location; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; +import com.l2jmobius.gameserver.model.base.ClassId; +import com.l2jmobius.gameserver.model.quest.QuestState; +import com.l2jmobius.gameserver.network.NpcStringId; +import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; + +import quests.LetterQuest; + +/** + * Queen Navari's Letter, Ketra Orc Outpost (10521) + * @URL https://l2wiki.com/Queen_Navari%27s_Letter,_Ketra_Orc_Outpost + * @author Mobius + */ +public class Q10525_QueenNavarisLetterKetraOrcOutpost extends LetterQuest +{ + // NPCs + private static final int GREGORY = 31279; + private static final int LUGONNES = 33852; + // Items + private static final int KETRA_ORC_OUTPOST = 46732; + private static final int SOE_TOWN_OF_GODDARD = 46731; + // Misc + private static final int MIN_LEVEL = 76; + private static final int MAX_LEVEL = 80; + // Teleport + private static final Location TELEPORT_LOC = new Location(147711, -52920, -2728); + + public Q10525_QueenNavarisLetterKetraOrcOutpost() + { + super(10521); + addTalkId(GREGORY, LUGONNES); + setIsErtheiaQuest(true); + setLevel(MIN_LEVEL, MAX_LEVEL); + setStartLocation(SOE_TOWN_OF_GODDARD, TELEPORT_LOC); + setStartQuestSound("Npcdialog1.serenia_quest_13"); + registerQuestItems(SOE_TOWN_OF_GODDARD, KETRA_ORC_OUTPOST); + } + + @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 "31279-02.htm": + { + htmltext = event; + break; + } + case "31279-03.htm": + { + if (qs.isCond(2)) + { + qs.setCond(3, true); + giveItems(player, KETRA_ORC_OUTPOST, 1); + htmltext = event; + } + break; + } + case "33852-02.htm": + { + if (qs.isCond(3)) + { + if (player.getLevel() >= MIN_LEVEL) + { + addExpAndSp(player, 1277640, 306); + giveStoryQuestReward(npc, player); + showOnScreenMsg(player, NpcStringId.YOU_HAVE_FINISHED_ALL_OF_QUEEN_NAVARI_S_LETTERS_GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_LETTERS_FROM_A_MINSTREL_AT_LV_85, ExShowScreenMessage.TOP_CENTER, 8000); + qs.exitQuest(QuestType.ONE_TIME, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + } + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + + if (qs.isStarted()) + { + if (npc.getId() == GREGORY) + { + htmltext = (qs.isCond(2)) ? "31279-01.htm" : "31279-04.html"; + } + else if (qs.isCond(3)) + { + htmltext = "33852-01.html"; + } + } + return htmltext; + } + + @Override + public boolean canShowTutorialMark(L2PcInstance player) + { + return player.getClassId() == ClassId.STRATOMANCER; + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/popup.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/popup.html new file mode 100644 index 0000000000..7e77b66e8c --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10525_QueenNavarisLetterKetraOrcOutpost/popup.html @@ -0,0 +1,7 @@ +The Queen's Letter:
+I got an emergency request from the Town of Goddard. Near the Town of Goddard at Ketra Orc Outpost.
+It's different from the one we came in, but it's worth looking into. Go see High Priest Gregory.
+(A Scroll of Escape is enclosed. If you want to go now, use it to travel immediately.)
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/QuestMasterHandler.java index 017a507386..3ba1c87071 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -331,6 +331,7 @@ import quests.Q10521_QueenNavarisLetterVarkaSilenosBarracks.Q10521_QueenNavarisL import quests.Q10522_TheDarkSecretOfVarkaSilenos.Q10522_TheDarkSecretOfVarkaSilenos; import quests.Q10523_TheAssassinationOfTheVarkaSilenosCommander.Q10523_TheAssassinationOfTheVarkaSilenosCommander; import quests.Q10524_TheAssassinationOfTheVarkaSilenosCommanderChief.Q10524_TheAssassinationOfTheVarkaSilenosCommanderChief; +import quests.Q10525_QueenNavarisLetterKetraOrcOutpost.Q10525_QueenNavarisLetterKetraOrcOutpost; import quests.Q10526_TheDarkSecretOfTheKetraOrcs.Q10526_TheDarkSecretOfTheKetraOrcs; import quests.Q10534_HatchlingResearch.Q10534_HatchlingResearch; import quests.Q10541_TrainLikeTheRealThing.Q10541_TrainLikeTheRealThing; @@ -753,6 +754,7 @@ public class QuestMasterHandler Q10522_TheDarkSecretOfVarkaSilenos.class, Q10523_TheAssassinationOfTheVarkaSilenosCommander.class, Q10524_TheAssassinationOfTheVarkaSilenosCommanderChief.class, + Q10525_QueenNavarisLetterKetraOrcOutpost.class, Q10526_TheDarkSecretOfTheKetraOrcs.class, Q10534_HatchlingResearch.class, Q10541_TrainLikeTheRealThing.class,