From 1aa43deec18706f4585c66b89818adabdc6de7c8 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 25 Nov 2019 19:21:21 +0000 Subject: [PATCH] Addition of quests 10590 and 10591. Contributed by Dmitri. --- .../game/data/instances/EvasHiddenSpace.xml | 23 ++ .../instances/EvasHiddenSpace/33686-01.html | 7 + .../instances/EvasHiddenSpace/33686-02.html | 5 + .../instances/EvasHiddenSpace/33686-03.html | 5 + .../instances/EvasHiddenSpace/33686-04.html | 5 + .../instances/EvasHiddenSpace/33686.html | 5 + .../EvasHiddenSpace/EvasHiddenSpace.java | 122 +++++++ .../data/scripts/quests/MissingQuests.txt | 2 - .../Q10590_ReawakenedFate/30857-01.html | 4 + .../Q10590_ReawakenedFate/30857-02.html | 6 + .../Q10590_ReawakenedFate/30857-03.html | 3 + .../Q10590_ReawakenedFate/30857-04.html | 3 + .../Q10590_ReawakenedFate/30857-05.html | 3 + .../Q10590_ReawakenedFate/34362-01.html | 4 + .../Q10590_ReawakenedFate/34362-02.html | 5 + .../Q10590_ReawakenedFate/34362-03.html | 4 + .../Q10590_ReawakenedFate/34362-04.html | 4 + .../Q10590_ReawakenedFate/34414-01.html | 4 + .../Q10590_ReawakenedFate/34414-02.html | 5 + .../Q10590_ReawakenedFate/34414-03.html | 5 + .../Q10590_ReawakenedFate/34414-04.html | 3 + .../Q10590_ReawakenedFate/34513-01.html | 4 + .../Q10590_ReawakenedFate/34513-02.html | 5 + .../Q10590_ReawakenedFate/34513-03.html | 6 + .../Q10590_ReawakenedFate/34513-04.html | 5 + .../Q10590_ReawakenedFate/34513-05.html | 4 + .../Q10590_ReawakenedFate/34513-06.html | 4 + .../Q10590_ReawakenedFate/34513-07.html | 3 + .../Q10590_ReawakenedFate/34513-08.html | 4 + .../Q10590_ReawakenedFate/34513-09.html | 6 + .../Q10590_ReawakenedFate/34513-10.html | 4 + .../Q10590_ReawakenedFate/34513-11.html | 4 + .../Q10590_ReawakenedFate/34513-12.html | 5 + .../Q10590_ReawakenedFate/34513-13.html | 3 + .../Q10590_ReawakenedFate/34513-15.html | 4 + .../Q10590_ReawakenedFate/34513-16.html | 3 + .../Q10590_ReawakenedFate.java | 314 ++++++++++++++++ .../quests/Q10591_NobleMaterial/33907-01.html | 4 + .../quests/Q10591_NobleMaterial/33907-02.html | 4 + .../quests/Q10591_NobleMaterial/33907-03.html | 4 + .../quests/Q10591_NobleMaterial/33907-04.html | 6 + .../quests/Q10591_NobleMaterial/33907-05.html | 3 + .../quests/Q10591_NobleMaterial/33907-06.html | 3 + .../quests/Q10591_NobleMaterial/33907-07.html | 3 + .../quests/Q10591_NobleMaterial/34014-01.html | 4 + .../quests/Q10591_NobleMaterial/34014-02.html | 4 + .../quests/Q10591_NobleMaterial/34014-03.html | 5 + .../quests/Q10591_NobleMaterial/34362-01.html | 4 + .../quests/Q10591_NobleMaterial/34362-02.html | 4 + .../quests/Q10591_NobleMaterial/34362-03.html | 4 + .../quests/Q10591_NobleMaterial/34513-01.htm | 4 + .../quests/Q10591_NobleMaterial/34513-02.htm | 4 + .../quests/Q10591_NobleMaterial/34513-03.htm | 6 + .../quests/Q10591_NobleMaterial/34513-04.htm | 6 + .../quests/Q10591_NobleMaterial/34513-05.html | 4 + .../quests/Q10591_NobleMaterial/34513-06.html | 4 + .../quests/Q10591_NobleMaterial/34513-07.html | 3 + .../quests/Q10591_NobleMaterial/34513-15.html | 4 + .../quests/Q10591_NobleMaterial/34513-16.html | 3 + .../Q10591_NobleMaterial.java | 336 ++++++++++++++++++ .../scripts/quests/QuestMasterHandler.java | 6 +- .../not_done/Q10590_ReawakenedFate.java | 36 -- .../quests/not_done/Q10591_NobleMaterial.java | 36 -- 63 files changed, 1033 insertions(+), 76 deletions(-) create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/instances/EvasHiddenSpace.xml create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-04.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/EvasHiddenSpace.java create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-04.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-05.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-04.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-04.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-04.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-05.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-06.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-07.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-08.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-09.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-10.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-11.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-12.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-13.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-15.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-16.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/Q10590_ReawakenedFate.java create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-04.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-05.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-06.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-07.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-01.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-02.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-03.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-04.htm create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-05.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-06.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-07.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-15.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-16.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/Q10591_NobleMaterial.java delete mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10590_ReawakenedFate.java delete mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10591_NobleMaterial.java diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/instances/EvasHiddenSpace.xml b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/instances/EvasHiddenSpace.xml new file mode 100644 index 0000000000..2d2ae4a6bf --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/instances/EvasHiddenSpace.xml @@ -0,0 +1,23 @@ + + + + diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-01.html new file mode 100644 index 0000000000..eb6540e8f2 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-01.html @@ -0,0 +1,7 @@ +Goddess of Water Eva's Avatar:
+You've come a long way. I'm Eva's Avatar. Are you surprised to see me? No need to. I was impressed by your actions.
+The reason I wanted to see you was because I wanted to ask you something.
+What do you think makes up nobility?
+That's the question I had for you. Can you tell me what you think?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-02.html new file mode 100644 index 0000000000..91359749bc --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-02.html @@ -0,0 +1,5 @@ +Goddess of Water Eva's Avatar:
+The reason I'm telling you this is because you will continue to face trials where your sacrifice and devotion will be needed. But do you think that means that your path is filled with hardship and sadness? I don't think so. The path that you go is a noble path that will raise your name. Please remember what I just said. That's why I wanted to see you.
+That's all. Now go up and talk to Lionel Hunter, who will give you your qualification.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-03.html new file mode 100644 index 0000000000..27d71a51a8 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-03.html @@ -0,0 +1,5 @@ +Eva's Avatar:
+The Goddess of Destruction has finally resurrected! The energy of water continues to be contaminated....
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-04.html new file mode 100644 index 0000000000..91359749bc --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686-04.html @@ -0,0 +1,5 @@ +Goddess of Water Eva's Avatar:
+The reason I'm telling you this is because you will continue to face trials where your sacrifice and devotion will be needed. But do you think that means that your path is filled with hardship and sadness? I don't think so. The path that you go is a noble path that will raise your name. Please remember what I just said. That's why I wanted to see you.
+That's all. Now go up and talk to Lionel Hunter, who will give you your qualification.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686.html new file mode 100644 index 0000000000..d18abe846e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/33686.html @@ -0,0 +1,5 @@ +Eva's Avatar:
+The Goddess of Destruction has finally resurrected! The energy of water continues to be contaminated....
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/EvasHiddenSpace.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/EvasHiddenSpace.java new file mode 100644 index 0000000000..3b47f566dc --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/instances/EvasHiddenSpace/EvasHiddenSpace.java @@ -0,0 +1,122 @@ +/* + * 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 instances.EvasHiddenSpace; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.model.instancezone.Instance; +import org.l2jmobius.gameserver.model.quest.QuestState; + +import instances.AbstractInstance; +import quests.Q10591_NobleMaterial.Q10591_NobleMaterial; + +/** + * Eva's Hidden Space instance zone. + * @author Gladicek, St3eT + */ +public class EvasHiddenSpace extends AbstractInstance +{ + // NPCs + private static final int EVAS_AVATAR = 33686; + // Misc + private static final int TEMPLATE_ID = 217; + + public EvasHiddenSpace() + { + super(TEMPLATE_ID); + addStartNpc(EVAS_AVATAR); + addTalkId(EVAS_AVATAR); + addFirstTalkId(EVAS_AVATAR); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + + if (event.equals("enterInstance")) + { + enterInstance(player, npc, TEMPLATE_ID); + } + else + { + final Instance world = npc.getInstanceWorld(); + if (isInInstance(world)) + { + switch (event) + { + case "33686-01.html": + case "33686-04.html": + { + htmltext = event; + break; + } + case "inter_quest_10591_NPC33686": + { + final QuestState qs = player.getQuestState(Q10591_NobleMaterial.class.getSimpleName()); + + if ((qs != null) && qs.isCond(6)) + { + qs.setCond(7, true); + htmltext = "33686-02.html"; + } + break; + } + case "exitInstance": + { + world.finishInstance(0); + break; + } + case "endCinematic": + { + startQuestTimer("exitInstance", 250, npc, player); + break; + } + } + } + else if (event.equals("exitInstance")) + { + teleportPlayerOut(player, world); + } + } + return htmltext; + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = player.getQuestState(Q10591_NobleMaterial.class.getSimpleName()); + if (qs != null) + { + if (qs.isCond(6)) + { + htmltext = "33686.html"; + } + else if (qs.isCond(7)) + { + htmltext = "33686-03.html"; + } + } + return htmltext; + } + + public static void main(String[] args) + { + new EvasHiddenSpace(); + } +} 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 446adba138..a3c5298089 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 @@ -190,8 +190,6 @@ 10572 To Expel the Embryo's Forces 10577 Temper a Rusting Blade 10578 The Soul of a Sword -10590 Reawakened Fate -10591 Noble Material 10594 Fergason's Scheme 10595 The Dimensional Warp, Part 8 10596 The Dimensional Warp, Part 9 diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-01.html new file mode 100644 index 0000000000..922395a650 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-01.html @@ -0,0 +1,4 @@ +High Priest Orven:
+Welcome. What brings you here?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-02.html new file mode 100644 index 0000000000..d7ae68c13a --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-02.html @@ -0,0 +1,6 @@ +High Priest Orven:
+A strange energy from hunting vampires? It sounds interesting. Hm... Let's see... I see.
+This energy is yours. When you train in the Ertheia training method, sometimes, your current power and your latent power collide. And that was unstable during the fight against a corrupt being, so it was materialized.
+This is yours, so you can absorb it. Don't worry. Think of becoming one with this energy.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-03.html new file mode 100644 index 0000000000..595cf262d0 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-03.html @@ -0,0 +1,3 @@ +High Priest Orven:
+The energy is being absorbed. Stay calm until you completely absorb that energy and it becomes yours. Once you are done, let me know. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-04.html new file mode 100644 index 0000000000..18aa93fc41 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-04.html @@ -0,0 +1,3 @@ +High Priest Orven:
+You are now one with that power. Now that that's over, return to Dual Class Master Joachim. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-05.html new file mode 100644 index 0000000000..18aa93fc41 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/30857-05.html @@ -0,0 +1,3 @@ +High Priest Orven:
+You are now one with that power. Now that that's over, return to Dual Class Master Joachim. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-01.html new file mode 100644 index 0000000000..37b5d54c14 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-01.html @@ -0,0 +1,4 @@ +Herphah:
+Hm? You defeated vampires and something strange came out? Can I take a look?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-02.html new file mode 100644 index 0000000000..281a98d7af --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-02.html @@ -0,0 +1,5 @@ +Herphah:
+I don't think this is from the corrupt body of vampires. I think I have a feeling. But I'm pretty bad at explaining these things.
+I'll introduce you to someone who can explain it better.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-03.html new file mode 100644 index 0000000000..556ae677bf --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-03.html @@ -0,0 +1,4 @@ +Herphah:
+It's High Priest Orven in the Temple of Einhasad in the Town of Aden. I'm sure he'll be able to explain better. Go find him.
+The Einhasad Temple is not too far. You can find your way there, right? + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-04.html new file mode 100644 index 0000000000..556ae677bf --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34362-04.html @@ -0,0 +1,4 @@ +Herphah:
+It's High Priest Orven in the Temple of Einhasad in the Town of Aden. I'm sure he'll be able to explain better. Go find him.
+The Einhasad Temple is not too far. You can find your way there, right? + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-01.html new file mode 100644 index 0000000000..97b02653fd --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-01.html @@ -0,0 +1,4 @@ +Black Wizard Lapathia:
+Change Isn't always bad, but I'm facing the bad kind of change once again. I'm waiting here helplessly for your help.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-02.html new file mode 100644 index 0000000000..a03987b03a --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-02.html @@ -0,0 +1,5 @@ +Black Wizard Lapathia:
+Please take a look around. This land is filled with vampires. My revenge of purifying monsters called on other monsters.
+But I'm still alive, fortunately. And it seems like you'll be able to help me.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-03.html new file mode 100644 index 0000000000..8b06dba8d9 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-03.html @@ -0,0 +1,5 @@ +Black Wizard Lapathia:
+Of course. If not why would you have come all the way here, where only blood and monsters are left? Adventurer, please defeat the monsters here in the Bloody Swampland. These vampires... the Marsh Vampire Rogue, Marsh Vampire Warrior, Marsh Vampire Wizard, Marsh Vampire Shooter. Defeat them and collect 500 Vampire Fluids.
+And Joachim said that you must reach level 99 in this place.
+Once you complete the mission, you don't need to come see me. Return to Dual Class Master Joachim. You don't need me to teleport you, right? This place is filled with vampires anyway Good luck, then + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-04.html new file mode 100644 index 0000000000..9f5360fba9 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34414-04.html @@ -0,0 +1,3 @@ +Black Wizard Lapathia:
+Of course. If not why would you have come all the way here, where only blood and monsters are left? Adventurer, please defeat the monsters here in the Bloody Swampland. These vampires... the Marsh Vampire Rogue, Marsh Vampire Warrior, Marsh Vampire Wizard, Marsh Vampire Shooter. Defeat them and collect 500 Vampire Fluids. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-01.html new file mode 100644 index 0000000000..6177bcf434 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-01.html @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+Are you ready to hear me out? It's about how to awaken another power hidden within you.....
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-02.html new file mode 100644 index 0000000000..67df1792ac --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-02.html @@ -0,0 +1,5 @@ +Dual Class Master Joachim:
+I'm not sure if you are satisfied with your power at the moment. But you have another power hidden within you. It could even surpass your current power.
+I'm here to help you awaken that power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-03.html new file mode 100644 index 0000000000..1e38b8b48f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-03.html @@ -0,0 +1,6 @@ +Dual Class Master Joachim:
+In order to awaken that new power, you must get a little stronger. Your current power is not enough.
+So please get stronger with the missions I give you.
+
+(Once you complete this quest, you'll be able to have a dual class. If you are carrying out Split Destiny or Winds of Fate: Encroachiling Shadows when you complete this quest, those quests will be deleted.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-04.html new file mode 100644 index 0000000000..a1e40b8192 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-04.html @@ -0,0 +1,5 @@ +Dual Class Master Joachim:
+Then go to the Bloody Swampland and complete the mission from Black Wizard Lapathia.
+I'll send you there once you are ready.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-05.html new file mode 100644 index 0000000000..7275f11a6f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-05.html @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+You've completed the growth and collection missions. Is that correct?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-06.html new file mode 100644 index 0000000000..5c7e7f7285 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-06.html @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+I see. Then it's time to move on to the next stage. Can you hand me what you brought?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-07.html new file mode 100644 index 0000000000..b589e0acb0 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-07.html @@ -0,0 +1,3 @@ +Dual Class Master Joachim:
+Wait, I found this in the item you brought. This isn't a vampire's fluids... Can you ask Herphah about this item? + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-08.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-08.html new file mode 100644 index 0000000000..16286c1703 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-08.html @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+You are back. Did you find out?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-09.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-09.html new file mode 100644 index 0000000000..893427a9db --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-09.html @@ -0,0 +1,6 @@ +Dual Class Master Joachim:
+You absorbed a new power? So that's possible. No wonder I could feel your power had grown. It looks like you are ready to awaken the new power now.
+Pick the reward that suits you and I'll give it to you.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-10.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-10.html new file mode 100644 index 0000000000..c354c91d3d --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-10.html @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+You are ready to obtain the power of Dual Class. The mission is completed, but you will need me to add a dual class.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-11.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-11.html new file mode 100644 index 0000000000..c354c91d3d --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-11.html @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+You are ready to obtain the power of Dual Class. The mission is completed, but you will need me to add a dual class.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-12.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-12.html new file mode 100644 index 0000000000..0b649e2516 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-12.html @@ -0,0 +1,5 @@ +Dual Class Master Joachim:
+A dual class lets you select another class besides your main class and to raise them to the same level.
+There are restrictions to what types of classes you can select, though. Do you want to see if you meet the conditions?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-13.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-13.html new file mode 100644 index 0000000000..511ebf334b --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-13.html @@ -0,0 +1,3 @@ +Dual Class Master Joachim:
+You already have a dual class, so you can't add another dual class. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-15.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-15.html new file mode 100644 index 0000000000..bd7118c658 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-15.html @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+Then go to the Bloody Swampland and complete the mission from Black Wizard Lapathia.
+I'll send you there once you are ready. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-16.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-16.html new file mode 100644 index 0000000000..c5cfaf60b7 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/34513-16.html @@ -0,0 +1,3 @@ +Dual Class Master Joachim:
+this quest is run at level 95+ and the quest Where Fates Intersect must be completed + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/Q10590_ReawakenedFate.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/Q10590_ReawakenedFate.java new file mode 100644 index 0000000000..033b1a7c2a --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10590_ReawakenedFate/Q10590_ReawakenedFate.java @@ -0,0 +1,314 @@ +/* + * 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.Q10590_ReawakenedFate; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.QuestSound; +import org.l2jmobius.gameserver.model.Location; +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; +import org.l2jmobius.gameserver.network.NpcStringId; +import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; +import org.l2jmobius.gameserver.util.Util; + +import quests.Q10589_WhereFatesIntersect.Q10589_WhereFatesIntersect; + +/** + * Q10590_ReawakenedFate + * @URL https://www.youtube.com/watch?v=HCd784Gnguw + * @author NightBR + */ +public class Q10590_ReawakenedFate extends Quest +{ + // NPCs + private static final int JOACHIM = 34513; + private static final int RAFLASIA = 34414; + private static final int HERPA = 34362; + private static final int ORWEN = 30857; + private static final int[] MONSTERS = + { + 24457, // Swamp Vampire Rogue + 24458, // Swamp Vampire Warrior + 24459, // Swamp Vampire Wizard + 24460 // Swamp Vampire Shooter + }; + // Item + private static final int IHOR_VAMPIRE = 80854; // Ihor Vampire - monster drop + // Rewards + private static final long EXP = 1; + private static final int SP = 1; + private static final int ADENA_AMOUNT = 5050; + private static final int ACHIEVEMENT_BOX = 80909; + private static final int RUBIN_LV2 = 38856; + private static final int SAPPHIRE_LV2 = 38928; + // Misc + private static final int MIN_LEVEL = 99; + // Location + private static final Location ALTAR_OF_EVIL = new Location(-14467, 44242, -3673); + + public Q10590_ReawakenedFate() + { + super(10590); + addStartNpc(JOACHIM); + addTalkId(JOACHIM, RAFLASIA, HERPA, ORWEN); + addKillId(MONSTERS); + registerQuestItems(IHOR_VAMPIRE); + addCondMinLevel(95, "34513-16.html"); + addCondCompletedQuest(Q10589_WhereFatesIntersect.class.getSimpleName(), "34513-16.html"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + + if (qs == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "34513-02.html": + case "34513-04.html": + case "34513-07.html": + case "34362-03.html": + case "30857-03.html": + case "34513-09.html": + case "34513-12.html": + case "34513-13.html": + { + htmltext = event; + break; + } + case "34513-03.html": + { + qs.startQuest(); + htmltext = event; + break; + } + case "teleport": + { + if (qs.isCond(1)) + { + player.teleToLocation(ALTAR_OF_EVIL); + } + break; + } + case "34414-02.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34513-06.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34362-02.html": + { + qs.setCond(5, true); + htmltext = event; + break; + } + case "30857-02.html": + { + qs.setCond(6, true); + htmltext = event; + break; + } + case "30857-04.html": + { + if (qs.isCond(6)) + { + qs.setCond(7, true); + } + htmltext = event; + break; + } + case "34513-10.html": + { + if (qs.isCond(7)) + { + if (player.getLevel() >= MIN_LEVEL) + { + // Reward №1 + addExpAndSp(player, EXP, SP); + giveAdena(player, ADENA_AMOUNT, false); + giveItems(player, ACHIEVEMENT_BOX, 1); + giveItems(player, RUBIN_LV2, 1); + showOnScreenMsg(player, NpcStringId.YOU_ARE_READY_TO_ADD_A_DUAL_CLASS_NTALK_TO_THE_DUAL_CLASS_MASTER, ExShowScreenMessage.TOP_CENTER, 10000); + qs.exitQuest(false, true); + htmltext = event; + } + break; + } + } + case "34513-11.html": + { + if (qs.isCond(7)) + { + if (player.getLevel() >= MIN_LEVEL) + { + // Reward №2 + addExpAndSp(player, EXP, SP); + giveAdena(player, ADENA_AMOUNT, false); + giveItems(player, ACHIEVEMENT_BOX, 1); + giveItems(player, SAPPHIRE_LV2, 1); + showOnScreenMsg(player, NpcStringId.YOU_ARE_READY_TO_ADD_A_DUAL_CLASS_NTALK_TO_THE_DUAL_CLASS_MASTER, ExShowScreenMessage.TOP_CENTER, 10000); + qs.exitQuest(false, 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: + { + if (npc.getId() == JOACHIM) + { + htmltext = "34513-01.html"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case JOACHIM: + { + if (qs.isCond(1)) + { + htmltext = "34513-03.html"; + } + else if (qs.isCond(2)) + { + htmltext = "34513-15.html"; + } + else if (qs.isCond(3)) + { + htmltext = "34513-05.html"; + } + else if (qs.isCond(4)) + { + htmltext = "34513-07.html"; + } + else if (qs.isCond(7)) + { + htmltext = "34513-08.html"; + } + break; + } + case RAFLASIA: + { + if (qs.isCond(1)) + { + htmltext = "34414-01.html"; + } + else if (qs.isCond(2)) + { + htmltext = "34414-03.html"; + } + else if (qs.isCond(3)) + { + htmltext = "34414-04.html"; + } + break; + } + case HERPA: + { + if (qs.isCond(4)) + { + htmltext = "34362-01.html"; + } + else if (qs.isCond(5)) + { + htmltext = "34362-04.html"; + } + break; + } + case ORWEN: + { + if (qs.isCond(5)) + { + htmltext = "30857-01.html"; + } + else if (qs.isCond(6)) + { + qs.setCond(7, true); + htmltext = "30857-04.html"; + } + else if (qs.isCond(7)) + { + htmltext = "30857-05.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(2) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, player, false)) + { + if ((getQuestItemsCount(player, IHOR_VAMPIRE) < 500) && (getRandom(100) < 90)) + { + giveItems(player, IHOR_VAMPIRE, 1); + playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET); + } + if ((getQuestItemsCount(player, IHOR_VAMPIRE) >= 500) && (player.getLevel() >= MIN_LEVEL)) + { + qs.setCond(3, true); + } + } + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + executeForEachPlayer(killer, npc, isSummon, true, false); + return super.onKill(npc, killer, isSummon); + } +} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-01.html new file mode 100644 index 0000000000..055927514b --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-01.html @@ -0,0 +1,4 @@ +Eva's Knight Lionel Hunter:
+I've heard about you. You've done so much that even I heard about you. I know that your good deeds have helped many people.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-02.html new file mode 100644 index 0000000000..3d2cc8b0be --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-02.html @@ -0,0 +1,4 @@ +Eva's Knight Lionel Hunter:
+The mission you've done this time is about to end as well. There's one last person you must meet. I will be introducing you to that person. Go now.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-03.html new file mode 100644 index 0000000000..5f1d10d91e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-03.html @@ -0,0 +1,4 @@ +Eva's Knight Lionel Hunter:
+You will see when you go. We'll talk after.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-04.html new file mode 100644 index 0000000000..4374a6ed6a --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-04.html @@ -0,0 +1,6 @@ +Eva's Knight Lionel Hunter:
+Alright I'll prove your qualification. First, choose the reward that suits you. Once you select the reward, I'll give you the qualification for that.
+
+
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-05.html new file mode 100644 index 0000000000..1728aa0857 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-05.html @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+Great job. Your mission doesn't end here, but I hope you take a break. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-06.html new file mode 100644 index 0000000000..1728aa0857 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-06.html @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+Great job. Your mission doesn't end here, but I hope you take a break. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-07.html new file mode 100644 index 0000000000..1728aa0857 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/33907-07.html @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+Great job. Your mission doesn't end here, but I hope you take a break. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-01.html new file mode 100644 index 0000000000..4ed265cb81 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-01.html @@ -0,0 +1,4 @@ +Harp Zu Hestui:
+Your energy tells me you are not a bad person! Then you must have come to prove your qualification. I've been waiting for you.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-02.html new file mode 100644 index 0000000000..3dd50d0759 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-02.html @@ -0,0 +1,4 @@ +Harp Zu Hestui:
+You'll be able to grow in the Blazing Swamp. Please defeat the monsters there.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-03.html new file mode 100644 index 0000000000..7270ffafe0 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34014-03.html @@ -0,0 +1,5 @@ +Harp Zu Hestui:
+You mission is to defeat the monsters in the Blazing Swamp. Defeat the Magma Allith, Lava Wyrm, Lava Drake, Lava Wendigo, Lava Stone Golem, Lava Leviah, Magma Salamander, Magma Dre Vanul, Flame Preta, Flame Crow, Flame Rael, Flame Salamander, Flame Drake, Flame Votis. And collect 1000 Hot Energy..
+And you must also reach level 100.
+Once you complete the mission, you can return to Dual Class Master Joachim! + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-01.html new file mode 100644 index 0000000000..df8133f3e4 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-01.html @@ -0,0 +1,4 @@ +Herphah:
+You've done very well. I think I can prove your qualification right away.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-02.html new file mode 100644 index 0000000000..5dcc5f0782 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-02.html @@ -0,0 +1,4 @@ +Herphah:
+Unfortunately, proving that qualification and the power that you gain through that is not something I can give you. I can only introduce you to someone who can do that.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-03.html new file mode 100644 index 0000000000..4459be99d2 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34362-03.html @@ -0,0 +1,4 @@ +Herphah:
+That's Eva's Knight Lionel Hunter in Heine. Go and prove your qualification to that man. + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-01.htm new file mode 100644 index 0000000000..735ba1540f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-01.htm @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+You have the final growth mission and the talk about how to obtain a special qualification.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-02.htm new file mode 100644 index 0000000000..f2e7f1dbc3 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-02.htm @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+You are already qualified to carry out the mission to become the noble one thanks to the missions you've already completed.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-03.htm new file mode 100644 index 0000000000..606c759560 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-03.htm @@ -0,0 +1,6 @@ +Dual Class Master Joachim:
+Please get a little stronger to be qualified.
+And you must complete the mission I give you.
+
+(Once you complete this quest, you'll become a Noblesse. If the quest Noblesse, Soul Testing is in progress when you comlete this quest, that quest will be deleted.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-04.htm new file mode 100644 index 0000000000..5ce4b15dd1 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-04.htm @@ -0,0 +1,6 @@ +Dual Class Master Joachim:
+Please carry out the following mission to prove that you are qualified to become a noble one.
+Go to Blazing Swamp to train and hunt, and complete the mission from Harp Zu Hestul.
+I'll send you there once you are ready.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-05.html new file mode 100644 index 0000000000..48393643c1 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-05.html @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+You've completed the growth and collection missions. Is that correct?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-06.html new file mode 100644 index 0000000000..333b082fd5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-06.html @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+I see. Then it's time to move on to the next stage. Can you hand me what you brought?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-07.html new file mode 100644 index 0000000000..adbc15c6c5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-07.html @@ -0,0 +1,3 @@ +Dual Class Master Joachim:
+Good, This is it for me. Now please talk to Herphah She's next to me. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-15.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-15.html new file mode 100644 index 0000000000..bd7118c658 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-15.html @@ -0,0 +1,4 @@ +Dual Class Master Joachim:
+Then go to the Bloody Swampland and complete the mission from Black Wizard Lapathia.
+I'll send you there once you are ready. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-16.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-16.html new file mode 100644 index 0000000000..c5cfaf60b7 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/34513-16.html @@ -0,0 +1,3 @@ +Dual Class Master Joachim:
+this quest is run at level 95+ and the quest Where Fates Intersect must be completed + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/Q10591_NobleMaterial.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/Q10591_NobleMaterial.java new file mode 100644 index 0000000000..3516810f92 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10591_NobleMaterial/Q10591_NobleMaterial.java @@ -0,0 +1,336 @@ +/* + * 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.Q10591_NobleMaterial; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.QuestSound; +import org.l2jmobius.gameserver.model.Location; +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; +import org.l2jmobius.gameserver.network.NpcStringId; +import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; +import org.l2jmobius.gameserver.util.Util; + +import quests.Q10590_ReawakenedFate.Q10590_ReawakenedFate; + +/** + * Q10591_NobleMaterial + * @URL https://www.youtube.com/watch?v=HCd784Gnguw + * @author NightBR + */ +public class Q10591_NobleMaterial extends Quest +{ + // NPCs + private static final int JOACHIM = 34513; + private static final int HARP_ZU_HESTUI = 34014; + private static final int HERPA = 34362; + private static final int LIONEL_HUNTER = 33907; + private static final int[] MONSTERS = + { + 23487, // Magma Ailith + 23489, // Lava Wyrm + 23490, // Lava Drake + 23491, // Lava Wendigo + 23492, // Lavastone Golem + 23493, // Lava Leviah + 23494, // Magma Salamander + 23495, // Magma Dre Vanul + 23499, // Flame Preta + 23500, // Flame Crow + 23501, // Flame Rael + 23502, // Flame Salamander + 23503, // Flame Drake + 23504 // Flame Votis + }; + // Item + private static final int FLAME_ENERGY = 80856; // Flame Energy - monster drop + // Rewards + private static final long EXP = 1; + private static final int SP = 1; + private static final int ADENA_AMOUNT = 5050; + private static final int ACHIEVEMENT_BOX_LV_100 = 80910; + private static final int ACQUIRE_NOBLESSE_PRIVILEGES = 34983; + private static final int WARRIOR_CICLET_BOX_LV5 = 80911; + private static final int WIZARD_CICLET_BOX_LV5 = 80912; + private static final int KNIGHT_CICLET_BOX_LV5 = 80913; + // Misc + private static final int MIN_LEVEL = 100; + // Location + private static final Location BURNING_MARSH = new Location(152754, -15142, -4400); + private static final Location HEIN = new Location(111257, 221071, -3550); + + public Q10591_NobleMaterial() + { + super(10591); + addStartNpc(JOACHIM); + addTalkId(JOACHIM, HARP_ZU_HESTUI, HERPA, LIONEL_HUNTER); + addKillId(MONSTERS); + registerQuestItems(FLAME_ENERGY); + addCondMinLevel(99, "34513-16.html"); + addCondCompletedQuest(Q10590_ReawakenedFate.class.getSimpleName(), "34513-16.html"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + + if (qs == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "34513-02.htm": + case "34513-07.html": + case "34513-04.html": + case "34014-03.html": + case "34362-03.html": + case "33907-03.html": + { + htmltext = event; + break; + } + case "34513-03.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "teleport": + { + if (qs.isCond(1)) + { + player.teleToLocation(BURNING_MARSH); + } + break; + } + case "34014-02.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34513-06.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34362-02.html": + { + qs.setCond(5, true); + htmltext = event; + break; + } + case "teleport_s": + { + if (qs.isCond(5)) + { + player.teleToLocation(HEIN); + } + break; + } + case "33907-02.html": + { + qs.setCond(6, true); + htmltext = event; + break; + } + case "33907-05.html": + { + if (qs.isCond(7)) + { + if (player.getLevel() >= MIN_LEVEL) + { + // Reward №1 + addExpAndSp(player, EXP, SP); + giveAdena(player, ADENA_AMOUNT, false); + giveItems(player, ACHIEVEMENT_BOX_LV_100, 1); + giveItems(player, ACQUIRE_NOBLESSE_PRIVILEGES, 1); + giveItems(player, WARRIOR_CICLET_BOX_LV5, 1); + showOnScreenMsg(player, NpcStringId.CONGRATULATIONS_YOU_ARE_NOW_A_NOBLESSE, ExShowScreenMessage.TOP_CENTER, 10000); + qs.exitQuest(false, true); + htmltext = event; + } + break; + } + } + case "33907-06.html": + { + if (qs.isCond(7)) + { + if (player.getLevel() >= MIN_LEVEL) + { + // Reward №2 + addExpAndSp(player, EXP, SP); + giveAdena(player, ADENA_AMOUNT, false); + giveItems(player, ACHIEVEMENT_BOX_LV_100, 1); + giveItems(player, ACQUIRE_NOBLESSE_PRIVILEGES, 1); + giveItems(player, WIZARD_CICLET_BOX_LV5, 1); + showOnScreenMsg(player, NpcStringId.CONGRATULATIONS_YOU_ARE_NOW_A_NOBLESSE, ExShowScreenMessage.TOP_CENTER, 10000); + qs.exitQuest(false, true); + htmltext = event; + } + break; + } + } + case "33907-07.html": + { + if (qs.isCond(7)) + { + if (player.getLevel() >= MIN_LEVEL) + { + // Reward №3 + addExpAndSp(player, EXP, SP); + giveAdena(player, ADENA_AMOUNT, false); + giveItems(player, ACHIEVEMENT_BOX_LV_100, 1); + giveItems(player, ACQUIRE_NOBLESSE_PRIVILEGES, 1); + giveItems(player, KNIGHT_CICLET_BOX_LV5, 1); + showOnScreenMsg(player, NpcStringId.CONGRATULATIONS_YOU_ARE_NOW_A_NOBLESSE, ExShowScreenMessage.TOP_CENTER, 10000); + qs.exitQuest(false, 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: + { + if (npc.getId() == JOACHIM) + { + htmltext = "34513-01.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case JOACHIM: + { + if (qs.isCond(1)) + { + htmltext = "34513-04.htm"; + } + else if (qs.isCond(2)) + { + htmltext = "34513-15.html"; + } + else if (qs.isCond(3)) + { + htmltext = "34513-05.html"; + } + else if (qs.isCond(4)) + { + htmltext = "34513-07.html"; + } + break; + } + case HARP_ZU_HESTUI: + { + if (qs.isCond(1)) + { + htmltext = "34014-01.html"; + } + else if (qs.isCond(2)) + { + htmltext = "34014-03.html"; + } + break; + } + case HERPA: + { + if (qs.isCond(4)) + { + htmltext = "34362-01.html"; + } + else if (qs.isCond(5)) + { + htmltext = "34362-03.html"; + } + break; + } + case LIONEL_HUNTER: + { + if (qs.isCond(5)) + { + htmltext = "33907-01.html"; + } + else if (qs.isCond(6)) + { + htmltext = "33907-03.html"; + } + else if (qs.isCond(7)) + { + htmltext = "33907-04.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(2) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, player, false)) + { + if ((getQuestItemsCount(player, FLAME_ENERGY) < 10) && (getRandom(100) < 90)) + { + giveItems(player, FLAME_ENERGY, 1); + playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET); + } + if ((getQuestItemsCount(player, FLAME_ENERGY) >= 10) && (player.getLevel() >= MIN_LEVEL)) + { + qs.setCond(3, true); + } + } + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + executeForEachPlayer(killer, npc, isSummon, true, false); + return super.onKill(npc, killer, isSummon); + } +} 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 34db998fe5..6842592e63 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 @@ -128,6 +128,8 @@ import quests.Q10577_TemperARustingBlade.Q10577_TemperARustingBlade; import quests.Q10578_TheSoulOfASword.Q10578_TheSoulOfASword; import quests.Q10579_ContainingTheAttributePower.Q10579_ContainingTheAttributePower; import quests.Q10589_WhereFatesIntersect.Q10589_WhereFatesIntersect; +import quests.Q10590_ReawakenedFate.Q10590_ReawakenedFate; +import quests.Q10591_NobleMaterial.Q10591_NobleMaterial; import quests.Q10658_MakkumInTheDimension.Q10658_MakkumInTheDimension; import quests.Q10701_TheRoadToDestruction.Q10701_TheRoadToDestruction; import quests.Q10702_TheRoadToInfinity.Q10702_TheRoadToInfinity; @@ -417,8 +419,8 @@ public class QuestMasterHandler Q10578_TheSoulOfASword.class, Q10579_ContainingTheAttributePower.class, Q10589_WhereFatesIntersect.class, - Q10590_ReawakenedFate.class, // TODO: Not done. - Q10591_NobleMaterial.class, // TODO: Not done. + Q10590_ReawakenedFate.class, + Q10591_NobleMaterial.class, Q10594_FergasonsScheme.class, // TODO: Not done. Q10595_TheDimensionalWarpPart8.class, // TODO: Not done. Q10596_TheDimensionalWarpPart9.class, // TODO: Not done. diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10590_ReawakenedFate.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10590_ReawakenedFate.java deleted file mode 100644 index b0f68434e5..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10590_ReawakenedFate.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 Q10590_ReawakenedFate extends Quest -{ - private static final int START_NPC = 34513; - - public Q10590_ReawakenedFate() - { - super(10590); - 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/Q10591_NobleMaterial.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10591_NobleMaterial.java deleted file mode 100644 index 815f5af34e..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10591_NobleMaterial.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 Q10591_NobleMaterial extends Quest -{ - private static final int START_NPC = 34513; - - public Q10591_NobleMaterial() - { - super(10591); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -}