From a22a050078c36eacbf0113761099efb1400297e1 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 16 Jun 2016 08:15:51 +0000 Subject: [PATCH] Quest Letters from the Queen: Dragon Valley (10798). Contributed by gigilo1968. --- .../30120-01.html | 5 + .../30120-02.html | 6 + .../30120-03.html | 4 + .../30120-04.html | 3 + .../33973-01.html | 4 + .../33973-02.html | 5 + .../33973-03.html | 4 + ...10798_LettersFromTheQueenDragonValley.java | 125 ++++++++++++++++++ .../popup.html | 7 + .../scripts/quests/QuestMasterHandler.java | 4 + 10 files changed, 167 insertions(+) create mode 100644 trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-01.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-02.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-03.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-04.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-01.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-02.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-03.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/Q10798_LettersFromTheQueenDragonValley.java create mode 100644 trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/popup.html diff --git a/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-01.html b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-01.html new file mode 100644 index 0000000000..1b2d732c52 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-01.html @@ -0,0 +1,5 @@ +High Priest Maximilian:
+What's going on? Oh, an Ertheia.
+Did you come here at Queen Navari's request?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-02.html b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-02.html new file mode 100644 index 0000000000..ad9df173ae --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-02.html @@ -0,0 +1,6 @@ +High Priest Maximilian:
+Nice to meet you. I know that Queen Navari and the Ertheia are helping us, and will not forget this fact.
+We asked for help because of the Dimensional Rift in Dragon Valley.
+So far we learned that it's different from the the Dimensional Rift the Ertheia came though, but it would still need investigating. Could you help?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-03.html b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-03.html new file mode 100644 index 0000000000..5513f3d6dc --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-03.html @@ -0,0 +1,4 @@ +High Priest Maximilian:
+Thank you for your kind gesture. Dragon Valley is a dangerous place. You need to be extra careful.
+First go to Namo in Dragon Valley and talk about the details. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-04.html b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-04.html new file mode 100644 index 0000000000..c7b91887ca --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-04.html @@ -0,0 +1,3 @@ +High Priest Maximilian:
+First go to Namo in Dragon Valley and talk about the details. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-01.html b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-01.html new file mode 100644 index 0000000000..f0ea10711a --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-01.html @@ -0,0 +1,4 @@ +Namo:
+What brings you here?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-02.html b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-02.html new file mode 100644 index 0000000000..0b2c567767 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-02.html @@ -0,0 +1,5 @@ +Namo:
+Right now, Dragon Valley is a very dangerous place. As the 6th Seal was broken, the Dimensional Rift caused the Undead to appear whenever night fell.
+You're really not going to change your mind about investigating such a dangerous place?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-03.html b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-03.html new file mode 100644 index 0000000000..af892960fd --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-03.html @@ -0,0 +1,4 @@ +Namo:
+Good. Here's your mission.
+(You have completed all "Letters from the Queen". You can start "The Minstrel's Song" after reaching Lv. 85.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/Q10798_LettersFromTheQueenDragonValley.java b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/Q10798_LettersFromTheQueenDragonValley.java new file mode 100644 index 0000000000..f3bbabe574 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/Q10798_LettersFromTheQueenDragonValley.java @@ -0,0 +1,125 @@ +/* + * 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.Q10798_LettersFromTheQueenDragonValley; + +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.quest.QuestState; +import com.l2jmobius.gameserver.network.NpcStringId; +import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; + +import quests.LetterQuest; + +/** + * Letters from the Queen: Dragon Valley (10798) + * @URL https://l2wiki.com/Letters_from_the_Queen:_Dragon_Valley + * @author Gigi + */ +public class Q10798_LettersFromTheQueenDragonValley extends LetterQuest +{ + // NPCs + private static final int MAXIMILIAN = 30120; + private static final int NAMO = 33973; + // Items + private static final int SOE_DRAGON_VALLEY = 39587; + private static final int SOE_TOWN_OF_GIRAN = 39586; + private static final int EWS = 959; + // Misc + private static final int MIN_LEVEL = 76; + private static final int MAX_LEVEL = 84; + // Teleport + private static final Location TELEPORT_LOC = new Location(86674, 148630, -3401); + + public Q10798_LettersFromTheQueenDragonValley() + { + super(10798); + addTalkId(MAXIMILIAN, NAMO); + + setIsErtheiaQuest(true); + setLevel(MIN_LEVEL, MAX_LEVEL); + setStartLocation(SOE_TOWN_OF_GIRAN, TELEPORT_LOC); + setStartQuestSound("Npcdialog1.serenia_quest_11"); + registerQuestItems(SOE_TOWN_OF_GIRAN, SOE_DRAGON_VALLEY); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + String htmltext = event; + switch (event) + { + case "30120-02.html": + case "33973-02.html": + { + break; + } + case "30120-03.html": + { + if (qs.isCond(1)) + { + qs.setCond(2, true); + giveItems(player, SOE_DRAGON_VALLEY, 1); + } + break; + } + case "33973-03.html": + { + if (qs.isCond(2)) + { + giveItems(player, EWS, 2); + giveStoryQuestReward(player, 182); + addExpAndSp(player, 1277640, 306); + 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(false, true); + } + break; + } + default: + htmltext = null; + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = null; + if (qs == null) + { + return htmltext; + } + if (qs.isStarted()) + { + if (npc.getId() == MAXIMILIAN) + { + htmltext = (qs.isCond(1)) ? "30120-01.html" : "30120-04.html"; + } + else if (qs.isCond(2)) + { + htmltext = "33973-01.html"; + } + } + return htmltext; + } +} \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/popup.html b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/popup.html new file mode 100644 index 0000000000..fb31c4fd08 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/popup.html @@ -0,0 +1,7 @@ +The Queen's Letter:
+I got an emergency request from the Town of Giran. Near the Town of Giran at Dragon Valley, a Dimensional Rift was spotted.
+It's different from the one we came in, but it's worth looking into. Go see High Priest Maximilian.
+(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/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java index e83687da90..cbe619b44d 100644 --- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -317,6 +317,8 @@ import quests.Q10787_ASpyMission.Q10787_ASpyMission; import quests.Q10789_LettersFromTheQueenSwampOfScreams.Q10789_LettersFromTheQueenSwampOfScreams; import quests.Q10792_LettersFromTheQueenForestOfTheDead.Q10792_LettersFromTheQueenForestOfTheDead; import quests.Q10793_SaveTheSouls.Q10793_SaveTheSouls; +import quests.Q10795_LettersFromTheQueenWallOfAgros.Q10795_LettersFromTheQueenWallOfAgros; +import quests.Q10798_LettersFromTheQueenDragonValley.Q10798_LettersFromTheQueenDragonValley; import quests.Q10811_ExaltedOneWhoFacesTheLimit.Q10811_ExaltedOneWhoFacesTheLimit; import quests.Q10812_FacingSadness.Q10812_FacingSadness; import quests.Q10813_ForGlory.Q10813_ForGlory; @@ -630,6 +632,8 @@ public class QuestMasterHandler Q10789_LettersFromTheQueenSwampOfScreams.class, Q10792_LettersFromTheQueenForestOfTheDead.class, Q10793_SaveTheSouls.class, + Q10795_LettersFromTheQueenWallOfAgros.class, + Q10798_LettersFromTheQueenDragonValley.class, Q10811_ExaltedOneWhoFacesTheLimit.class, Q10812_FacingSadness.class, Q10813_ForGlory.class,