From 3a27cb68dc03f6f012bbccd87511377e18c99c27 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 6 Jan 2017 10:17:09 +0000 Subject: [PATCH] Quest Disappeared Clan Member (10836). Contributed by gigilo1968. --- .../data/scripts/quests/MissingQuests.txt | 1 - .../Q10836_DisappearedClanMember/34057-00.htm | 4 + .../Q10836_DisappearedClanMember/34057-01.htm | 5 + .../Q10836_DisappearedClanMember/34057-02.htm | 6 + .../Q10836_DisappearedClanMember/34057-03.htm | 5 + .../Q10836_DisappearedClanMember/34057-04.htm | 5 + .../34057-05.html | 5 + .../34057-06.html | 5 + .../34057-07.html | 4 + .../34057-08.html | 5 + .../Q10836_DisappearedClanMember.java | 148 ++++++++++++++++++ .../scripts/quests/QuestMasterHandler.java | 4 +- 12 files changed, 195 insertions(+), 2 deletions(-) create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-00.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-01.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-02.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-03.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-04.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-05.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-06.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-07.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-08.html create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/Q10836_DisappearedClanMember.java 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 41c3f501c9..708335e974 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt @@ -122,7 +122,6 @@ 10806 The Dimensional Warp, Part 6 10807 The Dimensional Warp, Part 7 10809 The Hero's Journey: Blazing Swamp -10836 Disappeared Clan Member 10837 Looking for the Blackbird Clan Member 10838 The Reason For Not Being Able to Get Out 10839 Blackbird's Name Value diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-00.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-00.htm new file mode 100644 index 0000000000..43764cf1fa --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-00.htm @@ -0,0 +1,4 @@ +Verdure Elder Elikia:
+I do not believe our paths are meant to cross here. Perhaps later down the road.
+(Only characters above Lv. 101.) + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-01.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-01.htm new file mode 100644 index 0000000000..a3cdc16379 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-01.htm @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+We've met before. I'm glad to see someone I can trust.
+It's an urgent matter so I'm looking for someone who I can trust.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-02.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-02.htm new file mode 100644 index 0000000000..60607a0c86 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-02.htm @@ -0,0 +1,6 @@ +Verdure Elder Elikia:
+Do you know about the Blackbird clan? It's the clan that follows Leona. They aren't as powerful as before, but many people know about them.
+The Blackbird clan is tracking the Embryo, but we've lost contact with them.
+Then, I heard a rumor that the clan members were spotted in the Atelia Fortress, so I came to investigate.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-03.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-03.htm new file mode 100644 index 0000000000..0917c672c1 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-03.htm @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+At first, I thought about going in myself to find the Blackbird clan members, but I don't specialize in combat, so i was looking for other ways.
+If possible, I would like to request a favor. Will you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-04.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-04.htm new file mode 100644 index 0000000000..20ae3c9816 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-04.htm @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+I heard a rumor that the Blackbird clan members were spotted inside the fortress. It looks like the Aden Vanguard went inside to secure the strongholds, so please go ask Adolph.
+If you find the clan members, please bring them back. If it's difficult for them to escape, please at least bring some proof that they are safe.
+Just in case the clan members get suspicious of you, I'll lend you a seal that is only given to Blackbird clan members. I'm counting on you. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-05.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-05.html new file mode 100644 index 0000000000..88c799b07d --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-05.html @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+Did you ask Adolph?
+Please find the Blackbird clan members inside the fortress.
+Adolph is the one who went into the fortress last, so you should ask him. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-06.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-06.html new file mode 100644 index 0000000000..198a0a388b --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-06.html @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+Are the Blackbird clan members safe? Leona is worried.
+Since you are here by yourself... does that mean something happened to them?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-07.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-07.html new file mode 100644 index 0000000000..1267473203 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-07.html @@ -0,0 +1,4 @@ +Verdure Elder Elikia:
+Oh, glad to hear they are safe. How come they didn't come with you?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-08.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-08.html new file mode 100644 index 0000000000..38c0219ace --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/34057-08.html @@ -0,0 +1,5 @@ +Verdure Elder Elikia:
+I told them to come back, and they just sent a report?
+Well, at least it looks like they aren't in great danger. I'll have to tell Leona about this.
+Thank you for your work.
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/Q10836_DisappearedClanMember.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/Q10836_DisappearedClanMember.java new file mode 100644 index 0000000000..36f97a33c2 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10836_DisappearedClanMember/Q10836_DisappearedClanMember.java @@ -0,0 +1,148 @@ +/* + * 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.Q10836_DisappearedClanMember; + +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.character.player.OnPlayerItemAdd; +import com.l2jmobius.gameserver.model.quest.Quest; +import com.l2jmobius.gameserver.model.quest.QuestState; +import com.l2jmobius.gameserver.model.quest.State; + +/** + * Disappeared Clan Member (10836) + * @URL https://l2wiki.com/Disappeared_Clan_Member + * @author Gigi + */ +public final class Q10836_DisappearedClanMember extends Quest +{ + // NPC + private static final int ELIKIA = 34057; + // Items + private static final int BLACKBIRD_SEAL = 46132; + private static final int BLACKBIRD_REPORT_GLENKINCHIE = 46134; + private static final int BLACKBIRD_REPORT_HURAK = 46135; + private static final int BLACKBIRD_REPORT_LAFFIAN = 46136; + private static final int BLACKBIRD_REPORT_SHERRY = 46137; + // Misc + private static final int MIN_LEVEL = 101; + private static final int EAR = 17527; + private static final int ELEXIR_OF_LIFE_R = 37097; + private static final int ELEXIR_OF_MIND_R = 37098; + + public Q10836_DisappearedClanMember() + { + super(10836); + addStartNpc(ELIKIA); + addTalkId(ELIKIA); + registerQuestItems(BLACKBIRD_SEAL, BLACKBIRD_REPORT_GLENKINCHIE, BLACKBIRD_REPORT_HURAK, BLACKBIRD_REPORT_LAFFIAN, BLACKBIRD_REPORT_SHERRY); + addCondMinLevel(MIN_LEVEL, "34057-00.htm"); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34057-02.htm": + case "34057-03.htm": + case "34057-07.html": + { + htmltext = event; + break; + } + case "34057-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34057-08.html": + { + giveItems(player, EAR, 5); + giveItems(player, ELEXIR_OF_LIFE_R, 10); + giveItems(player, ELEXIR_OF_MIND_R, 10); + 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 = getNoQuestMsg(player); + + switch (qs.getState()) + { + case State.CREATED: + { + htmltext = "34057-01.htm"; + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "34057-05.html"; + } + else + { + htmltext = "34057-06.html"; + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @RegisterEvent(EventType.ON_PLAYER_ITEM_ADD) + @RegisterType(ListenerRegisterType.ITEM) + @Id(BLACKBIRD_REPORT_GLENKINCHIE) + @Id(BLACKBIRD_REPORT_HURAK) + @Id(BLACKBIRD_REPORT_LAFFIAN) + @Id(BLACKBIRD_REPORT_SHERRY) + public void onItemAdd(OnPlayerItemAdd event) + { + final L2PcInstance player = event.getActiveChar(); + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.isCond(1)) && (hasQuestItems(player, BLACKBIRD_REPORT_GLENKINCHIE)) && (hasQuestItems(player, BLACKBIRD_REPORT_HURAK)) && (hasQuestItems(player, BLACKBIRD_REPORT_LAFFIAN)) && (hasQuestItems(player, BLACKBIRD_REPORT_SHERRY))) + { + qs.setCond(2, true); + } + } +} \ 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 8e2d490274..8eea454570 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -413,6 +413,7 @@ import quests.Q10830_TheLostGardenOfSpirits.Q10830_TheLostGardenOfSpirits; import quests.Q10831_UnbelievableSight.Q10831_UnbelievableSight; import quests.Q10832_EnergyOfSadnessAndAnger.Q10832_EnergyOfSadnessAndAnger; import quests.Q10833_PutTheQueenOfSpiritsToSleep.Q10833_PutTheQueenOfSpiritsToSleep; +import quests.Q10836_DisappearedClanMember.Q10836_DisappearedClanMember; /** * @author NosBit @@ -816,7 +817,8 @@ public class QuestMasterHandler Q10830_TheLostGardenOfSpirits.class, Q10831_UnbelievableSight.class, Q10832_EnergyOfSadnessAndAnger.class, - Q10833_PutTheQueenOfSpiritsToSleep.class + Q10833_PutTheQueenOfSpiritsToSleep.class, + Q10836_DisappearedClanMember.class }; public static void main(String[] args)