diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/MissingQuests.txt index a8272986c9..5a38f7415c 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/MissingQuests.txt @@ -21,6 +21,4 @@ 10868 The Dark Side of Power 10870 Unfinished Device 10871 Death to the Pirate King! -10960 -10964 -10965 \ No newline at end of file +10960 \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289-01.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289-01.html new file mode 100644 index 0000000000..d9c8d542e9 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289-01.html @@ -0,0 +1,5 @@ +High Priest Raymond:
+Please go to the Gorgon Flower Garden and eradicate the Harpies, Medusas, Wyrms, Turak Bugbears, and Turak Bugbear Warriors, find out what ominous things are happening and look for anyone suspicious.
+You can use teleport to get to the Gorgon Flower Garden. Select it from the list at the Town of Giran teleport.
+May the blessing of Einhasas be upon you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289-02.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289-02.html new file mode 100644 index 0000000000..d535810abf --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289-02.html @@ -0,0 +1,5 @@ +High Priest Raymond:
+Did you complete the investigation?
+I didnt hear from you for a while and was getting wormed. It relieves me to see you return safely.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289-03.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289-03.html new file mode 100644 index 0000000000..08c544ac50 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289-03.html @@ -0,0 +1,4 @@ +High Priest Raymond:
+So you did not find traces of anyone suspicious? Even so, I am very grateful.
+If it werent for you, adventurer, many townsfork would still be anxious, trembling in fear. It is as if though you have full the blessing of Einhasad.
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289.html new file mode 100644 index 0000000000..e36529431a --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30289.html @@ -0,0 +1,6 @@ +High Priest Raymond:
+It is used to be a peaceful and tranquil garden until a temfying being appeared one day. It is said that the beign turned every living thing there into stone before disappearing.
+Now only the likes of Harpes, Medusa, and Bugbears infest the garden.
+But there are rumors of late that ominous things are afoot once more, making everyone worry that this temfying being may have reappeared. So I am looking for an adventurer who did be willing to go there and investigate.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30332-01.htm b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30332-01.htm new file mode 100644 index 0000000000..e6cb5652f5 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30332-01.htm @@ -0,0 +1,4 @@ +Captain Bathis:
+It is High Priest Raymond who serves Einhasad in the temple right next to us.
+It seems like there is something troubling him and he needs help with it, so go see him now.
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30332.htm b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30332.htm new file mode 100644 index 0000000000..94ec118ff0 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/30332.htm @@ -0,0 +1,5 @@ +Captain Bathis:
+With all your recent exploits, you seems to have made a name for yourself among the townsfolk.
+There is someone who is looking for you, seeking your assistance
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/Q10964_SecretGarden.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/Q10964_SecretGarden.java new file mode 100644 index 0000000000..ca39134e00 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/Q10964_SecretGarden.java @@ -0,0 +1,197 @@ +/* + * 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.Q10964_SecretGarden; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.gameserver.enums.QuestSound; +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.model.holders.NpcLogListHolder; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.network.NpcStringId; +import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; + +/** + * Secret Garden (10964) + * @author RobikBobik + * @Note: Based on NA server September 2019 + */ +public class Q10964_SecretGarden extends Quest +{ + // NPC + private static final int CAPTAIN_BATHIS = 30332; + private static final int RAYMOND = 30289; + // Monsters + private static final int HARPY = 20145; + private static final int MEDUSA = 20158; + private static final int WYRM = 20176; + private static final int TURAK_BUGBEAR = 20248; + private static final int TURAK_BUGBEAR_WARRIOR = 20249; + // Misc + private static final String KILL_COUNT_VAR = "KillCount"; + private static final int MAX_LEVEL = 34; + private static final int MIN_LEVEL = 30; + + public Q10964_SecretGarden() + { + super(10964); + addStartNpc(CAPTAIN_BATHIS); + addTalkId(CAPTAIN_BATHIS, RAYMOND); + addKillId(HARPY, MEDUSA, WYRM, TURAK_BUGBEAR, TURAK_BUGBEAR_WARRIOR); + setQuestNameNpcStringId(NpcStringId.LV_30_34_SECRET_GARDEN); + addCondMinLevel(MIN_LEVEL, "no_lvl.html"); + addCondMaxLevel(MAX_LEVEL, "no_lvl.html"); + } + + @Override + public boolean checkPartyMember(PlayerInstance member, Npc npc) + { + final QuestState qs = getQuestState(member, false); + return ((qs != null) && qs.isStarted()); + } + + @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 "30332-01.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30289-01.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "30289-02.html": + { + htmltext = event; + break; + } + case "30289-03.html": + { + if (qs.isStarted()) + { + player.sendPacket(new ExShowScreenMessage(NpcStringId.THE_MISSION_ADVENTURER_S_JOURNEY_II_IS_NOW_AVAILABLE_NCLICK_THE_YELLOW_QUESTION_MARK_IN_THE_RIGHT_BOTTOM_CORNER_OF_YOUR_SCREEN_TO_SEE_THE_QUEST_S_INFO, 2, 5000)); + addExpAndSp(player, 2500000, 75000); + qs.exitQuest(false, true); + htmltext = event; + break; + } + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if ((qs != null) && qs.isCond(2)) + { + final int killCount = qs.getInt(KILL_COUNT_VAR) + 1; + if (killCount < 500) + { + qs.set(KILL_COUNT_VAR, killCount); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + sendNpcLogList(killer); + } + else + { + qs.setCond(3, true); + qs.unset(KILL_COUNT_VAR); + killer.sendPacket(new ExShowScreenMessage(NpcStringId.MONSTERS_OF_THE_GORGON_FLOWER_GARDEN_ARE_KILLED_NUSE_THE_TELEPORT_TO_GET_TO_HIGH_PRIEST_RAYMOND_IN_GLUDIO, 2, 5000)); + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(2)) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_THE_MONSTERS_IN_THE_GORGON_FLOWER_GARDEN.getId(), true, qs.getInt(KILL_COUNT_VAR))); + return holder; + } + + return super.getNpcLogList(player); + } + + @Override + public String onTalk(Npc npc, PlayerInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + if (qs.isCreated()) + { + htmltext = "30332.htm"; + } + else if (qs.isStarted()) + { + switch (npc.getId()) + { + case CAPTAIN_BATHIS: + { + if (qs.isCond(1)) + { + htmltext = "30332-01.htm"; + } + break; + } + case RAYMOND: + { + if (qs.isCond(1)) + { + htmltext = "30289.html"; + } + else if (qs.isCond(3)) + { + htmltext = "30289-02.html"; + } + break; + } + } + } + else if (qs.isCompleted()) + { + if (npc.getId() == CAPTAIN_BATHIS) + { + htmltext = getAlreadyCompletedMsg(player); + } + } + + return htmltext; + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/no_lvl.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/no_lvl.html new file mode 100644 index 0000000000..44854a9ca2 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10964_SecretGarden/no_lvl.html @@ -0,0 +1,3 @@ +Captain Bathis:
+You do not meet the requirements of the quest (Quest is only available to 30-34 levels). + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-01.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-01.html new file mode 100644 index 0000000000..acc4bf32f6 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-01.html @@ -0,0 +1,6 @@ +High Priest Maximillian:
+Yes, I do. Recently, many talked about you. +When I met Raymond due the issue in the Gorgon Garden, I asked him about you.
+I thought he could delivery my word since you mainly work near Town of Gludio.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-02.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-02.html new file mode 100644 index 0000000000..d02727d92a --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-02.html @@ -0,0 +1,6 @@ +High Priest Maximillian:
+You were a great help at that time.
+I thought all problems were settled, but I was wrong. Since we need to investigate the Death Pass, I contacted Raymond. I told him that it would be better for me to meet you personally and ask for help.
+Would you help us again?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-03.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-03.html new file mode 100644 index 0000000000..059480fef0 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-03.html @@ -0,0 +1,5 @@ +High Priest Maximillian:
+The Death Pass is filled with death, as it is name implies. Death is always hunting because it is close to the Dragon Valley, where Antharas is located.
+There has been a slight change in Antharas lately, and some suspicious movements have been observer even in this area.
+I would be thankful if you could go to the Death Pass and find out what is going on. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-04.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-04.html new file mode 100644 index 0000000000..ebef26ba2b --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-04.html @@ -0,0 +1,4 @@ +High Priest Maximillian:
+So you finished defeating the monsters in the Death Pass? + + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-05.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-05.html new file mode 100644 index 0000000000..ea0cd90d6f --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120-05.html @@ -0,0 +1,5 @@ +High Priest Maximillian:
+Thank you so much.
+So many changes have occurred, so I am careful with even the smallest thing. May Einhasad blessing be with you, traveler.
+Do you know about the Agathion Bracelet? It is not much, but I think it will help you. Please take the Adventurer Agathion Bracelet and the Adventurer Griffin Agathion. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120.html new file mode 100644 index 0000000000..c370220b3f --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30120.html @@ -0,0 +1,5 @@ +High Priest Maximillian:
+You must be the one Raymond menboned.
+Nice to meet you. I am High Priest Maximillian. I serve for the Temple of Einhasad here in Town of Giran.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289-01.htm b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289-01.htm new file mode 100644 index 0000000000..140ad01d35 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289-01.htm @@ -0,0 +1,4 @@ +High Priest Raymond:
+Do you remember the investigation you carried out at the Gorgon Flower Garden last time? It is a place near the Town of Giran.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289-02.htm b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289-02.htm new file mode 100644 index 0000000000..ac3c9f5e87 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289-02.htm @@ -0,0 +1,5 @@ +High Priest Raymond:
+The request back then was actually at the behest of High Priest Maximilian from the Temple of Einhasad in the Town of Giran.
+The town is pretty far from here and he wished to ask for your assistance directly, but he was concentrated that you might feel burdened by taking on a request from someone that you hardly know. So he asked me to help mhim instead.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289-03.htm b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289-03.htm new file mode 100644 index 0000000000..181ab443b9 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289-03.htm @@ -0,0 +1,7 @@ +High Priest Raymond:
+But now that he has another request to make, he felt it improper to keep going through someone else and wished to ask for your assistance in person.
+I am sure the High Priest Maximillian will tell you more about it.
+I know you must be tired and it is a long was to travel, so if you wish, I can send you to High Priest Maximillian.
+But of course, if you have other matters to attend to, you are welcome to do so and make your won way there afterward. After all, you just need to get to the Town of Giran and visit the Temple of Einhasad.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289.htm b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289.htm new file mode 100644 index 0000000000..04e6f775e8 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/30289.htm @@ -0,0 +1,5 @@ +High Priest Raymond:
+Adventurer, I know that you are only just returned, but may ask for another favor?
+I just received word from the Town of Giran that they are in need of your assistance.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/Q10965_DeathMysteries.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/Q10965_DeathMysteries.java new file mode 100644 index 0000000000..a473096cc2 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/Q10965_DeathMysteries.java @@ -0,0 +1,224 @@ +/* + * 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.Q10965_DeathMysteries; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.gameserver.enums.QuestSound; +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.model.holders.ItemHolder; +import org.l2jmobius.gameserver.model.holders.NpcLogListHolder; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.network.NpcStringId; +import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; + +/** + * Death Mysteries (10965) + * @author RobikBobik + * @Note: Based on NA server September 2019 + */ +public class Q10965_DeathMysteries extends Quest +{ + // NPC + private static final int RAYMOND = 30289; + private static final int MAXIMILLIAN = 30120; + // Monsters + private static final int WYRM = 20176; + private static final int GUARDIAN_BASILISK = 20550; + private static final int ROAD_SCAVENGER = 20551; + private static final int FETTERED_SOUL = 20552; + private static final int WINDUS = 20553; + private static final int GRANDIS = 50554; + // Items + private static final ItemHolder ADVENTURERS_AGATHION_BRACELET = new ItemHolder(91933, 1); + private static final ItemHolder ADVENTURERS_AGATHION_GRIFIN = new ItemHolder(91935, 1); + // Misc + private static final String KILL_COUNT_VAR = "KillCount"; + private static final int MAX_LEVEL = 40; + private static final int MIN_LEVEL = 37; + + public Q10965_DeathMysteries() + { + super(10965); + addStartNpc(RAYMOND); + addTalkId(RAYMOND, MAXIMILLIAN); + addKillId(WYRM, GUARDIAN_BASILISK, ROAD_SCAVENGER, FETTERED_SOUL, WINDUS, GRANDIS); + setQuestNameNpcStringId(NpcStringId.LV_37_40_DEATH_MYSTERIES); + addCondMinLevel(MIN_LEVEL, "no_lvl.html"); + addCondMaxLevel(MAX_LEVEL, "no_lvl.html"); + } + + @Override + public boolean checkPartyMember(PlayerInstance member, Npc npc) + { + final QuestState qs = getQuestState(member, false); + return ((qs != null) && qs.isStarted()); + } + + @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 "TELEPORT_TO_MAXIMILLIAN": + { + player.teleToLocation(86845, 148626, -3402); + break; + } + case "30289-01.htm": + { + htmltext = event; + break; + } + case "30289-02.htm": + { + htmltext = event; + break; + } + case "30289-03.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30120-01.html": + { + htmltext = event; + break; + } + case "30120-02.html": + { + htmltext = event; + break; + } + case "30120-03.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "30120-05.html": + { + if (qs.isStarted()) + { + player.sendPacket(new ExShowScreenMessage(NpcStringId.YOU_VE_GOT_ADVENTURER_S_AGATHION_BRACELET_AND_ADVENTURER_S_AGATHION_GRIFFIN_NCOMPLETE_THE_TUTORIAL_AND_TRY_TO_USE_THE_AGATHION, 2, 5000)); + addExpAndSp(player, 3000000, 75000); + giveItems(player, ADVENTURERS_AGATHION_BRACELET); + giveItems(player, ADVENTURERS_AGATHION_GRIFIN); + qs.exitQuest(false, true); + htmltext = event; + break; + } + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if ((qs != null) && qs.isCond(2)) + { + final int killCount = qs.getInt(KILL_COUNT_VAR) + 1; + if (killCount < 500) + { + qs.set(KILL_COUNT_VAR, killCount); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + sendNpcLogList(killer); + } + else + { + qs.setCond(3, true); + qs.unset(KILL_COUNT_VAR); + killer.sendPacket(new ExShowScreenMessage(NpcStringId.MONSTERS_OF_THE_DEATH_PASS_ARE_KILLED_NUSE_THE_TELEPORT_OR_THE_SCROLL_OF_ESCAPE_TO_GET_TO_HIGH_PRIEST_MAXIMILIAN_IN_GIRAN, 2, 5000)); + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(2)) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_THE_MONSTERS_IN_THE_DEATH_PASS.getId(), true, qs.getInt(KILL_COUNT_VAR))); + return holder; + } + + return super.getNpcLogList(player); + } + + @Override + public String onTalk(Npc npc, PlayerInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + if (qs.isCreated()) + { + htmltext = "30289.htm"; + } + else if (qs.isStarted()) + { + switch (npc.getId()) + { + case RAYMOND: + { + if (qs.isCond(1)) + { + htmltext = "30289-01.htm"; + } + break; + } + case MAXIMILLIAN: + { + if (qs.isCond(1)) + { + htmltext = "30120.html"; + } + else if (qs.isCond(3)) + { + htmltext = "30120-04.html"; + } + break; + } + } + } + else if (qs.isCompleted()) + { + if (npc.getId() == RAYMOND) + { + htmltext = getAlreadyCompletedMsg(player); + } + } + + return htmltext; + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/no_lvl.html b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/no_lvl.html new file mode 100644 index 0000000000..8a713ceab1 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/Q10965_DeathMysteries/no_lvl.html @@ -0,0 +1,3 @@ +High Priest Raymond:
+You do not meet the requirements of the quest (Quest is only available to 37-40 levels). + \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/QuestMasterHandler.java index 3fe09aabf5..d5e1c179f5 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -44,6 +44,8 @@ import quests.Q10866_PunitiveOperationOnTheDevilIsle.Q10866_PunitiveOperationOnT import quests.Q10961_EffectiveTraining.Q10961_EffectiveTraining; import quests.Q10962_NewHorizons.Q10962_NewHorizons; import quests.Q10963_ExploringTheAntNest.Q10963_ExploringTheAntNest; +import quests.Q10964_SecretGarden.Q10964_SecretGarden; +import quests.Q10965_DeathMysteries.Q10965_DeathMysteries; import quests.Q10966_ATripBegins.Q10966_ATripBegins; import quests.Q10967_CulturedAdventurer.Q10967_CulturedAdventurer; import quests.Q10981_UnbearableWolvesHowling.Q10981_UnbearableWolvesHowling; @@ -123,6 +125,8 @@ public class QuestMasterHandler Q10961_EffectiveTraining.class, Q10962_NewHorizons.class, Q10963_ExploringTheAntNest.class, + Q10964_SecretGarden.class, + Q10965_DeathMysteries.class, Q10966_ATripBegins.class, Q10967_CulturedAdventurer.class, Q10981_UnbearableWolvesHowling.class, diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/items/91900-91999.xml b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/items/91900-91999.xml index d2d6361795..0290b5330f 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/items/91900-91999.xml +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/items/91900-91999.xml @@ -487,12 +487,13 @@ - - - + + - + + + @@ -512,14 +513,17 @@ - + - - + + + + + diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/skills/50100-50199.xml b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/skills/50100-50199.xml index 37f72dfdde..6f3131f9b8 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/skills/50100-50199.xml +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/stats/skills/50100-50199.xml @@ -672,6 +672,11 @@ icon.agathion_magmeld_teleport P + + + 1 + +