From eaaaca020d36ba8310a0016084e6448e6d80c02c Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sat, 27 Aug 2016 12:06:49 +0000 Subject: [PATCH] Quest A Whole New Level of Alchemy (10767). Contributed by gigilo1968. --- .../data/scripts/quests/MissingQuests.txt | 1 - .../33977-00.htm | 4 + .../33977-01.htm | 4 + .../33977-02.htm | 4 + .../33977-03.htm | 5 + .../33977-04.htm | 5 + .../33977-05.html | 5 + .../33977-06.html | 5 + .../33977-07.html | 0 .../Q10767_AWholeNewLevelOfAlchemy.java | 154 ++++++++++++++++++ .../noErtheia.htm | 4 + .../scripts/quests/QuestMasterHandler.java | 2 + 12 files changed, 192 insertions(+), 1 deletion(-) create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-00.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-01.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-02.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-03.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-04.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-05.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-06.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-07.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/Q10767_AWholeNewLevelOfAlchemy.java create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/noErtheia.htm diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt index 0bf0299d5f..c4da89fd54 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt @@ -126,7 +126,6 @@ 10748 Mysterious Suggestion - 1 10749 Mysterious Suggestion - 2 10753 Winds of Fate: Choices -10767 A Whole New Level of Alchemy 10796 The Eye that Defied the Gods 10797 Crossing Fate 10801 The Dimensional Warp, Part 1 diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-00.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-00.htm new file mode 100644 index 0000000000..227e07f3f5 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-00.htm @@ -0,0 +1,4 @@ +Alchemist Veruti:
+I'm wondering what to buy with the Adena I made from Alchemy. Hehe.
+(Only Ertheia characters Lv. 97 or above can perform this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-01.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-01.htm new file mode 100644 index 0000000000..3c3487b0db --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-01.htm @@ -0,0 +1,4 @@ +Alchemist Veruti:
+What manner of business brings you here?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-02.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-02.htm new file mode 100644 index 0000000000..c955b9a449 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-02.htm @@ -0,0 +1,4 @@ +Alchemist Veruti:
+You must be the Ertheia who learned from my younger sister in Faeron Village. Nice to meet you. If you think I can be of some help to you, then I will most certainly help. We should help each other until we can go home again.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-03.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-03.htm new file mode 100644 index 0000000000..7910d33061 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-03.htm @@ -0,0 +1,5 @@ +Alchemist Veruti:
+Don't thank me yet. High-level Alchemy requires serious grindi - study. Studying! You could quit halfway, or even grow to resent me.
+You think you're ready for the challenge?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-04.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-04.htm new file mode 100644 index 0000000000..5b5a9950f1 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-04.htm @@ -0,0 +1,5 @@ +Alchemist Veruti:
+The way to learn the secrets of a skill is to keep using it. The only way to hone your high-grade Alchemy is to make a lot of potions with the skills you already have.
+Make 1000 each of the Superior Windy Healing Potion, the Superior Windy Quick Healing Potion, and the High-grade Love Potion and bring them to me.
+Don't worry -- I'm only checking. I won't take any from you, so don't complain about the amount. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-05.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-05.html new file mode 100644 index 0000000000..5b5a9950f1 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-05.html @@ -0,0 +1,5 @@ +Alchemist Veruti:
+The way to learn the secrets of a skill is to keep using it. The only way to hone your high-grade Alchemy is to make a lot of potions with the skills you already have.
+Make 1000 each of the Superior Windy Healing Potion, the Superior Windy Quick Healing Potion, and the High-grade Love Potion and bring them to me.
+Don't worry -- I'm only checking. I won't take any from you, so don't complain about the amount. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-06.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-06.html new file mode 100644 index 0000000000..68f05863ea --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-06.html @@ -0,0 +1,5 @@ +Alchemist Veruti:
+Finish making everything? It's difficult, isn't it?
+
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-07.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/33977-07.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/Q10767_AWholeNewLevelOfAlchemy.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/Q10767_AWholeNewLevelOfAlchemy.java new file mode 100644 index 0000000000..2d254c5886 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/Q10767_AWholeNewLevelOfAlchemy.java @@ -0,0 +1,154 @@ +/* + * 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.Q10767_AWholeNewLevelOfAlchemy; + +import com.l2jmobius.gameserver.enums.Race; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; +import com.l2jmobius.gameserver.model.events.EventType; +import com.l2jmobius.gameserver.model.events.ListenerRegisterType; +import com.l2jmobius.gameserver.model.events.annotations.Id; +import com.l2jmobius.gameserver.model.events.annotations.RegisterEvent; +import com.l2jmobius.gameserver.model.events.annotations.RegisterType; +import com.l2jmobius.gameserver.model.events.impl.item.OnItemCreate; +import com.l2jmobius.gameserver.model.quest.Quest; +import com.l2jmobius.gameserver.model.quest.QuestState; +import com.l2jmobius.gameserver.model.quest.State; + +/** + * A Whole New Level of Alchemy (10767) + * @URL https://l2wiki.com/A_Whole_New_Level_of_Alchemy + * @author Gigi + */ +public class Q10767_AWholeNewLevelOfAlchemy extends Quest +{ + // NPC + private static final int VERUTI = 33977; + // Items + private static final int SUPERIOR_WINDY_HEALING_POTION = 39469; + private static final int SUPERIOR_WINDY_QUIK_HEALING_POTION = 39474; + private static final int HIGH_GRADE_LOVE_POTION = 39479; + // Reward + private static final int EXP_REWARD = 14819175; + private static final int SP_REWARD = 3556; + private static final int ALCHEMIC_TOME_POTION = 39482; + // Misc + private static final int MIN_LEVEL = 97; + + public Q10767_AWholeNewLevelOfAlchemy() + { + super(10767); + addStartNpc(VERUTI); + addTalkId(VERUTI); + registerQuestItems(SUPERIOR_WINDY_HEALING_POTION, SUPERIOR_WINDY_QUIK_HEALING_POTION, HIGH_GRADE_LOVE_POTION); + addCondMinLevel(MIN_LEVEL, "33977-00.htm"); + addCondRace(Race.ERTHEIA, "noErtheia.html"); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + String htmltext = null; + switch (event) + { + case "33977-02.htm": + case "33977-03.htm": + { + htmltext = event; + break; + } + case "33977-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "33977-07.html": + { + if (qs.isCond(2)) + { + takeItems(player, SUPERIOR_WINDY_HEALING_POTION, 1000); + takeItems(player, SUPERIOR_WINDY_QUIK_HEALING_POTION, 1000); + takeItems(player, HIGH_GRADE_LOVE_POTION, 1000); + giveItems(player, ALCHEMIC_TOME_POTION, 3); + addExpAndSp(player, EXP_REWARD, SP_REWARD); + qs.exitQuest(false, true); + } + htmltext = event; + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = null; + + switch (qs.getState()) + { + case State.CREATED: + { + if (npc.getId() == VERUTI) + { + htmltext = "33977-01.htm"; + break; + } + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "33977-05.html"; + } + else if (qs.isCond(2)) + { + htmltext = "33977-06.html"; + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @RegisterEvent(EventType.ON_ITEM_CREATE) + @RegisterType(ListenerRegisterType.ITEM) + @Id(SUPERIOR_WINDY_HEALING_POTION) + @Id(SUPERIOR_WINDY_QUIK_HEALING_POTION) + @Id(HIGH_GRADE_LOVE_POTION) + public void onItemCreate(OnItemCreate event) + { + final L2PcInstance player = event.getActiveChar(); + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.isCond(1)) && (getQuestItemsCount(qs.getPlayer(), SUPERIOR_WINDY_HEALING_POTION) >= 1000) && (getQuestItemsCount(qs.getPlayer(), SUPERIOR_WINDY_QUIK_HEALING_POTION) >= 1000) && (getQuestItemsCount(qs.getPlayer(), HIGH_GRADE_LOVE_POTION) >= 1000)) + { + qs.setCond(2, true); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/noErtheia.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/noErtheia.htm new file mode 100644 index 0000000000..9deefe55d5 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10767_AWholeNewLevelOfAlchemy/noErtheia.htm @@ -0,0 +1,4 @@ +Alchemist Veruti:
+I'm wondering what to buy with the Adena I made from Alchemy. Hehe.
+(Only Ertheia classes can perform this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java index edb3cd4a0e..c300663309 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -351,6 +351,7 @@ import quests.Q10762_MarionetteSpirit.Q10762_MarionetteSpirit; import quests.Q10763_TerrifyingChertuba.Q10763_TerrifyingChertuba; import quests.Q10764_FreeSpirit.Q10764_FreeSpirit; import quests.Q10766_ANewCraft.Q10766_ANewCraft; +import quests.Q10767_AWholeNewLevelOfAlchemy.Q10767_AWholeNewLevelOfAlchemy; import quests.Q10769_LettersFromTheQueenCrumaTowerPart1.Q10769_LettersFromTheQueenCrumaTowerPart1; import quests.Q10770_InSearchOfTheGrail.Q10770_InSearchOfTheGrail; import quests.Q10771_VolatilePower.Q10771_VolatilePower; @@ -735,6 +736,7 @@ public class QuestMasterHandler Q10763_TerrifyingChertuba.class, Q10764_FreeSpirit.class, Q10766_ANewCraft.class, + Q10767_AWholeNewLevelOfAlchemy.class, Q10769_LettersFromTheQueenCrumaTowerPart1.class, Q10770_InSearchOfTheGrail.class, Q10771_VolatilePower.class,