Addition of quest Special Mission: Nornil's Garden (574).
Contributed by Dmitri.
This commit is contained in:
		| @@ -12,7 +12,6 @@ | ||||
| 571 Special Mission: Proof of Unity (Field Raid) | ||||
| 572 Special Mission: Proof of Courage (Field Raid) | ||||
| 573 Special Mission: Proof of Strength (Field Raid) | ||||
| 574 Special Mission: Nornil's Garden | ||||
| 576 Special Mission: Defeat Spezion | ||||
| 577 Basic Mission: Silent Valley | ||||
| 578 Basic Mission: Cemetery | ||||
|   | ||||
| @@ -0,0 +1,4 @@ | ||||
| <html><body>Penny<br> | ||||
| I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.<br> | ||||
| (Only characters with Lv. 93-96 or above and Faction level 5 or above with the Adventure Guild may undertake this quest.) | ||||
| </body></html> | ||||
| @@ -0,0 +1,5 @@ | ||||
| <html><body>Penny:<br> | ||||
| What is it? Do you want to check new missions of the Adventure Guild?<br> | ||||
| Come on. We are always in high demand.<br> | ||||
| <Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q00574_SpecialMissionNornilsGarden 34413-02.htm">Ask about the mission</Button> | ||||
| </body></html> | ||||
| @@ -0,0 +1,5 @@ | ||||
| <html><body>Penny:<br> | ||||
| Did you know that Spicule Zero was a serious threat.<br> | ||||
| The guild of Adventures said that Spicula Zero needs to be destroyed.<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00574_SpecialMissionNornilsGarden 34413-03.htm">"Really?"</Button> | ||||
| </body></html> | ||||
| @@ -0,0 +1,6 @@ | ||||
| <html><body>Penny:<br> | ||||
| Do you detract from the intelligence of the Hunters Guild? This is all true!<br> | ||||
| The important thing is that Spicula Zero actions are somehow dangerous. So we agreed.<br> | ||||
| With whom? Of course, with Aden.<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00574_SpecialMissionNornilsGarden 34413-04.htm">Ask about the agreement</Button> | ||||
| </body></html> | ||||
| @@ -0,0 +1,3 @@ | ||||
| <html><body>Penny:<br> | ||||
| The Adventure Guild maintains close ties with the Aden Courtyard. In accordance with the agreement, we have been instructed to kill <font color="LEVEL">Spicula Zero</font>. Go to the Nornil Dungeon, use the Central Bath Device and go to the Nornil Garden, and then crack down on Spicula Zero. | ||||
| </body></html> | ||||
| @@ -0,0 +1,3 @@ | ||||
| <html><body>Penny:<br> | ||||
| The Adventure Guild maintains close ties with the Aden Courtyard. In accordance with the agreement, we have been instructed to kill <font color="LEVEL">Spicula Zero</font>. Go to the Nornil Dungeon, use the Central Bath Device and go to the Nornil Garden, and then crack down on Spicula Zero. | ||||
| </body></html> | ||||
| @@ -0,0 +1,5 @@ | ||||
| <html><body>Penny:<br> | ||||
| Did you kill Spicula Zero?<br> | ||||
| You ruined Spicula Zero designs...<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00574_SpecialMissionNornilsGarden 34413-07.html">"I figured out Spicula Zero"</Button> | ||||
| </body></html> | ||||
| @@ -0,0 +1,3 @@ | ||||
| <html><body>Penny:<br> | ||||
| Good job. This will help the Adventure Guild take the lead. | ||||
| </body></html> | ||||
| @@ -0,0 +1,139 @@ | ||||
| /* | ||||
|  * 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.Q00574_SpecialMissionNornilsGarden; | ||||
|  | ||||
| import org.l2jmobius.Config; | ||||
| import org.l2jmobius.gameserver.enums.Faction; | ||||
| import org.l2jmobius.gameserver.enums.QuestType; | ||||
| import org.l2jmobius.gameserver.model.actor.Npc; | ||||
| import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; | ||||
| import org.l2jmobius.gameserver.model.quest.Quest; | ||||
| import org.l2jmobius.gameserver.model.quest.QuestState; | ||||
| import org.l2jmobius.gameserver.model.quest.State; | ||||
|  | ||||
| /** | ||||
|  * Special Mission: Nornil's Garden (574) | ||||
|  * @URL https://l2wiki.com/Special_Mission:_Nornil%27s_Garden#Daily | ||||
|  * @author Dmitri | ||||
|  */ | ||||
| public class Q00574_SpecialMissionNornilsGarden extends Quest | ||||
| { | ||||
| 	// NPCs | ||||
| 	private static final int PENNY = 34413; | ||||
| 	// Monsters | ||||
| 	private static final int SPICULA = 25901; | ||||
| 	// Rewards | ||||
| 	private static final int SCROLL_OF_ESCAPE_NORNILS_CAVE = 39503; | ||||
| 	// Misc | ||||
| 	private static final int MIN_LEVEL = 93; | ||||
| 	private static final int MAX_LEVEL = 96; | ||||
| 	 | ||||
| 	public Q00574_SpecialMissionNornilsGarden() | ||||
| 	{ | ||||
| 		super(574); | ||||
| 		addStartNpc(PENNY); | ||||
| 		addTalkId(PENNY); | ||||
| 		addKillId(SPICULA); | ||||
| 		addCondLevel(MIN_LEVEL, MAX_LEVEL, "34413-00.htm"); | ||||
| 		addFactionLevel(Faction.ADVENTURE_GUILD, 5, "34413-00.htm"); | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public String onAdvEvent(String event, Npc npc, PlayerInstance player) | ||||
| 	{ | ||||
| 		String htmltext = null; | ||||
| 		final QuestState qs = getQuestState(player, false); | ||||
| 		if (qs == null) | ||||
| 		{ | ||||
| 			return htmltext; | ||||
| 		} | ||||
| 		switch (event) | ||||
| 		{ | ||||
| 			case "34413-02.htm": | ||||
| 			case "34413-03.htm": | ||||
| 			{ | ||||
| 				htmltext = event; | ||||
| 				break; | ||||
| 			} | ||||
| 			case "34413-04.htm": | ||||
| 			{ | ||||
| 				qs.startQuest(); | ||||
| 				htmltext = event; | ||||
| 				break; | ||||
| 			} | ||||
| 			case "34413-07.html": | ||||
| 			{ | ||||
| 				// Rewards | ||||
| 				giveItems(player, SCROLL_OF_ESCAPE_NORNILS_CAVE, 1); | ||||
| 				addExpAndSp(player, 1193302530L, 1193280); | ||||
| 				addFactionPoints(player, Faction.ADVENTURE_GUILD, 130); | ||||
| 				qs.exitQuest(QuestType.DAILY, true); | ||||
| 				htmltext = event; | ||||
| 				break; | ||||
| 			} | ||||
| 		} | ||||
| 		return htmltext; | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public String onTalk(Npc npc, PlayerInstance player) | ||||
| 	{ | ||||
| 		final QuestState qs = getQuestState(player, true); | ||||
| 		String htmltext = getNoQuestMsg(player); | ||||
| 		 | ||||
| 		switch (qs.getState()) | ||||
| 		{ | ||||
| 			case State.CREATED: | ||||
| 			{ | ||||
| 				htmltext = "34413-01.htm"; | ||||
| 				break; | ||||
| 			} | ||||
| 			case State.STARTED: | ||||
| 			{ | ||||
| 				htmltext = (qs.isCond(1)) ? "34413-05.html" : "34413-06.html"; | ||||
| 				break; | ||||
| 			} | ||||
| 			case State.COMPLETED: | ||||
| 			{ | ||||
| 				if (!qs.isNowAvailable()) | ||||
| 				{ | ||||
| 					htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); | ||||
| 					break; | ||||
| 				} | ||||
| 				qs.setState(State.CREATED); | ||||
| 			} | ||||
| 		} | ||||
| 		return htmltext; | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public String onKill(Npc npc, PlayerInstance player, boolean isSummon) | ||||
| 	{ | ||||
| 		executeForEachPlayer(player, npc, isSummon, true, false); | ||||
| 		return super.onKill(npc, player, isSummon); | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) | ||||
| 	{ | ||||
| 		final QuestState qs = getQuestState(player, false); | ||||
| 		if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		{ | ||||
| 			qs.setCond(2, true); | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| @@ -123,6 +123,7 @@ import quests.Q00565_BasicMissionFairySettlementWest.Q00565_BasicMissionFairySet | ||||
| import quests.Q00566_BasicMissionFairySettlementEast.Q00566_BasicMissionFairySettlementEast; | ||||
| import quests.Q00567_BasicMissionIsleOfSouls.Q00567_BasicMissionIsleOfSouls; | ||||
| import quests.Q00569_BasicMissionSealOfShilen.Q00569_BasicMissionSealOfShilen; | ||||
| import quests.Q00574_SpecialMissionNornilsGarden.Q00574_SpecialMissionNornilsGarden; | ||||
| import quests.Q00580_BeyondTheMemories.Q00580_BeyondTheMemories; | ||||
| import quests.Q00581_ThePurificationRitual.Q00581_ThePurificationRitual; | ||||
| import quests.Q00582_WashBloodWithBlood.Q00582_WashBloodWithBlood; | ||||
| @@ -605,7 +606,7 @@ public class QuestMasterHandler | ||||
| 		Q00571_SpecialMissionProofOfUnityFieldRaid.class, // TODO: Not done. | ||||
| 		Q00572_SpecialMissionProofOfCourageFieldRaid.class, // TODO: Not done. | ||||
| 		Q00573_SpecialMissionProofOfStrengthFieldRaid.class, // TODO: Not done. | ||||
| 		Q00574_SpecialMissionNornilsGarden.class, // TODO: Not done. | ||||
| 		Q00574_SpecialMissionNornilsGarden.class, | ||||
| 		Q00576_SpecialMissionDefeatSpezion.class, // TODO: Not done. | ||||
| 		Q00577_BasicMissionSilentValley.class, // TODO: Not done. | ||||
| 		Q00578_BasicMissionCemetery.class, // TODO: Not done. | ||||
|   | ||||
| @@ -1,36 +0,0 @@ | ||||
| /* | ||||
|  * 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.not_done; | ||||
|  | ||||
| import org.l2jmobius.Config; | ||||
| import org.l2jmobius.gameserver.model.quest.Quest; | ||||
|  | ||||
| /** | ||||
|  * @author Mobius | ||||
|  */ | ||||
| public class Q00574_SpecialMissionNornilsGarden extends Quest | ||||
| { | ||||
| 	private static final int START_NPC = 34413; | ||||
| 	 | ||||
| 	public Q00574_SpecialMissionNornilsGarden() | ||||
| 	{ | ||||
| 		super(574); | ||||
| 		addStartNpc(START_NPC); | ||||
| 		addTalkId(START_NPC); | ||||
| 		addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment