From 11e374810dc66bf12937f8444aab65fff3c001e3 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 3 Apr 2019 17:47:34 +0000 Subject: [PATCH] Addition of quest Unveiled Fafurion Temple (10516). --- .../data/scripts/quests/MissingQuests.txt | 1 - .../scripts/quests/QuestMasterHandler.java | 3 +- .../Q10516_UnveiledFafurionTemple.java | 170 ++++++++++++++++++ .../Q10516_UnveiledFafurionTemple/accept.htm | 3 + .../Q10516_UnveiledFafurionTemple/finish.html | 5 + .../Q10516_UnveiledFafurionTemple/reward.html | 3 + .../Q10516_UnveiledFafurionTemple/start.htm | 5 + .../talk_1_1.html | 6 + .../talk_1_2.html | 3 + .../talk_2_1.html | 5 + .../talk_2_2.html | 3 + .../Q10516_UnveiledFafurionTemple.java | 36 ---- 12 files changed, 205 insertions(+), 38 deletions(-) create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/Q10516_UnveiledFafurionTemple.java create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/accept.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/finish.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/reward.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/start.htm create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_1_1.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_1_2.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_2_1.html create mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_2_2.html delete mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q10516_UnveiledFafurionTemple.java 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 aa0f542d0c..1c2b69ef45 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 @@ -191,7 +191,6 @@ 10423 Embryo Stronghold Ambush 10454 Final Embryo Apostle 10457 Kefensis' Illusion -10516 Unveiled Fafurion Temple 10517 Fafurion's Minions 10518 Succeeding the Priestess 10519 Controlling Your Temper 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 75cd6bda98..59d8efdea6 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 @@ -391,6 +391,7 @@ import quests.Q10840_TimeToRecover.Q10840_TimeToRecover; import quests.Q10841_DeepInsideAteliaFortress.Q10841_DeepInsideAteliaFortress; import quests.Q10843_AnomalyInTheEnchantedValley.Q10843_AnomalyInTheEnchantedValley; import quests.custom.Q00529_RegularBarrierMaintenance.Q00529_RegularBarrierMaintenance; +import quests.custom.Q10516_UnveiledFafurionTemple.Q10516_UnveiledFafurionTemple; import quests.custom.Q10529_IvoryTowersResearchFloatingSeaJournal.Q10529_IvoryTowersResearchFloatingSeaJournal; import quests.not_done.*; @@ -765,7 +766,7 @@ public class QuestMasterHandler Q10503_FrintezzaEmbroideredSoulCloak.class, Q10504_JewelOfAntharas.class, Q10505_JewelOfValakas.class, - Q10516_UnveiledFafurionTemple.class, // TODO: Not done. + Q10516_UnveiledFafurionTemple.class, // FIXME: Custom. Q10517_FafurionsMinions.class, // TODO: Not done. Q10518_SucceedingThePriestess.class, // TODO: Not done. Q10519_ControllingYourTemper.class, // TODO: Not done. diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/Q10516_UnveiledFafurionTemple.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/Q10516_UnveiledFafurionTemple.java new file mode 100644 index 0000000000..aac745d678 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/Q10516_UnveiledFafurionTemple.java @@ -0,0 +1,170 @@ +/* + * 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.custom.Q10516_UnveiledFafurionTemple; + +import com.l2jmobius.gameserver.model.actor.Npc; +import com.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import com.l2jmobius.gameserver.model.quest.Quest; +import com.l2jmobius.gameserver.model.quest.QuestState; +import com.l2jmobius.gameserver.model.quest.State; + +/** + * Unveiled Fafurion Temple (10516) + * @URL https://l2wiki.com/Unveiled_Fafurion_Temple + * @author Mobius + */ +public class Q10516_UnveiledFafurionTemple extends Quest +{ + // NPCs + private static final int START_NPC = 33907; + private static final int TALK_NPC_1 = 34491; + private static final int TALK_NPC_2 = 34489; + private static final int FINISH_NPC = 34490; + // Misc + private static final int MIN_LEVEL = 110; + + public Q10516_UnveiledFafurionTemple() + { + super(10516); + addStartNpc(START_NPC); + addTalkId(START_NPC, TALK_NPC_1, TALK_NPC_2, FINISH_NPC); + addCondMinLevel(MIN_LEVEL, getNoQuestMsg(null)); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + switch (event) + { + case "accept.htm": + { + if (qs.isCreated()) + { + qs.startQuest(); + } + break; + } + case "talk_1_2.html": + { + if ((npc.getId() == TALK_NPC_1) && qs.isCond(1)) + { + qs.setCond(2, true); + } + break; + } + case "talk_2_2.html": + { + if ((npc.getId() == TALK_NPC_2) && qs.isCond(2)) + { + qs.setCond(3, true); + } + break; + } + case "reward.html": + { + if ((npc.getId() == FINISH_NPC) && qs.isCond(3)) + { + // Reward. + addExpAndSp(player, 5556186900L, 5556186); + giveAdena(player, 139671, false); + qs.exitQuest(false, true); + } + break; + } + default: + { + return null; + } + } + return event; + } + + @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() == START_NPC) + { + htmltext = "start.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case START_NPC: + { + htmltext = "accept.htm"; + break; + } + case TALK_NPC_1: + { + if (qs.isCond(1)) + { + htmltext = "talk_1_1.html"; + } + else if (qs.getCond() > 1) + { + htmltext = "talk_1_2.html"; + } + break; + } + case TALK_NPC_2: + { + if (qs.isCond(2)) + { + htmltext = "talk_2_1.html"; + } + else if (qs.getCond() > 2) + { + htmltext = "talk_2_2.html"; + } + break; + } + case FINISH_NPC: + { + if (qs.isCond(3)) + { + htmltext = "finish.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } +} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/accept.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/accept.htm new file mode 100644 index 0000000000..fdff647d2c --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/accept.htm @@ -0,0 +1,3 @@ +Lionel:
+You need to go at Fafurion Temple to talk to Frederick waiting there. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/finish.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/finish.html new file mode 100644 index 0000000000..4e2e425590 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/finish.html @@ -0,0 +1,5 @@ +Okayti:
+Ahhh... You have been sent by Lionel... +I have been waiting for you.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/reward.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/reward.html new file mode 100644 index 0000000000..99fea35a3a --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/reward.html @@ -0,0 +1,3 @@ +Okayti:
+Thank you for coming all this way here. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/start.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/start.htm new file mode 100644 index 0000000000..c5eed52ced --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/start.htm @@ -0,0 +1,5 @@ +Lionel:
+If you have time I have a mission for you. +I need you to speak with someone.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_1_1.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_1_1.html new file mode 100644 index 0000000000..b3474fb721 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_1_1.html @@ -0,0 +1,6 @@ +Frederick:
+Lionel sent you? +Sounds good enough for me... +Tho, you will have to speak with Lupicia.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_1_2.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_1_2.html new file mode 100644 index 0000000000..bb2cd7b516 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_1_2.html @@ -0,0 +1,3 @@ +Frederick:
+You have to speak with Lupicia. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_2_1.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_2_1.html new file mode 100644 index 0000000000..4324c9c51d --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_2_1.html @@ -0,0 +1,5 @@ +Lupicia:
+Why did Frederick sent you to me? +You obviously need to speak with Okayti.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_2_2.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_2_2.html new file mode 100644 index 0000000000..ab74a573e4 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/custom/Q10516_UnveiledFafurionTemple/talk_2_2.html @@ -0,0 +1,3 @@ +Lupicia:
+You have to speak with Okayti. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q10516_UnveiledFafurionTemple.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q10516_UnveiledFafurionTemple.java deleted file mode 100644 index 3ba5996c3a..0000000000 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q10516_UnveiledFafurionTemple.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 com.l2jmobius.Config; -import com.l2jmobius.gameserver.model.quest.Quest; - -/** - * @author Mobius - */ -public class Q10516_UnveiledFafurionTemple extends Quest -{ - private static final int START_NPC = 33907; - - public Q10516_UnveiledFafurionTemple() - { - super(10516); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -}