diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/MissingQuests.txt index 2c08f41e2a..6f17142433 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/MissingQuests.txt @@ -4,7 +4,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 575 Special Mission: Fortuna 576 Special Mission: Defeat Spezion 585 Can't Go Against the Time diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm new file mode 100644 index 0000000000..4e046177f6 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm @@ -0,0 +1,4 @@ +Penny
+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.
+(Only characters with Lv. 93-96 or above and Faction level 5 or above with the Adventure Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm new file mode 100644 index 0000000000..19df136952 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm @@ -0,0 +1,5 @@ +Penny:
+What is it? Do you want to check new missions of the Adventure Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm new file mode 100644 index 0000000000..8ad089b354 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm @@ -0,0 +1,5 @@ +Penny:
+Did you know that Spicule Zero was a serious threat.
+The guild of Adventures said that Spicula Zero needs to be destroyed.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm new file mode 100644 index 0000000000..b1e95eebc5 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm @@ -0,0 +1,6 @@ +Penny:
+Do you detract from the intelligence of the Hunters Guild? This is all true!
+The important thing is that Spicula Zero actions are somehow dangerous. So we agreed.
+With whom? Of course, with Aden.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm new file mode 100644 index 0000000000..8ebbf26ae5 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm @@ -0,0 +1,3 @@ +Penny:
+The Adventure Guild maintains close ties with the Aden Courtyard. In accordance with the agreement, we have been instructed to kill Spicula Zero. Go to the Nornil Dungeon, use the Central Bath Device and go to the Nornil Garden, and then crack down on Spicula Zero. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html new file mode 100644 index 0000000000..8ebbf26ae5 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html @@ -0,0 +1,3 @@ +Penny:
+The Adventure Guild maintains close ties with the Aden Courtyard. In accordance with the agreement, we have been instructed to kill Spicula Zero. Go to the Nornil Dungeon, use the Central Bath Device and go to the Nornil Garden, and then crack down on Spicula Zero. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html new file mode 100644 index 0000000000..5792031d1c --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html @@ -0,0 +1,5 @@ +Penny:
+Did you kill Spicula Zero?
+You ruined Spicula Zero designs...
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html new file mode 100644 index 0000000000..03b696272a --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html @@ -0,0 +1,3 @@ +Penny:
+Good job. This will help the Adventure Guild take the lead. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java new file mode 100644 index 0000000000..a58ea10cb7 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java @@ -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 . + */ +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); + } + } +} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/QuestMasterHandler.java index 23cba1e30f..432f8f8b0c 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -145,6 +145,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; @@ -516,7 +517,6 @@ import quests.not_done.Q00570_SpecialMissionKartiasLabyrinthParty; import quests.not_done.Q00571_SpecialMissionProofOfUnityFieldRaid; import quests.not_done.Q00572_SpecialMissionProofOfCourageFieldRaid; import quests.not_done.Q00573_SpecialMissionProofOfStrengthFieldRaid; -import quests.not_done.Q00574_SpecialMissionNornilsGarden; import quests.not_done.Q00575_SpecialMissionFortuna; import quests.not_done.Q00576_SpecialMissionDefeatSpezion; import quests.not_done.Q00585_CantGoAgainstTheTime; @@ -742,7 +742,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, Q00575_SpecialMissionFortuna.class, // TODO: Not done. Q00576_SpecialMissionDefeatSpezion.class, // TODO: Not done. Q00580_BeyondTheMemories.class, diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java deleted file mode 100644 index d21ee355da..0000000000 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java +++ /dev/null @@ -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 . - */ -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)); - } -} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/MissingQuests.txt index 0ff1f4558a..6cda72bfc2 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/MissingQuests.txt @@ -9,7 +9,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 575 Special Mission: Fortuna 576 Special Mission: Defeat Spezion 577 Basic Mission: Silent Valley diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm new file mode 100644 index 0000000000..4e046177f6 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm @@ -0,0 +1,4 @@ +Penny
+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.
+(Only characters with Lv. 93-96 or above and Faction level 5 or above with the Adventure Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm new file mode 100644 index 0000000000..19df136952 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm @@ -0,0 +1,5 @@ +Penny:
+What is it? Do you want to check new missions of the Adventure Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm new file mode 100644 index 0000000000..8ad089b354 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm @@ -0,0 +1,5 @@ +Penny:
+Did you know that Spicule Zero was a serious threat.
+The guild of Adventures said that Spicula Zero needs to be destroyed.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm new file mode 100644 index 0000000000..b1e95eebc5 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm @@ -0,0 +1,6 @@ +Penny:
+Do you detract from the intelligence of the Hunters Guild? This is all true!
+The important thing is that Spicula Zero actions are somehow dangerous. So we agreed.
+With whom? Of course, with Aden.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm new file mode 100644 index 0000000000..8ebbf26ae5 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm @@ -0,0 +1,3 @@ +Penny:
+The Adventure Guild maintains close ties with the Aden Courtyard. In accordance with the agreement, we have been instructed to kill Spicula Zero. Go to the Nornil Dungeon, use the Central Bath Device and go to the Nornil Garden, and then crack down on Spicula Zero. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html new file mode 100644 index 0000000000..8ebbf26ae5 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html @@ -0,0 +1,3 @@ +Penny:
+The Adventure Guild maintains close ties with the Aden Courtyard. In accordance with the agreement, we have been instructed to kill Spicula Zero. Go to the Nornil Dungeon, use the Central Bath Device and go to the Nornil Garden, and then crack down on Spicula Zero. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html new file mode 100644 index 0000000000..5792031d1c --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html @@ -0,0 +1,5 @@ +Penny:
+Did you kill Spicula Zero?
+You ruined Spicula Zero designs...
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html new file mode 100644 index 0000000000..03b696272a --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html @@ -0,0 +1,3 @@ +Penny:
+Good job. This will help the Adventure Guild take the lead. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java new file mode 100644 index 0000000000..a58ea10cb7 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java @@ -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 . + */ +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); + } + } +} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/QuestMasterHandler.java index 18b626dacc..ec41b6be5e 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -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; @@ -587,7 +588,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, Q00575_SpecialMissionFortuna.class, // TODO: Not done. Q00576_SpecialMissionDefeatSpezion.class, // TODO: Not done. Q00577_BasicMissionSilentValley.class, // TODO: Not done. diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java deleted file mode 100644 index d21ee355da..0000000000 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java +++ /dev/null @@ -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 . - */ -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)); - } -} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/MissingQuests.txt index d8a5275e06..d1590e22d2 100644 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/MissingQuests.txt @@ -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 diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm new file mode 100644 index 0000000000..4e046177f6 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm @@ -0,0 +1,4 @@ +Penny
+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.
+(Only characters with Lv. 93-96 or above and Faction level 5 or above with the Adventure Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm new file mode 100644 index 0000000000..19df136952 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm @@ -0,0 +1,5 @@ +Penny:
+What is it? Do you want to check new missions of the Adventure Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm new file mode 100644 index 0000000000..8ad089b354 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm @@ -0,0 +1,5 @@ +Penny:
+Did you know that Spicule Zero was a serious threat.
+The guild of Adventures said that Spicula Zero needs to be destroyed.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm new file mode 100644 index 0000000000..b1e95eebc5 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm @@ -0,0 +1,6 @@ +Penny:
+Do you detract from the intelligence of the Hunters Guild? This is all true!
+The important thing is that Spicula Zero actions are somehow dangerous. So we agreed.
+With whom? Of course, with Aden.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm new file mode 100644 index 0000000000..8ebbf26ae5 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm @@ -0,0 +1,3 @@ +Penny:
+The Adventure Guild maintains close ties with the Aden Courtyard. In accordance with the agreement, we have been instructed to kill Spicula Zero. Go to the Nornil Dungeon, use the Central Bath Device and go to the Nornil Garden, and then crack down on Spicula Zero. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html new file mode 100644 index 0000000000..8ebbf26ae5 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html @@ -0,0 +1,3 @@ +Penny:
+The Adventure Guild maintains close ties with the Aden Courtyard. In accordance with the agreement, we have been instructed to kill Spicula Zero. Go to the Nornil Dungeon, use the Central Bath Device and go to the Nornil Garden, and then crack down on Spicula Zero. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html new file mode 100644 index 0000000000..5792031d1c --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html @@ -0,0 +1,5 @@ +Penny:
+Did you kill Spicula Zero?
+You ruined Spicula Zero designs...
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html new file mode 100644 index 0000000000..03b696272a --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html @@ -0,0 +1,3 @@ +Penny:
+Good job. This will help the Adventure Guild take the lead. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java new file mode 100644 index 0000000000..a58ea10cb7 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java @@ -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 . + */ +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); + } + } +} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/QuestMasterHandler.java index af4dc670c3..058f9d4270 100644 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -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. diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java deleted file mode 100644 index d21ee355da..0000000000 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java +++ /dev/null @@ -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 . - */ -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)); - } -} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/MissingQuests.txt index d363c68800..9b6b9a1184 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/MissingQuests.txt @@ -44,7 +44,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 diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm new file mode 100644 index 0000000000..4e046177f6 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-00.htm @@ -0,0 +1,4 @@ +Penny
+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.
+(Only characters with Lv. 93-96 or above and Faction level 5 or above with the Adventure Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm new file mode 100644 index 0000000000..19df136952 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-01.htm @@ -0,0 +1,5 @@ +Penny:
+What is it? Do you want to check new missions of the Adventure Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm new file mode 100644 index 0000000000..8ad089b354 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-02.htm @@ -0,0 +1,5 @@ +Penny:
+Did you know that Spicule Zero was a serious threat.
+The guild of Adventures said that Spicula Zero needs to be destroyed.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm new file mode 100644 index 0000000000..b1e95eebc5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-03.htm @@ -0,0 +1,6 @@ +Penny:
+Do you detract from the intelligence of the Hunters Guild? This is all true!
+The important thing is that Spicula Zero actions are somehow dangerous. So we agreed.
+With whom? Of course, with Aden.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm new file mode 100644 index 0000000000..8ebbf26ae5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-04.htm @@ -0,0 +1,3 @@ +Penny:
+The Adventure Guild maintains close ties with the Aden Courtyard. In accordance with the agreement, we have been instructed to kill Spicula Zero. Go to the Nornil Dungeon, use the Central Bath Device and go to the Nornil Garden, and then crack down on Spicula Zero. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html new file mode 100644 index 0000000000..8ebbf26ae5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-05.html @@ -0,0 +1,3 @@ +Penny:
+The Adventure Guild maintains close ties with the Aden Courtyard. In accordance with the agreement, we have been instructed to kill Spicula Zero. Go to the Nornil Dungeon, use the Central Bath Device and go to the Nornil Garden, and then crack down on Spicula Zero. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html new file mode 100644 index 0000000000..5792031d1c --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-06.html @@ -0,0 +1,5 @@ +Penny:
+Did you kill Spicula Zero?
+You ruined Spicula Zero designs...
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html new file mode 100644 index 0000000000..03b696272a --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/34413-07.html @@ -0,0 +1,3 @@ +Penny:
+Good job. This will help the Adventure Guild take the lead. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java new file mode 100644 index 0000000000..a58ea10cb7 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00574_SpecialMissionNornilsGarden/Q00574_SpecialMissionNornilsGarden.java @@ -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 . + */ +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); + } + } +} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/QuestMasterHandler.java index c41ad273e5..463dd802ca 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -57,6 +57,7 @@ import quests.Q00561_BasicMissionHarnakUndergroundRuins.Q00561_BasicMissionHarna import quests.Q00564_BasicMissionKartiasLabyrinthSolo.Q00564_BasicMissionKartiasLabyrinthSolo; 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.Q00587_MoreAggressiveOperation.Q00587_MoreAggressiveOperation; import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess; @@ -252,7 +253,6 @@ import quests.not_done.Q00570_SpecialMissionKartiasLabyrinthParty; import quests.not_done.Q00571_SpecialMissionProofOfUnityFieldRaid; import quests.not_done.Q00572_SpecialMissionProofOfCourageFieldRaid; import quests.not_done.Q00573_SpecialMissionProofOfStrengthFieldRaid; -import quests.not_done.Q00574_SpecialMissionNornilsGarden; import quests.not_done.Q00576_SpecialMissionDefeatSpezion; import quests.not_done.Q00577_BasicMissionSilentValley; import quests.not_done.Q00578_BasicMissionCemetery; @@ -385,7 +385,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. diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java deleted file mode 100644 index d21ee355da..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00574_SpecialMissionNornilsGarden.java +++ /dev/null @@ -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 . - */ -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)); - } -}