From b5eccda27a6d2d39ec4175003264ece2f553ec69 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 18 Mar 2020 09:24:12 +0000 Subject: [PATCH] Addition of quest 599 and 774. Contributed by Dmitri. --- .../data/scripts/quests/MissingQuests.txt | 1 - .../Q00774_DreamingOfPeace/30370-00.htm | 4 + .../Q00774_DreamingOfPeace/30370-01.htm | 6 + .../Q00774_DreamingOfPeace/30370-02.htm | 6 + .../Q00774_DreamingOfPeace/30370-03.htm | 7 + .../Q00774_DreamingOfPeace/30370-04.htm | 5 + .../Q00774_DreamingOfPeace/30370-05.html | 5 + .../Q00774_DreamingOfPeace/30370-06.html | 5 + .../Q00774_DreamingOfPeace/30370-07.html | 4 + .../Q00774_DreamingOfPeace.java | 173 +++++++++ .../scripts/quests/QuestMasterHandler.java | 4 +- .../not_done/Q00774_DreamingOfPeace.java | 36 -- .../data/scripts/quests/MissingQuests.txt | 1 - .../Q00774_DreamingOfPeace/30370-00.htm | 4 + .../Q00774_DreamingOfPeace/30370-01.htm | 6 + .../Q00774_DreamingOfPeace/30370-02.htm | 6 + .../Q00774_DreamingOfPeace/30370-03.htm | 7 + .../Q00774_DreamingOfPeace/30370-04.htm | 5 + .../Q00774_DreamingOfPeace/30370-05.html | 5 + .../Q00774_DreamingOfPeace/30370-06.html | 5 + .../Q00774_DreamingOfPeace/30370-07.html | 4 + .../Q00774_DreamingOfPeace.java | 173 +++++++++ .../scripts/quests/QuestMasterHandler.java | 4 +- .../not_done/Q00774_DreamingOfPeace.java | 36 -- .../data/scripts/quests/MissingQuests.txt | 1 - .../Q00774_DreamingOfPeace/30370-00.htm | 4 + .../Q00774_DreamingOfPeace/30370-01.htm | 6 + .../Q00774_DreamingOfPeace/30370-02.htm | 6 + .../Q00774_DreamingOfPeace/30370-03.htm | 7 + .../Q00774_DreamingOfPeace/30370-04.htm | 5 + .../Q00774_DreamingOfPeace/30370-05.html | 5 + .../Q00774_DreamingOfPeace/30370-06.html | 5 + .../Q00774_DreamingOfPeace/30370-07.html | 4 + .../Q00774_DreamingOfPeace.java | 173 +++++++++ .../scripts/quests/QuestMasterHandler.java | 4 +- .../not_done/Q00774_DreamingOfPeace.java | 36 -- .../data/scripts/quests/MissingQuests.txt | 2 - .../34425-00.htm | 5 + .../34425-01.htm | 6 + .../34425-02.htm | 4 + .../34425-03.htm | 6 + .../34425-04.htm | 9 + .../34425-04a.htm | 9 + .../34425-04b.htm | 9 + .../34425-05.html | 3 + .../34425-05a.html | 3 + .../34425-06.html | 6 + .../34425-06a.html | 6 + .../34425-06b.html | 6 + .../34425-07.html | 4 + .../34425-07a.html | 4 + .../34425-07b.html | 4 + .../34425-08.html | 3 + .../34425-08a.html | 3 + .../34425-08b.html | 3 + .../34425-09.html | 5 + .../34425-10.html | 4 + .../Q00599_DemonsAndDimensionalEnergy.java | 354 ++++++++++++++++++ .../Q00774_DreamingOfPeace/30370-00.htm | 4 + .../Q00774_DreamingOfPeace/30370-01.htm | 6 + .../Q00774_DreamingOfPeace/30370-02.htm | 6 + .../Q00774_DreamingOfPeace/30370-03.htm | 7 + .../Q00774_DreamingOfPeace/30370-04.htm | 5 + .../Q00774_DreamingOfPeace/30370-05.html | 5 + .../Q00774_DreamingOfPeace/30370-06.html | 5 + .../Q00774_DreamingOfPeace/30370-07.html | 4 + .../Q00774_DreamingOfPeace.java | 173 +++++++++ .../scripts/quests/QuestMasterHandler.java | 8 +- .../Q00599_DemonsAndDimensionalEnergy.java | 36 -- .../not_done/Q00774_DreamingOfPeace.java | 36 -- .../data/scripts/quests/MissingQuests.txt | 2 - .../34425-00.htm | 5 + .../34425-01.htm | 6 + .../34425-02.htm | 4 + .../34425-03.htm | 6 + .../34425-04.htm | 9 + .../34425-04a.htm | 9 + .../34425-04b.htm | 9 + .../34425-05.html | 3 + .../34425-05a.html | 3 + .../34425-06.html | 6 + .../34425-06a.html | 6 + .../34425-06b.html | 6 + .../34425-07.html | 4 + .../34425-07a.html | 4 + .../34425-07b.html | 4 + .../34425-08.html | 3 + .../34425-08a.html | 3 + .../34425-08b.html | 3 + .../34425-09.html | 5 + .../34425-10.html | 4 + .../Q00599_DemonsAndDimensionalEnergy.java | 354 ++++++++++++++++++ .../Q00774_DreamingOfPeace/30370-00.htm | 4 + .../Q00774_DreamingOfPeace/30370-01.htm | 6 + .../Q00774_DreamingOfPeace/30370-02.htm | 6 + .../Q00774_DreamingOfPeace/30370-03.htm | 7 + .../Q00774_DreamingOfPeace/30370-04.htm | 5 + .../Q00774_DreamingOfPeace/30370-05.html | 5 + .../Q00774_DreamingOfPeace/30370-06.html | 5 + .../Q00774_DreamingOfPeace/30370-07.html | 4 + .../Q00774_DreamingOfPeace.java | 173 +++++++++ .../scripts/quests/QuestMasterHandler.java | 8 +- .../Q00599_DemonsAndDimensionalEnergy.java | 36 -- .../not_done/Q00774_DreamingOfPeace.java | 36 -- .../data/scripts/quests/MissingQuests.txt | 2 - .../34425-00.htm | 5 + .../34425-01.htm | 6 + .../34425-02.htm | 4 + .../34425-03.htm | 6 + .../34425-04.htm | 9 + .../34425-04a.htm | 9 + .../34425-04b.htm | 9 + .../34425-05.html | 3 + .../34425-05a.html | 3 + .../34425-06.html | 6 + .../34425-06a.html | 6 + .../34425-06b.html | 6 + .../34425-07.html | 4 + .../34425-07a.html | 4 + .../34425-07b.html | 4 + .../34425-08.html | 3 + .../34425-08a.html | 3 + .../34425-08b.html | 3 + .../34425-09.html | 5 + .../34425-10.html | 4 + .../Q00599_DemonsAndDimensionalEnergy.java | 354 ++++++++++++++++++ .../Q00774_DreamingOfPeace/30370-00.htm | 4 + .../Q00774_DreamingOfPeace/30370-01.htm | 6 + .../Q00774_DreamingOfPeace/30370-02.htm | 6 + .../Q00774_DreamingOfPeace/30370-03.htm | 7 + .../Q00774_DreamingOfPeace/30370-04.htm | 5 + .../Q00774_DreamingOfPeace/30370-05.html | 5 + .../Q00774_DreamingOfPeace/30370-06.html | 5 + .../Q00774_DreamingOfPeace/30370-07.html | 4 + .../Q00774_DreamingOfPeace.java | 173 +++++++++ .../scripts/quests/QuestMasterHandler.java | 8 +- .../Q00599_DemonsAndDimensionalEnergy.java | 36 -- .../not_done/Q00774_DreamingOfPeace.java | 36 -- 138 files changed, 2676 insertions(+), 351 deletions(-) create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java delete mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java delete mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java create mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm create mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm create mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm create mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm create mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm create mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html create mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html create mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html create mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java delete mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html create mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java delete mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.java delete mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java delete mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.java delete mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java delete mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.java delete mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/MissingQuests.txt index b01f3db04e..3fb7761e4c 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/MissingQuests.txt @@ -9,7 +9,6 @@ 759 The Dwarven Nightmare Continues 766 10-day Adventure 773 To Calm the Flood -774 Dreaming of peace 780 Utilize the Darkness - Seed of Infinity 781 Utilize the Darkness - Seed of Annihilation 782 Utilize the Darkness - Seed of Hellfire diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm new file mode 100644 index 0000000000..0d4bb3d6ec --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm @@ -0,0 +1,4 @@ +Nerupa
+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. 90-100.) + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm new file mode 100644 index 0000000000..1c1fcc9785 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm @@ -0,0 +1,6 @@ +Nerupa:
+Are you heading to the Kimerian's Forest?
+With your skills, you will easily be able to go there, even without my help.
+Then do you have a mind to help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm new file mode 100644 index 0000000000..6a4e40569b --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm @@ -0,0 +1,6 @@ +Nerupa:
+I think, every day, that I to return home again, when this place and the world outside find peace again.
+The blackish red fog and the shriveling Mother Tree... all are agonizing.
+Then, I chanced upon something I could do.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm new file mode 100644 index 0000000000..6a7b5195d3 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm @@ -0,0 +1,7 @@ +Nerupa:
+I found out that the Forest of Fairies and the Kimerian's Forest, while they are similar, have distinct differences.
+I also found that the Fairies and Satyrs in the Kimerian's Forest are very dangerous.
+It's also possible to obtain from them the blood necessary to make potions. Adventurers would just venture on in without knowing a thing, and then find themselves in danger.
+So, in order to reduce the risk, and dreaming of a peaceful future, I began my own little struggle.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html new file mode 100644 index 0000000000..2a6fcd6046 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html @@ -0,0 +1,5 @@ +Nerupa:
+Done with 300 already?
+I guess I'm a good judge of character. The Violent Fairies and Satyrs couldn't have made it easy for you. If you still have it in you, and want to slay some more, I' won't stop you. Or would you like to call it a day?
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html new file mode 100644 index 0000000000..5adbbc5ed7 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html @@ -0,0 +1,4 @@ +Nerupa:
+Thank you. Though this is not my hometown, I was distressed by the others who were in distress.
+There are still countless Fairies enraged, and Violent Fairies and Satyrs keep popping up. Please, return tomorrow to help again if you have the time. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java new file mode 100644 index 0000000000..3cdb7867e0 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java @@ -0,0 +1,173 @@ +/* + * 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.Q00774_DreamingOfPeace; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.QuestSound; +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.holders.NpcLogListHolder; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Dreaming of Peace (774) + * @URL https://l2wiki.com/Dreaming_of_Peace + * @author Dmitri + */ +public class Q00774_DreamingOfPeace extends Quest +{ + // NPC + private static final int NERUPA = 30370; + // Monsters + private static final int[] MONSTERS = + { + 22863, // Fairy Warrior + 22871, // Fairy Rogue + 22879, // Fairy Knight + 22887, // Satyr Wizard + 22895, // Satyr Summoner + 22903 // Satyr Witch + }; + // Misc + private static final int MIN_LEVEL = 90; + private static final int MAX_LEVEL = 100; + private static final String KILL_COUNT_VAR = "KillCount"; + + public Q00774_DreamingOfPeace() + { + super(774); + addStartNpc(NERUPA); + addTalkId(NERUPA); + addKillId(MONSTERS); + addCondLevel(MIN_LEVEL, MAX_LEVEL, "30370-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 "30370-02.htm": + case "30370-03.htm": + { + htmltext = event; + break; + } + case "30370-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30370-07.html": + { + // Rewards + giveAdena(player, 559020, true); + addExpAndSp(player, 646727130, 646710); + 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 = "30370-01.htm"; + break; + } + case State.STARTED: + { + htmltext = (qs.isCond(1)) ? "30370-05.html" : "30370-06.html"; + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = "30370-01.htm"; + } + else + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if ((qs != null) && qs.isCond(1) && killer.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + int count = qs.getInt(KILL_COUNT_VAR); + qs.set(KILL_COUNT_VAR, ++count); + if (count >= 300) + { + qs.setCond(2, true); + } + else + { + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + final int killCount = qs.getInt(KILL_COUNT_VAR); + if (killCount > 0) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_THE_VIOLENT_MONSTERS.getId(), true, killCount)); + return holder; + } + } + return super.getNpcLogList(player); + } +} diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/QuestMasterHandler.java index 17b73828bf..8c11cf4239 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -177,6 +177,7 @@ import quests.Q00763_ADauntingTask.Q00763_ADauntingTask; import quests.Q00764_WeakeningTheVarkaSilenosForces.Q00764_WeakeningTheVarkaSilenosForces; import quests.Q00765_WeakeningTheKetraOrcForces.Q00765_WeakeningTheKetraOrcForces; import quests.Q00772_PurifyingSouls.Q00772_PurifyingSouls; +import quests.Q00774_DreamingOfPeace.Q00774_DreamingOfPeace; import quests.Q00775_RetrievingTheChaosFragment.Q00775_RetrievingTheChaosFragment; import quests.Q00776_SlayDarkLordEkimus.Q00776_SlayDarkLordEkimus; import quests.Q00777_SlayDarkLordTiat.Q00777_SlayDarkLordTiat; @@ -492,7 +493,6 @@ import quests.not_done.Q00750_SevenFlowers; import quests.not_done.Q00759_TheDwarvenNightmareContinues; import quests.not_done.Q00766_10DayAdventure; import quests.not_done.Q00773_ToCalmTheFlood; -import quests.not_done.Q00774_DreamingOfPeace; import quests.not_done.Q00780_UtilizeTheDarknessSeedOfInfinity; import quests.not_done.Q00781_UtilizeTheDarknessSeedOfAnnihilation; import quests.not_done.Q00782_UtilizeTheDarknessSeedOfHellfire; @@ -708,7 +708,7 @@ public class QuestMasterHandler Q00766_10DayAdventure.class, // TODO: Not done. Q00772_PurifyingSouls.class, Q00773_ToCalmTheFlood.class, // TODO: Not done. - Q00774_DreamingOfPeace.class, // TODO: Not done. + Q00774_DreamingOfPeace.class, Q00775_RetrievingTheChaosFragment.class, Q00776_SlayDarkLordEkimus.class, Q00777_SlayDarkLordTiat.class, diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java deleted file mode 100644 index 4521b083ec..0000000000 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.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 Q00774_DreamingOfPeace extends Quest -{ - private static final int START_NPC = 30370; - - public Q00774_DreamingOfPeace() - { - super(774); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} 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 fd66c9aabc..5cf18b5186 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 @@ -54,7 +54,6 @@ 759 The Dwarven Nightmare Continues 766 10-day Adventure 773 To Calm the Flood -774 Dreaming of peace 780 Utilize the Darkness - Seed of Infinity 781 Utilize the Darkness - Seed of Annihilation 782 Utilize the Darkness - Seed of Hellfire diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm new file mode 100644 index 0000000000..0d4bb3d6ec --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm @@ -0,0 +1,4 @@ +Nerupa
+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. 90-100.) + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm new file mode 100644 index 0000000000..1c1fcc9785 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm @@ -0,0 +1,6 @@ +Nerupa:
+Are you heading to the Kimerian's Forest?
+With your skills, you will easily be able to go there, even without my help.
+Then do you have a mind to help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm new file mode 100644 index 0000000000..6a4e40569b --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm @@ -0,0 +1,6 @@ +Nerupa:
+I think, every day, that I to return home again, when this place and the world outside find peace again.
+The blackish red fog and the shriveling Mother Tree... all are agonizing.
+Then, I chanced upon something I could do.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm new file mode 100644 index 0000000000..6a7b5195d3 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm @@ -0,0 +1,7 @@ +Nerupa:
+I found out that the Forest of Fairies and the Kimerian's Forest, while they are similar, have distinct differences.
+I also found that the Fairies and Satyrs in the Kimerian's Forest are very dangerous.
+It's also possible to obtain from them the blood necessary to make potions. Adventurers would just venture on in without knowing a thing, and then find themselves in danger.
+So, in order to reduce the risk, and dreaming of a peaceful future, I began my own little struggle.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html new file mode 100644 index 0000000000..2a6fcd6046 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html @@ -0,0 +1,5 @@ +Nerupa:
+Done with 300 already?
+I guess I'm a good judge of character. The Violent Fairies and Satyrs couldn't have made it easy for you. If you still have it in you, and want to slay some more, I' won't stop you. Or would you like to call it a day?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html new file mode 100644 index 0000000000..5adbbc5ed7 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html @@ -0,0 +1,4 @@ +Nerupa:
+Thank you. Though this is not my hometown, I was distressed by the others who were in distress.
+There are still countless Fairies enraged, and Violent Fairies and Satyrs keep popping up. Please, return tomorrow to help again if you have the time. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java new file mode 100644 index 0000000000..3cdb7867e0 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java @@ -0,0 +1,173 @@ +/* + * 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.Q00774_DreamingOfPeace; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.QuestSound; +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.holders.NpcLogListHolder; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Dreaming of Peace (774) + * @URL https://l2wiki.com/Dreaming_of_Peace + * @author Dmitri + */ +public class Q00774_DreamingOfPeace extends Quest +{ + // NPC + private static final int NERUPA = 30370; + // Monsters + private static final int[] MONSTERS = + { + 22863, // Fairy Warrior + 22871, // Fairy Rogue + 22879, // Fairy Knight + 22887, // Satyr Wizard + 22895, // Satyr Summoner + 22903 // Satyr Witch + }; + // Misc + private static final int MIN_LEVEL = 90; + private static final int MAX_LEVEL = 100; + private static final String KILL_COUNT_VAR = "KillCount"; + + public Q00774_DreamingOfPeace() + { + super(774); + addStartNpc(NERUPA); + addTalkId(NERUPA); + addKillId(MONSTERS); + addCondLevel(MIN_LEVEL, MAX_LEVEL, "30370-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 "30370-02.htm": + case "30370-03.htm": + { + htmltext = event; + break; + } + case "30370-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30370-07.html": + { + // Rewards + giveAdena(player, 559020, true); + addExpAndSp(player, 646727130, 646710); + 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 = "30370-01.htm"; + break; + } + case State.STARTED: + { + htmltext = (qs.isCond(1)) ? "30370-05.html" : "30370-06.html"; + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = "30370-01.htm"; + } + else + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if ((qs != null) && qs.isCond(1) && killer.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + int count = qs.getInt(KILL_COUNT_VAR); + qs.set(KILL_COUNT_VAR, ++count); + if (count >= 300) + { + qs.setCond(2, true); + } + else + { + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + final int killCount = qs.getInt(KILL_COUNT_VAR); + if (killCount > 0) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_THE_VIOLENT_MONSTERS.getId(), true, killCount)); + return holder; + } + } + return super.getNpcLogList(player); + } +} 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 5730ea0d8b..95d97ddf31 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 @@ -185,6 +185,7 @@ import quests.Q00763_ADauntingTask.Q00763_ADauntingTask; import quests.Q00764_WeakeningTheVarkaSilenosForces.Q00764_WeakeningTheVarkaSilenosForces; import quests.Q00765_WeakeningTheKetraOrcForces.Q00765_WeakeningTheKetraOrcForces; import quests.Q00772_PurifyingSouls.Q00772_PurifyingSouls; +import quests.Q00774_DreamingOfPeace.Q00774_DreamingOfPeace; import quests.Q00775_RetrievingTheChaosFragment.Q00775_RetrievingTheChaosFragment; import quests.Q00776_SlayDarkLordEkimus.Q00776_SlayDarkLordEkimus; import quests.Q00777_SlayDarkLordTiat.Q00777_SlayDarkLordTiat; @@ -499,7 +500,6 @@ import quests.not_done.Q00750_SevenFlowers; import quests.not_done.Q00759_TheDwarvenNightmareContinues; import quests.not_done.Q00766_10DayAdventure; import quests.not_done.Q00773_ToCalmTheFlood; -import quests.not_done.Q00774_DreamingOfPeace; import quests.not_done.Q00780_UtilizeTheDarknessSeedOfInfinity; import quests.not_done.Q00781_UtilizeTheDarknessSeedOfAnnihilation; import quests.not_done.Q00782_UtilizeTheDarknessSeedOfHellfire; @@ -736,7 +736,7 @@ public class QuestMasterHandler Q00766_10DayAdventure.class, // TODO: Not done. Q00772_PurifyingSouls.class, Q00773_ToCalmTheFlood.class, // TODO: Not done. - Q00774_DreamingOfPeace.class, // TODO: Not done. + Q00774_DreamingOfPeace.class, Q00775_RetrievingTheChaosFragment.class, Q00776_SlayDarkLordEkimus.class, Q00777_SlayDarkLordTiat.class, diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java deleted file mode 100644 index 4521b083ec..0000000000 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.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 Q00774_DreamingOfPeace extends Quest -{ - private static final int START_NPC = 30370; - - public Q00774_DreamingOfPeace() - { - super(774); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} 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 3007152b5f..167c70f928 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 @@ -59,7 +59,6 @@ 750 Seven Flowers 759 The Dwarven Nightmare Continues 773 To Calm the Flood -774 Dreaming of peace 780 Utilize the Darkness - Seed of Infinity 781 Utilize the Darkness - Seed of Annihilation 782 Utilize the Darkness - Seed of Hellfire diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm new file mode 100644 index 0000000000..0d4bb3d6ec --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm @@ -0,0 +1,4 @@ +Nerupa
+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. 90-100.) + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm new file mode 100644 index 0000000000..1c1fcc9785 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm @@ -0,0 +1,6 @@ +Nerupa:
+Are you heading to the Kimerian's Forest?
+With your skills, you will easily be able to go there, even without my help.
+Then do you have a mind to help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm new file mode 100644 index 0000000000..6a4e40569b --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm @@ -0,0 +1,6 @@ +Nerupa:
+I think, every day, that I to return home again, when this place and the world outside find peace again.
+The blackish red fog and the shriveling Mother Tree... all are agonizing.
+Then, I chanced upon something I could do.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm new file mode 100644 index 0000000000..6a7b5195d3 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm @@ -0,0 +1,7 @@ +Nerupa:
+I found out that the Forest of Fairies and the Kimerian's Forest, while they are similar, have distinct differences.
+I also found that the Fairies and Satyrs in the Kimerian's Forest are very dangerous.
+It's also possible to obtain from them the blood necessary to make potions. Adventurers would just venture on in without knowing a thing, and then find themselves in danger.
+So, in order to reduce the risk, and dreaming of a peaceful future, I began my own little struggle.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html new file mode 100644 index 0000000000..2a6fcd6046 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html @@ -0,0 +1,5 @@ +Nerupa:
+Done with 300 already?
+I guess I'm a good judge of character. The Violent Fairies and Satyrs couldn't have made it easy for you. If you still have it in you, and want to slay some more, I' won't stop you. Or would you like to call it a day?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html new file mode 100644 index 0000000000..5adbbc5ed7 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html @@ -0,0 +1,4 @@ +Nerupa:
+Thank you. Though this is not my hometown, I was distressed by the others who were in distress.
+There are still countless Fairies enraged, and Violent Fairies and Satyrs keep popping up. Please, return tomorrow to help again if you have the time. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java new file mode 100644 index 0000000000..3cdb7867e0 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java @@ -0,0 +1,173 @@ +/* + * 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.Q00774_DreamingOfPeace; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.QuestSound; +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.holders.NpcLogListHolder; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Dreaming of Peace (774) + * @URL https://l2wiki.com/Dreaming_of_Peace + * @author Dmitri + */ +public class Q00774_DreamingOfPeace extends Quest +{ + // NPC + private static final int NERUPA = 30370; + // Monsters + private static final int[] MONSTERS = + { + 22863, // Fairy Warrior + 22871, // Fairy Rogue + 22879, // Fairy Knight + 22887, // Satyr Wizard + 22895, // Satyr Summoner + 22903 // Satyr Witch + }; + // Misc + private static final int MIN_LEVEL = 90; + private static final int MAX_LEVEL = 100; + private static final String KILL_COUNT_VAR = "KillCount"; + + public Q00774_DreamingOfPeace() + { + super(774); + addStartNpc(NERUPA); + addTalkId(NERUPA); + addKillId(MONSTERS); + addCondLevel(MIN_LEVEL, MAX_LEVEL, "30370-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 "30370-02.htm": + case "30370-03.htm": + { + htmltext = event; + break; + } + case "30370-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30370-07.html": + { + // Rewards + giveAdena(player, 559020, true); + addExpAndSp(player, 646727130, 646710); + 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 = "30370-01.htm"; + break; + } + case State.STARTED: + { + htmltext = (qs.isCond(1)) ? "30370-05.html" : "30370-06.html"; + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = "30370-01.htm"; + } + else + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if ((qs != null) && qs.isCond(1) && killer.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + int count = qs.getInt(KILL_COUNT_VAR); + qs.set(KILL_COUNT_VAR, ++count); + if (count >= 300) + { + qs.setCond(2, true); + } + else + { + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + final int killCount = qs.getInt(KILL_COUNT_VAR); + if (killCount > 0) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_THE_VIOLENT_MONSTERS.getId(), true, killCount)); + return holder; + } + } + return super.getNpcLogList(player); + } +} 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 3fccaa5af5..8b38198e16 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 @@ -207,6 +207,7 @@ import quests.Q00763_ADauntingTask.Q00763_ADauntingTask; import quests.Q00764_WeakeningTheVarkaSilenosForces.Q00764_WeakeningTheVarkaSilenosForces; import quests.Q00765_WeakeningTheKetraOrcForces.Q00765_WeakeningTheKetraOrcForces; import quests.Q00772_PurifyingSouls.Q00772_PurifyingSouls; +import quests.Q00774_DreamingOfPeace.Q00774_DreamingOfPeace; import quests.Q00775_RetrievingTheChaosFragment.Q00775_RetrievingTheChaosFragment; import quests.Q00776_SlayDarkLordEkimus.Q00776_SlayDarkLordEkimus; import quests.Q00777_SlayDarkLordTiat.Q00777_SlayDarkLordTiat; @@ -534,7 +535,6 @@ import quests.not_done.Q00749_TiesWithTheGuardians; import quests.not_done.Q00750_SevenFlowers; import quests.not_done.Q00759_TheDwarvenNightmareContinues; import quests.not_done.Q00773_ToCalmTheFlood; -import quests.not_done.Q00774_DreamingOfPeace; import quests.not_done.Q00780_UtilizeTheDarknessSeedOfInfinity; import quests.not_done.Q00781_UtilizeTheDarknessSeedOfAnnihilation; import quests.not_done.Q00782_UtilizeTheDarknessSeedOfHellfire; @@ -811,7 +811,7 @@ public class QuestMasterHandler Q00765_WeakeningTheKetraOrcForces.class, Q00772_PurifyingSouls.class, Q00773_ToCalmTheFlood.class, // TODO: Not done. - Q00774_DreamingOfPeace.class, // TODO: Not done. + Q00774_DreamingOfPeace.class, Q00775_RetrievingTheChaosFragment.class, Q00776_SlayDarkLordEkimus.class, Q00777_SlayDarkLordTiat.class, diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java deleted file mode 100644 index 4521b083ec..0000000000 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.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 Q00774_DreamingOfPeace extends Quest -{ - private static final int START_NPC = 30370; - - public Q00774_DreamingOfPeace() - { - super(774); - 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 3758913cfd..11bcfb801c 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 @@ -6,7 +6,6 @@ 557 Red Libra Request - Fall of Etina 575 Special Mission: Fortuna 591 Great Ambitions -599 Demons and Dimensional Energy 655 A Grand Plan for Taming Wild Beasts 667 How to Cover Shilen's Eyes 676 Hunter Guild Request - Wasteland West @@ -67,7 +66,6 @@ 750 Seven Flowers 759 The Dwarven Nightmare Continues 773 To Calm the Flood -774 Dreaming of peace 780 Utilize the Darkness - Seed of Infinity 781 Utilize the Darkness - Seed of Annihilation 782 Utilize the Darkness - Seed of Hellfire diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm new file mode 100644 index 0000000000..31d1dacf4d --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm @@ -0,0 +1,5 @@ +Leona Blackbird:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 103.) + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm new file mode 100644 index 0000000000..37235dcdd1 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm @@ -0,0 +1,6 @@ +Leona Blackbird:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm new file mode 100644 index 0000000000..f7ee76d36c --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm @@ -0,0 +1,4 @@ +Leona Blackbird:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm new file mode 100644 index 0000000000..69d0a22fe9 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm @@ -0,0 +1,6 @@ +Leona Blackbird:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm new file mode 100644 index 0000000000..f7d771a99f --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm @@ -0,0 +1,9 @@ +Leona Blackbird:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm new file mode 100644 index 0000000000..27b1b02c15 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm @@ -0,0 +1,9 @@ +Leona Blackbird:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm new file mode 100644 index 0000000000..1e5279e5a7 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm @@ -0,0 +1,9 @@ +Leona Blackbird:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html new file mode 100644 index 0000000000..d917c24676 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Your Unworldly Visitors Faction Level Must be 6 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html new file mode 100644 index 0000000000..38be581635 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Your Unworldly Visitors Faction Level Must be 7 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html new file mode 100644 index 0000000000..4fc2803948 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html @@ -0,0 +1,6 @@ +Leona Blackbird:
+You have chosen the basic mission to collect 200 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html new file mode 100644 index 0000000000..7fd1818b22 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html @@ -0,0 +1,6 @@ +Leona Blackbird:
+You have chosen the intermediate mission to collect 400 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html new file mode 100644 index 0000000000..29ef8c4fc7 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html @@ -0,0 +1,6 @@ +Leona Blackbird:
+You have chosen the advanced mission to collect 600 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html new file mode 100644 index 0000000000..c624c03c9e --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 200 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html new file mode 100644 index 0000000000..23b2bcd782 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 400 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html new file mode 100644 index 0000000000..44832e7eb2 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 600 Mutated Spirit's Souls. It should be manageable. +y> \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html new file mode 100644 index 0000000000..faddcb780c --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Go to the Garden of Spirits and defeat all type monsters until you collect 200 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html new file mode 100644 index 0000000000..6d456dd5b2 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Go to the Garden of Spirits and defeat all type monsters until you collect 400 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html new file mode 100644 index 0000000000..20c18678af --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Go to the Garden of Spirits and defeat all type monsters until you collect 600 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html new file mode 100644 index 0000000000..9d122fcade --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html @@ -0,0 +1,5 @@ +Leona Blackbird:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html new file mode 100644 index 0000000000..d770676abe --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java new file mode 100644 index 0000000000..95b0886b75 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java @@ -0,0 +1,354 @@ +/* + * 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.Q00599_DemonsAndDimensionalEnergy; + +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; + +/** + * Demons and Dimensional Energy (599) + * @URL https://l2wiki.com/Demons_and_Dimensional_Energy + * @author Dmitri + */ +public class Q00599_DemonsAndDimensionalEnergy extends Quest +{ + // NPCs + private static final int LEONA_BLACKBIRD = 34425; + // Monsters + private static final int[] MONSTERS = + { + 24144, // Death Rogue + 24145, // Death Shooter + 24146, // Death Warrior + 24147, // Death Sorcerer + 24149, // Devil Nightmare + 24150, // Devil Warrior + 24151, // Devil Guardian + 24152, // Devil Sinist + 24154, // Demonic Wizard + 24155, // Demonic Warrior + 24156, // Demonic Archer + 24157 // Demonic Keras + }; + // Item + private static final int DEMON_SLAYERS_PROOF = 48578; + // Rewards + private static final int BASIC_SUPPLY_BOX = 48579; // Blackbird Clan Basic Box Atelia Refinery + private static final int INTERMEDIATE_SUPPLY_BOX = 48580; // Blackbird Clan Intermediate Box Atelia Refinery + private static final int ADVANCED_SUPPLY_BOX = 48581; // Blackbird Clan Advanced Box Atelia Refinery + // Misc + private static final int MIN_LEVEL = 103; + + public Q00599_DemonsAndDimensionalEnergy() + { + super(599); + addStartNpc(LEONA_BLACKBIRD); + addTalkId(LEONA_BLACKBIRD); + addKillId(MONSTERS); + registerQuestItems(DEMON_SLAYERS_PROOF); + addCondMinLevel(MIN_LEVEL, "34425-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 "34425-02.htm": + case "34425-03.htm": + case "34425-04.htm": + case "34425-04a.htm": + case "34425-04b.htm": + case "34425-06.html": + case "34425-06a.html": + case "34425-06b.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 6) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 7)) + { + htmltext = "34425-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 7) + { + htmltext = "34425-04b.htm"; + break; + } + htmltext = "34425-04.htm"; + break; + } + case "return": + { + if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 6) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 7)) + { + htmltext = "34425-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 7) + { + htmltext = "34425-04b.htm"; + break; + } + htmltext = "34425-04.htm"; + break; + } + case "34425-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34425-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34425-07b.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34425-10.html": + { + final int chance = getRandom(100); + switch (qs.getCond()) + { + case 5: + { + if ((getQuestItemsCount(player, DEMON_SLAYERS_PROOF) == 200) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + addExpAndSp(player, 27191624760L, 27191610); + addFactionPoints(player, Faction.BLACKBIRD_CLAN, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 6: + { + if ((getQuestItemsCount(player, DEMON_SLAYERS_PROOF) == 400) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + addExpAndSp(player, 54383249520L, 54383220); + addFactionPoints(player, Faction.BLACKBIRD_CLAN, 200); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 7: + { + if ((getQuestItemsCount(player, DEMON_SLAYERS_PROOF) == 600) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + addExpAndSp(player, 81574874280L, 81574830); + addFactionPoints(player, Faction.BLACKBIRD_CLAN, 300); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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 = "34425-01.htm"; + // fallthrough? + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 6) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 7)) + { + htmltext = "34425-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 7) + { + htmltext = "34425-04b.htm"; + break; + } + htmltext = "34425-04.htm"; + break; + } + case 2: + { + htmltext = "34425-08.html"; + break; + } + case 3: + { + htmltext = "34425-08a.html"; + break; + } + case 4: + { + htmltext = "34425-08b.html"; + break; + } + case 5: + case 6: + case 7: + { + htmltext = "34425-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34425-01.htm"; + } + break; + } + } + 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.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + switch (qs.getCond()) + { + case 2: + { + if (giveItemRandomly(player, npc, DEMON_SLAYERS_PROOF, 1, 200, 1, true)) + { + qs.setCond(5, true); + } + break; + } + case 3: + { + if (giveItemRandomly(player, npc, DEMON_SLAYERS_PROOF, 1, 400, 1, true)) + { + qs.setCond(6, true); + } + break; + } + case 4: + { + if (giveItemRandomly(player, npc, DEMON_SLAYERS_PROOF, 1, 600, 1, true)) + { + qs.setCond(7, true); + } + break; + } + } + } + } +} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm new file mode 100644 index 0000000000..0d4bb3d6ec --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm @@ -0,0 +1,4 @@ +Nerupa
+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. 90-100.) + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm new file mode 100644 index 0000000000..1c1fcc9785 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm @@ -0,0 +1,6 @@ +Nerupa:
+Are you heading to the Kimerian's Forest?
+With your skills, you will easily be able to go there, even without my help.
+Then do you have a mind to help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm new file mode 100644 index 0000000000..6a4e40569b --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm @@ -0,0 +1,6 @@ +Nerupa:
+I think, every day, that I to return home again, when this place and the world outside find peace again.
+The blackish red fog and the shriveling Mother Tree... all are agonizing.
+Then, I chanced upon something I could do.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm new file mode 100644 index 0000000000..6a7b5195d3 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm @@ -0,0 +1,7 @@ +Nerupa:
+I found out that the Forest of Fairies and the Kimerian's Forest, while they are similar, have distinct differences.
+I also found that the Fairies and Satyrs in the Kimerian's Forest are very dangerous.
+It's also possible to obtain from them the blood necessary to make potions. Adventurers would just venture on in without knowing a thing, and then find themselves in danger.
+So, in order to reduce the risk, and dreaming of a peaceful future, I began my own little struggle.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html new file mode 100644 index 0000000000..2a6fcd6046 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html @@ -0,0 +1,5 @@ +Nerupa:
+Done with 300 already?
+I guess I'm a good judge of character. The Violent Fairies and Satyrs couldn't have made it easy for you. If you still have it in you, and want to slay some more, I' won't stop you. Or would you like to call it a day?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html new file mode 100644 index 0000000000..5adbbc5ed7 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html @@ -0,0 +1,4 @@ +Nerupa:
+Thank you. Though this is not my hometown, I was distressed by the others who were in distress.
+There are still countless Fairies enraged, and Violent Fairies and Satyrs keep popping up. Please, return tomorrow to help again if you have the time. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java new file mode 100644 index 0000000000..3cdb7867e0 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java @@ -0,0 +1,173 @@ +/* + * 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.Q00774_DreamingOfPeace; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.QuestSound; +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.holders.NpcLogListHolder; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Dreaming of Peace (774) + * @URL https://l2wiki.com/Dreaming_of_Peace + * @author Dmitri + */ +public class Q00774_DreamingOfPeace extends Quest +{ + // NPC + private static final int NERUPA = 30370; + // Monsters + private static final int[] MONSTERS = + { + 22863, // Fairy Warrior + 22871, // Fairy Rogue + 22879, // Fairy Knight + 22887, // Satyr Wizard + 22895, // Satyr Summoner + 22903 // Satyr Witch + }; + // Misc + private static final int MIN_LEVEL = 90; + private static final int MAX_LEVEL = 100; + private static final String KILL_COUNT_VAR = "KillCount"; + + public Q00774_DreamingOfPeace() + { + super(774); + addStartNpc(NERUPA); + addTalkId(NERUPA); + addKillId(MONSTERS); + addCondLevel(MIN_LEVEL, MAX_LEVEL, "30370-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 "30370-02.htm": + case "30370-03.htm": + { + htmltext = event; + break; + } + case "30370-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30370-07.html": + { + // Rewards + giveAdena(player, 559020, true); + addExpAndSp(player, 646727130, 646710); + 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 = "30370-01.htm"; + break; + } + case State.STARTED: + { + htmltext = (qs.isCond(1)) ? "30370-05.html" : "30370-06.html"; + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = "30370-01.htm"; + } + else + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if ((qs != null) && qs.isCond(1) && killer.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + int count = qs.getInt(KILL_COUNT_VAR); + qs.set(KILL_COUNT_VAR, ++count); + if (count >= 300) + { + qs.setCond(2, true); + } + else + { + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + final int killCount = qs.getInt(KILL_COUNT_VAR); + if (killCount > 0) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_THE_VIOLENT_MONSTERS.getId(), true, killCount)); + return holder; + } + } + return super.getNpcLogList(player); + } +} 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 17f7e30478..425e100f0b 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 @@ -142,6 +142,7 @@ import quests.Q00587_MoreAggressiveOperation.Q00587_MoreAggressiveOperation; import quests.Q00588_HeadOnCrash.Q00588_HeadOnCrash; import quests.Q00589_ASecretChange.Q00589_ASecretChange; import quests.Q00590_ToEachTheirOwn.Q00590_ToEachTheirOwn; +import quests.Q00599_DemonsAndDimensionalEnergy.Q00599_DemonsAndDimensionalEnergy; import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess; import quests.Q00617_GatherTheFlames.Q00617_GatherTheFlames; import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame; @@ -182,6 +183,7 @@ import quests.Q00762_AnOminousRequest.Q00762_AnOminousRequest; import quests.Q00763_ADauntingTask.Q00763_ADauntingTask; import quests.Q00764_WeakeningTheVarkaSilenosForces.Q00764_WeakeningTheVarkaSilenosForces; import quests.Q00765_WeakeningTheKetraOrcForces.Q00765_WeakeningTheKetraOrcForces; +import quests.Q00774_DreamingOfPeace.Q00774_DreamingOfPeace; import quests.Q00775_RetrievingTheChaosFragment.Q00775_RetrievingTheChaosFragment; import quests.Q00776_SlayDarkLordEkimus.Q00776_SlayDarkLordEkimus; import quests.Q00777_SlayDarkLordTiat.Q00777_SlayDarkLordTiat; @@ -481,7 +483,6 @@ import quests.not_done.Q00504_CompetitionForTheBanditStronghold; import quests.not_done.Q00529_RegularBarrierMaintenance; import quests.not_done.Q00575_SpecialMissionFortuna; import quests.not_done.Q00591_GreatAmbitions; -import quests.not_done.Q00599_DemonsAndDimensionalEnergy; import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts; import quests.not_done.Q00667_CoveringShilensEyes; import quests.not_done.Q00744_TheAlligatorHunterReturns; @@ -492,7 +493,6 @@ import quests.not_done.Q00749_TiesWithTheGuardians; import quests.not_done.Q00750_SevenFlowers; import quests.not_done.Q00759_TheDwarvenNightmareContinues; import quests.not_done.Q00773_ToCalmTheFlood; -import quests.not_done.Q00774_DreamingOfPeace; import quests.not_done.Q00780_UtilizeTheDarknessSeedOfInfinity; import quests.not_done.Q00781_UtilizeTheDarknessSeedOfAnnihilation; import quests.not_done.Q00782_UtilizeTheDarknessSeedOfHellfire; @@ -702,7 +702,7 @@ public class QuestMasterHandler Q00589_ASecretChange.class, Q00590_ToEachTheirOwn.class, Q00591_GreatAmbitions.class, // TODO: Not done. - Q00599_DemonsAndDimensionalEnergy.class, // TODO: Not done. + Q00599_DemonsAndDimensionalEnergy.class, Q00600_KeyToTheRefiningProcess.class, Q00617_GatherTheFlames.class, Q00618_IntoTheFlame.class, @@ -753,7 +753,7 @@ public class QuestMasterHandler Q00764_WeakeningTheVarkaSilenosForces.class, Q00765_WeakeningTheKetraOrcForces.class, Q00773_ToCalmTheFlood.class, // TODO: Not done. - Q00774_DreamingOfPeace.class, // TODO: Not done. + Q00774_DreamingOfPeace.class, Q00775_RetrievingTheChaosFragment.class, Q00776_SlayDarkLordEkimus.class, Q00777_SlayDarkLordTiat.class, diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.java deleted file mode 100644 index 7b12f979f7..0000000000 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.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 Q00599_DemonsAndDimensionalEnergy extends Quest -{ - private static final int START_NPC = 34425; - - public Q00599_DemonsAndDimensionalEnergy() - { - super(599); - 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/not_done/Q00774_DreamingOfPeace.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java deleted file mode 100644 index 4521b083ec..0000000000 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.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 Q00774_DreamingOfPeace extends Quest -{ - private static final int START_NPC = 30370; - - public Q00774_DreamingOfPeace() - { - super(774); - 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 cedc58d447..0ed2fac893 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 @@ -9,7 +9,6 @@ 559 Request from the Red Libra Guild - Krofin's Nest 579 Basic Mission: Blazing Swamp 591 Great Ambitions -599 Demons and Dimensional Energy 655 A Grand Plan for Taming Wild Beasts 667 How to Cover Shilen's Eyes 676 Hunter Guild Request - Wasteland West @@ -70,7 +69,6 @@ 750 Seven Flowers 759 The Dwarven Nightmare Continues 773 To Calm the Flood -774 Dreaming of peace 780 Utilize the Darkness - Seed of Infinity 781 Utilize the Darkness - Seed of Annihilation 782 Utilize the Darkness - Seed of Hellfire diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm new file mode 100644 index 0000000000..31d1dacf4d --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm @@ -0,0 +1,5 @@ +Leona Blackbird:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 103.) + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm new file mode 100644 index 0000000000..37235dcdd1 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm @@ -0,0 +1,6 @@ +Leona Blackbird:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm new file mode 100644 index 0000000000..f7ee76d36c --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm @@ -0,0 +1,4 @@ +Leona Blackbird:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm new file mode 100644 index 0000000000..69d0a22fe9 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm @@ -0,0 +1,6 @@ +Leona Blackbird:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm new file mode 100644 index 0000000000..f7d771a99f --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm @@ -0,0 +1,9 @@ +Leona Blackbird:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm new file mode 100644 index 0000000000..27b1b02c15 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm @@ -0,0 +1,9 @@ +Leona Blackbird:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm new file mode 100644 index 0000000000..1e5279e5a7 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm @@ -0,0 +1,9 @@ +Leona Blackbird:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html new file mode 100644 index 0000000000..d917c24676 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Your Unworldly Visitors Faction Level Must be 6 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html new file mode 100644 index 0000000000..38be581635 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Your Unworldly Visitors Faction Level Must be 7 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html new file mode 100644 index 0000000000..4fc2803948 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html @@ -0,0 +1,6 @@ +Leona Blackbird:
+You have chosen the basic mission to collect 200 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html new file mode 100644 index 0000000000..7fd1818b22 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html @@ -0,0 +1,6 @@ +Leona Blackbird:
+You have chosen the intermediate mission to collect 400 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html new file mode 100644 index 0000000000..29ef8c4fc7 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html @@ -0,0 +1,6 @@ +Leona Blackbird:
+You have chosen the advanced mission to collect 600 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html new file mode 100644 index 0000000000..c624c03c9e --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 200 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html new file mode 100644 index 0000000000..23b2bcd782 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 400 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html new file mode 100644 index 0000000000..44832e7eb2 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 600 Mutated Spirit's Souls. It should be manageable. +y> \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html new file mode 100644 index 0000000000..faddcb780c --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Go to the Garden of Spirits and defeat all type monsters until you collect 200 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html new file mode 100644 index 0000000000..6d456dd5b2 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Go to the Garden of Spirits and defeat all type monsters until you collect 400 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html new file mode 100644 index 0000000000..20c18678af --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Go to the Garden of Spirits and defeat all type monsters until you collect 600 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html new file mode 100644 index 0000000000..9d122fcade --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html @@ -0,0 +1,5 @@ +Leona Blackbird:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html new file mode 100644 index 0000000000..d770676abe --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java new file mode 100644 index 0000000000..95b0886b75 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java @@ -0,0 +1,354 @@ +/* + * 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.Q00599_DemonsAndDimensionalEnergy; + +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; + +/** + * Demons and Dimensional Energy (599) + * @URL https://l2wiki.com/Demons_and_Dimensional_Energy + * @author Dmitri + */ +public class Q00599_DemonsAndDimensionalEnergy extends Quest +{ + // NPCs + private static final int LEONA_BLACKBIRD = 34425; + // Monsters + private static final int[] MONSTERS = + { + 24144, // Death Rogue + 24145, // Death Shooter + 24146, // Death Warrior + 24147, // Death Sorcerer + 24149, // Devil Nightmare + 24150, // Devil Warrior + 24151, // Devil Guardian + 24152, // Devil Sinist + 24154, // Demonic Wizard + 24155, // Demonic Warrior + 24156, // Demonic Archer + 24157 // Demonic Keras + }; + // Item + private static final int DEMON_SLAYERS_PROOF = 48578; + // Rewards + private static final int BASIC_SUPPLY_BOX = 48579; // Blackbird Clan Basic Box Atelia Refinery + private static final int INTERMEDIATE_SUPPLY_BOX = 48580; // Blackbird Clan Intermediate Box Atelia Refinery + private static final int ADVANCED_SUPPLY_BOX = 48581; // Blackbird Clan Advanced Box Atelia Refinery + // Misc + private static final int MIN_LEVEL = 103; + + public Q00599_DemonsAndDimensionalEnergy() + { + super(599); + addStartNpc(LEONA_BLACKBIRD); + addTalkId(LEONA_BLACKBIRD); + addKillId(MONSTERS); + registerQuestItems(DEMON_SLAYERS_PROOF); + addCondMinLevel(MIN_LEVEL, "34425-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 "34425-02.htm": + case "34425-03.htm": + case "34425-04.htm": + case "34425-04a.htm": + case "34425-04b.htm": + case "34425-06.html": + case "34425-06a.html": + case "34425-06b.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 6) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 7)) + { + htmltext = "34425-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 7) + { + htmltext = "34425-04b.htm"; + break; + } + htmltext = "34425-04.htm"; + break; + } + case "return": + { + if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 6) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 7)) + { + htmltext = "34425-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 7) + { + htmltext = "34425-04b.htm"; + break; + } + htmltext = "34425-04.htm"; + break; + } + case "34425-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34425-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34425-07b.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34425-10.html": + { + final int chance = getRandom(100); + switch (qs.getCond()) + { + case 5: + { + if ((getQuestItemsCount(player, DEMON_SLAYERS_PROOF) == 200) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + addExpAndSp(player, 27191624760L, 27191610); + addFactionPoints(player, Faction.BLACKBIRD_CLAN, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 6: + { + if ((getQuestItemsCount(player, DEMON_SLAYERS_PROOF) == 400) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + addExpAndSp(player, 54383249520L, 54383220); + addFactionPoints(player, Faction.BLACKBIRD_CLAN, 200); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 7: + { + if ((getQuestItemsCount(player, DEMON_SLAYERS_PROOF) == 600) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + addExpAndSp(player, 81574874280L, 81574830); + addFactionPoints(player, Faction.BLACKBIRD_CLAN, 300); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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 = "34425-01.htm"; + // fallthrough? + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 6) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 7)) + { + htmltext = "34425-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 7) + { + htmltext = "34425-04b.htm"; + break; + } + htmltext = "34425-04.htm"; + break; + } + case 2: + { + htmltext = "34425-08.html"; + break; + } + case 3: + { + htmltext = "34425-08a.html"; + break; + } + case 4: + { + htmltext = "34425-08b.html"; + break; + } + case 5: + case 6: + case 7: + { + htmltext = "34425-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34425-01.htm"; + } + break; + } + } + 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.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + switch (qs.getCond()) + { + case 2: + { + if (giveItemRandomly(player, npc, DEMON_SLAYERS_PROOF, 1, 200, 1, true)) + { + qs.setCond(5, true); + } + break; + } + case 3: + { + if (giveItemRandomly(player, npc, DEMON_SLAYERS_PROOF, 1, 400, 1, true)) + { + qs.setCond(6, true); + } + break; + } + case 4: + { + if (giveItemRandomly(player, npc, DEMON_SLAYERS_PROOF, 1, 600, 1, true)) + { + qs.setCond(7, true); + } + break; + } + } + } + } +} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm new file mode 100644 index 0000000000..0d4bb3d6ec --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm @@ -0,0 +1,4 @@ +Nerupa
+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. 90-100.) + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm new file mode 100644 index 0000000000..1c1fcc9785 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm @@ -0,0 +1,6 @@ +Nerupa:
+Are you heading to the Kimerian's Forest?
+With your skills, you will easily be able to go there, even without my help.
+Then do you have a mind to help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm new file mode 100644 index 0000000000..6a4e40569b --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm @@ -0,0 +1,6 @@ +Nerupa:
+I think, every day, that I to return home again, when this place and the world outside find peace again.
+The blackish red fog and the shriveling Mother Tree... all are agonizing.
+Then, I chanced upon something I could do.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm new file mode 100644 index 0000000000..6a7b5195d3 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm @@ -0,0 +1,7 @@ +Nerupa:
+I found out that the Forest of Fairies and the Kimerian's Forest, while they are similar, have distinct differences.
+I also found that the Fairies and Satyrs in the Kimerian's Forest are very dangerous.
+It's also possible to obtain from them the blood necessary to make potions. Adventurers would just venture on in without knowing a thing, and then find themselves in danger.
+So, in order to reduce the risk, and dreaming of a peaceful future, I began my own little struggle.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html new file mode 100644 index 0000000000..2a6fcd6046 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html @@ -0,0 +1,5 @@ +Nerupa:
+Done with 300 already?
+I guess I'm a good judge of character. The Violent Fairies and Satyrs couldn't have made it easy for you. If you still have it in you, and want to slay some more, I' won't stop you. Or would you like to call it a day?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html new file mode 100644 index 0000000000..5adbbc5ed7 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html @@ -0,0 +1,4 @@ +Nerupa:
+Thank you. Though this is not my hometown, I was distressed by the others who were in distress.
+There are still countless Fairies enraged, and Violent Fairies and Satyrs keep popping up. Please, return tomorrow to help again if you have the time. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java new file mode 100644 index 0000000000..3cdb7867e0 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java @@ -0,0 +1,173 @@ +/* + * 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.Q00774_DreamingOfPeace; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.QuestSound; +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.holders.NpcLogListHolder; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Dreaming of Peace (774) + * @URL https://l2wiki.com/Dreaming_of_Peace + * @author Dmitri + */ +public class Q00774_DreamingOfPeace extends Quest +{ + // NPC + private static final int NERUPA = 30370; + // Monsters + private static final int[] MONSTERS = + { + 22863, // Fairy Warrior + 22871, // Fairy Rogue + 22879, // Fairy Knight + 22887, // Satyr Wizard + 22895, // Satyr Summoner + 22903 // Satyr Witch + }; + // Misc + private static final int MIN_LEVEL = 90; + private static final int MAX_LEVEL = 100; + private static final String KILL_COUNT_VAR = "KillCount"; + + public Q00774_DreamingOfPeace() + { + super(774); + addStartNpc(NERUPA); + addTalkId(NERUPA); + addKillId(MONSTERS); + addCondLevel(MIN_LEVEL, MAX_LEVEL, "30370-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 "30370-02.htm": + case "30370-03.htm": + { + htmltext = event; + break; + } + case "30370-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30370-07.html": + { + // Rewards + giveAdena(player, 559020, true); + addExpAndSp(player, 646727130, 646710); + 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 = "30370-01.htm"; + break; + } + case State.STARTED: + { + htmltext = (qs.isCond(1)) ? "30370-05.html" : "30370-06.html"; + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = "30370-01.htm"; + } + else + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if ((qs != null) && qs.isCond(1) && killer.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + int count = qs.getInt(KILL_COUNT_VAR); + qs.set(KILL_COUNT_VAR, ++count); + if (count >= 300) + { + qs.setCond(2, true); + } + else + { + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + final int killCount = qs.getInt(KILL_COUNT_VAR); + if (killCount > 0) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_THE_VIOLENT_MONSTERS.getId(), true, killCount)); + return holder; + } + } + return super.getNpcLogList(player); + } +} 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 77a9fe6767..e1815e863b 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 @@ -147,6 +147,7 @@ import quests.Q00593_BasicMissionPaganTemple.Q00593_BasicMissionPaganTemple; import quests.Q00594_BasicMissionDimensionalRift.Q00594_BasicMissionDimensionalRift; import quests.Q00595_SpecialMissionRaidersCrossroads.Q00595_SpecialMissionRaidersCrossroads; import quests.Q00596_SpecialMissionDefeatBaylor.Q00596_SpecialMissionDefeatBaylor; +import quests.Q00599_DemonsAndDimensionalEnergy.Q00599_DemonsAndDimensionalEnergy; import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess; import quests.Q00617_GatherTheFlames.Q00617_GatherTheFlames; import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame; @@ -188,6 +189,7 @@ import quests.Q00762_AnOminousRequest.Q00762_AnOminousRequest; import quests.Q00763_ADauntingTask.Q00763_ADauntingTask; import quests.Q00764_WeakeningTheVarkaSilenosForces.Q00764_WeakeningTheVarkaSilenosForces; import quests.Q00765_WeakeningTheKetraOrcForces.Q00765_WeakeningTheKetraOrcForces; +import quests.Q00774_DreamingOfPeace.Q00774_DreamingOfPeace; import quests.Q00775_RetrievingTheChaosFragment.Q00775_RetrievingTheChaosFragment; import quests.Q00776_SlayDarkLordEkimus.Q00776_SlayDarkLordEkimus; import quests.Q00777_SlayDarkLordTiat.Q00777_SlayDarkLordTiat; @@ -502,7 +504,6 @@ import quests.custom.Q10533_OrfensAmbition.Q10533_OrfensAmbition; import quests.not_done.Q00504_CompetitionForTheBanditStronghold; import quests.not_done.Q00579_BasicMissionBlazingSwamp; import quests.not_done.Q00591_GreatAmbitions; -import quests.not_done.Q00599_DemonsAndDimensionalEnergy; import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts; import quests.not_done.Q00667_CoveringShilensEyes; import quests.not_done.Q00744_TheAlligatorHunterReturns; @@ -513,7 +514,6 @@ import quests.not_done.Q00749_TiesWithTheGuardians; import quests.not_done.Q00750_SevenFlowers; import quests.not_done.Q00759_TheDwarvenNightmareContinues; import quests.not_done.Q00773_ToCalmTheFlood; -import quests.not_done.Q00774_DreamingOfPeace; import quests.not_done.Q00780_UtilizeTheDarknessSeedOfInfinity; import quests.not_done.Q00781_UtilizeTheDarknessSeedOfAnnihilation; import quests.not_done.Q00782_UtilizeTheDarknessSeedOfHellfire; @@ -727,7 +727,7 @@ public class QuestMasterHandler Q00594_BasicMissionDimensionalRift.class, Q00595_SpecialMissionRaidersCrossroads.class, Q00596_SpecialMissionDefeatBaylor.class, - Q00599_DemonsAndDimensionalEnergy.class, // TODO: Not done. + Q00599_DemonsAndDimensionalEnergy.class, Q00600_KeyToTheRefiningProcess.class, Q00617_GatherTheFlames.class, Q00618_IntoTheFlame.class, @@ -781,7 +781,7 @@ public class QuestMasterHandler Q00764_WeakeningTheVarkaSilenosForces.class, Q00765_WeakeningTheKetraOrcForces.class, Q00773_ToCalmTheFlood.class, // TODO: Not done. - Q00774_DreamingOfPeace.class, // TODO: Not done. + Q00774_DreamingOfPeace.class, Q00775_RetrievingTheChaosFragment.class, Q00776_SlayDarkLordEkimus.class, Q00777_SlayDarkLordTiat.class, diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.java deleted file mode 100644 index 7b12f979f7..0000000000 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.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 Q00599_DemonsAndDimensionalEnergy extends Quest -{ - private static final int START_NPC = 34425; - - public Q00599_DemonsAndDimensionalEnergy() - { - super(599); - 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/not_done/Q00774_DreamingOfPeace.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java deleted file mode 100644 index 4521b083ec..0000000000 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.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 Q00774_DreamingOfPeace extends Quest -{ - private static final int START_NPC = 30370; - - public Q00774_DreamingOfPeace() - { - super(774); - 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 2b5226f49b..affa2f7138 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 @@ -41,7 +41,6 @@ 559 Request from the Red Libra Guild - Krofin's Nest 591 Great Ambitions 592 Snow's Plea - Monsters from Three Areas -599 Demons and Dimensional Energy 655 A Grand Plan for Taming Wild Beasts 690 |Attack| Begin Alliance Base Defense - 1 691 |Attack| Begin Alliance Base Defense - 2 @@ -90,7 +89,6 @@ 749 Ties with the Guardians 759 The Dwarven Nightmare Continues 773 To Calm the Flood -774 Dreaming of Peace 780 Utilize the Darkness - Seed of Infinity 781 Utilize the Darkness - Seed of Annihilation 782 Utilize the Darkness - Seed of Hellfire diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm new file mode 100644 index 0000000000..31d1dacf4d --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-00.htm @@ -0,0 +1,5 @@ +Leona Blackbird:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 103.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm new file mode 100644 index 0000000000..37235dcdd1 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-01.htm @@ -0,0 +1,6 @@ +Leona Blackbird:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm new file mode 100644 index 0000000000..f7ee76d36c --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-02.htm @@ -0,0 +1,4 @@ +Leona Blackbird:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm new file mode 100644 index 0000000000..69d0a22fe9 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-03.htm @@ -0,0 +1,6 @@ +Leona Blackbird:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm new file mode 100644 index 0000000000..f7d771a99f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04.htm @@ -0,0 +1,9 @@ +Leona Blackbird:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm new file mode 100644 index 0000000000..27b1b02c15 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04a.htm @@ -0,0 +1,9 @@ +Leona Blackbird:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm new file mode 100644 index 0000000000..1e5279e5a7 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-04b.htm @@ -0,0 +1,9 @@ +Leona Blackbird:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html new file mode 100644 index 0000000000..d917c24676 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Your Unworldly Visitors Faction Level Must be 6 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html new file mode 100644 index 0000000000..38be581635 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-05a.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Your Unworldly Visitors Faction Level Must be 7 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html new file mode 100644 index 0000000000..4fc2803948 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06.html @@ -0,0 +1,6 @@ +Leona Blackbird:
+You have chosen the basic mission to collect 200 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html new file mode 100644 index 0000000000..7fd1818b22 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06a.html @@ -0,0 +1,6 @@ +Leona Blackbird:
+You have chosen the intermediate mission to collect 400 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html new file mode 100644 index 0000000000..29ef8c4fc7 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-06b.html @@ -0,0 +1,6 @@ +Leona Blackbird:
+You have chosen the advanced mission to collect 600 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html new file mode 100644 index 0000000000..c624c03c9e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 200 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html new file mode 100644 index 0000000000..23b2bcd782 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07a.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 400 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html new file mode 100644 index 0000000000..44832e7eb2 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-07b.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 600 Mutated Spirit's Souls. It should be manageable. +y> \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html new file mode 100644 index 0000000000..faddcb780c --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Go to the Garden of Spirits and defeat all type monsters until you collect 200 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html new file mode 100644 index 0000000000..6d456dd5b2 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08a.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Go to the Garden of Spirits and defeat all type monsters until you collect 400 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html new file mode 100644 index 0000000000..20c18678af --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-08b.html @@ -0,0 +1,3 @@ +Leona Blackbird:
+Go to the Garden of Spirits and defeat all type monsters until you collect 600 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html new file mode 100644 index 0000000000..9d122fcade --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-09.html @@ -0,0 +1,5 @@ +Leona Blackbird:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html new file mode 100644 index 0000000000..d770676abe --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/34425-10.html @@ -0,0 +1,4 @@ +Leona Blackbird:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java new file mode 100644 index 0000000000..95b0886b75 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00599_DemonsAndDimensionalEnergy/Q00599_DemonsAndDimensionalEnergy.java @@ -0,0 +1,354 @@ +/* + * 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.Q00599_DemonsAndDimensionalEnergy; + +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; + +/** + * Demons and Dimensional Energy (599) + * @URL https://l2wiki.com/Demons_and_Dimensional_Energy + * @author Dmitri + */ +public class Q00599_DemonsAndDimensionalEnergy extends Quest +{ + // NPCs + private static final int LEONA_BLACKBIRD = 34425; + // Monsters + private static final int[] MONSTERS = + { + 24144, // Death Rogue + 24145, // Death Shooter + 24146, // Death Warrior + 24147, // Death Sorcerer + 24149, // Devil Nightmare + 24150, // Devil Warrior + 24151, // Devil Guardian + 24152, // Devil Sinist + 24154, // Demonic Wizard + 24155, // Demonic Warrior + 24156, // Demonic Archer + 24157 // Demonic Keras + }; + // Item + private static final int DEMON_SLAYERS_PROOF = 48578; + // Rewards + private static final int BASIC_SUPPLY_BOX = 48579; // Blackbird Clan Basic Box Atelia Refinery + private static final int INTERMEDIATE_SUPPLY_BOX = 48580; // Blackbird Clan Intermediate Box Atelia Refinery + private static final int ADVANCED_SUPPLY_BOX = 48581; // Blackbird Clan Advanced Box Atelia Refinery + // Misc + private static final int MIN_LEVEL = 103; + + public Q00599_DemonsAndDimensionalEnergy() + { + super(599); + addStartNpc(LEONA_BLACKBIRD); + addTalkId(LEONA_BLACKBIRD); + addKillId(MONSTERS); + registerQuestItems(DEMON_SLAYERS_PROOF); + addCondMinLevel(MIN_LEVEL, "34425-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 "34425-02.htm": + case "34425-03.htm": + case "34425-04.htm": + case "34425-04a.htm": + case "34425-04b.htm": + case "34425-06.html": + case "34425-06a.html": + case "34425-06b.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 6) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 7)) + { + htmltext = "34425-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 7) + { + htmltext = "34425-04b.htm"; + break; + } + htmltext = "34425-04.htm"; + break; + } + case "return": + { + if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 6) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 7)) + { + htmltext = "34425-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 7) + { + htmltext = "34425-04b.htm"; + break; + } + htmltext = "34425-04.htm"; + break; + } + case "34425-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34425-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34425-07b.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34425-10.html": + { + final int chance = getRandom(100); + switch (qs.getCond()) + { + case 5: + { + if ((getQuestItemsCount(player, DEMON_SLAYERS_PROOF) == 200) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + addExpAndSp(player, 27191624760L, 27191610); + addFactionPoints(player, Faction.BLACKBIRD_CLAN, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 6: + { + if ((getQuestItemsCount(player, DEMON_SLAYERS_PROOF) == 400) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + addExpAndSp(player, 54383249520L, 54383220); + addFactionPoints(player, Faction.BLACKBIRD_CLAN, 200); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 7: + { + if ((getQuestItemsCount(player, DEMON_SLAYERS_PROOF) == 600) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + addExpAndSp(player, 81574874280L, 81574830); + addFactionPoints(player, Faction.BLACKBIRD_CLAN, 300); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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 = "34425-01.htm"; + // fallthrough? + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if ((player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 6) && (player.getFactionLevel(Faction.BLACKBIRD_CLAN) < 7)) + { + htmltext = "34425-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.BLACKBIRD_CLAN) >= 7) + { + htmltext = "34425-04b.htm"; + break; + } + htmltext = "34425-04.htm"; + break; + } + case 2: + { + htmltext = "34425-08.html"; + break; + } + case 3: + { + htmltext = "34425-08a.html"; + break; + } + case 4: + { + htmltext = "34425-08b.html"; + break; + } + case 5: + case 6: + case 7: + { + htmltext = "34425-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34425-01.htm"; + } + break; + } + } + 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.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + switch (qs.getCond()) + { + case 2: + { + if (giveItemRandomly(player, npc, DEMON_SLAYERS_PROOF, 1, 200, 1, true)) + { + qs.setCond(5, true); + } + break; + } + case 3: + { + if (giveItemRandomly(player, npc, DEMON_SLAYERS_PROOF, 1, 400, 1, true)) + { + qs.setCond(6, true); + } + break; + } + case 4: + { + if (giveItemRandomly(player, npc, DEMON_SLAYERS_PROOF, 1, 600, 1, true)) + { + qs.setCond(7, true); + } + break; + } + } + } + } +} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm new file mode 100644 index 0000000000..0d4bb3d6ec --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-00.htm @@ -0,0 +1,4 @@ +Nerupa
+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. 90-100.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm new file mode 100644 index 0000000000..1c1fcc9785 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-01.htm @@ -0,0 +1,6 @@ +Nerupa:
+Are you heading to the Kimerian's Forest?
+With your skills, you will easily be able to go there, even without my help.
+Then do you have a mind to help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm new file mode 100644 index 0000000000..6a4e40569b --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-02.htm @@ -0,0 +1,6 @@ +Nerupa:
+I think, every day, that I to return home again, when this place and the world outside find peace again.
+The blackish red fog and the shriveling Mother Tree... all are agonizing.
+Then, I chanced upon something I could do.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm new file mode 100644 index 0000000000..6a7b5195d3 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-03.htm @@ -0,0 +1,7 @@ +Nerupa:
+I found out that the Forest of Fairies and the Kimerian's Forest, while they are similar, have distinct differences.
+I also found that the Fairies and Satyrs in the Kimerian's Forest are very dangerous.
+It's also possible to obtain from them the blood necessary to make potions. Adventurers would just venture on in without knowing a thing, and then find themselves in danger.
+So, in order to reduce the risk, and dreaming of a peaceful future, I began my own little struggle.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-04.htm @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html new file mode 100644 index 0000000000..37b96070b1 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-05.html @@ -0,0 +1,5 @@ +Nerupa:
+The Violent Fairies and Satyrs in the Kimerian's Forest are nothing but just pests. I'm giving everything I have to slaying them, and asking those who would help me to join me in slaying the Violent Fairies and Violent Satyrs.
+To aid those who are working to develop the potion, it is important for you to slay at least 300 Violent Fairies and Violent Satyrs.
+I will give you a small reward for your help. Please slay at least 300 Violent Fairies and Satyrs, and up to 1200 if possible. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html new file mode 100644 index 0000000000..2a6fcd6046 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-06.html @@ -0,0 +1,5 @@ +Nerupa:
+Done with 300 already?
+I guess I'm a good judge of character. The Violent Fairies and Satyrs couldn't have made it easy for you. If you still have it in you, and want to slay some more, I' won't stop you. Or would you like to call it a day?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html new file mode 100644 index 0000000000..5adbbc5ed7 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/30370-07.html @@ -0,0 +1,4 @@ +Nerupa:
+Thank you. Though this is not my hometown, I was distressed by the others who were in distress.
+There are still countless Fairies enraged, and Violent Fairies and Satyrs keep popping up. Please, return tomorrow to help again if you have the time. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java new file mode 100644 index 0000000000..3cdb7867e0 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00774_DreamingOfPeace/Q00774_DreamingOfPeace.java @@ -0,0 +1,173 @@ +/* + * 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.Q00774_DreamingOfPeace; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.QuestSound; +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.holders.NpcLogListHolder; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Dreaming of Peace (774) + * @URL https://l2wiki.com/Dreaming_of_Peace + * @author Dmitri + */ +public class Q00774_DreamingOfPeace extends Quest +{ + // NPC + private static final int NERUPA = 30370; + // Monsters + private static final int[] MONSTERS = + { + 22863, // Fairy Warrior + 22871, // Fairy Rogue + 22879, // Fairy Knight + 22887, // Satyr Wizard + 22895, // Satyr Summoner + 22903 // Satyr Witch + }; + // Misc + private static final int MIN_LEVEL = 90; + private static final int MAX_LEVEL = 100; + private static final String KILL_COUNT_VAR = "KillCount"; + + public Q00774_DreamingOfPeace() + { + super(774); + addStartNpc(NERUPA); + addTalkId(NERUPA); + addKillId(MONSTERS); + addCondLevel(MIN_LEVEL, MAX_LEVEL, "30370-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 "30370-02.htm": + case "30370-03.htm": + { + htmltext = event; + break; + } + case "30370-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30370-07.html": + { + // Rewards + giveAdena(player, 559020, true); + addExpAndSp(player, 646727130, 646710); + 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 = "30370-01.htm"; + break; + } + case State.STARTED: + { + htmltext = (qs.isCond(1)) ? "30370-05.html" : "30370-06.html"; + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = "30370-01.htm"; + } + else + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if ((qs != null) && qs.isCond(1) && killer.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + int count = qs.getInt(KILL_COUNT_VAR); + qs.set(KILL_COUNT_VAR, ++count); + if (count >= 300) + { + qs.setCond(2, true); + } + else + { + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + final int killCount = qs.getInt(KILL_COUNT_VAR); + if (killCount > 0) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_THE_VIOLENT_MONSTERS.getId(), true, killCount)); + return holder; + } + } + return super.getNpcLogList(player); + } +} 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 0bce6c647a..235d782241 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 @@ -77,6 +77,7 @@ import quests.Q00593_BasicMissionPaganTemple.Q00593_BasicMissionPaganTemple; import quests.Q00594_BasicMissionDimensionalRift.Q00594_BasicMissionDimensionalRift; import quests.Q00595_SpecialMissionRaidersCrossroads.Q00595_SpecialMissionRaidersCrossroads; import quests.Q00596_SpecialMissionDefeatBaylor.Q00596_SpecialMissionDefeatBaylor; +import quests.Q00599_DemonsAndDimensionalEnergy.Q00599_DemonsAndDimensionalEnergy; import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess; import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame; import quests.Q00620_FourGoblets.Q00620_FourGoblets; @@ -104,6 +105,7 @@ import quests.Q00756_TopQualityPetra.Q00756_TopQualityPetra; import quests.Q00757_TriolsMovement.Q00757_TriolsMovement; import quests.Q00758_TheFallenKingsMen.Q00758_TheFallenKingsMen; import quests.Q00760_BlockTheExit.Q00760_BlockTheExit; +import quests.Q00774_DreamingOfPeace.Q00774_DreamingOfPeace; import quests.Q00775_RetrievingTheChaosFragment.Q00775_RetrievingTheChaosFragment; import quests.Q00776_SlayDarkLordEkimus.Q00776_SlayDarkLordEkimus; import quests.Q00777_SlayDarkLordTiat.Q00777_SlayDarkLordTiat; @@ -265,12 +267,10 @@ import quests.custom.Q10533_OrfensAmbition.Q10533_OrfensAmbition; import quests.not_done.Q00282_ADayOfKindnessAndCaring; import quests.not_done.Q00504_CompetitionForTheBanditStronghold; import quests.not_done.Q00591_GreatAmbitions; -import quests.not_done.Q00599_DemonsAndDimensionalEnergy; import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts; import quests.not_done.Q00749_TiesWithTheGuardians; import quests.not_done.Q00759_TheDwarvenNightmareContinues; import quests.not_done.Q00773_ToCalmTheFlood; -import quests.not_done.Q00774_DreamingOfPeace; import quests.not_done.Q00780_UtilizeTheDarknessSeedOfInfinity; import quests.not_done.Q00781_UtilizeTheDarknessSeedOfAnnihilation; import quests.not_done.Q00782_UtilizeTheDarknessSeedOfHellfire; @@ -401,7 +401,7 @@ public class QuestMasterHandler Q00594_BasicMissionDimensionalRift.class, Q00595_SpecialMissionRaidersCrossroads.class, Q00596_SpecialMissionDefeatBaylor.class, - Q00599_DemonsAndDimensionalEnergy.class, // TODO: Not done. + Q00599_DemonsAndDimensionalEnergy.class, Q00600_KeyToTheRefiningProcess.class, Q00618_IntoTheFlame.class, Q00620_FourGoblets.class, @@ -435,7 +435,7 @@ public class QuestMasterHandler Q00759_TheDwarvenNightmareContinues.class, // TODO: Not done. Q00760_BlockTheExit.class, Q00773_ToCalmTheFlood.class, // TODO: Not done. - Q00774_DreamingOfPeace.class, // TODO: Not done. + Q00774_DreamingOfPeace.class, Q00775_RetrievingTheChaosFragment.class, Q00776_SlayDarkLordEkimus.class, Q00777_SlayDarkLordTiat.class, diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.java deleted file mode 100644 index 7b12f979f7..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00599_DemonsAndDimensionalEnergy.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 Q00599_DemonsAndDimensionalEnergy extends Quest -{ - private static final int START_NPC = 34425; - - public Q00599_DemonsAndDimensionalEnergy() - { - super(599); - 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/not_done/Q00774_DreamingOfPeace.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.java deleted file mode 100644 index 4521b083ec..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00774_DreamingOfPeace.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 Q00774_DreamingOfPeace extends Quest -{ - private static final int START_NPC = 30370; - - public Q00774_DreamingOfPeace() - { - super(774); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -}