Quest Letters from the Queen: Dragon Valley (10798).
Contributed by gigilo1968.
This commit is contained in:
		
							
								
								
									
										5
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-01.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-01.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| <html><body>High Priest Maximilian:<br> | ||||
| What's going on? Oh, an Ertheia.<br> | ||||
| Did you come here at Queen Navari's request?<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10798_LettersFromTheQueenDragonValley 30120-02.html">"Yes."</button> | ||||
| </body></html> | ||||
							
								
								
									
										6
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-02.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-02.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| <html><body>High Priest Maximilian:<br> | ||||
| Nice to meet you. I know that Queen Navari and the Ertheia are helping us, and will not forget this fact.<br> | ||||
| We asked for help because of the Dimensional Rift in Dragon Valley. <br> | ||||
| 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?<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10798_LettersFromTheQueenDragonValley 30120-03.html">"I will help."</button> | ||||
| </body></html> | ||||
							
								
								
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-03.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-03.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| <html><body>High Priest Maximilian:<br> | ||||
| Thank you for your kind gesture. Dragon Valley is a dangerous place. You need to be extra careful.<br> | ||||
| First go to <font color="LEVEL">Namo</font> in <font color="LEVEL">Dragon Valley</font> and talk about the details. | ||||
| </body></html> | ||||
							
								
								
									
										3
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-04.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/30120-04.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| <html><body>High Priest Maximilian:<br> | ||||
| First go to <font color="LEVEL">Namo</font> in <font color="LEVEL">Dragon Valley</font> and talk about the details. | ||||
| </body></html> | ||||
							
								
								
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-01.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-01.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| <html><body>Namo:<br> | ||||
| What brings you here?<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10798_LettersFromTheQueenDragonValley 33973-02.html">"Tell me what's going on in Dragon Valley."</button> | ||||
| </body></html> | ||||
							
								
								
									
										5
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-02.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-02.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| <html><body>Namo:<br> | ||||
| 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.<br> | ||||
| You're really not going to change your mind about investigating such a dangerous place?<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10798_LettersFromTheQueenDragonValley 33973-03.html">"No, I'm not changing my mind."</button> | ||||
| </body></html> | ||||
							
								
								
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-03.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/33973-03.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| <html><body>Namo:<br> | ||||
| Good. Here's your mission.<br> | ||||
| (You have completed all "Letters from the Queen". You can start "The Minstrel's Song" after reaching Lv. 85.) | ||||
| </body></html> | ||||
| @@ -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 <http://www.gnu.org/licenses/>. | ||||
|  */ | ||||
| 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; | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										7
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/popup.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								trunk/dist/game/data/scripts/quests/Q10798_LettersFromTheQueenDragonValley/popup.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| <html><body>The Queen's Letter:<br> | ||||
| I got an emergency request from the Town of Giran. Near the Town of Giran at Dragon Valley, a Dimensional Rift was spotted.<br> | ||||
| It's different from the one we came in, but it's worth looking into. Go see <font color="LEVEL">High Priest Maximilian</font>.<br> | ||||
| (A <font color="LEVEL">Scroll of Escape</font> is enclosed. If you want to go now, use it to travel immediately.)<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h %teleport%">"Here I go!"</button> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close</button> | ||||
| </body></html> | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDev
					MobiusDev