diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/MissingQuests.txt index 5a35849b1c..09fed157f8 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/MissingQuests.txt @@ -49,5 +49,4 @@ 10748 Mysterious Suggestion - 1 10749 Mysterious Suggestion - 2 10809 The Hero's Journey: Blazing Swamp -10845 Bloody Battle - Rescue the Smiths -10846 Bloody Battle - Meeting the Commander \ No newline at end of file +10845 Bloody Battle - Rescue the Smiths \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm new file mode 100644 index 0000000000..f0a307e4c0 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm @@ -0,0 +1,4 @@ +Hurak:
+I do not believe our paths are meant to cross here. Perhaps later down the road.
+(This quest can only be undertaken by characters with Lv. 101 or higher whose faction level with the Kingdom's Royal Guard is 4 or higher and Complete quest: Bloody Battle - Rescue the Smiths.) + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm new file mode 100644 index 0000000000..472bc369fb --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm @@ -0,0 +1,5 @@ +Hurak:
+It's been a while since we've found the Atelia Fortress.
+In that time though, the fortress has become more structured, which worries me.
+ + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm new file mode 100644 index 0000000000..317de0276c --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm @@ -0,0 +1,4 @@ +Hurak:
+We have to make sure no issues arise here until Leona comes back from Hellbound. We aren't doing so well, though.
+ + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm new file mode 100644 index 0000000000..a1206b25b0 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm @@ -0,0 +1,5 @@ +Hurak:
+The Atelia Fortress is more structured now.
+Until recently, they didn't have the means to get supplies or train soldiers when they isolated themselves, but now they can do all that within.
+ + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm new file mode 100644 index 0000000000..ab3bda70b9 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm @@ -0,0 +1,5 @@ +Hurak:
+According to the information we got from the clan members inside the fortress, they are building different facilities on each floor.
+I've asked Leona for reinforcements, but they are not doing so great either. We need people who can help us. Do you think you can do it?
+ + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm new file mode 100644 index 0000000000..3a2b2da63b --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm @@ -0,0 +1,4 @@ +Hurak:
+Glad to hear you'll be helping us. Devianne has already infiltrated the fortress and is in contact with our clan members.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html new file mode 100644 index 0000000000..8080af69ae --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html @@ -0,0 +1,4 @@ +Hurak:
+Devianne has already infiltrated the fortress, but you'll need to find out where she is from the people who are inside.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html new file mode 100644 index 0000000000..32224236b7 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html @@ -0,0 +1,5 @@ +Devianne:
+Elikia said someone would come find me. I guess that was you? The fortress is becoming more systemized by the way, which worries me.
+We are not ready yet, and the Embryo are already expanding their forces.
+ + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html new file mode 100644 index 0000000000..9773ec8489 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html @@ -0,0 +1,7 @@ +Devianne:
+I found just a while ago that the fortress is becoming more systemized.
+They've built a supply base, and I saw that they are distributing supplies to the soldiers within the fortress. I would love to go and destroy their supply base...
+Recently, I met Devianne, and she told me about the commander of the fortress.
+She said to create uproars around the fortress to stop the flow of their work inside... Do you think you can help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html new file mode 100644 index 0000000000..d2b1eeecdc --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html @@ -0,0 +1,5 @@ +Devianne:
+It's not that difficult. You must have seen the supply boxes laying around. They started getting supplies regularly, but they are still not organized.
+Please open those supply boxes and get me the supplies. Don't just open any box though. There are some traps that could make it very dangerous.
+ Oh, and one more thing! If you defeat the Quartermasters, the soldiers will be affected, making it easier to steal their supplies. + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java new file mode 100644 index 0000000000..f4d08ac6d8 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java @@ -0,0 +1,159 @@ +/* + * 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.Q10846_BloodyBattleMeetingTheCommander; + +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; + +/** + * Bloody Battle - Meeting the Commander (10846) + * @URL https://l2wiki.com/Bloody_Battle_-_Meeting_the_Commander + * @author Dmitri + */ +public class Q10846_BloodyBattleMeetingTheCommander extends Quest +{ + // NPCs + private static final int HURAK = 34064; + private static final int DEVIANNE = 34323; + // MiniBoss + private static final int BURNSTEIN = 26136; // Burnstein + // Item + private static final int RUNE_STONE = 39738; + private static final int SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE = 46158; + // Misc + private static final int MIN_LEVEL = 101; + + public Q10846_BloodyBattleMeetingTheCommander() + { + super(10846); + addStartNpc(HURAK); + addTalkId(HURAK, DEVIANNE); + addKillId(BURNSTEIN); + addCondMinLevel(MIN_LEVEL, "34064-00.htm"); + // addCondCompletedQuest(Q10845_BloodyBattleRescueTheSmiths.class.getSimpleName(), "34064-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34064-04.htm": + case "34064-03.htm": + case "34064-02.htm": + case "34323-02.html": + { + htmltext = event; + break; + } + case "34064-05.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34323-03.html": + { + if (qs.isCond(2)) + { + giveItems(player, RUNE_STONE, 1); + giveItems(player, SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE, 1); + addExpAndSp(player, 7262301690L, 17429400); + 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() == HURAK) + { + htmltext = "34064-01.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case HURAK: + { + if (qs.isCond(1)) + { + htmltext = "34064-06.html"; + } + break; + } + case DEVIANNE: + { + if (qs.isCond(2)) + { + htmltext = "34323-01.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java index 051b1b5f75..d6330e15b7 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -494,6 +494,7 @@ import quests.Q10840_TimeToRecover.Q10840_TimeToRecover; import quests.Q10841_DeepInsideAteliaFortress.Q10841_DeepInsideAteliaFortress; import quests.Q10843_AnomalyInTheEnchantedValley.Q10843_AnomalyInTheEnchantedValley; import quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; +import quests.Q10846_BloodyBattleMeetingTheCommander.Q10846_BloodyBattleMeetingTheCommander; import quests.not_done.Q00480_AnotherLegacyOfCrumaTower; import quests.not_done.Q00504_CompetitionForTheBanditStronghold; import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts; @@ -533,7 +534,6 @@ import quests.not_done.Q10748_MysteriousSuggestion1; import quests.not_done.Q10749_MysteriousSuggestion2; import quests.not_done.Q10809_TheHerosJourneyBlazingSwamp; import quests.not_done.Q10845_BloodyBattleRescueTheSmiths; -import quests.not_done.Q10846_BloodyBattleMeetingTheCommander; /** * @author NosBit @@ -1058,7 +1058,7 @@ public class QuestMasterHandler Q10843_AnomalyInTheEnchantedValley.class, Q10844_BloodyBattleSeizingSupplies.class, Q10845_BloodyBattleRescueTheSmiths.class, // TODO: Not done. - Q10846_BloodyBattleMeetingTheCommander.class, // TODO: Not done. + Q10846_BloodyBattleMeetingTheCommander.class, }; public static void main(String[] args) diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java deleted file mode 100644 index caad5680c7..0000000000 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.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 Q10846_BloodyBattleMeetingTheCommander extends Quest -{ - private static final int START_NPC = 34064; - - public Q10846_BloodyBattleMeetingTheCommander() - { - super(10846); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/MissingQuests.txt index 1e2c645187..b01f3db04e 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/MissingQuests.txt @@ -66,7 +66,6 @@ 10748 Mysterious Suggestion - 1 10749 Mysterious Suggestion - 2 10845 Bloody Battle - Rescue the Smiths -10846 Bloody Battle - Meeting the Commander 10848 Trials before the Battle 10853 To Weaken the Giants 10854 To Seize the Fortress diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm new file mode 100644 index 0000000000..0ba6e50ea8 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm @@ -0,0 +1,5 @@ +Logart van Dyke:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 101, quest Complete Bloody Battle - Seizing Supplies and fraction Kingdom��ο�½�’Β²��Β²�²β�¬ο�½�’Β¬��Β²�²β�¬ο�½��†s Royal Guard amity level 2 or above.) + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm new file mode 100644 index 0000000000..cdaa8cf547 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm new file mode 100644 index 0000000000..124f484233 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm @@ -0,0 +1,4 @@ +Logart van Dyke:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm new file mode 100644 index 0000000000..fba37beef7 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm new file mode 100644 index 0000000000..511065d50d --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm new file mode 100644 index 0000000000..472e10842b --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm new file mode 100644 index 0000000000..c554368bc0 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html new file mode 100644 index 0000000000..a7f1677e84 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 5 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html new file mode 100644 index 0000000000..6baf75b3c0 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 8 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html new file mode 100644 index 0000000000..9b160c1ac5 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the basic mission to collect 40 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html new file mode 100644 index 0000000000..9140501de5 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the intermediate mission to collect 80 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html new file mode 100644 index 0000000000..f3712c7387 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the advanced mission to collect 120 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html new file mode 100644 index 0000000000..edc546a10f --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html @@ -0,0 +1,4 @@ +Fairy Mimyu:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 40 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html new file mode 100644 index 0000000000..8d3c0d3031 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 80 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html new file mode 100644 index 0000000000..7f0075d93e --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 120 Mutated Spirit's Souls. It should be manageable. +y> \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html new file mode 100644 index 0000000000..d491294b59 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 40 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html new file mode 100644 index 0000000000..7c59e3a000 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 80 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html new file mode 100644 index 0000000000..5e8c893849 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 120 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html new file mode 100644 index 0000000000..508422d7f9 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html @@ -0,0 +1,5 @@ +Logart van Dyke:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html new file mode 100644 index 0000000000..118d5a38cc --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java new file mode 100644 index 0000000000..924df96196 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java @@ -0,0 +1,356 @@ +/* + * 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.Q00845_SabotageTheEmbryoSupplies; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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 quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; + +/** + * Sabotage the Embryo Supplies (845) + * @URL https://l2wiki.com/Sabotage_the_Embryo_Supplies + * @author Dmitri + */ +public class Q00845_SabotageTheEmbryoSupplies extends Quest +{ + // NPCs + private static final int LOGART_VAN_DYKE = 34235; + // Monsters + private static final int[] MONSTERS = + { + 23589, // + 23507, // + 23506, // + 23505, // + 23508, // + 23537, // + 23538, // + 23509, // + 23512, // + 23511 // + }; + // Items + private static final int EMBRYO_SUPPLIES = 47197; + // Rewards + private static final int BASIC_SUPPLY_BOX = 47175; // Kingdom's Royal Guard Basic Supply Box Atelia Fortress + private static final int INTERMEDIATE_SUPPLY_BOX = 47176; // Kingdom's Royal Guard Intermediate Supply Box Atelia Fortress + private static final int ADVANCED_SUPPLY_BOX = 47177; // Kingdom's Royal Guard Advanced Supply Box Atelia Fortress + // Misc + private static final int MIN_LEVEL = 101; + + public Q00845_SabotageTheEmbryoSupplies() + { + super(845); + addStartNpc(LOGART_VAN_DYKE); + addTalkId(LOGART_VAN_DYKE); + addKillId(MONSTERS); + registerQuestItems(EMBRYO_SUPPLIES); + addCondMinLevel(MIN_LEVEL, "34235-00.htm"); + addCondCompletedQuest(Q10844_BloodyBattleSeizingSupplies.class.getSimpleName(), "34235-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 2, "34235-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34235-02.htm": + case "34235-03.htm": + case "34235-04.htm": + case "34235-04a.htm": + case "34235-04b.htm": + case "34235-06.html": + case "34235-06a.html": + case "34235-06b.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "return": + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "34235-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34235-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34235-07b.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34235-10.html": + { + final int chance = getRandom(100); + switch (qs.getCond()) + { + case 5: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 40) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + addExpAndSp(player, 18155754360L, 18155700); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 6: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 80) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + addExpAndSp(player, 36311508720L, 36311400); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 200); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 7: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 120) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + addExpAndSp(player, 54467263080L, 54467100); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 300); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34235-01.htm"; + // fallthrough? + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case 2: + { + htmltext = "34235-08.html"; + break; + } + case 3: + { + htmltext = "34235-08a.html"; + break; + } + case 4: + { + htmltext = "34235-08b.html"; + break; + } + case 5: + case 6: + case 7: + { + htmltext = "34235-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34235-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + switch (qs.getCond()) + { + case 2: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 40, 0.5, true)) + { + qs.setCond(5, true); + } + break; + } + case 3: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 80, 0.5, true)) + { + qs.setCond(6, true); + } + break; + } + case 4: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 120, 0.5, true)) + { + qs.setCond(7, true); + } + break; + } + } + } + } +} diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm new file mode 100644 index 0000000000..f0a307e4c0 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm @@ -0,0 +1,4 @@ +Hurak:
+I do not believe our paths are meant to cross here. Perhaps later down the road.
+(This quest can only be undertaken by characters with Lv. 101 or higher whose faction level with the Kingdom's Royal Guard is 4 or higher and Complete quest: Bloody Battle - Rescue the Smiths.) + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm new file mode 100644 index 0000000000..472bc369fb --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm @@ -0,0 +1,5 @@ +Hurak:
+It's been a while since we've found the Atelia Fortress.
+In that time though, the fortress has become more structured, which worries me.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm new file mode 100644 index 0000000000..317de0276c --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm @@ -0,0 +1,4 @@ +Hurak:
+We have to make sure no issues arise here until Leona comes back from Hellbound. We aren't doing so well, though.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm new file mode 100644 index 0000000000..a1206b25b0 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm @@ -0,0 +1,5 @@ +Hurak:
+The Atelia Fortress is more structured now.
+Until recently, they didn't have the means to get supplies or train soldiers when they isolated themselves, but now they can do all that within.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm new file mode 100644 index 0000000000..ab3bda70b9 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm @@ -0,0 +1,5 @@ +Hurak:
+According to the information we got from the clan members inside the fortress, they are building different facilities on each floor.
+I've asked Leona for reinforcements, but they are not doing so great either. We need people who can help us. Do you think you can do it?
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm new file mode 100644 index 0000000000..3a2b2da63b --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm @@ -0,0 +1,4 @@ +Hurak:
+Glad to hear you'll be helping us. Devianne has already infiltrated the fortress and is in contact with our clan members.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html new file mode 100644 index 0000000000..8080af69ae --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html @@ -0,0 +1,4 @@ +Hurak:
+Devianne has already infiltrated the fortress, but you'll need to find out where she is from the people who are inside.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html new file mode 100644 index 0000000000..32224236b7 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html @@ -0,0 +1,5 @@ +Devianne:
+Elikia said someone would come find me. I guess that was you? The fortress is becoming more systemized by the way, which worries me.
+We are not ready yet, and the Embryo are already expanding their forces.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html new file mode 100644 index 0000000000..9773ec8489 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html @@ -0,0 +1,7 @@ +Devianne:
+I found just a while ago that the fortress is becoming more systemized.
+They've built a supply base, and I saw that they are distributing supplies to the soldiers within the fortress. I would love to go and destroy their supply base...
+Recently, I met Devianne, and she told me about the commander of the fortress.
+She said to create uproars around the fortress to stop the flow of their work inside... Do you think you can help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html new file mode 100644 index 0000000000..d2b1eeecdc --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html @@ -0,0 +1,5 @@ +Devianne:
+It's not that difficult. You must have seen the supply boxes laying around. They started getting supplies regularly, but they are still not organized.
+Please open those supply boxes and get me the supplies. Don't just open any box though. There are some traps that could make it very dangerous.
+ Oh, and one more thing! If you defeat the Quartermasters, the soldiers will be affected, making it easier to steal their supplies. + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java new file mode 100644 index 0000000000..2331455ece --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java @@ -0,0 +1,161 @@ +/* + * 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.Q10846_BloodyBattleMeetingTheCommander; + +import org.l2jmobius.gameserver.enums.Faction; +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; + +/** + * Bloody Battle - Meeting the Commander (10846) + * @URL https://l2wiki.com/Bloody_Battle_-_Meeting_the_Commander + * @author Dmitri + */ +public class Q10846_BloodyBattleMeetingTheCommander extends Quest +{ + // NPCs + private static final int HURAK = 34064; + private static final int DEVIANNE = 34323; + // MiniBoss + private static final int BURNSTEIN = 26136; // Burnstein + // Item + private static final int RUNE_STONE = 39738; + private static final int SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE = 46158; + // Misc + private static final int MIN_LEVEL = 101; + + public Q10846_BloodyBattleMeetingTheCommander() + { + super(10846); + addStartNpc(HURAK); + addTalkId(HURAK, DEVIANNE); + addKillId(BURNSTEIN); + addCondMinLevel(MIN_LEVEL, "34064-00.htm"); + // addCondCompletedQuest(Q10845_BloodyBattleRescueTheSmiths.class.getSimpleName(), "34064-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 4, "34064-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34064-04.htm": + case "34064-03.htm": + case "34064-02.htm": + case "34323-02.html": + { + htmltext = event; + break; + } + case "34064-05.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34323-03.html": + { + if (qs.isCond(2)) + { + giveItems(player, RUNE_STONE, 1); + giveItems(player, SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE, 1); + addExpAndSp(player, 7262301690L, 17429400); + 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() == HURAK) + { + htmltext = "34064-01.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case HURAK: + { + if (qs.isCond(1)) + { + htmltext = "34064-06.html"; + } + break; + } + case DEVIANNE: + { + if (qs.isCond(2)) + { + htmltext = "34323-01.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/QuestMasterHandler.java index 3e35f24989..300823e9ab 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -199,6 +199,7 @@ import quests.Q00833_DevilsTreasureTauti.Q00833_DevilsTreasureTauti; import quests.Q00835_PitiableMelisa.Q00835_PitiableMelisa; import quests.Q00842_CaptiveDemons.Q00842_CaptiveDemons; import quests.Q00844_GiantsTreasure.Q00844_GiantsTreasure; +import quests.Q00845_SabotageTheEmbryoSupplies.Q00845_SabotageTheEmbryoSupplies; import quests.Q00901_HowLavasaurusesAreMade.Q00901_HowLavasaurusesAreMade; import quests.Q00902_ReclaimOurEra.Q00902_ReclaimOurEra; import quests.Q00903_TheCallOfAntharas.Q00903_TheCallOfAntharas; @@ -474,6 +475,7 @@ import quests.Q10840_TimeToRecover.Q10840_TimeToRecover; import quests.Q10841_DeepInsideAteliaFortress.Q10841_DeepInsideAteliaFortress; import quests.Q10843_AnomalyInTheEnchantedValley.Q10843_AnomalyInTheEnchantedValley; import quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; +import quests.Q10846_BloodyBattleMeetingTheCommander.Q10846_BloodyBattleMeetingTheCommander; import quests.Q10849_TrialsForAdaptation.Q10849_TrialsForAdaptation; import quests.Q10851_ElvenBotany.Q10851_ElvenBotany; import quests.Q10852_TheMotherTreeRevivalProject.Q10852_TheMotherTreeRevivalProject; @@ -503,7 +505,6 @@ import quests.not_done.Q00839_RequestFromTheUnworldlyVisitors; import quests.not_done.Q00840_RequestFromTheKingdomsRoyalGuard; import quests.not_done.Q00841_ContaminationContainment; import quests.not_done.Q00843_GiantEvolutionControl; -import quests.not_done.Q00845_SabotageTheEmbryoSupplies; import quests.not_done.Q00846_BuildingUpStrength; import quests.not_done.Q00910_RedLibraRequestLv1; import quests.not_done.Q00911_RedLibraRequestLv2; @@ -523,7 +524,6 @@ import quests.not_done.Q10506_DianasRequest; import quests.not_done.Q10748_MysteriousSuggestion1; import quests.not_done.Q10749_MysteriousSuggestion2; import quests.not_done.Q10845_BloodyBattleRescueTheSmiths; -import quests.not_done.Q10846_BloodyBattleMeetingTheCommander; import quests.not_done.Q10848_TrialsBeforeTheBattle; import quests.not_done.Q10853_ToWeakenTheGiants; import quests.not_done.Q10854_ToSeizeTheFortress; @@ -743,7 +743,7 @@ public class QuestMasterHandler Q00842_CaptiveDemons.class, Q00843_GiantEvolutionControl.class, // TODO: Not done. Q00844_GiantsTreasure.class, - Q00845_SabotageTheEmbryoSupplies.class, // TODO: Not done. + Q00845_SabotageTheEmbryoSupplies.class, Q00846_BuildingUpStrength.class, // TODO: Not done. Q00901_HowLavasaurusesAreMade.class, Q00902_ReclaimOurEra.class, @@ -1038,7 +1038,7 @@ public class QuestMasterHandler Q10843_AnomalyInTheEnchantedValley.class, Q10844_BloodyBattleSeizingSupplies.class, Q10845_BloodyBattleRescueTheSmiths.class, // TODO: Not done. - Q10846_BloodyBattleMeetingTheCommander.class, // TODO: Not done. + Q10846_BloodyBattleMeetingTheCommander.class, Q10848_TrialsBeforeTheBattle.class, // TODO: Not done. Q10849_TrialsForAdaptation.class, Q10851_ElvenBotany.class, diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java deleted file mode 100644 index 88dc08f95f..0000000000 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.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 Q00845_SabotageTheEmbryoSupplies extends Quest -{ - private static final int START_NPC = 34235; - - public Q00845_SabotageTheEmbryoSupplies() - { - super(845); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java deleted file mode 100644 index caad5680c7..0000000000 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.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 Q10846_BloodyBattleMeetingTheCommander extends Quest -{ - private static final int START_NPC = 34064; - - public Q10846_BloodyBattleMeetingTheCommander() - { - super(10846); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/MissingQuests.txt index 16d5f22361..a1fcde7b0e 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/MissingQuests.txt @@ -1,9 +1,6 @@ 504 Competition for the Bandit Stronghold 655 A Grand Plan for Taming Wild Beasts -665 Basic Training for Hunter Guild Member -666 Knowledgeable Hunter Guild Member 667 How to Cover Shilen's Eyes -668 Fight with Giants 669 Intense Fight against Dragon 671 Path to Finding the Past 672 Embryo the Archenemy @@ -91,7 +88,6 @@ 840 Request from the Kingdom's Royal Guard 841 Contamination Containment 843 Giant Evolution Control -845 Sabotage the Embryo Supplies 846 Building up Strength 861 Kain's Choice 910 Red Libra Request - Isle of Souls @@ -122,7 +118,6 @@ 10396 Witch of Spores 10418 The Immortal Pirate King 10423 Embryo Stronghold Ambush -10454 Final Embryo Apostle 10457 Kefensis' Illusion 10506 Diana's Request 10535 Blacksmith's Soul-awakening Weapon - 3 @@ -135,7 +130,6 @@ 10748 Mysterious Suggestion - 1 10749 Mysterious Suggestion - 2 10845 Bloody Battle - Rescue the Smiths -10846 Bloody Battle - Meeting the Commander 10848 Trials before the Battle 10853 To Weaken the Giants 10854 To Seize the Fortress diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm new file mode 100644 index 0000000000..3476ffaf41 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm @@ -0,0 +1,5 @@ +Truth Seeker Devianne:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 85 and above.) + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm new file mode 100644 index 0000000000..9992fc54f4 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm new file mode 100644 index 0000000000..2a978b7e40 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm new file mode 100644 index 0000000000..b7c33ac260 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm new file mode 100644 index 0000000000..b73e11146f --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm @@ -0,0 +1,7 @@ +Truth Seeker Devianne:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 1 Mutated Spirit's Souls. +Intermediate Mission - Collect 2 Mutated Spirit's Souls.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm new file mode 100644 index 0000000000..fb95f5233a --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm @@ -0,0 +1,7 @@ +Truth Seeker Devianne:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 1 Mutated Spirit's Souls. +Intermediate Mission - Collect 2 Mutated Spirit's Souls.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html new file mode 100644 index 0000000000..dc93ea7c77 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Your Unworldly Visitors Faction Level Must be 4 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html new file mode 100644 index 0000000000..b47d121ffc --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+You have chosen the basic mission to collect 1 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html new file mode 100644 index 0000000000..1521f2ee16 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+You have chosen the intermediate mission to collect 2 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html new file mode 100644 index 0000000000..57ea01e11a --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 1 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html new file mode 100644 index 0000000000..1ecdec6db3 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 2 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html new file mode 100644 index 0000000000..022334232b --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Go to the Garden of Spirits and defeat all type monsters until you collect 1 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html new file mode 100644 index 0000000000..be065b7fc8 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Go to the Garden of Spirits and defeat all type monsters until you collect 2 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html new file mode 100644 index 0000000000..7adb8e96c8 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html @@ -0,0 +1,5 @@ +Truth Seeker Devianne:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html new file mode 100644 index 0000000000..23411c7a99 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java new file mode 100644 index 0000000000..598a07a52d --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java @@ -0,0 +1,271 @@ +/* + * 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.Q00665_BasicTrainingForHunterGuildMember; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestSound; +import org.l2jmobius.gameserver.enums.QuestType; +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.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Basic Training for Hunter Guild Member (665) + * @URL https://l2wiki.com/Basic_Training_for_Hunter_Guild_Member + * @author Dmitri + */ +public class Q00665_BasicTrainingForHunterGuildMember extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + // BOSS + private static final int[] BOSS = + { + 19253, // Zellaka + 19254, // Pelline + 19255, // Kalios + 26102, // Dark Rider + 26136, // Burnstein + 25876, // Maliss + 25877 // Isadora + }; + // Misc + private static final boolean PARTY_QUEST = true; + private static final int MIN_LEVEL = 85; + + public Q00665_BasicTrainingForHunterGuildMember() + { + super(665); + addStartNpc(ARCTURUS); + addTalkId(ARCTURUS); + addKillId(BOSS); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34267-02.htm": + case "34267-03.htm": + case "34267-04.htm": + case "34267-04a.htm": + case "34267-06.html": + case "34267-06a.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case "return": + { + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case "34267-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34267-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34267-10.html": + { + switch (qs.getCond()) + { + case 4: + { + if (player.getLevel() >= MIN_LEVEL) + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 5: + { + if (player.getLevel() >= MIN_LEVEL) + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34267-01.htm"; + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case 2: + { + htmltext = "34267-08.html"; + break; + } + case 3: + { + htmltext = "34267-08a.html"; + break; + } + case 4: + case 5: + { + htmltext = "34267-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34267-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = PARTY_QUEST ? getRandomPartyMemberState(killer, -1, 3, npc) : getQuestState(killer, false); + if ((qs != null) && (qs.getCond() > 1)) + { + switch (qs.getCond()) + { + case 2: + { + final int killedGhosts = qs.getInt("AncientGhosts") + 1; + qs.set("AncientGhosts", killedGhosts); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + + if (killedGhosts >= 1) + { + qs.setCond(4, true); + } + break; + } + case 3: + { + final int killedGhosts = qs.getInt("AncientGhosts") + 1; + qs.set("AncientGhosts", killedGhosts); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + + if (killedGhosts >= 2) + { + qs.setCond(5, true); + } + break; + } + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1)) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.COMPLETE_BASIC_TRAINING.getId(), true, qs.getInt("AncientGhosts"))); + return holder; + } + return super.getNpcLogList(player); + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm new file mode 100644 index 0000000000..b267433caa --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm @@ -0,0 +1,5 @@ +Hunters Guild Member Colin:
+What is it? Do you want to check new missions of the Hunter Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm new file mode 100644 index 0000000000..f25c9ec12c --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+You know that there are areas called Seeds in Gracia, don't you?
+There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.
+The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm new file mode 100644 index 0000000000..3b168d5f6b --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+Are you belittling the Hunter Guild's intelligence? It's all true!
+What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.
+With whom? With both Aden and Gracia, of course.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm new file mode 100644 index 0000000000..18737aa50f --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat Tiat, Tauti, Istina, and Ekimus. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it? + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html new file mode 100644 index 0000000000..73857457eb --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html new file mode 100644 index 0000000000..b22a378594 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html @@ -0,0 +1,4 @@ +Hunters Guild Member Colin:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html new file mode 100644 index 0000000000..eba559c983 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm new file mode 100644 index 0000000000..cba19db0ef --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm @@ -0,0 +1,4 @@ +Hunters Guild Member
+I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.
+(Only characters with Lv. 85 or above and Faction level 1 or above with the Hunters Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm new file mode 100644 index 0000000000..97ab59489d --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm new file mode 100644 index 0000000000..bdc73e2804 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+There are areas called ��β€���†��Β²�²β�¬ο�½�’Β¬��•�²β�¬ο�½Seeds��β€���†��Β²�²β�¬ο�½�’Β¬��’����Β½ in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm new file mode 100644 index 0000000000..4daca56c08 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm new file mode 100644 index 0000000000..74ab81b80e --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat Tiat, Tauti, Istina, and Ekimus and return to me. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html new file mode 100644 index 0000000000..27e12b2eb5 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+You haven't left yet? I told you which Seed Lords you have to deal with.
+They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html new file mode 100644 index 0000000000..a55f565364 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html new file mode 100644 index 0000000000..88123c1f6d --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java new file mode 100644 index 0000000000..1da2d50c34 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java @@ -0,0 +1,210 @@ +/* + * 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.Q00666_HunterGuildMembersKnowledge; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Knowledgeable Hunter Guild Member (666) + * @URL https://l2wiki.com/Knowledgeable_Hunter_Guild_Member + * @author Dmitri + */ +public class Q00666_HunterGuildMembersKnowledge extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + private static final int COLIN = 30703; + // BOSS + private static final int[] BOSES = + { + 3477, // Reinforced Super Kat the Cat + 3479, // Darkened Super Feline Queen + 25933, // Garden Patrol Captain + 3481, // Control-crazed Mew the Cat + 25937, // Spicula Negative + 3473, // Omega Golem + 29163, // Tiat (attack type) + 25886, // Houpon the Warden Overseer + 25902, // Gigantic Golem (96 lvl) + 25887, // Crook the Mad + 26348, // Summoned Garp + 26347, // Summoned Harpas + 26349, // Summoned Moricks + 26431, // Avenger Alusion + 26432, // Avenger Graff + 26312, // Lithra + 26436, // Watcher Setheth + 26435, // Watcher Tristan + 25946, // Antharas' Herald Komabor + 25949, // Lindvior's Herald Numa + 26442, // Mad Cullan + 25922, // Nerva Chief Turakan + 26005, // Nerva Orc Nergatt + 26001, // Amden Orc Turation + 25929, // Tegaffe + 25931, // Theor + 25948, // Valakas' Herald Potigia + 25983, // Varkaron + 25982, // Varmonia + 25957, // Vengeful Agarez + 25961, // Vengeful Agonia + 25960, // Vengeful Edaire + 25956, // Vengeful Eligos + 25958, // Vengeful Lerazia + 25959, // Vengeful Oretross + 26441, // Witch Moira + 26440, // Arrogant Lebruum + 26439, // Ferocious Valac + 26438, // Berserker Tabris + 26437, // Berserker Zetahl + 29374, // Cyrax + 26433, // Demon Venoma + 26434, // Fiend Sarboth + 26443, // Akrikhin Charon + 26444, // Scorpion King Votan + 25876, // + 25877 // + }; + // Misc + private static final int MIN_LEVEL = 85; + + public Q00666_HunterGuildMembersKnowledge() + { + super(666); + addStartNpc(ARCTURUS, COLIN); + addTalkId(ARCTURUS, COLIN); + addKillId(BOSES); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + addFactionLevel(Faction.HUNTERS_GUILD, 1, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + switch (event) + { + case "30703-02.htm": + case "30703-03.htm": + case "34267-02.htm": + case "34267-03.htm": + { + htmltext = event; + break; + } + case "30703-04.htm": + case "34267-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30703-07.html": + case "34267-07.html": + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, 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: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = "30703-01.htm"; + break; + } + case ARCTURUS: + { + htmltext = "34267-01.htm"; + break; + } + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html"; + break; + } + case ARCTURUS: + { + htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html"; + break; + } + } + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + break; + } + qs.setState(State.CREATED); + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm new file mode 100644 index 0000000000..a9775c44e1 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm @@ -0,0 +1,5 @@ +Hunters Guild Member Colin:
+What is it? Do you want to check new missions of the Hunter Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm new file mode 100644 index 0000000000..ba07699031 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+You know that there are areas called Seeds in Gracia, don't you?
+There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.
+The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm new file mode 100644 index 0000000000..a1f4e73631 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+Are you belittling the Hunter Guild's intelligence? It's all true!
+What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.
+With whom? With both Aden and Gracia, of course.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm new file mode 100644 index 0000000000..18737aa50f --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat Tiat, Tauti, Istina, and Ekimus. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it? + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html new file mode 100644 index 0000000000..73857457eb --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html new file mode 100644 index 0000000000..d8a57921b1 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html @@ -0,0 +1,4 @@ +Hunters Guild Member Colin:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html new file mode 100644 index 0000000000..eba559c983 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm new file mode 100644 index 0000000000..cba19db0ef --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm @@ -0,0 +1,4 @@ +Hunters Guild Member
+I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.
+(Only characters with Lv. 85 or above and Faction level 1 or above with the Hunters Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm new file mode 100644 index 0000000000..ffb5c1668c --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm new file mode 100644 index 0000000000..5997533d20 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+There are areas called ��β€���†��Β²�²β�¬ο�½�’Β¬��•�²β�¬ο�½Seeds��β€���†��Β²�²β�¬ο�½�’Β¬��’����Β½ in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm new file mode 100644 index 0000000000..cdf6783bc5 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm new file mode 100644 index 0000000000..74ab81b80e --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat Tiat, Tauti, Istina, and Ekimus and return to me. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html new file mode 100644 index 0000000000..27e12b2eb5 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+You haven't left yet? I told you which Seed Lords you have to deal with.
+They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html new file mode 100644 index 0000000000..175416348c --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html new file mode 100644 index 0000000000..88123c1f6d --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java new file mode 100644 index 0000000000..427b865d4f --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java @@ -0,0 +1,168 @@ +/* + * 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.Q00668_ABattleWithTheGiants; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Fight with the Giants (668) + * @URL https://l2wiki.com/Fight_with_the_Giants + * @author Dmitri + */ +public class Q00668_ABattleWithTheGiants extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + private static final int COLIN = 30703; + // BOSS + private static final int[] BOSES = + { + 29305, // Helios + 26143, // Ramona + 26148, // Enhanced Mimir + 26157, // Enhanced Harnak's Wraith + 26152 // Enhanced Core + }; + // Misc + private static final int MIN_LEVEL = 85; + + public Q00668_ABattleWithTheGiants() + { + super(668); + addStartNpc(ARCTURUS, COLIN); + addTalkId(ARCTURUS, COLIN); + addKillId(BOSES); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + addFactionLevel(Faction.HUNTERS_GUILD, 1, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + switch (event) + { + case "30703-02.htm": + case "30703-03.htm": + case "34267-02.htm": + case "34267-03.htm": + { + htmltext = event; + break; + } + case "30703-04.htm": + case "34267-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30703-07.html": + case "34267-07.html": + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, 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: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = "30703-01.htm"; + break; + } + case ARCTURUS: + { + htmltext = "34267-01.htm"; + break; + } + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html"; + break; + } + case ARCTURUS: + { + htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html"; + break; + } + } + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + break; + } + qs.setState(State.CREATED); + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm new file mode 100644 index 0000000000..751a8ef7d8 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm @@ -0,0 +1,5 @@ +Logart van Dyke:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 101, quest Complete Bloody Battle - Seizing Supplies and fraction Kingdom��Β²�²β€�Β¬�²β€��†s Royal Guard amity level 2 or above.) + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm new file mode 100644 index 0000000000..cdaa8cf547 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm new file mode 100644 index 0000000000..124f484233 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm @@ -0,0 +1,4 @@ +Logart van Dyke:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm new file mode 100644 index 0000000000..fba37beef7 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm new file mode 100644 index 0000000000..511065d50d --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm new file mode 100644 index 0000000000..472e10842b --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm new file mode 100644 index 0000000000..c554368bc0 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html new file mode 100644 index 0000000000..a7f1677e84 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 5 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html new file mode 100644 index 0000000000..6baf75b3c0 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 8 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html new file mode 100644 index 0000000000..9b160c1ac5 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the basic mission to collect 40 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html new file mode 100644 index 0000000000..9140501de5 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the intermediate mission to collect 80 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html new file mode 100644 index 0000000000..f3712c7387 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the advanced mission to collect 120 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html new file mode 100644 index 0000000000..edc546a10f --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html @@ -0,0 +1,4 @@ +Fairy Mimyu:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 40 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html new file mode 100644 index 0000000000..8d3c0d3031 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 80 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html new file mode 100644 index 0000000000..7f0075d93e --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 120 Mutated Spirit's Souls. It should be manageable. +y> \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html new file mode 100644 index 0000000000..d491294b59 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 40 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html new file mode 100644 index 0000000000..7c59e3a000 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 80 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html new file mode 100644 index 0000000000..5e8c893849 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 120 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html new file mode 100644 index 0000000000..508422d7f9 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html @@ -0,0 +1,5 @@ +Logart van Dyke:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html new file mode 100644 index 0000000000..118d5a38cc --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java new file mode 100644 index 0000000000..924df96196 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java @@ -0,0 +1,356 @@ +/* + * 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.Q00845_SabotageTheEmbryoSupplies; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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 quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; + +/** + * Sabotage the Embryo Supplies (845) + * @URL https://l2wiki.com/Sabotage_the_Embryo_Supplies + * @author Dmitri + */ +public class Q00845_SabotageTheEmbryoSupplies extends Quest +{ + // NPCs + private static final int LOGART_VAN_DYKE = 34235; + // Monsters + private static final int[] MONSTERS = + { + 23589, // + 23507, // + 23506, // + 23505, // + 23508, // + 23537, // + 23538, // + 23509, // + 23512, // + 23511 // + }; + // Items + private static final int EMBRYO_SUPPLIES = 47197; + // Rewards + private static final int BASIC_SUPPLY_BOX = 47175; // Kingdom's Royal Guard Basic Supply Box Atelia Fortress + private static final int INTERMEDIATE_SUPPLY_BOX = 47176; // Kingdom's Royal Guard Intermediate Supply Box Atelia Fortress + private static final int ADVANCED_SUPPLY_BOX = 47177; // Kingdom's Royal Guard Advanced Supply Box Atelia Fortress + // Misc + private static final int MIN_LEVEL = 101; + + public Q00845_SabotageTheEmbryoSupplies() + { + super(845); + addStartNpc(LOGART_VAN_DYKE); + addTalkId(LOGART_VAN_DYKE); + addKillId(MONSTERS); + registerQuestItems(EMBRYO_SUPPLIES); + addCondMinLevel(MIN_LEVEL, "34235-00.htm"); + addCondCompletedQuest(Q10844_BloodyBattleSeizingSupplies.class.getSimpleName(), "34235-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 2, "34235-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34235-02.htm": + case "34235-03.htm": + case "34235-04.htm": + case "34235-04a.htm": + case "34235-04b.htm": + case "34235-06.html": + case "34235-06a.html": + case "34235-06b.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "return": + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "34235-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34235-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34235-07b.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34235-10.html": + { + final int chance = getRandom(100); + switch (qs.getCond()) + { + case 5: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 40) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + addExpAndSp(player, 18155754360L, 18155700); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 6: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 80) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + addExpAndSp(player, 36311508720L, 36311400); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 200); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 7: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 120) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + addExpAndSp(player, 54467263080L, 54467100); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 300); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34235-01.htm"; + // fallthrough? + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case 2: + { + htmltext = "34235-08.html"; + break; + } + case 3: + { + htmltext = "34235-08a.html"; + break; + } + case 4: + { + htmltext = "34235-08b.html"; + break; + } + case 5: + case 6: + case 7: + { + htmltext = "34235-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34235-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + switch (qs.getCond()) + { + case 2: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 40, 0.5, true)) + { + qs.setCond(5, true); + } + break; + } + case 3: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 80, 0.5, true)) + { + qs.setCond(6, true); + } + break; + } + case 4: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 120, 0.5, true)) + { + qs.setCond(7, true); + } + break; + } + } + } + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm new file mode 100644 index 0000000000..11476c760e --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm @@ -0,0 +1,4 @@ +Erda:
+In order to take on this mission, you must first build more trust with us.
+(Only characters with faction level 5 or above with the Blackbird Clan may undertake this quest.)
+ \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm new file mode 100644 index 0000000000..a0b8470772 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm @@ -0,0 +1,4 @@ +Erda:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm new file mode 100644 index 0000000000..86d31ba146 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm @@ -0,0 +1,4 @@ +Erda:
+Herphah wants you to do some missions, and I'll chose an appropriate mission depending on your relationship with us at the Adventure Guild.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm new file mode 100644 index 0000000000..c59b0182bb --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm @@ -0,0 +1,4 @@ +Erda:
+Your mission is to assist with the task at the Altar of Evil. If successful, our Adventure Guild will give you additional rewards on top of the mission payment and your relationship with our faction will grow even stronger.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm new file mode 100644 index 0000000000..f9372620f5 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm @@ -0,0 +1,4 @@ +Erda:
+You've already leamed everything you need to know about the mission. By that I mean, how to go to the Altar of Evil. You should be able to start the mission right away without further explanation.
+But if you want to listen to the explanation again, I'd be happy to tell you. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html new file mode 100644 index 0000000000..4c6743798e --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html @@ -0,0 +1,3 @@ +Erda:
+Good choice. Now, go to Black Wizard Lapathia at the Altar of Evil and do the mission that she gives you. When the mission is done, come back to me.
+ \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html new file mode 100644 index 0000000000..5d7d3c0ec0 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html @@ -0,0 +1,5 @@ +Erda:
+I asked the Adventure Guild to send an adventurer but didn't expect they would send you. I'd like to see how good you are.
+(To do "Basic Mission: Isle of Souls," you must do "Uncover the Secret" and "More Aggressive Operation" through Black Wizard Lapathia.)
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html new file mode 100644 index 0000000000..6ed406518a --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html @@ -0,0 +1,5 @@ +Erda:
+You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?
+Don't tell me you're going to walk all the way up there. I know a better way.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html new file mode 100644 index 0000000000..656a032c61 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html @@ -0,0 +1,4 @@ +Erda:
+When setting out for a joumey, veteran adventurers always pack Scrolls of Escape, it teleports the user immediately to the closest village or to the check point.
+If you have these useful items, you can move easily after hunting or when you are far away from the village. Since you've been a great help to me, I'll give you the scroll that can teleport you directly to the Town of Aden. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java new file mode 100644 index 0000000000..9b99af37cd --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java @@ -0,0 +1,142 @@ +/* + * 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.Q10454_FinalEmbryoApostle; + +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; + +/** + * Final Embryo Apostle (10454) + * @URL https://l2wiki.com/Final_Embryo_Apostle + * @author Dmitri + */ +public class Q10454_FinalEmbryoApostle extends Quest +{ + // NPCs + private static final int ERDA = 34319; + // Boss + private static final int CAMILLE = 26236; // Camille - Inner Messiahs Castle + // Item + private static final int SCROLL_ENCHANT_R_GRADE_WEAPON = 19447; + private static final int SCROLL_ENCHANT_R_GRADE_ARMOR = 19448; + // Misc + private static final int MIN_LEVEL = 102; + + public Q10454_FinalEmbryoApostle() + { + super(10454); + addStartNpc(ERDA); + addTalkId(ERDA); + addKillId(CAMILLE); + addCondMinLevel(MIN_LEVEL, "34319-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34319-02.htm": + case "34319-03.htm": + case "34319-07.html": + { + htmltext = event; + break; + } + case "34319-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34319-08.html": + { + if (qs.isCond(2)) + { + giveItems(player, SCROLL_ENCHANT_R_GRADE_WEAPON, 1); + giveItems(player, SCROLL_ENCHANT_R_GRADE_ARMOR, 1); + addExpAndSp(player, 36255499714L, 87013199); + 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: + { + htmltext = "34319-01.htm"; + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "34319-05.html"; + } + else + { + htmltext = "34319-06.html"; + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm new file mode 100644 index 0000000000..f0a307e4c0 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm @@ -0,0 +1,4 @@ +Hurak:
+I do not believe our paths are meant to cross here. Perhaps later down the road.
+(This quest can only be undertaken by characters with Lv. 101 or higher whose faction level with the Kingdom's Royal Guard is 4 or higher and Complete quest: Bloody Battle - Rescue the Smiths.) + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm new file mode 100644 index 0000000000..472bc369fb --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm @@ -0,0 +1,5 @@ +Hurak:
+It's been a while since we've found the Atelia Fortress.
+In that time though, the fortress has become more structured, which worries me.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm new file mode 100644 index 0000000000..317de0276c --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm @@ -0,0 +1,4 @@ +Hurak:
+We have to make sure no issues arise here until Leona comes back from Hellbound. We aren't doing so well, though.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm new file mode 100644 index 0000000000..a1206b25b0 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm @@ -0,0 +1,5 @@ +Hurak:
+The Atelia Fortress is more structured now.
+Until recently, they didn't have the means to get supplies or train soldiers when they isolated themselves, but now they can do all that within.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm new file mode 100644 index 0000000000..ab3bda70b9 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm @@ -0,0 +1,5 @@ +Hurak:
+According to the information we got from the clan members inside the fortress, they are building different facilities on each floor.
+I've asked Leona for reinforcements, but they are not doing so great either. We need people who can help us. Do you think you can do it?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm new file mode 100644 index 0000000000..3a2b2da63b --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm @@ -0,0 +1,4 @@ +Hurak:
+Glad to hear you'll be helping us. Devianne has already infiltrated the fortress and is in contact with our clan members.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html new file mode 100644 index 0000000000..8080af69ae --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html @@ -0,0 +1,4 @@ +Hurak:
+Devianne has already infiltrated the fortress, but you'll need to find out where she is from the people who are inside.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html new file mode 100644 index 0000000000..32224236b7 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html @@ -0,0 +1,5 @@ +Devianne:
+Elikia said someone would come find me. I guess that was you? The fortress is becoming more systemized by the way, which worries me.
+We are not ready yet, and the Embryo are already expanding their forces.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html new file mode 100644 index 0000000000..9773ec8489 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html @@ -0,0 +1,7 @@ +Devianne:
+I found just a while ago that the fortress is becoming more systemized.
+They've built a supply base, and I saw that they are distributing supplies to the soldiers within the fortress. I would love to go and destroy their supply base...
+Recently, I met Devianne, and she told me about the commander of the fortress.
+She said to create uproars around the fortress to stop the flow of their work inside... Do you think you can help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html new file mode 100644 index 0000000000..d2b1eeecdc --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html @@ -0,0 +1,5 @@ +Devianne:
+It's not that difficult. You must have seen the supply boxes laying around. They started getting supplies regularly, but they are still not organized.
+Please open those supply boxes and get me the supplies. Don't just open any box though. There are some traps that could make it very dangerous.
+ Oh, and one more thing! If you defeat the Quartermasters, the soldiers will be affected, making it easier to steal their supplies. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java new file mode 100644 index 0000000000..2331455ece --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java @@ -0,0 +1,161 @@ +/* + * 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.Q10846_BloodyBattleMeetingTheCommander; + +import org.l2jmobius.gameserver.enums.Faction; +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; + +/** + * Bloody Battle - Meeting the Commander (10846) + * @URL https://l2wiki.com/Bloody_Battle_-_Meeting_the_Commander + * @author Dmitri + */ +public class Q10846_BloodyBattleMeetingTheCommander extends Quest +{ + // NPCs + private static final int HURAK = 34064; + private static final int DEVIANNE = 34323; + // MiniBoss + private static final int BURNSTEIN = 26136; // Burnstein + // Item + private static final int RUNE_STONE = 39738; + private static final int SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE = 46158; + // Misc + private static final int MIN_LEVEL = 101; + + public Q10846_BloodyBattleMeetingTheCommander() + { + super(10846); + addStartNpc(HURAK); + addTalkId(HURAK, DEVIANNE); + addKillId(BURNSTEIN); + addCondMinLevel(MIN_LEVEL, "34064-00.htm"); + // addCondCompletedQuest(Q10845_BloodyBattleRescueTheSmiths.class.getSimpleName(), "34064-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 4, "34064-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34064-04.htm": + case "34064-03.htm": + case "34064-02.htm": + case "34323-02.html": + { + htmltext = event; + break; + } + case "34064-05.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34323-03.html": + { + if (qs.isCond(2)) + { + giveItems(player, RUNE_STONE, 1); + giveItems(player, SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE, 1); + addExpAndSp(player, 7262301690L, 17429400); + 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() == HURAK) + { + htmltext = "34064-01.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case HURAK: + { + if (qs.isCond(1)) + { + htmltext = "34064-06.html"; + } + break; + } + case DEVIANNE: + { + if (qs.isCond(2)) + { + htmltext = "34323-01.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/QuestMasterHandler.java index 88068a80c4..6b1b0bbf6d 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -159,6 +159,9 @@ import quests.Q00645_GhostsOfBatur.Q00645_GhostsOfBatur; import quests.Q00648_AnIceMerchantsDream.Q00648_AnIceMerchantsDream; import quests.Q00662_AGameOfCards.Q00662_AGameOfCards; import quests.Q00663_SeductiveWhispers.Q00663_SeductiveWhispers; +import quests.Q00665_BasicTrainingForHunterGuildMember.Q00665_BasicTrainingForHunterGuildMember; +import quests.Q00666_HunterGuildMembersKnowledge.Q00666_HunterGuildMembersKnowledge; +import quests.Q00668_ABattleWithTheGiants.Q00668_ABattleWithTheGiants; import quests.Q00670_DefeatingTheLordOfSeed.Q00670_DefeatingTheLordOfSeed; import quests.Q00688_DefeatTheElrokianRaiders.Q00688_DefeatTheElrokianRaiders; import quests.Q00726_LightWithinTheDarkness.Q00726_LightWithinTheDarkness; @@ -200,6 +203,7 @@ import quests.Q00833_DevilsTreasureTauti.Q00833_DevilsTreasureTauti; import quests.Q00835_PitiableMelisa.Q00835_PitiableMelisa; import quests.Q00842_CaptiveDemons.Q00842_CaptiveDemons; import quests.Q00844_GiantsTreasure.Q00844_GiantsTreasure; +import quests.Q00845_SabotageTheEmbryoSupplies.Q00845_SabotageTheEmbryoSupplies; import quests.Q00901_HowLavasaurusesAreMade.Q00901_HowLavasaurusesAreMade; import quests.Q00902_ReclaimOurEra.Q00902_ReclaimOurEra; import quests.Q00903_TheCallOfAntharas.Q00903_TheCallOfAntharas; @@ -337,6 +341,7 @@ import quests.Q10447_TimingIsEverything.Q10447_TimingIsEverything; import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition; import quests.Q10452_IsItEdible.Q10452_IsItEdible; import quests.Q10453_StoppingTheWindDragon.Q10453_StoppingTheWindDragon; +import quests.Q10454_FinalEmbryoApostle.Q10454_FinalEmbryoApostle; import quests.Q10455_ElikiasLetter.Q10455_ElikiasLetter; import quests.Q10456_OperationRescue.Q10456_OperationRescue; import quests.Q10459_ASickAmbition.Q10459_ASickAmbition; @@ -472,6 +477,7 @@ import quests.Q10840_TimeToRecover.Q10840_TimeToRecover; import quests.Q10841_DeepInsideAteliaFortress.Q10841_DeepInsideAteliaFortress; import quests.Q10843_AnomalyInTheEnchantedValley.Q10843_AnomalyInTheEnchantedValley; import quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; +import quests.Q10846_BloodyBattleMeetingTheCommander.Q10846_BloodyBattleMeetingTheCommander; import quests.Q10849_TrialsForAdaptation.Q10849_TrialsForAdaptation; import quests.Q10851_ElvenBotany.Q10851_ElvenBotany; import quests.Q10852_TheMotherTreeRevivalProject.Q10852_TheMotherTreeRevivalProject; @@ -479,10 +485,7 @@ import quests.Q10856_SuperionAppears.Q10856_SuperionAppears; import quests.Q10857_SecretTeleport.Q10857_SecretTeleport; import quests.not_done.Q00504_CompetitionForTheBanditStronghold; import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts; -import quests.not_done.Q00665_BasicTrainingForHunterGuildMember; -import quests.not_done.Q00666_KnowledgeableHunterGuildMember; import quests.not_done.Q00667_HowToCoverShilensEyes; -import quests.not_done.Q00668_FightWithGiants; import quests.not_done.Q00669_IntenseFightAgainstDragon; import quests.not_done.Q00671_PathToFindingThePast; import quests.not_done.Q00672_EmbryoTheArchenemy; @@ -509,7 +512,6 @@ import quests.not_done.Q00839_RequestFromTheUnworldlyVisitors; import quests.not_done.Q00840_RequestFromTheKingdomsRoyalGuard; import quests.not_done.Q00841_ContaminationContainment; import quests.not_done.Q00843_GiantEvolutionControl; -import quests.not_done.Q00845_SabotageTheEmbryoSupplies; import quests.not_done.Q00846_BuildingUpStrength; import quests.not_done.Q00929_SeekerRescue; import quests.not_done.Q00930_DisparagingThePhantoms; @@ -525,14 +527,12 @@ import quests.not_done.Q10373_ExploringTheDimensionSealingTheDimension; import quests.not_done.Q10396_WitchOfSpores; import quests.not_done.Q10418_TheImmortalPirateKing; import quests.not_done.Q10423_EmbryoStrongholdAmbush; -import quests.not_done.Q10454_FinalEmbryoApostle; import quests.not_done.Q10457_KefensisIllusion; import quests.not_done.Q10506_DianasRequest; import quests.not_done.Q10535_BlacksmithsSoulAwakeningWeapon3; import quests.not_done.Q10748_MysteriousSuggestion1; import quests.not_done.Q10749_MysteriousSuggestion2; import quests.not_done.Q10845_BloodyBattleRescueTheSmiths; -import quests.not_done.Q10846_BloodyBattleMeetingTheCommander; import quests.not_done.Q10848_TrialsBeforeTheBattle; import quests.not_done.Q10853_ToWeakenTheGiants; import quests.not_done.Q10854_ToSeizeTheFortress; @@ -700,10 +700,10 @@ public class QuestMasterHandler Q00655_AGrandPlanForTamingWildBeasts.class, // TODO: Not done. Q00662_AGameOfCards.class, Q00663_SeductiveWhispers.class, - Q00665_BasicTrainingForHunterGuildMember.class, // TODO: Not done. - Q00666_KnowledgeableHunterGuildMember.class, // TODO: Not done. + Q00665_BasicTrainingForHunterGuildMember.class, + Q00666_HunterGuildMembersKnowledge.class, Q00667_HowToCoverShilensEyes.class, // TODO: Not done. - Q00668_FightWithGiants.class, // TODO: Not done. + Q00668_ABattleWithTheGiants.class, Q00669_IntenseFightAgainstDragon.class, // TODO: Not done. Q00670_DefeatingTheLordOfSeed.class, Q00671_PathToFindingThePast.class, // TODO: Not done. @@ -771,7 +771,7 @@ public class QuestMasterHandler Q00842_CaptiveDemons.class, Q00843_GiantEvolutionControl.class, // TODO: Not done. Q00844_GiantsTreasure.class, - Q00845_SabotageTheEmbryoSupplies.class, // TODO: Not done. + Q00845_SabotageTheEmbryoSupplies.class, Q00846_BuildingUpStrength.class, // TODO: Not done. Q00901_HowLavasaurusesAreMade.class, Q00902_ReclaimOurEra.class, @@ -924,7 +924,7 @@ public class QuestMasterHandler Q10450_ADarkAmbition.class, Q10452_IsItEdible.class, Q10453_StoppingTheWindDragon.class, - Q10454_FinalEmbryoApostle.class, // TODO: Not done. + Q10454_FinalEmbryoApostle.class, Q10455_ElikiasLetter.class, Q10456_OperationRescue.class, Q10457_KefensisIllusion.class, // TODO: Not done. @@ -1066,7 +1066,7 @@ public class QuestMasterHandler Q10843_AnomalyInTheEnchantedValley.class, Q10844_BloodyBattleSeizingSupplies.class, Q10845_BloodyBattleRescueTheSmiths.class, // TODO: Not done. - Q10846_BloodyBattleMeetingTheCommander.class, // TODO: Not done. + Q10846_BloodyBattleMeetingTheCommander.class, Q10848_TrialsBeforeTheBattle.class, // TODO: Not done. Q10849_TrialsForAdaptation.class, Q10851_ElvenBotany.class, diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.java deleted file mode 100644 index 4607e3d7d8..0000000000 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.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 Q00665_BasicTrainingForHunterGuildMember extends Quest -{ - private static final int START_NPC = 34267; - - public Q00665_BasicTrainingForHunterGuildMember() - { - super(665); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00666_KnowledgeableHunterGuildMember.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00666_KnowledgeableHunterGuildMember.java deleted file mode 100644 index b0d2164979..0000000000 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00666_KnowledgeableHunterGuildMember.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 Q00666_KnowledgeableHunterGuildMember extends Quest -{ - private static final int START_NPC = 34267; - - public Q00666_KnowledgeableHunterGuildMember() - { - super(666); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00668_FightWithGiants.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00668_FightWithGiants.java deleted file mode 100644 index f97c29390f..0000000000 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00668_FightWithGiants.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 Q00668_FightWithGiants extends Quest -{ - private static final int START_NPC = 34267; - - public Q00668_FightWithGiants() - { - super(668); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java deleted file mode 100644 index 88dc08f95f..0000000000 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.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 Q00845_SabotageTheEmbryoSupplies extends Quest -{ - private static final int START_NPC = 34235; - - public Q00845_SabotageTheEmbryoSupplies() - { - super(845); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.java deleted file mode 100644 index 33d310b292..0000000000 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.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 Q10454_FinalEmbryoApostle extends Quest -{ - private static final int START_NPC = 34319; - - public Q10454_FinalEmbryoApostle() - { - super(10454); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java deleted file mode 100644 index caad5680c7..0000000000 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.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 Q10846_BloodyBattleMeetingTheCommander extends Quest -{ - private static final int START_NPC = 34064; - - public Q10846_BloodyBattleMeetingTheCommander() - { - super(10846); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/MissingQuests.txt index a990086a34..355e55f58f 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/MissingQuests.txt @@ -11,10 +11,7 @@ 586 Mutated Creatures 588 Head-on Crash 655 A Grand Plan for Taming Wild Beasts -665 Basic Training for Hunter Guild Member -666 Knowledgeable Hunter Guild Member 667 How to Cover Shilen's Eyes -668 Fight with Giants 669 Intense Fight against Dragon 671 Path to Finding the Past 672 Embryo the Archenemy @@ -106,7 +103,6 @@ 840 Request from the Kingdom's Royal Guard 841 Contamination Containment 843 Giant Evolution Control -845 Sabotage the Embryo Supplies 846 Building up Strength 861 Kain's Choice 910 Red Libra Request - Isle of Souls @@ -137,7 +133,6 @@ 10396 Witch of Spores 10418 The Immortal Pirate King 10423 Embryo Stronghold Ambush -10454 Final Embryo Apostle 10457 Kefensis' Illusion 10506 Diana's Request 10535 Blacksmith's Soul-awakening Weapon - 3 @@ -165,7 +160,6 @@ 10748 Mysterious Suggestion - 1 10749 Mysterious Suggestion - 2 10845 Bloody Battle - Rescue the Smiths -10846 Bloody Battle - Meeting the Commander 10848 Trials before the Battle 10853 To Weaken the Giants 10854 To Seize the Fortress diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm new file mode 100644 index 0000000000..3476ffaf41 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm @@ -0,0 +1,5 @@ +Truth Seeker Devianne:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 85 and above.) + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm new file mode 100644 index 0000000000..9992fc54f4 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm new file mode 100644 index 0000000000..2a978b7e40 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm new file mode 100644 index 0000000000..b7c33ac260 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm new file mode 100644 index 0000000000..b73e11146f --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm @@ -0,0 +1,7 @@ +Truth Seeker Devianne:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 1 Mutated Spirit's Souls. +Intermediate Mission - Collect 2 Mutated Spirit's Souls.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm new file mode 100644 index 0000000000..fb95f5233a --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm @@ -0,0 +1,7 @@ +Truth Seeker Devianne:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 1 Mutated Spirit's Souls. +Intermediate Mission - Collect 2 Mutated Spirit's Souls.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html new file mode 100644 index 0000000000..dc93ea7c77 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Your Unworldly Visitors Faction Level Must be 4 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html new file mode 100644 index 0000000000..b47d121ffc --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+You have chosen the basic mission to collect 1 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html new file mode 100644 index 0000000000..1521f2ee16 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+You have chosen the intermediate mission to collect 2 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html new file mode 100644 index 0000000000..57ea01e11a --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 1 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html new file mode 100644 index 0000000000..1ecdec6db3 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 2 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html new file mode 100644 index 0000000000..022334232b --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Go to the Garden of Spirits and defeat all type monsters until you collect 1 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html new file mode 100644 index 0000000000..be065b7fc8 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Go to the Garden of Spirits and defeat all type monsters until you collect 2 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html new file mode 100644 index 0000000000..7adb8e96c8 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html @@ -0,0 +1,5 @@ +Truth Seeker Devianne:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html new file mode 100644 index 0000000000..23411c7a99 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java new file mode 100644 index 0000000000..598a07a52d --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java @@ -0,0 +1,271 @@ +/* + * 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.Q00665_BasicTrainingForHunterGuildMember; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestSound; +import org.l2jmobius.gameserver.enums.QuestType; +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.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Basic Training for Hunter Guild Member (665) + * @URL https://l2wiki.com/Basic_Training_for_Hunter_Guild_Member + * @author Dmitri + */ +public class Q00665_BasicTrainingForHunterGuildMember extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + // BOSS + private static final int[] BOSS = + { + 19253, // Zellaka + 19254, // Pelline + 19255, // Kalios + 26102, // Dark Rider + 26136, // Burnstein + 25876, // Maliss + 25877 // Isadora + }; + // Misc + private static final boolean PARTY_QUEST = true; + private static final int MIN_LEVEL = 85; + + public Q00665_BasicTrainingForHunterGuildMember() + { + super(665); + addStartNpc(ARCTURUS); + addTalkId(ARCTURUS); + addKillId(BOSS); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34267-02.htm": + case "34267-03.htm": + case "34267-04.htm": + case "34267-04a.htm": + case "34267-06.html": + case "34267-06a.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case "return": + { + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case "34267-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34267-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34267-10.html": + { + switch (qs.getCond()) + { + case 4: + { + if (player.getLevel() >= MIN_LEVEL) + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 5: + { + if (player.getLevel() >= MIN_LEVEL) + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34267-01.htm"; + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case 2: + { + htmltext = "34267-08.html"; + break; + } + case 3: + { + htmltext = "34267-08a.html"; + break; + } + case 4: + case 5: + { + htmltext = "34267-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34267-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = PARTY_QUEST ? getRandomPartyMemberState(killer, -1, 3, npc) : getQuestState(killer, false); + if ((qs != null) && (qs.getCond() > 1)) + { + switch (qs.getCond()) + { + case 2: + { + final int killedGhosts = qs.getInt("AncientGhosts") + 1; + qs.set("AncientGhosts", killedGhosts); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + + if (killedGhosts >= 1) + { + qs.setCond(4, true); + } + break; + } + case 3: + { + final int killedGhosts = qs.getInt("AncientGhosts") + 1; + qs.set("AncientGhosts", killedGhosts); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + + if (killedGhosts >= 2) + { + qs.setCond(5, true); + } + break; + } + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1)) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.COMPLETE_BASIC_TRAINING.getId(), true, qs.getInt("AncientGhosts"))); + return holder; + } + return super.getNpcLogList(player); + } +} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm new file mode 100644 index 0000000000..b267433caa --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm @@ -0,0 +1,5 @@ +Hunters Guild Member Colin:
+What is it? Do you want to check new missions of the Hunter Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm new file mode 100644 index 0000000000..f25c9ec12c --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+You know that there are areas called Seeds in Gracia, don't you?
+There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.
+The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm new file mode 100644 index 0000000000..3b168d5f6b --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+Are you belittling the Hunter Guild's intelligence? It's all true!
+What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.
+With whom? With both Aden and Gracia, of course.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm new file mode 100644 index 0000000000..18737aa50f --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat Tiat, Tauti, Istina, and Ekimus. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it? + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html new file mode 100644 index 0000000000..73857457eb --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html new file mode 100644 index 0000000000..b22a378594 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html @@ -0,0 +1,4 @@ +Hunters Guild Member Colin:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html new file mode 100644 index 0000000000..eba559c983 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm new file mode 100644 index 0000000000..cba19db0ef --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm @@ -0,0 +1,4 @@ +Hunters Guild Member
+I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.
+(Only characters with Lv. 85 or above and Faction level 1 or above with the Hunters Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm new file mode 100644 index 0000000000..97ab59489d --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm new file mode 100644 index 0000000000..2566813d77 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+There are areas called ���†�²β€�Β¬�•β€�Seeds���†�²β€�Β¬�’ο�½ in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm new file mode 100644 index 0000000000..4daca56c08 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm new file mode 100644 index 0000000000..74ab81b80e --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat Tiat, Tauti, Istina, and Ekimus and return to me. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html new file mode 100644 index 0000000000..27e12b2eb5 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+You haven't left yet? I told you which Seed Lords you have to deal with.
+They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html new file mode 100644 index 0000000000..a55f565364 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html new file mode 100644 index 0000000000..88123c1f6d --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java new file mode 100644 index 0000000000..1da2d50c34 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java @@ -0,0 +1,210 @@ +/* + * 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.Q00666_HunterGuildMembersKnowledge; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Knowledgeable Hunter Guild Member (666) + * @URL https://l2wiki.com/Knowledgeable_Hunter_Guild_Member + * @author Dmitri + */ +public class Q00666_HunterGuildMembersKnowledge extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + private static final int COLIN = 30703; + // BOSS + private static final int[] BOSES = + { + 3477, // Reinforced Super Kat the Cat + 3479, // Darkened Super Feline Queen + 25933, // Garden Patrol Captain + 3481, // Control-crazed Mew the Cat + 25937, // Spicula Negative + 3473, // Omega Golem + 29163, // Tiat (attack type) + 25886, // Houpon the Warden Overseer + 25902, // Gigantic Golem (96 lvl) + 25887, // Crook the Mad + 26348, // Summoned Garp + 26347, // Summoned Harpas + 26349, // Summoned Moricks + 26431, // Avenger Alusion + 26432, // Avenger Graff + 26312, // Lithra + 26436, // Watcher Setheth + 26435, // Watcher Tristan + 25946, // Antharas' Herald Komabor + 25949, // Lindvior's Herald Numa + 26442, // Mad Cullan + 25922, // Nerva Chief Turakan + 26005, // Nerva Orc Nergatt + 26001, // Amden Orc Turation + 25929, // Tegaffe + 25931, // Theor + 25948, // Valakas' Herald Potigia + 25983, // Varkaron + 25982, // Varmonia + 25957, // Vengeful Agarez + 25961, // Vengeful Agonia + 25960, // Vengeful Edaire + 25956, // Vengeful Eligos + 25958, // Vengeful Lerazia + 25959, // Vengeful Oretross + 26441, // Witch Moira + 26440, // Arrogant Lebruum + 26439, // Ferocious Valac + 26438, // Berserker Tabris + 26437, // Berserker Zetahl + 29374, // Cyrax + 26433, // Demon Venoma + 26434, // Fiend Sarboth + 26443, // Akrikhin Charon + 26444, // Scorpion King Votan + 25876, // + 25877 // + }; + // Misc + private static final int MIN_LEVEL = 85; + + public Q00666_HunterGuildMembersKnowledge() + { + super(666); + addStartNpc(ARCTURUS, COLIN); + addTalkId(ARCTURUS, COLIN); + addKillId(BOSES); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + addFactionLevel(Faction.HUNTERS_GUILD, 1, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + switch (event) + { + case "30703-02.htm": + case "30703-03.htm": + case "34267-02.htm": + case "34267-03.htm": + { + htmltext = event; + break; + } + case "30703-04.htm": + case "34267-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30703-07.html": + case "34267-07.html": + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, 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: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = "30703-01.htm"; + break; + } + case ARCTURUS: + { + htmltext = "34267-01.htm"; + break; + } + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html"; + break; + } + case ARCTURUS: + { + htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html"; + break; + } + } + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + break; + } + qs.setState(State.CREATED); + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm new file mode 100644 index 0000000000..a9775c44e1 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm @@ -0,0 +1,5 @@ +Hunters Guild Member Colin:
+What is it? Do you want to check new missions of the Hunter Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm new file mode 100644 index 0000000000..ba07699031 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+You know that there are areas called Seeds in Gracia, don't you?
+There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.
+The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm new file mode 100644 index 0000000000..a1f4e73631 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+Are you belittling the Hunter Guild's intelligence? It's all true!
+What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.
+With whom? With both Aden and Gracia, of course.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm new file mode 100644 index 0000000000..18737aa50f --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat Tiat, Tauti, Istina, and Ekimus. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it? + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html new file mode 100644 index 0000000000..73857457eb --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html new file mode 100644 index 0000000000..d8a57921b1 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html @@ -0,0 +1,4 @@ +Hunters Guild Member Colin:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html new file mode 100644 index 0000000000..eba559c983 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm new file mode 100644 index 0000000000..cba19db0ef --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm @@ -0,0 +1,4 @@ +Hunters Guild Member
+I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.
+(Only characters with Lv. 85 or above and Faction level 1 or above with the Hunters Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm new file mode 100644 index 0000000000..ffb5c1668c --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm new file mode 100644 index 0000000000..f5c3ded094 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+There are areas called ���†�²β€�Β¬�•β€�Seeds���†�²β€�Β¬�’ο�½ in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm new file mode 100644 index 0000000000..cdf6783bc5 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm new file mode 100644 index 0000000000..74ab81b80e --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat Tiat, Tauti, Istina, and Ekimus and return to me. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html new file mode 100644 index 0000000000..27e12b2eb5 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+You haven't left yet? I told you which Seed Lords you have to deal with.
+They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html new file mode 100644 index 0000000000..175416348c --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html new file mode 100644 index 0000000000..88123c1f6d --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java new file mode 100644 index 0000000000..427b865d4f --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java @@ -0,0 +1,168 @@ +/* + * 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.Q00668_ABattleWithTheGiants; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Fight with the Giants (668) + * @URL https://l2wiki.com/Fight_with_the_Giants + * @author Dmitri + */ +public class Q00668_ABattleWithTheGiants extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + private static final int COLIN = 30703; + // BOSS + private static final int[] BOSES = + { + 29305, // Helios + 26143, // Ramona + 26148, // Enhanced Mimir + 26157, // Enhanced Harnak's Wraith + 26152 // Enhanced Core + }; + // Misc + private static final int MIN_LEVEL = 85; + + public Q00668_ABattleWithTheGiants() + { + super(668); + addStartNpc(ARCTURUS, COLIN); + addTalkId(ARCTURUS, COLIN); + addKillId(BOSES); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + addFactionLevel(Faction.HUNTERS_GUILD, 1, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + switch (event) + { + case "30703-02.htm": + case "30703-03.htm": + case "34267-02.htm": + case "34267-03.htm": + { + htmltext = event; + break; + } + case "30703-04.htm": + case "34267-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30703-07.html": + case "34267-07.html": + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, 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: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = "30703-01.htm"; + break; + } + case ARCTURUS: + { + htmltext = "34267-01.htm"; + break; + } + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html"; + break; + } + case ARCTURUS: + { + htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html"; + break; + } + } + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + break; + } + qs.setState(State.CREATED); + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm new file mode 100644 index 0000000000..471297b58e --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm @@ -0,0 +1,5 @@ +Logart van Dyke:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 101, quest Complete Bloody Battle - Seizing Supplies and fraction Kingdom�²β�¬β�Άs Royal Guard amity level 2 or above.) + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm new file mode 100644 index 0000000000..cdaa8cf547 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm new file mode 100644 index 0000000000..124f484233 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm @@ -0,0 +1,4 @@ +Logart van Dyke:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm new file mode 100644 index 0000000000..fba37beef7 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm new file mode 100644 index 0000000000..511065d50d --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm new file mode 100644 index 0000000000..472e10842b --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm new file mode 100644 index 0000000000..c554368bc0 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html new file mode 100644 index 0000000000..a7f1677e84 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 5 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html new file mode 100644 index 0000000000..6baf75b3c0 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 8 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html new file mode 100644 index 0000000000..9b160c1ac5 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the basic mission to collect 40 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html new file mode 100644 index 0000000000..9140501de5 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the intermediate mission to collect 80 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html new file mode 100644 index 0000000000..f3712c7387 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the advanced mission to collect 120 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html new file mode 100644 index 0000000000..edc546a10f --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html @@ -0,0 +1,4 @@ +Fairy Mimyu:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 40 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html new file mode 100644 index 0000000000..8d3c0d3031 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 80 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html new file mode 100644 index 0000000000..7f0075d93e --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 120 Mutated Spirit's Souls. It should be manageable. +y> \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html new file mode 100644 index 0000000000..d491294b59 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 40 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html new file mode 100644 index 0000000000..7c59e3a000 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 80 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html new file mode 100644 index 0000000000..5e8c893849 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 120 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html new file mode 100644 index 0000000000..508422d7f9 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html @@ -0,0 +1,5 @@ +Logart van Dyke:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html new file mode 100644 index 0000000000..118d5a38cc --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java new file mode 100644 index 0000000000..924df96196 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java @@ -0,0 +1,356 @@ +/* + * 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.Q00845_SabotageTheEmbryoSupplies; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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 quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; + +/** + * Sabotage the Embryo Supplies (845) + * @URL https://l2wiki.com/Sabotage_the_Embryo_Supplies + * @author Dmitri + */ +public class Q00845_SabotageTheEmbryoSupplies extends Quest +{ + // NPCs + private static final int LOGART_VAN_DYKE = 34235; + // Monsters + private static final int[] MONSTERS = + { + 23589, // + 23507, // + 23506, // + 23505, // + 23508, // + 23537, // + 23538, // + 23509, // + 23512, // + 23511 // + }; + // Items + private static final int EMBRYO_SUPPLIES = 47197; + // Rewards + private static final int BASIC_SUPPLY_BOX = 47175; // Kingdom's Royal Guard Basic Supply Box Atelia Fortress + private static final int INTERMEDIATE_SUPPLY_BOX = 47176; // Kingdom's Royal Guard Intermediate Supply Box Atelia Fortress + private static final int ADVANCED_SUPPLY_BOX = 47177; // Kingdom's Royal Guard Advanced Supply Box Atelia Fortress + // Misc + private static final int MIN_LEVEL = 101; + + public Q00845_SabotageTheEmbryoSupplies() + { + super(845); + addStartNpc(LOGART_VAN_DYKE); + addTalkId(LOGART_VAN_DYKE); + addKillId(MONSTERS); + registerQuestItems(EMBRYO_SUPPLIES); + addCondMinLevel(MIN_LEVEL, "34235-00.htm"); + addCondCompletedQuest(Q10844_BloodyBattleSeizingSupplies.class.getSimpleName(), "34235-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 2, "34235-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34235-02.htm": + case "34235-03.htm": + case "34235-04.htm": + case "34235-04a.htm": + case "34235-04b.htm": + case "34235-06.html": + case "34235-06a.html": + case "34235-06b.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "return": + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "34235-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34235-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34235-07b.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34235-10.html": + { + final int chance = getRandom(100); + switch (qs.getCond()) + { + case 5: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 40) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + addExpAndSp(player, 18155754360L, 18155700); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 6: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 80) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + addExpAndSp(player, 36311508720L, 36311400); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 200); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 7: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 120) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + addExpAndSp(player, 54467263080L, 54467100); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 300); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34235-01.htm"; + // fallthrough? + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case 2: + { + htmltext = "34235-08.html"; + break; + } + case 3: + { + htmltext = "34235-08a.html"; + break; + } + case 4: + { + htmltext = "34235-08b.html"; + break; + } + case 5: + case 6: + case 7: + { + htmltext = "34235-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34235-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + switch (qs.getCond()) + { + case 2: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 40, 0.5, true)) + { + qs.setCond(5, true); + } + break; + } + case 3: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 80, 0.5, true)) + { + qs.setCond(6, true); + } + break; + } + case 4: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 120, 0.5, true)) + { + qs.setCond(7, true); + } + break; + } + } + } + } +} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm new file mode 100644 index 0000000000..11476c760e --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm @@ -0,0 +1,4 @@ +Erda:
+In order to take on this mission, you must first build more trust with us.
+(Only characters with faction level 5 or above with the Blackbird Clan may undertake this quest.)
+ \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm new file mode 100644 index 0000000000..a0b8470772 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm @@ -0,0 +1,4 @@ +Erda:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm new file mode 100644 index 0000000000..86d31ba146 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm @@ -0,0 +1,4 @@ +Erda:
+Herphah wants you to do some missions, and I'll chose an appropriate mission depending on your relationship with us at the Adventure Guild.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm new file mode 100644 index 0000000000..c59b0182bb --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm @@ -0,0 +1,4 @@ +Erda:
+Your mission is to assist with the task at the Altar of Evil. If successful, our Adventure Guild will give you additional rewards on top of the mission payment and your relationship with our faction will grow even stronger.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm new file mode 100644 index 0000000000..f9372620f5 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm @@ -0,0 +1,4 @@ +Erda:
+You've already leamed everything you need to know about the mission. By that I mean, how to go to the Altar of Evil. You should be able to start the mission right away without further explanation.
+But if you want to listen to the explanation again, I'd be happy to tell you. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html new file mode 100644 index 0000000000..4c6743798e --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html @@ -0,0 +1,3 @@ +Erda:
+Good choice. Now, go to Black Wizard Lapathia at the Altar of Evil and do the mission that she gives you. When the mission is done, come back to me.
+ \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html new file mode 100644 index 0000000000..5d7d3c0ec0 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html @@ -0,0 +1,5 @@ +Erda:
+I asked the Adventure Guild to send an adventurer but didn't expect they would send you. I'd like to see how good you are.
+(To do "Basic Mission: Isle of Souls," you must do "Uncover the Secret" and "More Aggressive Operation" through Black Wizard Lapathia.)
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html new file mode 100644 index 0000000000..6ed406518a --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html @@ -0,0 +1,5 @@ +Erda:
+You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?
+Don't tell me you're going to walk all the way up there. I know a better way.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html new file mode 100644 index 0000000000..656a032c61 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html @@ -0,0 +1,4 @@ +Erda:
+When setting out for a joumey, veteran adventurers always pack Scrolls of Escape, it teleports the user immediately to the closest village or to the check point.
+If you have these useful items, you can move easily after hunting or when you are far away from the village. Since you've been a great help to me, I'll give you the scroll that can teleport you directly to the Town of Aden. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java new file mode 100644 index 0000000000..9b99af37cd --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java @@ -0,0 +1,142 @@ +/* + * 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.Q10454_FinalEmbryoApostle; + +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; + +/** + * Final Embryo Apostle (10454) + * @URL https://l2wiki.com/Final_Embryo_Apostle + * @author Dmitri + */ +public class Q10454_FinalEmbryoApostle extends Quest +{ + // NPCs + private static final int ERDA = 34319; + // Boss + private static final int CAMILLE = 26236; // Camille - Inner Messiahs Castle + // Item + private static final int SCROLL_ENCHANT_R_GRADE_WEAPON = 19447; + private static final int SCROLL_ENCHANT_R_GRADE_ARMOR = 19448; + // Misc + private static final int MIN_LEVEL = 102; + + public Q10454_FinalEmbryoApostle() + { + super(10454); + addStartNpc(ERDA); + addTalkId(ERDA); + addKillId(CAMILLE); + addCondMinLevel(MIN_LEVEL, "34319-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34319-02.htm": + case "34319-03.htm": + case "34319-07.html": + { + htmltext = event; + break; + } + case "34319-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34319-08.html": + { + if (qs.isCond(2)) + { + giveItems(player, SCROLL_ENCHANT_R_GRADE_WEAPON, 1); + giveItems(player, SCROLL_ENCHANT_R_GRADE_ARMOR, 1); + addExpAndSp(player, 36255499714L, 87013199); + 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: + { + htmltext = "34319-01.htm"; + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "34319-05.html"; + } + else + { + htmltext = "34319-06.html"; + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm new file mode 100644 index 0000000000..f0a307e4c0 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm @@ -0,0 +1,4 @@ +Hurak:
+I do not believe our paths are meant to cross here. Perhaps later down the road.
+(This quest can only be undertaken by characters with Lv. 101 or higher whose faction level with the Kingdom's Royal Guard is 4 or higher and Complete quest: Bloody Battle - Rescue the Smiths.) + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm new file mode 100644 index 0000000000..472bc369fb --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm @@ -0,0 +1,5 @@ +Hurak:
+It's been a while since we've found the Atelia Fortress.
+In that time though, the fortress has become more structured, which worries me.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm new file mode 100644 index 0000000000..317de0276c --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm @@ -0,0 +1,4 @@ +Hurak:
+We have to make sure no issues arise here until Leona comes back from Hellbound. We aren't doing so well, though.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm new file mode 100644 index 0000000000..a1206b25b0 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm @@ -0,0 +1,5 @@ +Hurak:
+The Atelia Fortress is more structured now.
+Until recently, they didn't have the means to get supplies or train soldiers when they isolated themselves, but now they can do all that within.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm new file mode 100644 index 0000000000..ab3bda70b9 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm @@ -0,0 +1,5 @@ +Hurak:
+According to the information we got from the clan members inside the fortress, they are building different facilities on each floor.
+I've asked Leona for reinforcements, but they are not doing so great either. We need people who can help us. Do you think you can do it?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm new file mode 100644 index 0000000000..3a2b2da63b --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm @@ -0,0 +1,4 @@ +Hurak:
+Glad to hear you'll be helping us. Devianne has already infiltrated the fortress and is in contact with our clan members.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html new file mode 100644 index 0000000000..8080af69ae --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html @@ -0,0 +1,4 @@ +Hurak:
+Devianne has already infiltrated the fortress, but you'll need to find out where she is from the people who are inside.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html new file mode 100644 index 0000000000..32224236b7 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html @@ -0,0 +1,5 @@ +Devianne:
+Elikia said someone would come find me. I guess that was you? The fortress is becoming more systemized by the way, which worries me.
+We are not ready yet, and the Embryo are already expanding their forces.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html new file mode 100644 index 0000000000..9773ec8489 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html @@ -0,0 +1,7 @@ +Devianne:
+I found just a while ago that the fortress is becoming more systemized.
+They've built a supply base, and I saw that they are distributing supplies to the soldiers within the fortress. I would love to go and destroy their supply base...
+Recently, I met Devianne, and she told me about the commander of the fortress.
+She said to create uproars around the fortress to stop the flow of their work inside... Do you think you can help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html new file mode 100644 index 0000000000..d2b1eeecdc --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html @@ -0,0 +1,5 @@ +Devianne:
+It's not that difficult. You must have seen the supply boxes laying around. They started getting supplies regularly, but they are still not organized.
+Please open those supply boxes and get me the supplies. Don't just open any box though. There are some traps that could make it very dangerous.
+ Oh, and one more thing! If you defeat the Quartermasters, the soldiers will be affected, making it easier to steal their supplies. + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java new file mode 100644 index 0000000000..2331455ece --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java @@ -0,0 +1,161 @@ +/* + * 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.Q10846_BloodyBattleMeetingTheCommander; + +import org.l2jmobius.gameserver.enums.Faction; +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; + +/** + * Bloody Battle - Meeting the Commander (10846) + * @URL https://l2wiki.com/Bloody_Battle_-_Meeting_the_Commander + * @author Dmitri + */ +public class Q10846_BloodyBattleMeetingTheCommander extends Quest +{ + // NPCs + private static final int HURAK = 34064; + private static final int DEVIANNE = 34323; + // MiniBoss + private static final int BURNSTEIN = 26136; // Burnstein + // Item + private static final int RUNE_STONE = 39738; + private static final int SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE = 46158; + // Misc + private static final int MIN_LEVEL = 101; + + public Q10846_BloodyBattleMeetingTheCommander() + { + super(10846); + addStartNpc(HURAK); + addTalkId(HURAK, DEVIANNE); + addKillId(BURNSTEIN); + addCondMinLevel(MIN_LEVEL, "34064-00.htm"); + // addCondCompletedQuest(Q10845_BloodyBattleRescueTheSmiths.class.getSimpleName(), "34064-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 4, "34064-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34064-04.htm": + case "34064-03.htm": + case "34064-02.htm": + case "34323-02.html": + { + htmltext = event; + break; + } + case "34064-05.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34323-03.html": + { + if (qs.isCond(2)) + { + giveItems(player, RUNE_STONE, 1); + giveItems(player, SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE, 1); + addExpAndSp(player, 7262301690L, 17429400); + 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() == HURAK) + { + htmltext = "34064-01.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case HURAK: + { + if (qs.isCond(1)) + { + htmltext = "34064-06.html"; + } + break; + } + case DEVIANNE: + { + if (qs.isCond(2)) + { + htmltext = "34323-01.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/QuestMasterHandler.java index e20b518f87..449b952e6a 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -166,6 +166,9 @@ import quests.Q00645_GhostsOfBatur.Q00645_GhostsOfBatur; import quests.Q00648_AnIceMerchantsDream.Q00648_AnIceMerchantsDream; import quests.Q00662_AGameOfCards.Q00662_AGameOfCards; import quests.Q00663_SeductiveWhispers.Q00663_SeductiveWhispers; +import quests.Q00665_BasicTrainingForHunterGuildMember.Q00665_BasicTrainingForHunterGuildMember; +import quests.Q00666_HunterGuildMembersKnowledge.Q00666_HunterGuildMembersKnowledge; +import quests.Q00668_ABattleWithTheGiants.Q00668_ABattleWithTheGiants; import quests.Q00670_DefeatingTheLordOfSeed.Q00670_DefeatingTheLordOfSeed; import quests.Q00674_ChangesInTheShadowOfTheMotherTree.Q00674_ChangesInTheShadowOfTheMotherTree; import quests.Q00675_WhatTheThreadOfThePastShows.Q00675_WhatTheThreadOfThePastShows; @@ -212,6 +215,7 @@ import quests.Q00833_DevilsTreasureTauti.Q00833_DevilsTreasureTauti; import quests.Q00835_PitiableMelisa.Q00835_PitiableMelisa; import quests.Q00842_CaptiveDemons.Q00842_CaptiveDemons; import quests.Q00844_GiantsTreasure.Q00844_GiantsTreasure; +import quests.Q00845_SabotageTheEmbryoSupplies.Q00845_SabotageTheEmbryoSupplies; import quests.Q00901_HowLavasaurusesAreMade.Q00901_HowLavasaurusesAreMade; import quests.Q00902_ReclaimOurEra.Q00902_ReclaimOurEra; import quests.Q00903_TheCallOfAntharas.Q00903_TheCallOfAntharas; @@ -347,6 +351,7 @@ import quests.Q10447_TimingIsEverything.Q10447_TimingIsEverything; import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition; import quests.Q10452_IsItEdible.Q10452_IsItEdible; import quests.Q10453_StoppingTheWindDragon.Q10453_StoppingTheWindDragon; +import quests.Q10454_FinalEmbryoApostle.Q10454_FinalEmbryoApostle; import quests.Q10455_ElikiasLetter.Q10455_ElikiasLetter; import quests.Q10456_OperationRescue.Q10456_OperationRescue; import quests.Q10459_ASickAmbition.Q10459_ASickAmbition; @@ -495,12 +500,106 @@ import quests.Q10840_TimeToRecover.Q10840_TimeToRecover; import quests.Q10841_DeepInsideAteliaFortress.Q10841_DeepInsideAteliaFortress; import quests.Q10843_AnomalyInTheEnchantedValley.Q10843_AnomalyInTheEnchantedValley; import quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; +import quests.Q10846_BloodyBattleMeetingTheCommander.Q10846_BloodyBattleMeetingTheCommander; import quests.Q10849_TrialsForAdaptation.Q10849_TrialsForAdaptation; import quests.Q10851_ElvenBotany.Q10851_ElvenBotany; import quests.Q10852_TheMotherTreeRevivalProject.Q10852_TheMotherTreeRevivalProject; import quests.Q10856_SuperionAppears.Q10856_SuperionAppears; import quests.Q10857_SecretTeleport.Q10857_SecretTeleport; -import quests.not_done.*; +import quests.not_done.Q00504_CompetitionForTheBanditStronghold; +import quests.not_done.Q00568_SpecialMissionNornilsCave; +import quests.not_done.Q00570_SpecialMissionKartiasLabyrinthParty; +import quests.not_done.Q00571_SpecialMissionProofOfUnityFieldRaid; +import quests.not_done.Q00572_SpecialMissionProofOfCourageFieldRaid; +import quests.not_done.Q00573_SpecialMissionProofOfStrengthFieldRaid; +import quests.not_done.Q00574_SpecialMissionNornilsGarden; +import quests.not_done.Q00575_SpecialMissionFortuna; +import quests.not_done.Q00576_SpecialMissionDefeatSpezion; +import quests.not_done.Q00585_CantGoAgainstTheTime; +import quests.not_done.Q00586_MutatedCreatures; +import quests.not_done.Q00588_HeadOnCrash; +import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts; +import quests.not_done.Q00667_CoveringShilensEyes; +import quests.not_done.Q00669_DesperateFightWithTheDragons; +import quests.not_done.Q00671_PathToFindingThePast; +import quests.not_done.Q00672_ArchenemyEmbryo; +import quests.not_done.Q00673_BelethAmbition; +import quests.not_done.Q00744_TheAlligatorHunterReturns; +import quests.not_done.Q00745_TheOutlawsAreIncoming; +import quests.not_done.Q00746_TheReasonOneCannotWait; +import quests.not_done.Q00747_DefendingTheForsakenPlains; +import quests.not_done.Q00748_EndlessRevenge; +import quests.not_done.Q00749_TiesWithTheGuardians; +import quests.not_done.Q00750_SevenFlowers; +import quests.not_done.Q00759_TheDwarvenNightmareContinues; +import quests.not_done.Q00773_ToCalmTheFlood; +import quests.not_done.Q00774_DreamingOfPeace; +import quests.not_done.Q00780_UtilizeTheDarknessSeedOfInfinity; +import quests.not_done.Q00781_UtilizeTheDarknessSeedOfAnnihilation; +import quests.not_done.Q00782_UtilizeTheDarknessSeedOfHellfire; +import quests.not_done.Q00789_WaitingForPaagrio; +import quests.not_done.Q00824_AttackTheCommandPost; +import quests.not_done.Q00836_RequestFromTheBlackbirdClan; +import quests.not_done.Q00837_RequestFromTheGiantTrackers; +import quests.not_done.Q00838_RequestFromTheMotherTreeGuardians; +import quests.not_done.Q00839_RequestFromTheUnworldlyVisitors; +import quests.not_done.Q00840_RequestFromTheKingdomsRoyalGuard; +import quests.not_done.Q00841_ContaminationContainment; +import quests.not_done.Q00843_GiantEvolutionControl; +import quests.not_done.Q00846_BuildingUpStrength; +import quests.not_done.Q00929_SeekerRescue; +import quests.not_done.Q00930_DisparagingThePhantoms; +import quests.not_done.Q00985_AdventureGuildsSpecialRequestLv1; +import quests.not_done.Q00986_AdventureGuildsSpecialRequestLv2; +import quests.not_done.Q00987_AdventureGuildsSpecialRequestLv3; +import quests.not_done.Q00988_AdventureGuildsSpecialRequestLv4; +import quests.not_done.Q00989_AdventureGuildsSpecialRequestLv5; +import quests.not_done.Q10298_WastelandQueen; +import quests.not_done.Q10355_BlacksmithsSoul1; +import quests.not_done.Q10356_BlacksmithsSoul2; +import quests.not_done.Q10373_ExploringTheDimensionSealingTheDimension; +import quests.not_done.Q10396_WitchOfSpores; +import quests.not_done.Q10418_TheImmortalPirateKing; +import quests.not_done.Q10457_KefensisIllusion; +import quests.not_done.Q10506_DianasRequest; +import quests.not_done.Q10535_BlacksmithsSoul3; +import quests.not_done.Q10552_ChallengeBalthusKnight; +import quests.not_done.Q10553_WhatMattersMoreThanAbility; +import quests.not_done.Q10554_GiftForYou; +import quests.not_done.Q10555_ChargeAtAntharas; +import quests.not_done.Q10556_ForgottenPowerStartOfFate; +import quests.not_done.Q10557_NewPowerWindsOfFate; +import quests.not_done.Q10558_HiddenInChaos; +import quests.not_done.Q10559_BeforeTheGuide; +import quests.not_done.Q10563_ControlOfPower; +import quests.not_done.Q10564_ProveProgress; +import quests.not_done.Q10565_NothingIsImpossible; +import quests.not_done.Q10567_SpecialMissionNornilsGarden; +import quests.not_done.Q10570_HurrahForKamaelsIndependence; +import quests.not_done.Q10572_ToExpelTheEmbryosForces; +import quests.not_done.Q10574_SpecialMissionFortuna; +import quests.not_done.Q10580_SpecialMissionDefeatSpezion; +import quests.not_done.Q10594_FergasonsScheme; +import quests.not_done.Q10595_TheDimensionalWarpPart8; +import quests.not_done.Q10596_TheDimensionalWarpPart9; +import quests.not_done.Q10748_MysteriousSuggestion1; +import quests.not_done.Q10749_MysteriousSuggestion2; +import quests.not_done.Q10845_BloodyBattleRescueTheSmiths; +import quests.not_done.Q10848_TrialsBeforeTheBattle; +import quests.not_done.Q10853_ToWeakenTheGiants; +import quests.not_done.Q10854_ToSeizeTheFortress; +import quests.not_done.Q10858_QueenRamonaControllerOfTheVessel; +import quests.not_done.Q10859_OwnTheEarthAndTheHeavens; +import quests.not_done.Q10873_ExaltedReachingAnotherLevel; +import quests.not_done.Q10874_AgainstTheNewEnemy; +import quests.not_done.Q10875_ForReputation; +import quests.not_done.Q10876_LeadersGrace; +import quests.not_done.Q10877_BreakThroughCrisis; +import quests.not_done.Q10879_ExaltedGuideToPower; +import quests.not_done.Q10880_TheLastOneStanding; +import quests.not_done.Q10881_ForThePride; +import quests.not_done.Q10882_VictoryCollection; +import quests.not_done.Q10883_ImmortalHonor; /** * @author NosBit @@ -671,10 +770,10 @@ public class QuestMasterHandler Q00655_AGrandPlanForTamingWildBeasts.class, // TODO: Not done. Q00662_AGameOfCards.class, Q00663_SeductiveWhispers.class, - Q00665_BasicTrainingForHunterGuildMember.class, // TODO: Not done. - Q00666_HunterGuildMembersKnowledge.class, // TODO: Not done. + Q00665_BasicTrainingForHunterGuildMember.class, + Q00666_HunterGuildMembersKnowledge.class, Q00667_CoveringShilensEyes.class, // TODO: Not done. - Q00668_ABattleWithTheGiants.class, // TODO: Not done. + Q00668_ABattleWithTheGiants.class, Q00669_DesperateFightWithTheDragons.class, // TODO: Not done. Q00670_DefeatingTheLordOfSeed.class, Q00671_PathToFindingThePast.class, // TODO: Not done. @@ -747,7 +846,7 @@ public class QuestMasterHandler Q00842_CaptiveDemons.class, Q00843_GiantEvolutionControl.class, // TODO: Not done. Q00844_GiantsTreasure.class, - Q00845_SabotageTheEmbryoSupplies.class, // TODO: Not done. + Q00845_SabotageTheEmbryoSupplies.class, Q00846_BuildingUpStrength.class, // TODO: Not done. Q00901_HowLavasaurusesAreMade.class, Q00902_ReclaimOurEra.class, @@ -897,7 +996,7 @@ public class QuestMasterHandler Q10450_ADarkAmbition.class, Q10452_IsItEdible.class, Q10453_StoppingTheWindDragon.class, - Q10454_FinalEmbryoApostle.class, // TODO: Not done. + Q10454_FinalEmbryoApostle.class, Q10455_ElikiasLetter.class, Q10456_OperationRescue.class, Q10457_KefensisIllusion.class, // TODO: Not done. @@ -1071,7 +1170,7 @@ public class QuestMasterHandler Q10843_AnomalyInTheEnchantedValley.class, Q10844_BloodyBattleSeizingSupplies.class, Q10845_BloodyBattleRescueTheSmiths.class, // TODO: Not done. - Q10846_BloodyBattleMeetingTheCommander.class, // TODO: Not done. + Q10846_BloodyBattleMeetingTheCommander.class, Q10848_TrialsBeforeTheBattle.class, // TODO: Not done. Q10849_TrialsForAdaptation.class, Q10851_ElvenBotany.class, diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.java deleted file mode 100644 index 4607e3d7d8..0000000000 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.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 Q00665_BasicTrainingForHunterGuildMember extends Quest -{ - private static final int START_NPC = 34267; - - public Q00665_BasicTrainingForHunterGuildMember() - { - super(665); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.java deleted file mode 100644 index 60bd6d6b2f..0000000000 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.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 Q00666_HunterGuildMembersKnowledge extends Quest -{ - private static final int START_NPC = 34267; - - public Q00666_HunterGuildMembersKnowledge() - { - super(666); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.java deleted file mode 100644 index 9678dfa038..0000000000 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.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 Q00668_ABattleWithTheGiants extends Quest -{ - private static final int START_NPC = 34267; - - public Q00668_ABattleWithTheGiants() - { - super(668); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java deleted file mode 100644 index 88dc08f95f..0000000000 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.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 Q00845_SabotageTheEmbryoSupplies extends Quest -{ - private static final int START_NPC = 34235; - - public Q00845_SabotageTheEmbryoSupplies() - { - super(845); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.java deleted file mode 100644 index 33d310b292..0000000000 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.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 Q10454_FinalEmbryoApostle extends Quest -{ - private static final int START_NPC = 34319; - - public Q10454_FinalEmbryoApostle() - { - super(10454); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java deleted file mode 100644 index caad5680c7..0000000000 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.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 Q10846_BloodyBattleMeetingTheCommander extends Quest -{ - private static final int START_NPC = 34064; - - public Q10846_BloodyBattleMeetingTheCommander() - { - super(10846); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/MissingQuests.txt index 07b95c787b..8f56702b7b 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/MissingQuests.txt @@ -19,10 +19,7 @@ 591 Great Ambitions 599 Demons and Dimensional Energy 655 A Grand Plan for Taming Wild Beasts -665 Basic Training for Hunter Guild Member -666 Knowledgeable Hunter Guild Member 667 How to Cover Shilen's Eyes -668 Fight with Giants 669 Intense Fight against Dragon 671 Path to Finding the Past 672 Embryo the Archenemy @@ -115,7 +112,6 @@ 840 Request from the Kingdom's Royal Guard 841 Contamination Containment 843 Giant Evolution Control -845 Sabotage the Embryo Supplies 846 Building up Strength 861 Kain's Choice 863 Red Libra Request - Shadow of the Mother Tree @@ -146,7 +142,6 @@ 10373 Exploring the Dimension - Sealing the Dimension 10418 The Immortal Pirate King 10423 Embryo Stronghold Ambush -10454 Final Embryo Apostle 10457 Kefensis' Illusion 10506 Diana's Request 10529 Ivory Tower's Research - Sea of Spores Journal @@ -176,7 +171,6 @@ 10748 Mysterious Suggestion - 1 10749 Mysterious Suggestion - 2 10845 Bloody Battle - Rescue the Smiths -10846 Bloody Battle - Meeting the Commander 10848 Trials before the Battle 10853 To Weaken the Giants 10854 To Seize the Fortress diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm new file mode 100644 index 0000000000..3476ffaf41 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm @@ -0,0 +1,5 @@ +Truth Seeker Devianne:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 85 and above.) + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm new file mode 100644 index 0000000000..9992fc54f4 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm new file mode 100644 index 0000000000..2a978b7e40 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm new file mode 100644 index 0000000000..b7c33ac260 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm new file mode 100644 index 0000000000..b73e11146f --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm @@ -0,0 +1,7 @@ +Truth Seeker Devianne:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 1 Mutated Spirit's Souls. +Intermediate Mission - Collect 2 Mutated Spirit's Souls.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm new file mode 100644 index 0000000000..fb95f5233a --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm @@ -0,0 +1,7 @@ +Truth Seeker Devianne:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 1 Mutated Spirit's Souls. +Intermediate Mission - Collect 2 Mutated Spirit's Souls.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html new file mode 100644 index 0000000000..dc93ea7c77 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Your Unworldly Visitors Faction Level Must be 4 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html new file mode 100644 index 0000000000..b47d121ffc --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+You have chosen the basic mission to collect 1 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html new file mode 100644 index 0000000000..1521f2ee16 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+You have chosen the intermediate mission to collect 2 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html new file mode 100644 index 0000000000..57ea01e11a --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 1 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html new file mode 100644 index 0000000000..1ecdec6db3 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 2 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html new file mode 100644 index 0000000000..022334232b --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Go to the Garden of Spirits and defeat all type monsters until you collect 1 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html new file mode 100644 index 0000000000..be065b7fc8 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Go to the Garden of Spirits and defeat all type monsters until you collect 2 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html new file mode 100644 index 0000000000..7adb8e96c8 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html @@ -0,0 +1,5 @@ +Truth Seeker Devianne:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html new file mode 100644 index 0000000000..23411c7a99 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java new file mode 100644 index 0000000000..598a07a52d --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java @@ -0,0 +1,271 @@ +/* + * 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.Q00665_BasicTrainingForHunterGuildMember; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestSound; +import org.l2jmobius.gameserver.enums.QuestType; +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.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Basic Training for Hunter Guild Member (665) + * @URL https://l2wiki.com/Basic_Training_for_Hunter_Guild_Member + * @author Dmitri + */ +public class Q00665_BasicTrainingForHunterGuildMember extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + // BOSS + private static final int[] BOSS = + { + 19253, // Zellaka + 19254, // Pelline + 19255, // Kalios + 26102, // Dark Rider + 26136, // Burnstein + 25876, // Maliss + 25877 // Isadora + }; + // Misc + private static final boolean PARTY_QUEST = true; + private static final int MIN_LEVEL = 85; + + public Q00665_BasicTrainingForHunterGuildMember() + { + super(665); + addStartNpc(ARCTURUS); + addTalkId(ARCTURUS); + addKillId(BOSS); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34267-02.htm": + case "34267-03.htm": + case "34267-04.htm": + case "34267-04a.htm": + case "34267-06.html": + case "34267-06a.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case "return": + { + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case "34267-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34267-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34267-10.html": + { + switch (qs.getCond()) + { + case 4: + { + if (player.getLevel() >= MIN_LEVEL) + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 5: + { + if (player.getLevel() >= MIN_LEVEL) + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34267-01.htm"; + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case 2: + { + htmltext = "34267-08.html"; + break; + } + case 3: + { + htmltext = "34267-08a.html"; + break; + } + case 4: + case 5: + { + htmltext = "34267-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34267-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = PARTY_QUEST ? getRandomPartyMemberState(killer, -1, 3, npc) : getQuestState(killer, false); + if ((qs != null) && (qs.getCond() > 1)) + { + switch (qs.getCond()) + { + case 2: + { + final int killedGhosts = qs.getInt("AncientGhosts") + 1; + qs.set("AncientGhosts", killedGhosts); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + + if (killedGhosts >= 1) + { + qs.setCond(4, true); + } + break; + } + case 3: + { + final int killedGhosts = qs.getInt("AncientGhosts") + 1; + qs.set("AncientGhosts", killedGhosts); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + + if (killedGhosts >= 2) + { + qs.setCond(5, true); + } + break; + } + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1)) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.COMPLETE_BASIC_TRAINING.getId(), true, qs.getInt("AncientGhosts"))); + return holder; + } + return super.getNpcLogList(player); + } +} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm new file mode 100644 index 0000000000..b267433caa --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm @@ -0,0 +1,5 @@ +Hunters Guild Member Colin:
+What is it? Do you want to check new missions of the Hunter Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm new file mode 100644 index 0000000000..f25c9ec12c --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+You know that there are areas called Seeds in Gracia, don't you?
+There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.
+The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm new file mode 100644 index 0000000000..3b168d5f6b --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+Are you belittling the Hunter Guild's intelligence? It's all true!
+What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.
+With whom? With both Aden and Gracia, of course.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm new file mode 100644 index 0000000000..18737aa50f --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat Tiat, Tauti, Istina, and Ekimus. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it? + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html new file mode 100644 index 0000000000..73857457eb --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html new file mode 100644 index 0000000000..b22a378594 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html @@ -0,0 +1,4 @@ +Hunters Guild Member Colin:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html new file mode 100644 index 0000000000..eba559c983 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm new file mode 100644 index 0000000000..cba19db0ef --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm @@ -0,0 +1,4 @@ +Hunters Guild Member
+I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.
+(Only characters with Lv. 85 or above and Faction level 1 or above with the Hunters Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm new file mode 100644 index 0000000000..97ab59489d --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm new file mode 100644 index 0000000000..9b5b030273 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+There are areas called �Seeds� in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm new file mode 100644 index 0000000000..4daca56c08 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm new file mode 100644 index 0000000000..74ab81b80e --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat Tiat, Tauti, Istina, and Ekimus and return to me. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html new file mode 100644 index 0000000000..27e12b2eb5 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+You haven't left yet? I told you which Seed Lords you have to deal with.
+They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html new file mode 100644 index 0000000000..a55f565364 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html new file mode 100644 index 0000000000..88123c1f6d --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java new file mode 100644 index 0000000000..1da2d50c34 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java @@ -0,0 +1,210 @@ +/* + * 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.Q00666_HunterGuildMembersKnowledge; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Knowledgeable Hunter Guild Member (666) + * @URL https://l2wiki.com/Knowledgeable_Hunter_Guild_Member + * @author Dmitri + */ +public class Q00666_HunterGuildMembersKnowledge extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + private static final int COLIN = 30703; + // BOSS + private static final int[] BOSES = + { + 3477, // Reinforced Super Kat the Cat + 3479, // Darkened Super Feline Queen + 25933, // Garden Patrol Captain + 3481, // Control-crazed Mew the Cat + 25937, // Spicula Negative + 3473, // Omega Golem + 29163, // Tiat (attack type) + 25886, // Houpon the Warden Overseer + 25902, // Gigantic Golem (96 lvl) + 25887, // Crook the Mad + 26348, // Summoned Garp + 26347, // Summoned Harpas + 26349, // Summoned Moricks + 26431, // Avenger Alusion + 26432, // Avenger Graff + 26312, // Lithra + 26436, // Watcher Setheth + 26435, // Watcher Tristan + 25946, // Antharas' Herald Komabor + 25949, // Lindvior's Herald Numa + 26442, // Mad Cullan + 25922, // Nerva Chief Turakan + 26005, // Nerva Orc Nergatt + 26001, // Amden Orc Turation + 25929, // Tegaffe + 25931, // Theor + 25948, // Valakas' Herald Potigia + 25983, // Varkaron + 25982, // Varmonia + 25957, // Vengeful Agarez + 25961, // Vengeful Agonia + 25960, // Vengeful Edaire + 25956, // Vengeful Eligos + 25958, // Vengeful Lerazia + 25959, // Vengeful Oretross + 26441, // Witch Moira + 26440, // Arrogant Lebruum + 26439, // Ferocious Valac + 26438, // Berserker Tabris + 26437, // Berserker Zetahl + 29374, // Cyrax + 26433, // Demon Venoma + 26434, // Fiend Sarboth + 26443, // Akrikhin Charon + 26444, // Scorpion King Votan + 25876, // + 25877 // + }; + // Misc + private static final int MIN_LEVEL = 85; + + public Q00666_HunterGuildMembersKnowledge() + { + super(666); + addStartNpc(ARCTURUS, COLIN); + addTalkId(ARCTURUS, COLIN); + addKillId(BOSES); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + addFactionLevel(Faction.HUNTERS_GUILD, 1, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + switch (event) + { + case "30703-02.htm": + case "30703-03.htm": + case "34267-02.htm": + case "34267-03.htm": + { + htmltext = event; + break; + } + case "30703-04.htm": + case "34267-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30703-07.html": + case "34267-07.html": + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, 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: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = "30703-01.htm"; + break; + } + case ARCTURUS: + { + htmltext = "34267-01.htm"; + break; + } + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html"; + break; + } + case ARCTURUS: + { + htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html"; + break; + } + } + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + break; + } + qs.setState(State.CREATED); + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm new file mode 100644 index 0000000000..a9775c44e1 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm @@ -0,0 +1,5 @@ +Hunters Guild Member Colin:
+What is it? Do you want to check new missions of the Hunter Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm new file mode 100644 index 0000000000..ba07699031 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+You know that there are areas called Seeds in Gracia, don't you?
+There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.
+The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm new file mode 100644 index 0000000000..a1f4e73631 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+Are you belittling the Hunter Guild's intelligence? It's all true!
+What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.
+With whom? With both Aden and Gracia, of course.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm new file mode 100644 index 0000000000..18737aa50f --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat Tiat, Tauti, Istina, and Ekimus. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it? + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html new file mode 100644 index 0000000000..73857457eb --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html new file mode 100644 index 0000000000..d8a57921b1 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html @@ -0,0 +1,4 @@ +Hunters Guild Member Colin:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html new file mode 100644 index 0000000000..eba559c983 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm new file mode 100644 index 0000000000..cba19db0ef --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm @@ -0,0 +1,4 @@ +Hunters Guild Member
+I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.
+(Only characters with Lv. 85 or above and Faction level 1 or above with the Hunters Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm new file mode 100644 index 0000000000..ffb5c1668c --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm new file mode 100644 index 0000000000..7edc5a0823 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+There are areas called �Seeds� in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm new file mode 100644 index 0000000000..cdf6783bc5 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm new file mode 100644 index 0000000000..74ab81b80e --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat Tiat, Tauti, Istina, and Ekimus and return to me. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html new file mode 100644 index 0000000000..27e12b2eb5 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+You haven't left yet? I told you which Seed Lords you have to deal with.
+They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html new file mode 100644 index 0000000000..175416348c --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html new file mode 100644 index 0000000000..88123c1f6d --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java new file mode 100644 index 0000000000..427b865d4f --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java @@ -0,0 +1,168 @@ +/* + * 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.Q00668_ABattleWithTheGiants; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Fight with the Giants (668) + * @URL https://l2wiki.com/Fight_with_the_Giants + * @author Dmitri + */ +public class Q00668_ABattleWithTheGiants extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + private static final int COLIN = 30703; + // BOSS + private static final int[] BOSES = + { + 29305, // Helios + 26143, // Ramona + 26148, // Enhanced Mimir + 26157, // Enhanced Harnak's Wraith + 26152 // Enhanced Core + }; + // Misc + private static final int MIN_LEVEL = 85; + + public Q00668_ABattleWithTheGiants() + { + super(668); + addStartNpc(ARCTURUS, COLIN); + addTalkId(ARCTURUS, COLIN); + addKillId(BOSES); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + addFactionLevel(Faction.HUNTERS_GUILD, 1, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + switch (event) + { + case "30703-02.htm": + case "30703-03.htm": + case "34267-02.htm": + case "34267-03.htm": + { + htmltext = event; + break; + } + case "30703-04.htm": + case "34267-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30703-07.html": + case "34267-07.html": + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, 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: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = "30703-01.htm"; + break; + } + case ARCTURUS: + { + htmltext = "34267-01.htm"; + break; + } + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html"; + break; + } + case ARCTURUS: + { + htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html"; + break; + } + } + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + break; + } + qs.setState(State.CREATED); + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm new file mode 100644 index 0000000000..1a69dcdfd3 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm @@ -0,0 +1,5 @@ +Logart van Dyke:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 101, quest Complete Bloody Battle - Seizing Supplies and fraction Kingdom’s Royal Guard amity level 2 or above.) + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm new file mode 100644 index 0000000000..cdaa8cf547 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm new file mode 100644 index 0000000000..124f484233 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm @@ -0,0 +1,4 @@ +Logart van Dyke:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm new file mode 100644 index 0000000000..fba37beef7 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm new file mode 100644 index 0000000000..511065d50d --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm new file mode 100644 index 0000000000..472e10842b --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm new file mode 100644 index 0000000000..c554368bc0 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html new file mode 100644 index 0000000000..a7f1677e84 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 5 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html new file mode 100644 index 0000000000..6baf75b3c0 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 8 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html new file mode 100644 index 0000000000..9b160c1ac5 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the basic mission to collect 40 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html new file mode 100644 index 0000000000..9140501de5 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the intermediate mission to collect 80 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html new file mode 100644 index 0000000000..f3712c7387 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the advanced mission to collect 120 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html new file mode 100644 index 0000000000..edc546a10f --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html @@ -0,0 +1,4 @@ +Fairy Mimyu:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 40 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html new file mode 100644 index 0000000000..8d3c0d3031 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 80 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html new file mode 100644 index 0000000000..7f0075d93e --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 120 Mutated Spirit's Souls. It should be manageable. +y> \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html new file mode 100644 index 0000000000..d491294b59 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 40 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html new file mode 100644 index 0000000000..7c59e3a000 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 80 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html new file mode 100644 index 0000000000..5e8c893849 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 120 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html new file mode 100644 index 0000000000..508422d7f9 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html @@ -0,0 +1,5 @@ +Logart van Dyke:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html new file mode 100644 index 0000000000..118d5a38cc --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java new file mode 100644 index 0000000000..924df96196 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java @@ -0,0 +1,356 @@ +/* + * 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.Q00845_SabotageTheEmbryoSupplies; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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 quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; + +/** + * Sabotage the Embryo Supplies (845) + * @URL https://l2wiki.com/Sabotage_the_Embryo_Supplies + * @author Dmitri + */ +public class Q00845_SabotageTheEmbryoSupplies extends Quest +{ + // NPCs + private static final int LOGART_VAN_DYKE = 34235; + // Monsters + private static final int[] MONSTERS = + { + 23589, // + 23507, // + 23506, // + 23505, // + 23508, // + 23537, // + 23538, // + 23509, // + 23512, // + 23511 // + }; + // Items + private static final int EMBRYO_SUPPLIES = 47197; + // Rewards + private static final int BASIC_SUPPLY_BOX = 47175; // Kingdom's Royal Guard Basic Supply Box Atelia Fortress + private static final int INTERMEDIATE_SUPPLY_BOX = 47176; // Kingdom's Royal Guard Intermediate Supply Box Atelia Fortress + private static final int ADVANCED_SUPPLY_BOX = 47177; // Kingdom's Royal Guard Advanced Supply Box Atelia Fortress + // Misc + private static final int MIN_LEVEL = 101; + + public Q00845_SabotageTheEmbryoSupplies() + { + super(845); + addStartNpc(LOGART_VAN_DYKE); + addTalkId(LOGART_VAN_DYKE); + addKillId(MONSTERS); + registerQuestItems(EMBRYO_SUPPLIES); + addCondMinLevel(MIN_LEVEL, "34235-00.htm"); + addCondCompletedQuest(Q10844_BloodyBattleSeizingSupplies.class.getSimpleName(), "34235-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 2, "34235-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34235-02.htm": + case "34235-03.htm": + case "34235-04.htm": + case "34235-04a.htm": + case "34235-04b.htm": + case "34235-06.html": + case "34235-06a.html": + case "34235-06b.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "return": + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "34235-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34235-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34235-07b.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34235-10.html": + { + final int chance = getRandom(100); + switch (qs.getCond()) + { + case 5: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 40) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + addExpAndSp(player, 18155754360L, 18155700); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 6: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 80) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + addExpAndSp(player, 36311508720L, 36311400); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 200); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 7: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 120) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + addExpAndSp(player, 54467263080L, 54467100); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 300); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34235-01.htm"; + // fallthrough? + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case 2: + { + htmltext = "34235-08.html"; + break; + } + case 3: + { + htmltext = "34235-08a.html"; + break; + } + case 4: + { + htmltext = "34235-08b.html"; + break; + } + case 5: + case 6: + case 7: + { + htmltext = "34235-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34235-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + switch (qs.getCond()) + { + case 2: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 40, 0.5, true)) + { + qs.setCond(5, true); + } + break; + } + case 3: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 80, 0.5, true)) + { + qs.setCond(6, true); + } + break; + } + case 4: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 120, 0.5, true)) + { + qs.setCond(7, true); + } + break; + } + } + } + } +} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm new file mode 100644 index 0000000000..11476c760e --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm @@ -0,0 +1,4 @@ +Erda:
+In order to take on this mission, you must first build more trust with us.
+(Only characters with faction level 5 or above with the Blackbird Clan may undertake this quest.)
+ \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm new file mode 100644 index 0000000000..a0b8470772 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm @@ -0,0 +1,4 @@ +Erda:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm new file mode 100644 index 0000000000..86d31ba146 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm @@ -0,0 +1,4 @@ +Erda:
+Herphah wants you to do some missions, and I'll chose an appropriate mission depending on your relationship with us at the Adventure Guild.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm new file mode 100644 index 0000000000..c59b0182bb --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm @@ -0,0 +1,4 @@ +Erda:
+Your mission is to assist with the task at the Altar of Evil. If successful, our Adventure Guild will give you additional rewards on top of the mission payment and your relationship with our faction will grow even stronger.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm new file mode 100644 index 0000000000..f9372620f5 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm @@ -0,0 +1,4 @@ +Erda:
+You've already leamed everything you need to know about the mission. By that I mean, how to go to the Altar of Evil. You should be able to start the mission right away without further explanation.
+But if you want to listen to the explanation again, I'd be happy to tell you. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html new file mode 100644 index 0000000000..4c6743798e --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html @@ -0,0 +1,3 @@ +Erda:
+Good choice. Now, go to Black Wizard Lapathia at the Altar of Evil and do the mission that she gives you. When the mission is done, come back to me.
+ \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html new file mode 100644 index 0000000000..5d7d3c0ec0 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html @@ -0,0 +1,5 @@ +Erda:
+I asked the Adventure Guild to send an adventurer but didn't expect they would send you. I'd like to see how good you are.
+(To do "Basic Mission: Isle of Souls," you must do "Uncover the Secret" and "More Aggressive Operation" through Black Wizard Lapathia.)
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html new file mode 100644 index 0000000000..6ed406518a --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html @@ -0,0 +1,5 @@ +Erda:
+You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?
+Don't tell me you're going to walk all the way up there. I know a better way.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html new file mode 100644 index 0000000000..656a032c61 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html @@ -0,0 +1,4 @@ +Erda:
+When setting out for a joumey, veteran adventurers always pack Scrolls of Escape, it teleports the user immediately to the closest village or to the check point.
+If you have these useful items, you can move easily after hunting or when you are far away from the village. Since you've been a great help to me, I'll give you the scroll that can teleport you directly to the Town of Aden. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java new file mode 100644 index 0000000000..9b99af37cd --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java @@ -0,0 +1,142 @@ +/* + * 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.Q10454_FinalEmbryoApostle; + +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; + +/** + * Final Embryo Apostle (10454) + * @URL https://l2wiki.com/Final_Embryo_Apostle + * @author Dmitri + */ +public class Q10454_FinalEmbryoApostle extends Quest +{ + // NPCs + private static final int ERDA = 34319; + // Boss + private static final int CAMILLE = 26236; // Camille - Inner Messiahs Castle + // Item + private static final int SCROLL_ENCHANT_R_GRADE_WEAPON = 19447; + private static final int SCROLL_ENCHANT_R_GRADE_ARMOR = 19448; + // Misc + private static final int MIN_LEVEL = 102; + + public Q10454_FinalEmbryoApostle() + { + super(10454); + addStartNpc(ERDA); + addTalkId(ERDA); + addKillId(CAMILLE); + addCondMinLevel(MIN_LEVEL, "34319-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34319-02.htm": + case "34319-03.htm": + case "34319-07.html": + { + htmltext = event; + break; + } + case "34319-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34319-08.html": + { + if (qs.isCond(2)) + { + giveItems(player, SCROLL_ENCHANT_R_GRADE_WEAPON, 1); + giveItems(player, SCROLL_ENCHANT_R_GRADE_ARMOR, 1); + addExpAndSp(player, 36255499714L, 87013199); + 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: + { + htmltext = "34319-01.htm"; + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "34319-05.html"; + } + else + { + htmltext = "34319-06.html"; + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm new file mode 100644 index 0000000000..f0a307e4c0 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm @@ -0,0 +1,4 @@ +Hurak:
+I do not believe our paths are meant to cross here. Perhaps later down the road.
+(This quest can only be undertaken by characters with Lv. 101 or higher whose faction level with the Kingdom's Royal Guard is 4 or higher and Complete quest: Bloody Battle - Rescue the Smiths.) + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm new file mode 100644 index 0000000000..472bc369fb --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm @@ -0,0 +1,5 @@ +Hurak:
+It's been a while since we've found the Atelia Fortress.
+In that time though, the fortress has become more structured, which worries me.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm new file mode 100644 index 0000000000..317de0276c --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm @@ -0,0 +1,4 @@ +Hurak:
+We have to make sure no issues arise here until Leona comes back from Hellbound. We aren't doing so well, though.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm new file mode 100644 index 0000000000..a1206b25b0 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm @@ -0,0 +1,5 @@ +Hurak:
+The Atelia Fortress is more structured now.
+Until recently, they didn't have the means to get supplies or train soldiers when they isolated themselves, but now they can do all that within.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm new file mode 100644 index 0000000000..ab3bda70b9 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm @@ -0,0 +1,5 @@ +Hurak:
+According to the information we got from the clan members inside the fortress, they are building different facilities on each floor.
+I've asked Leona for reinforcements, but they are not doing so great either. We need people who can help us. Do you think you can do it?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm new file mode 100644 index 0000000000..3a2b2da63b --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm @@ -0,0 +1,4 @@ +Hurak:
+Glad to hear you'll be helping us. Devianne has already infiltrated the fortress and is in contact with our clan members.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html new file mode 100644 index 0000000000..8080af69ae --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html @@ -0,0 +1,4 @@ +Hurak:
+Devianne has already infiltrated the fortress, but you'll need to find out where she is from the people who are inside.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html new file mode 100644 index 0000000000..32224236b7 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html @@ -0,0 +1,5 @@ +Devianne:
+Elikia said someone would come find me. I guess that was you? The fortress is becoming more systemized by the way, which worries me.
+We are not ready yet, and the Embryo are already expanding their forces.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html new file mode 100644 index 0000000000..9773ec8489 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html @@ -0,0 +1,7 @@ +Devianne:
+I found just a while ago that the fortress is becoming more systemized.
+They've built a supply base, and I saw that they are distributing supplies to the soldiers within the fortress. I would love to go and destroy their supply base...
+Recently, I met Devianne, and she told me about the commander of the fortress.
+She said to create uproars around the fortress to stop the flow of their work inside... Do you think you can help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html new file mode 100644 index 0000000000..d2b1eeecdc --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html @@ -0,0 +1,5 @@ +Devianne:
+It's not that difficult. You must have seen the supply boxes laying around. They started getting supplies regularly, but they are still not organized.
+Please open those supply boxes and get me the supplies. Don't just open any box though. There are some traps that could make it very dangerous.
+ Oh, and one more thing! If you defeat the Quartermasters, the soldiers will be affected, making it easier to steal their supplies. + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java new file mode 100644 index 0000000000..2331455ece --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java @@ -0,0 +1,161 @@ +/* + * 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.Q10846_BloodyBattleMeetingTheCommander; + +import org.l2jmobius.gameserver.enums.Faction; +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; + +/** + * Bloody Battle - Meeting the Commander (10846) + * @URL https://l2wiki.com/Bloody_Battle_-_Meeting_the_Commander + * @author Dmitri + */ +public class Q10846_BloodyBattleMeetingTheCommander extends Quest +{ + // NPCs + private static final int HURAK = 34064; + private static final int DEVIANNE = 34323; + // MiniBoss + private static final int BURNSTEIN = 26136; // Burnstein + // Item + private static final int RUNE_STONE = 39738; + private static final int SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE = 46158; + // Misc + private static final int MIN_LEVEL = 101; + + public Q10846_BloodyBattleMeetingTheCommander() + { + super(10846); + addStartNpc(HURAK); + addTalkId(HURAK, DEVIANNE); + addKillId(BURNSTEIN); + addCondMinLevel(MIN_LEVEL, "34064-00.htm"); + // addCondCompletedQuest(Q10845_BloodyBattleRescueTheSmiths.class.getSimpleName(), "34064-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 4, "34064-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34064-04.htm": + case "34064-03.htm": + case "34064-02.htm": + case "34323-02.html": + { + htmltext = event; + break; + } + case "34064-05.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34323-03.html": + { + if (qs.isCond(2)) + { + giveItems(player, RUNE_STONE, 1); + giveItems(player, SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE, 1); + addExpAndSp(player, 7262301690L, 17429400); + 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() == HURAK) + { + htmltext = "34064-01.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case HURAK: + { + if (qs.isCond(1)) + { + htmltext = "34064-06.html"; + } + break; + } + case DEVIANNE: + { + if (qs.isCond(2)) + { + htmltext = "34323-01.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/QuestMasterHandler.java index bc1de82a35..97e400f255 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -140,6 +140,9 @@ import quests.Q00627_HeartInSearchOfPower.Q00627_HeartInSearchOfPower; import quests.Q00648_AnIceMerchantsDream.Q00648_AnIceMerchantsDream; import quests.Q00662_AGameOfCards.Q00662_AGameOfCards; import quests.Q00663_SeductiveWhispers.Q00663_SeductiveWhispers; +import quests.Q00665_BasicTrainingForHunterGuildMember.Q00665_BasicTrainingForHunterGuildMember; +import quests.Q00666_HunterGuildMembersKnowledge.Q00666_HunterGuildMembersKnowledge; +import quests.Q00668_ABattleWithTheGiants.Q00668_ABattleWithTheGiants; import quests.Q00670_DefeatingTheLordOfSeed.Q00670_DefeatingTheLordOfSeed; import quests.Q00674_ChangesInTheShadowOfTheMotherTree.Q00674_ChangesInTheShadowOfTheMotherTree; import quests.Q00675_WhatTheThreadOfThePastShows.Q00675_WhatTheThreadOfThePastShows; @@ -184,6 +187,7 @@ import quests.Q00833_DevilsTreasureTauti.Q00833_DevilsTreasureTauti; import quests.Q00835_PitiableMelisa.Q00835_PitiableMelisa; import quests.Q00842_CaptiveDemons.Q00842_CaptiveDemons; import quests.Q00844_GiantsTreasure.Q00844_GiantsTreasure; +import quests.Q00845_SabotageTheEmbryoSupplies.Q00845_SabotageTheEmbryoSupplies; import quests.Q00901_HowLavasaurusesAreMade.Q00901_HowLavasaurusesAreMade; import quests.Q00902_ReclaimOurEra.Q00902_ReclaimOurEra; import quests.Q00903_TheCallOfAntharas.Q00903_TheCallOfAntharas; @@ -302,6 +306,7 @@ import quests.Q10446_HitAndRun.Q10446_HitAndRun; import quests.Q10447_TimingIsEverything.Q10447_TimingIsEverything; import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition; import quests.Q10453_StoppingTheWindDragon.Q10453_StoppingTheWindDragon; +import quests.Q10454_FinalEmbryoApostle.Q10454_FinalEmbryoApostle; import quests.Q10455_ElikiasLetter.Q10455_ElikiasLetter; import quests.Q10456_OperationRescue.Q10456_OperationRescue; import quests.Q10459_ASickAmbition.Q10459_ASickAmbition; @@ -446,6 +451,7 @@ import quests.Q10840_TimeToRecover.Q10840_TimeToRecover; import quests.Q10841_DeepInsideAteliaFortress.Q10841_DeepInsideAteliaFortress; import quests.Q10843_AnomalyInTheEnchantedValley.Q10843_AnomalyInTheEnchantedValley; import quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; +import quests.Q10846_BloodyBattleMeetingTheCommander.Q10846_BloodyBattleMeetingTheCommander; import quests.Q10849_TrialsForAdaptation.Q10849_TrialsForAdaptation; import quests.Q10851_ElvenBotany.Q10851_ElvenBotany; import quests.Q10852_TheMotherTreeRevivalProject.Q10852_TheMotherTreeRevivalProject; @@ -606,10 +612,10 @@ public class QuestMasterHandler Q00655_AGrandPlanForTamingWildBeasts.class, // TODO: Not done. Q00662_AGameOfCards.class, Q00663_SeductiveWhispers.class, - Q00665_BasicTrainingForHunterGuildMember.class, // TODO: Not done. - Q00666_HunterGuildMembersKnowledge.class, // TODO: Not done. + Q00665_BasicTrainingForHunterGuildMember.class, + Q00666_HunterGuildMembersKnowledge.class, Q00667_CoveringShilensEyes.class, // TODO: Not done. - Q00668_ABattleWithTheGiants.class, // TODO: Not done. + Q00668_ABattleWithTheGiants.class, Q00669_DesperateFightWithTheDragons.class, // TODO: Not done. Q00670_DefeatingTheLordOfSeed.class, Q00671_PathToFindingThePast.class, // TODO: Not done. @@ -679,7 +685,7 @@ public class QuestMasterHandler Q00842_CaptiveDemons.class, Q00843_GiantEvolutionControl.class, // TODO: Not done. Q00844_GiantsTreasure.class, - Q00845_SabotageTheEmbryoSupplies.class, // TODO: Not done. + Q00845_SabotageTheEmbryoSupplies.class, Q00846_BuildingUpStrength.class, // TODO: Not done. Q00901_HowLavasaurusesAreMade.class, Q00902_ReclaimOurEra.class, @@ -811,7 +817,7 @@ public class QuestMasterHandler Q10447_TimingIsEverything.class, Q10450_ADarkAmbition.class, Q10453_StoppingTheWindDragon.class, - Q10454_FinalEmbryoApostle.class, // TODO: Not done. + Q10454_FinalEmbryoApostle.class, Q10455_ElikiasLetter.class, Q10456_OperationRescue.class, Q10457_KefensisIllusion.class, // TODO: Not done. @@ -983,7 +989,7 @@ public class QuestMasterHandler Q10843_AnomalyInTheEnchantedValley.class, Q10844_BloodyBattleSeizingSupplies.class, Q10845_BloodyBattleRescueTheSmiths.class, // TODO: Not done. - Q10846_BloodyBattleMeetingTheCommander.class, // TODO: Not done. + Q10846_BloodyBattleMeetingTheCommander.class, Q10848_TrialsBeforeTheBattle.class, // TODO: Not done. Q10849_TrialsForAdaptation.class, Q10851_ElvenBotany.class, diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.java deleted file mode 100644 index 4607e3d7d8..0000000000 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.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 Q00665_BasicTrainingForHunterGuildMember extends Quest -{ - private static final int START_NPC = 34267; - - public Q00665_BasicTrainingForHunterGuildMember() - { - super(665); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.java deleted file mode 100644 index 60bd6d6b2f..0000000000 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.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 Q00666_HunterGuildMembersKnowledge extends Quest -{ - private static final int START_NPC = 34267; - - public Q00666_HunterGuildMembersKnowledge() - { - super(666); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.java deleted file mode 100644 index 9678dfa038..0000000000 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.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 Q00668_ABattleWithTheGiants extends Quest -{ - private static final int START_NPC = 34267; - - public Q00668_ABattleWithTheGiants() - { - super(668); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java deleted file mode 100644 index 88dc08f95f..0000000000 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.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 Q00845_SabotageTheEmbryoSupplies extends Quest -{ - private static final int START_NPC = 34235; - - public Q00845_SabotageTheEmbryoSupplies() - { - super(845); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.java deleted file mode 100644 index 33d310b292..0000000000 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.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 Q10454_FinalEmbryoApostle extends Quest -{ - private static final int START_NPC = 34319; - - public Q10454_FinalEmbryoApostle() - { - super(10454); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java deleted file mode 100644 index caad5680c7..0000000000 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.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 Q10846_BloodyBattleMeetingTheCommander extends Quest -{ - private static final int START_NPC = 34064; - - public Q10846_BloodyBattleMeetingTheCommander() - { - super(10846); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} 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 5becfa984a..f24a56321a 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 @@ -27,10 +27,7 @@ 596 Special Mission: Defeat Baylor 599 Demons and Dimensional Energy 655 A Grand Plan for Taming Wild Beasts -665 Basic Training for Hunter Guild Member -666 Knowledgeable Hunter Guild Member 667 How to Cover Shilen's Eyes -668 Fight with Giants 669 Intense Fight against Dragon 671 Path to Finding the Past 672 Embryo the Archenemy @@ -123,7 +120,6 @@ 840 Request from the Kingdom's Royal Guard 841 Contamination Containment 843 Giant Evolution Control -845 Sabotage the Embryo Supplies 846 Building up Strength 861 Kain's Choice 863 Red Libra Request - Shadow of the Mother Tree @@ -153,7 +149,6 @@ 10356 Blacksmith's Soul-awakening Weapon - 2 10373 Exploring the Dimension - Sealing the Dimension 10418 The Immortal Pirate King -10454 Final Embryo Apostle 10457 Kefensis' Illusion 10535 Blacksmith's Soul-awakening Weapon - 3 10552 Challenge! Balthus Knight! @@ -182,7 +177,6 @@ 10748 Mysterious Suggestion - 1 10749 Mysterious Suggestion - 2 10845 Bloody Battle - Rescue the Smiths -10846 Bloody Battle - Meeting the Commander 10848 Trials before the Battle 10853 To Weaken the Giants 10854 To Seize the Fortress diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm new file mode 100644 index 0000000000..3476ffaf41 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm @@ -0,0 +1,5 @@ +Truth Seeker Devianne:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 85 and above.) + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm new file mode 100644 index 0000000000..9992fc54f4 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm new file mode 100644 index 0000000000..2a978b7e40 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm new file mode 100644 index 0000000000..b7c33ac260 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm new file mode 100644 index 0000000000..b73e11146f --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm @@ -0,0 +1,7 @@ +Truth Seeker Devianne:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 1 Mutated Spirit's Souls. +Intermediate Mission - Collect 2 Mutated Spirit's Souls.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm new file mode 100644 index 0000000000..fb95f5233a --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm @@ -0,0 +1,7 @@ +Truth Seeker Devianne:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 1 Mutated Spirit's Souls. +Intermediate Mission - Collect 2 Mutated Spirit's Souls.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html new file mode 100644 index 0000000000..dc93ea7c77 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Your Unworldly Visitors Faction Level Must be 4 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html new file mode 100644 index 0000000000..b47d121ffc --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+You have chosen the basic mission to collect 1 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html new file mode 100644 index 0000000000..1521f2ee16 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+You have chosen the intermediate mission to collect 2 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html new file mode 100644 index 0000000000..57ea01e11a --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 1 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html new file mode 100644 index 0000000000..1ecdec6db3 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 2 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html new file mode 100644 index 0000000000..022334232b --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Go to the Garden of Spirits and defeat all type monsters until you collect 1 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html new file mode 100644 index 0000000000..be065b7fc8 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Go to the Garden of Spirits and defeat all type monsters until you collect 2 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html new file mode 100644 index 0000000000..7adb8e96c8 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html @@ -0,0 +1,5 @@ +Truth Seeker Devianne:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html new file mode 100644 index 0000000000..23411c7a99 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java new file mode 100644 index 0000000000..598a07a52d --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java @@ -0,0 +1,271 @@ +/* + * 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.Q00665_BasicTrainingForHunterGuildMember; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestSound; +import org.l2jmobius.gameserver.enums.QuestType; +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.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Basic Training for Hunter Guild Member (665) + * @URL https://l2wiki.com/Basic_Training_for_Hunter_Guild_Member + * @author Dmitri + */ +public class Q00665_BasicTrainingForHunterGuildMember extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + // BOSS + private static final int[] BOSS = + { + 19253, // Zellaka + 19254, // Pelline + 19255, // Kalios + 26102, // Dark Rider + 26136, // Burnstein + 25876, // Maliss + 25877 // Isadora + }; + // Misc + private static final boolean PARTY_QUEST = true; + private static final int MIN_LEVEL = 85; + + public Q00665_BasicTrainingForHunterGuildMember() + { + super(665); + addStartNpc(ARCTURUS); + addTalkId(ARCTURUS); + addKillId(BOSS); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34267-02.htm": + case "34267-03.htm": + case "34267-04.htm": + case "34267-04a.htm": + case "34267-06.html": + case "34267-06a.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case "return": + { + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case "34267-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34267-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34267-10.html": + { + switch (qs.getCond()) + { + case 4: + { + if (player.getLevel() >= MIN_LEVEL) + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 5: + { + if (player.getLevel() >= MIN_LEVEL) + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34267-01.htm"; + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case 2: + { + htmltext = "34267-08.html"; + break; + } + case 3: + { + htmltext = "34267-08a.html"; + break; + } + case 4: + case 5: + { + htmltext = "34267-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34267-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = PARTY_QUEST ? getRandomPartyMemberState(killer, -1, 3, npc) : getQuestState(killer, false); + if ((qs != null) && (qs.getCond() > 1)) + { + switch (qs.getCond()) + { + case 2: + { + final int killedGhosts = qs.getInt("AncientGhosts") + 1; + qs.set("AncientGhosts", killedGhosts); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + + if (killedGhosts >= 1) + { + qs.setCond(4, true); + } + break; + } + case 3: + { + final int killedGhosts = qs.getInt("AncientGhosts") + 1; + qs.set("AncientGhosts", killedGhosts); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + + if (killedGhosts >= 2) + { + qs.setCond(5, true); + } + break; + } + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1)) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.COMPLETE_BASIC_TRAINING.getId(), true, qs.getInt("AncientGhosts"))); + return holder; + } + return super.getNpcLogList(player); + } +} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm new file mode 100644 index 0000000000..b267433caa --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm @@ -0,0 +1,5 @@ +Hunters Guild Member Colin:
+What is it? Do you want to check new missions of the Hunter Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm new file mode 100644 index 0000000000..f25c9ec12c --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+You know that there are areas called Seeds in Gracia, don't you?
+There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.
+The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm new file mode 100644 index 0000000000..3b168d5f6b --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+Are you belittling the Hunter Guild's intelligence? It's all true!
+What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.
+With whom? With both Aden and Gracia, of course.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm new file mode 100644 index 0000000000..18737aa50f --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat Tiat, Tauti, Istina, and Ekimus. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it? + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html new file mode 100644 index 0000000000..73857457eb --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html new file mode 100644 index 0000000000..b22a378594 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html @@ -0,0 +1,4 @@ +Hunters Guild Member Colin:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html new file mode 100644 index 0000000000..eba559c983 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm new file mode 100644 index 0000000000..cba19db0ef --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm @@ -0,0 +1,4 @@ +Hunters Guild Member
+I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.
+(Only characters with Lv. 85 or above and Faction level 1 or above with the Hunters Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm new file mode 100644 index 0000000000..97ab59489d --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm new file mode 100644 index 0000000000..20e957a0bb --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+There are areas called “Seeds� in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm new file mode 100644 index 0000000000..4daca56c08 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm new file mode 100644 index 0000000000..74ab81b80e --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat Tiat, Tauti, Istina, and Ekimus and return to me. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html new file mode 100644 index 0000000000..27e12b2eb5 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+You haven't left yet? I told you which Seed Lords you have to deal with.
+They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html new file mode 100644 index 0000000000..a55f565364 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html new file mode 100644 index 0000000000..88123c1f6d --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java new file mode 100644 index 0000000000..1da2d50c34 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java @@ -0,0 +1,210 @@ +/* + * 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.Q00666_HunterGuildMembersKnowledge; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Knowledgeable Hunter Guild Member (666) + * @URL https://l2wiki.com/Knowledgeable_Hunter_Guild_Member + * @author Dmitri + */ +public class Q00666_HunterGuildMembersKnowledge extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + private static final int COLIN = 30703; + // BOSS + private static final int[] BOSES = + { + 3477, // Reinforced Super Kat the Cat + 3479, // Darkened Super Feline Queen + 25933, // Garden Patrol Captain + 3481, // Control-crazed Mew the Cat + 25937, // Spicula Negative + 3473, // Omega Golem + 29163, // Tiat (attack type) + 25886, // Houpon the Warden Overseer + 25902, // Gigantic Golem (96 lvl) + 25887, // Crook the Mad + 26348, // Summoned Garp + 26347, // Summoned Harpas + 26349, // Summoned Moricks + 26431, // Avenger Alusion + 26432, // Avenger Graff + 26312, // Lithra + 26436, // Watcher Setheth + 26435, // Watcher Tristan + 25946, // Antharas' Herald Komabor + 25949, // Lindvior's Herald Numa + 26442, // Mad Cullan + 25922, // Nerva Chief Turakan + 26005, // Nerva Orc Nergatt + 26001, // Amden Orc Turation + 25929, // Tegaffe + 25931, // Theor + 25948, // Valakas' Herald Potigia + 25983, // Varkaron + 25982, // Varmonia + 25957, // Vengeful Agarez + 25961, // Vengeful Agonia + 25960, // Vengeful Edaire + 25956, // Vengeful Eligos + 25958, // Vengeful Lerazia + 25959, // Vengeful Oretross + 26441, // Witch Moira + 26440, // Arrogant Lebruum + 26439, // Ferocious Valac + 26438, // Berserker Tabris + 26437, // Berserker Zetahl + 29374, // Cyrax + 26433, // Demon Venoma + 26434, // Fiend Sarboth + 26443, // Akrikhin Charon + 26444, // Scorpion King Votan + 25876, // + 25877 // + }; + // Misc + private static final int MIN_LEVEL = 85; + + public Q00666_HunterGuildMembersKnowledge() + { + super(666); + addStartNpc(ARCTURUS, COLIN); + addTalkId(ARCTURUS, COLIN); + addKillId(BOSES); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + addFactionLevel(Faction.HUNTERS_GUILD, 1, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + switch (event) + { + case "30703-02.htm": + case "30703-03.htm": + case "34267-02.htm": + case "34267-03.htm": + { + htmltext = event; + break; + } + case "30703-04.htm": + case "34267-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30703-07.html": + case "34267-07.html": + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, 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: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = "30703-01.htm"; + break; + } + case ARCTURUS: + { + htmltext = "34267-01.htm"; + break; + } + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html"; + break; + } + case ARCTURUS: + { + htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html"; + break; + } + } + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + break; + } + qs.setState(State.CREATED); + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm new file mode 100644 index 0000000000..a9775c44e1 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm @@ -0,0 +1,5 @@ +Hunters Guild Member Colin:
+What is it? Do you want to check new missions of the Hunter Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm new file mode 100644 index 0000000000..ba07699031 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+You know that there are areas called Seeds in Gracia, don't you?
+There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.
+The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm new file mode 100644 index 0000000000..a1f4e73631 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+Are you belittling the Hunter Guild's intelligence? It's all true!
+What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.
+With whom? With both Aden and Gracia, of course.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm new file mode 100644 index 0000000000..18737aa50f --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat Tiat, Tauti, Istina, and Ekimus. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it? + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html new file mode 100644 index 0000000000..73857457eb --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html new file mode 100644 index 0000000000..d8a57921b1 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html @@ -0,0 +1,4 @@ +Hunters Guild Member Colin:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html new file mode 100644 index 0000000000..eba559c983 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm new file mode 100644 index 0000000000..cba19db0ef --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm @@ -0,0 +1,4 @@ +Hunters Guild Member
+I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.
+(Only characters with Lv. 85 or above and Faction level 1 or above with the Hunters Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm new file mode 100644 index 0000000000..ffb5c1668c --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm new file mode 100644 index 0000000000..5209384e59 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+There are areas called “Seeds� in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm new file mode 100644 index 0000000000..cdf6783bc5 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm new file mode 100644 index 0000000000..74ab81b80e --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat Tiat, Tauti, Istina, and Ekimus and return to me. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html new file mode 100644 index 0000000000..27e12b2eb5 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+You haven't left yet? I told you which Seed Lords you have to deal with.
+They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html new file mode 100644 index 0000000000..175416348c --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html new file mode 100644 index 0000000000..88123c1f6d --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java new file mode 100644 index 0000000000..427b865d4f --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java @@ -0,0 +1,168 @@ +/* + * 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.Q00668_ABattleWithTheGiants; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Fight with the Giants (668) + * @URL https://l2wiki.com/Fight_with_the_Giants + * @author Dmitri + */ +public class Q00668_ABattleWithTheGiants extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + private static final int COLIN = 30703; + // BOSS + private static final int[] BOSES = + { + 29305, // Helios + 26143, // Ramona + 26148, // Enhanced Mimir + 26157, // Enhanced Harnak's Wraith + 26152 // Enhanced Core + }; + // Misc + private static final int MIN_LEVEL = 85; + + public Q00668_ABattleWithTheGiants() + { + super(668); + addStartNpc(ARCTURUS, COLIN); + addTalkId(ARCTURUS, COLIN); + addKillId(BOSES); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + addFactionLevel(Faction.HUNTERS_GUILD, 1, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + switch (event) + { + case "30703-02.htm": + case "30703-03.htm": + case "34267-02.htm": + case "34267-03.htm": + { + htmltext = event; + break; + } + case "30703-04.htm": + case "34267-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30703-07.html": + case "34267-07.html": + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, 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: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = "30703-01.htm"; + break; + } + case ARCTURUS: + { + htmltext = "34267-01.htm"; + break; + } + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html"; + break; + } + case ARCTURUS: + { + htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html"; + break; + } + } + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + break; + } + qs.setState(State.CREATED); + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm new file mode 100644 index 0000000000..e715154630 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm @@ -0,0 +1,5 @@ +Logart van Dyke:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 101, quest Complete Bloody Battle - Seizing Supplies and fraction Kingdom’s Royal Guard amity level 2 or above.) + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm new file mode 100644 index 0000000000..cdaa8cf547 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm new file mode 100644 index 0000000000..124f484233 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm @@ -0,0 +1,4 @@ +Logart van Dyke:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm new file mode 100644 index 0000000000..fba37beef7 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm new file mode 100644 index 0000000000..511065d50d --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm new file mode 100644 index 0000000000..472e10842b --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm new file mode 100644 index 0000000000..c554368bc0 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html new file mode 100644 index 0000000000..a7f1677e84 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 5 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html new file mode 100644 index 0000000000..6baf75b3c0 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 8 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html new file mode 100644 index 0000000000..9b160c1ac5 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the basic mission to collect 40 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html new file mode 100644 index 0000000000..9140501de5 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the intermediate mission to collect 80 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html new file mode 100644 index 0000000000..f3712c7387 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the advanced mission to collect 120 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html new file mode 100644 index 0000000000..edc546a10f --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html @@ -0,0 +1,4 @@ +Fairy Mimyu:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 40 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html new file mode 100644 index 0000000000..8d3c0d3031 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 80 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html new file mode 100644 index 0000000000..7f0075d93e --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 120 Mutated Spirit's Souls. It should be manageable. +y> \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html new file mode 100644 index 0000000000..d491294b59 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 40 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html new file mode 100644 index 0000000000..7c59e3a000 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 80 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html new file mode 100644 index 0000000000..5e8c893849 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 120 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html new file mode 100644 index 0000000000..508422d7f9 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html @@ -0,0 +1,5 @@ +Logart van Dyke:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html new file mode 100644 index 0000000000..118d5a38cc --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java new file mode 100644 index 0000000000..924df96196 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java @@ -0,0 +1,356 @@ +/* + * 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.Q00845_SabotageTheEmbryoSupplies; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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 quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; + +/** + * Sabotage the Embryo Supplies (845) + * @URL https://l2wiki.com/Sabotage_the_Embryo_Supplies + * @author Dmitri + */ +public class Q00845_SabotageTheEmbryoSupplies extends Quest +{ + // NPCs + private static final int LOGART_VAN_DYKE = 34235; + // Monsters + private static final int[] MONSTERS = + { + 23589, // + 23507, // + 23506, // + 23505, // + 23508, // + 23537, // + 23538, // + 23509, // + 23512, // + 23511 // + }; + // Items + private static final int EMBRYO_SUPPLIES = 47197; + // Rewards + private static final int BASIC_SUPPLY_BOX = 47175; // Kingdom's Royal Guard Basic Supply Box Atelia Fortress + private static final int INTERMEDIATE_SUPPLY_BOX = 47176; // Kingdom's Royal Guard Intermediate Supply Box Atelia Fortress + private static final int ADVANCED_SUPPLY_BOX = 47177; // Kingdom's Royal Guard Advanced Supply Box Atelia Fortress + // Misc + private static final int MIN_LEVEL = 101; + + public Q00845_SabotageTheEmbryoSupplies() + { + super(845); + addStartNpc(LOGART_VAN_DYKE); + addTalkId(LOGART_VAN_DYKE); + addKillId(MONSTERS); + registerQuestItems(EMBRYO_SUPPLIES); + addCondMinLevel(MIN_LEVEL, "34235-00.htm"); + addCondCompletedQuest(Q10844_BloodyBattleSeizingSupplies.class.getSimpleName(), "34235-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 2, "34235-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34235-02.htm": + case "34235-03.htm": + case "34235-04.htm": + case "34235-04a.htm": + case "34235-04b.htm": + case "34235-06.html": + case "34235-06a.html": + case "34235-06b.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "return": + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "34235-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34235-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34235-07b.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34235-10.html": + { + final int chance = getRandom(100); + switch (qs.getCond()) + { + case 5: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 40) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + addExpAndSp(player, 18155754360L, 18155700); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 6: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 80) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + addExpAndSp(player, 36311508720L, 36311400); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 200); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 7: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 120) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + addExpAndSp(player, 54467263080L, 54467100); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 300); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34235-01.htm"; + // fallthrough? + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case 2: + { + htmltext = "34235-08.html"; + break; + } + case 3: + { + htmltext = "34235-08a.html"; + break; + } + case 4: + { + htmltext = "34235-08b.html"; + break; + } + case 5: + case 6: + case 7: + { + htmltext = "34235-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34235-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + switch (qs.getCond()) + { + case 2: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 40, 0.5, true)) + { + qs.setCond(5, true); + } + break; + } + case 3: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 80, 0.5, true)) + { + qs.setCond(6, true); + } + break; + } + case 4: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 120, 0.5, true)) + { + qs.setCond(7, true); + } + break; + } + } + } + } +} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm new file mode 100644 index 0000000000..11476c760e --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm @@ -0,0 +1,4 @@ +Erda:
+In order to take on this mission, you must first build more trust with us.
+(Only characters with faction level 5 or above with the Blackbird Clan may undertake this quest.)
+ \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm new file mode 100644 index 0000000000..a0b8470772 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm @@ -0,0 +1,4 @@ +Erda:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm new file mode 100644 index 0000000000..86d31ba146 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm @@ -0,0 +1,4 @@ +Erda:
+Herphah wants you to do some missions, and I'll chose an appropriate mission depending on your relationship with us at the Adventure Guild.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm new file mode 100644 index 0000000000..c59b0182bb --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm @@ -0,0 +1,4 @@ +Erda:
+Your mission is to assist with the task at the Altar of Evil. If successful, our Adventure Guild will give you additional rewards on top of the mission payment and your relationship with our faction will grow even stronger.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm new file mode 100644 index 0000000000..f9372620f5 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm @@ -0,0 +1,4 @@ +Erda:
+You've already leamed everything you need to know about the mission. By that I mean, how to go to the Altar of Evil. You should be able to start the mission right away without further explanation.
+But if you want to listen to the explanation again, I'd be happy to tell you. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html new file mode 100644 index 0000000000..4c6743798e --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html @@ -0,0 +1,3 @@ +Erda:
+Good choice. Now, go to Black Wizard Lapathia at the Altar of Evil and do the mission that she gives you. When the mission is done, come back to me.
+ \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html new file mode 100644 index 0000000000..5d7d3c0ec0 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html @@ -0,0 +1,5 @@ +Erda:
+I asked the Adventure Guild to send an adventurer but didn't expect they would send you. I'd like to see how good you are.
+(To do "Basic Mission: Isle of Souls," you must do "Uncover the Secret" and "More Aggressive Operation" through Black Wizard Lapathia.)
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html new file mode 100644 index 0000000000..6ed406518a --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html @@ -0,0 +1,5 @@ +Erda:
+You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?
+Don't tell me you're going to walk all the way up there. I know a better way.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html new file mode 100644 index 0000000000..656a032c61 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html @@ -0,0 +1,4 @@ +Erda:
+When setting out for a joumey, veteran adventurers always pack Scrolls of Escape, it teleports the user immediately to the closest village or to the check point.
+If you have these useful items, you can move easily after hunting or when you are far away from the village. Since you've been a great help to me, I'll give you the scroll that can teleport you directly to the Town of Aden. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java new file mode 100644 index 0000000000..9b99af37cd --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java @@ -0,0 +1,142 @@ +/* + * 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.Q10454_FinalEmbryoApostle; + +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; + +/** + * Final Embryo Apostle (10454) + * @URL https://l2wiki.com/Final_Embryo_Apostle + * @author Dmitri + */ +public class Q10454_FinalEmbryoApostle extends Quest +{ + // NPCs + private static final int ERDA = 34319; + // Boss + private static final int CAMILLE = 26236; // Camille - Inner Messiahs Castle + // Item + private static final int SCROLL_ENCHANT_R_GRADE_WEAPON = 19447; + private static final int SCROLL_ENCHANT_R_GRADE_ARMOR = 19448; + // Misc + private static final int MIN_LEVEL = 102; + + public Q10454_FinalEmbryoApostle() + { + super(10454); + addStartNpc(ERDA); + addTalkId(ERDA); + addKillId(CAMILLE); + addCondMinLevel(MIN_LEVEL, "34319-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34319-02.htm": + case "34319-03.htm": + case "34319-07.html": + { + htmltext = event; + break; + } + case "34319-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34319-08.html": + { + if (qs.isCond(2)) + { + giveItems(player, SCROLL_ENCHANT_R_GRADE_WEAPON, 1); + giveItems(player, SCROLL_ENCHANT_R_GRADE_ARMOR, 1); + addExpAndSp(player, 36255499714L, 87013199); + 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: + { + htmltext = "34319-01.htm"; + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "34319-05.html"; + } + else + { + htmltext = "34319-06.html"; + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm new file mode 100644 index 0000000000..f0a307e4c0 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm @@ -0,0 +1,4 @@ +Hurak:
+I do not believe our paths are meant to cross here. Perhaps later down the road.
+(This quest can only be undertaken by characters with Lv. 101 or higher whose faction level with the Kingdom's Royal Guard is 4 or higher and Complete quest: Bloody Battle - Rescue the Smiths.) + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm new file mode 100644 index 0000000000..472bc369fb --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm @@ -0,0 +1,5 @@ +Hurak:
+It's been a while since we've found the Atelia Fortress.
+In that time though, the fortress has become more structured, which worries me.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm new file mode 100644 index 0000000000..317de0276c --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm @@ -0,0 +1,4 @@ +Hurak:
+We have to make sure no issues arise here until Leona comes back from Hellbound. We aren't doing so well, though.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm new file mode 100644 index 0000000000..a1206b25b0 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm @@ -0,0 +1,5 @@ +Hurak:
+The Atelia Fortress is more structured now.
+Until recently, they didn't have the means to get supplies or train soldiers when they isolated themselves, but now they can do all that within.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm new file mode 100644 index 0000000000..ab3bda70b9 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm @@ -0,0 +1,5 @@ +Hurak:
+According to the information we got from the clan members inside the fortress, they are building different facilities on each floor.
+I've asked Leona for reinforcements, but they are not doing so great either. We need people who can help us. Do you think you can do it?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm new file mode 100644 index 0000000000..3a2b2da63b --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm @@ -0,0 +1,4 @@ +Hurak:
+Glad to hear you'll be helping us. Devianne has already infiltrated the fortress and is in contact with our clan members.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html new file mode 100644 index 0000000000..8080af69ae --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html @@ -0,0 +1,4 @@ +Hurak:
+Devianne has already infiltrated the fortress, but you'll need to find out where she is from the people who are inside.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html new file mode 100644 index 0000000000..32224236b7 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html @@ -0,0 +1,5 @@ +Devianne:
+Elikia said someone would come find me. I guess that was you? The fortress is becoming more systemized by the way, which worries me.
+We are not ready yet, and the Embryo are already expanding their forces.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html new file mode 100644 index 0000000000..9773ec8489 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html @@ -0,0 +1,7 @@ +Devianne:
+I found just a while ago that the fortress is becoming more systemized.
+They've built a supply base, and I saw that they are distributing supplies to the soldiers within the fortress. I would love to go and destroy their supply base...
+Recently, I met Devianne, and she told me about the commander of the fortress.
+She said to create uproars around the fortress to stop the flow of their work inside... Do you think you can help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html new file mode 100644 index 0000000000..d2b1eeecdc --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html @@ -0,0 +1,5 @@ +Devianne:
+It's not that difficult. You must have seen the supply boxes laying around. They started getting supplies regularly, but they are still not organized.
+Please open those supply boxes and get me the supplies. Don't just open any box though. There are some traps that could make it very dangerous.
+ Oh, and one more thing! If you defeat the Quartermasters, the soldiers will be affected, making it easier to steal their supplies. + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java new file mode 100644 index 0000000000..2331455ece --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java @@ -0,0 +1,161 @@ +/* + * 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.Q10846_BloodyBattleMeetingTheCommander; + +import org.l2jmobius.gameserver.enums.Faction; +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; + +/** + * Bloody Battle - Meeting the Commander (10846) + * @URL https://l2wiki.com/Bloody_Battle_-_Meeting_the_Commander + * @author Dmitri + */ +public class Q10846_BloodyBattleMeetingTheCommander extends Quest +{ + // NPCs + private static final int HURAK = 34064; + private static final int DEVIANNE = 34323; + // MiniBoss + private static final int BURNSTEIN = 26136; // Burnstein + // Item + private static final int RUNE_STONE = 39738; + private static final int SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE = 46158; + // Misc + private static final int MIN_LEVEL = 101; + + public Q10846_BloodyBattleMeetingTheCommander() + { + super(10846); + addStartNpc(HURAK); + addTalkId(HURAK, DEVIANNE); + addKillId(BURNSTEIN); + addCondMinLevel(MIN_LEVEL, "34064-00.htm"); + // addCondCompletedQuest(Q10845_BloodyBattleRescueTheSmiths.class.getSimpleName(), "34064-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 4, "34064-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34064-04.htm": + case "34064-03.htm": + case "34064-02.htm": + case "34323-02.html": + { + htmltext = event; + break; + } + case "34064-05.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34323-03.html": + { + if (qs.isCond(2)) + { + giveItems(player, RUNE_STONE, 1); + giveItems(player, SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE, 1); + addExpAndSp(player, 7262301690L, 17429400); + 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() == HURAK) + { + htmltext = "34064-01.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case HURAK: + { + if (qs.isCond(1)) + { + htmltext = "34064-06.html"; + } + break; + } + case DEVIANNE: + { + if (qs.isCond(2)) + { + htmltext = "34323-01.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} 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 9262a24bd6..739d8b8f81 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 @@ -140,6 +140,9 @@ import quests.Q00627_HeartInSearchOfPower.Q00627_HeartInSearchOfPower; import quests.Q00648_AnIceMerchantsDream.Q00648_AnIceMerchantsDream; import quests.Q00662_AGameOfCards.Q00662_AGameOfCards; import quests.Q00663_SeductiveWhispers.Q00663_SeductiveWhispers; +import quests.Q00665_BasicTrainingForHunterGuildMember.Q00665_BasicTrainingForHunterGuildMember; +import quests.Q00666_HunterGuildMembersKnowledge.Q00666_HunterGuildMembersKnowledge; +import quests.Q00668_ABattleWithTheGiants.Q00668_ABattleWithTheGiants; import quests.Q00670_DefeatingTheLordOfSeed.Q00670_DefeatingTheLordOfSeed; import quests.Q00674_ChangesInTheShadowOfTheMotherTree.Q00674_ChangesInTheShadowOfTheMotherTree; import quests.Q00675_WhatTheThreadOfThePastShows.Q00675_WhatTheThreadOfThePastShows; @@ -185,6 +188,7 @@ import quests.Q00833_DevilsTreasureTauti.Q00833_DevilsTreasureTauti; import quests.Q00835_PitiableMelisa.Q00835_PitiableMelisa; import quests.Q00842_CaptiveDemons.Q00842_CaptiveDemons; import quests.Q00844_GiantsTreasure.Q00844_GiantsTreasure; +import quests.Q00845_SabotageTheEmbryoSupplies.Q00845_SabotageTheEmbryoSupplies; import quests.Q00901_HowLavasaurusesAreMade.Q00901_HowLavasaurusesAreMade; import quests.Q00902_ReclaimOurEra.Q00902_ReclaimOurEra; import quests.Q00903_TheCallOfAntharas.Q00903_TheCallOfAntharas; @@ -302,6 +306,7 @@ import quests.Q10446_HitAndRun.Q10446_HitAndRun; import quests.Q10447_TimingIsEverything.Q10447_TimingIsEverything; import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition; import quests.Q10453_StoppingTheWindDragon.Q10453_StoppingTheWindDragon; +import quests.Q10454_FinalEmbryoApostle.Q10454_FinalEmbryoApostle; import quests.Q10455_ElikiasLetter.Q10455_ElikiasLetter; import quests.Q10456_OperationRescue.Q10456_OperationRescue; import quests.Q10459_ASickAmbition.Q10459_ASickAmbition; @@ -446,6 +451,7 @@ import quests.Q10840_TimeToRecover.Q10840_TimeToRecover; import quests.Q10841_DeepInsideAteliaFortress.Q10841_DeepInsideAteliaFortress; import quests.Q10843_AnomalyInTheEnchantedValley.Q10843_AnomalyInTheEnchantedValley; import quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; +import quests.Q10846_BloodyBattleMeetingTheCommander.Q10846_BloodyBattleMeetingTheCommander; import quests.Q10849_TrialsForAdaptation.Q10849_TrialsForAdaptation; import quests.Q10851_ElvenBotany.Q10851_ElvenBotany; import quests.Q10852_TheMotherTreeRevivalProject.Q10852_TheMotherTreeRevivalProject; @@ -629,10 +635,10 @@ public class QuestMasterHandler Q00655_AGrandPlanForTamingWildBeasts.class, // TODO: Not done. Q00662_AGameOfCards.class, Q00663_SeductiveWhispers.class, - Q00665_BasicTrainingForHunterGuildMember.class, // TODO: Not done. - Q00666_HunterGuildMembersKnowledge.class, // TODO: Not done. + Q00665_BasicTrainingForHunterGuildMember.class, + Q00666_HunterGuildMembersKnowledge.class, Q00667_CoveringShilensEyes.class, // TODO: Not done. - Q00668_ABattleWithTheGiants.class, // TODO: Not done. + Q00668_ABattleWithTheGiants.class, Q00669_DesperateFightWithTheDragons.class, // TODO: Not done. Q00670_DefeatingTheLordOfSeed.class, Q00671_PathToFindingThePast.class, // TODO: Not done. @@ -705,7 +711,7 @@ public class QuestMasterHandler Q00842_CaptiveDemons.class, Q00843_GiantEvolutionControl.class, // TODO: Not done. Q00844_GiantsTreasure.class, - Q00845_SabotageTheEmbryoSupplies.class, // TODO: Not done. + Q00845_SabotageTheEmbryoSupplies.class, Q00846_BuildingUpStrength.class, // TODO: Not done. Q00901_HowLavasaurusesAreMade.class, Q00902_ReclaimOurEra.class, @@ -836,7 +842,7 @@ public class QuestMasterHandler Q10447_TimingIsEverything.class, Q10450_ADarkAmbition.class, Q10453_StoppingTheWindDragon.class, - Q10454_FinalEmbryoApostle.class, // TODO: Not done. + Q10454_FinalEmbryoApostle.class, Q10455_ElikiasLetter.class, Q10456_OperationRescue.class, Q10457_KefensisIllusion.class, // TODO: Not done. @@ -1012,7 +1018,7 @@ public class QuestMasterHandler Q10843_AnomalyInTheEnchantedValley.class, Q10844_BloodyBattleSeizingSupplies.class, Q10845_BloodyBattleRescueTheSmiths.class, // TODO: Not done. - Q10846_BloodyBattleMeetingTheCommander.class, // TODO: Not done. + Q10846_BloodyBattleMeetingTheCommander.class, Q10848_TrialsBeforeTheBattle.class, // TODO: Not done. Q10849_TrialsForAdaptation.class, Q10851_ElvenBotany.class, diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.java deleted file mode 100644 index 4607e3d7d8..0000000000 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.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 Q00665_BasicTrainingForHunterGuildMember extends Quest -{ - private static final int START_NPC = 34267; - - public Q00665_BasicTrainingForHunterGuildMember() - { - super(665); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.java deleted file mode 100644 index 60bd6d6b2f..0000000000 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.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 Q00666_HunterGuildMembersKnowledge extends Quest -{ - private static final int START_NPC = 34267; - - public Q00666_HunterGuildMembersKnowledge() - { - super(666); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.java deleted file mode 100644 index 9678dfa038..0000000000 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.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 Q00668_ABattleWithTheGiants extends Quest -{ - private static final int START_NPC = 34267; - - public Q00668_ABattleWithTheGiants() - { - super(668); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java deleted file mode 100644 index 88dc08f95f..0000000000 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.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 Q00845_SabotageTheEmbryoSupplies extends Quest -{ - private static final int START_NPC = 34235; - - public Q00845_SabotageTheEmbryoSupplies() - { - super(845); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.java deleted file mode 100644 index 33d310b292..0000000000 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.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 Q10454_FinalEmbryoApostle extends Quest -{ - private static final int START_NPC = 34319; - - public Q10454_FinalEmbryoApostle() - { - super(10454); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java deleted file mode 100644 index caad5680c7..0000000000 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.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 Q10846_BloodyBattleMeetingTheCommander extends Quest -{ - private static final int START_NPC = 34064; - - public Q10846_BloodyBattleMeetingTheCommander() - { - super(10846); - 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/MissingQuests.txt b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/MissingQuests.txt index 4441b2a6f5..1fe6abc149 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 @@ -59,9 +59,6 @@ 596 Special Mission: Defeat Baylor 599 Demons and Dimensional Energy 655 A Grand Plan for Taming Wild Beasts -665 Basic Training for Hunter Guild Member -666 Knowledgeable Hunter Guild Member -668 Fight with the Giants 669 Intense Fight against Dragon 671 Path to Finding the Past 672 Embryo the Archenemy @@ -125,7 +122,6 @@ 839 Request from the Unworldly Visitors 840 Request from the Kingdom's Royal Guard 843 Giant Evolution Control -845 Sabotage the Embryo Supplies 846 Building up Strength 861 Kain's Choice 863 Red Libra Request - Shadow of the Mother Tree @@ -149,7 +145,6 @@ 10356 Blacksmiths Soul - 2 10373 Exploring the Dimension - Sealing the Dimension 10418 The Immortal Pirate King -10454 Final Embryo Apostle 10457 Kefensis' Illusion 10514 New Path to Glory 10515 New Way for Pride diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm new file mode 100644 index 0000000000..3476ffaf41 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-00.htm @@ -0,0 +1,5 @@ +Truth Seeker Devianne:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 85 and above.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm new file mode 100644 index 0000000000..9992fc54f4 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-01.htm @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm new file mode 100644 index 0000000000..2a978b7e40 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-02.htm @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm new file mode 100644 index 0000000000..b7c33ac260 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-03.htm @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm new file mode 100644 index 0000000000..b73e11146f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04.htm @@ -0,0 +1,7 @@ +Truth Seeker Devianne:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 1 Mutated Spirit's Souls. +Intermediate Mission - Collect 2 Mutated Spirit's Souls.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm new file mode 100644 index 0000000000..fb95f5233a --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-04a.htm @@ -0,0 +1,7 @@ +Truth Seeker Devianne:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 1 Mutated Spirit's Souls. +Intermediate Mission - Collect 2 Mutated Spirit's Souls.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html new file mode 100644 index 0000000000..dc93ea7c77 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-05.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Your Unworldly Visitors Faction Level Must be 4 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html new file mode 100644 index 0000000000..b47d121ffc --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06.html @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+You have chosen the basic mission to collect 1 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html new file mode 100644 index 0000000000..1521f2ee16 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-06a.html @@ -0,0 +1,6 @@ +Truth Seeker Devianne:
+You have chosen the intermediate mission to collect 2 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html new file mode 100644 index 0000000000..57ea01e11a --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 1 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html new file mode 100644 index 0000000000..1ecdec6db3 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-07a.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 2 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html new file mode 100644 index 0000000000..022334232b --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Go to the Garden of Spirits and defeat all type monsters until you collect 1 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html new file mode 100644 index 0000000000..be065b7fc8 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-08a.html @@ -0,0 +1,3 @@ +Truth Seeker Devianne:
+Go to the Garden of Spirits and defeat all type monsters until you collect 2 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html new file mode 100644 index 0000000000..7adb8e96c8 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-09.html @@ -0,0 +1,5 @@ +Truth Seeker Devianne:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html new file mode 100644 index 0000000000..23411c7a99 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/34267-10.html @@ -0,0 +1,4 @@ +Truth Seeker Devianne:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java new file mode 100644 index 0000000000..598a07a52d --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00665_BasicTrainingForHunterGuildMember/Q00665_BasicTrainingForHunterGuildMember.java @@ -0,0 +1,271 @@ +/* + * 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.Q00665_BasicTrainingForHunterGuildMember; + +import java.util.HashSet; +import java.util.Set; + +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestSound; +import org.l2jmobius.gameserver.enums.QuestType; +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.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; + +/** + * Basic Training for Hunter Guild Member (665) + * @URL https://l2wiki.com/Basic_Training_for_Hunter_Guild_Member + * @author Dmitri + */ +public class Q00665_BasicTrainingForHunterGuildMember extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + // BOSS + private static final int[] BOSS = + { + 19253, // Zellaka + 19254, // Pelline + 19255, // Kalios + 26102, // Dark Rider + 26136, // Burnstein + 25876, // Maliss + 25877 // Isadora + }; + // Misc + private static final boolean PARTY_QUEST = true; + private static final int MIN_LEVEL = 85; + + public Q00665_BasicTrainingForHunterGuildMember() + { + super(665); + addStartNpc(ARCTURUS); + addTalkId(ARCTURUS); + addKillId(BOSS); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34267-02.htm": + case "34267-03.htm": + case "34267-04.htm": + case "34267-04a.htm": + case "34267-06.html": + case "34267-06a.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case "return": + { + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case "34267-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34267-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34267-10.html": + { + switch (qs.getCond()) + { + case 4: + { + if (player.getLevel() >= MIN_LEVEL) + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 5: + { + if (player.getLevel() >= MIN_LEVEL) + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34267-01.htm"; + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if (player.getFactionLevel(Faction.HUNTERS_GUILD) < 4) + { + htmltext = "34267-04a.htm"; + break; + } + htmltext = "34267-04.htm"; + break; + } + case 2: + { + htmltext = "34267-08.html"; + break; + } + case 3: + { + htmltext = "34267-08a.html"; + break; + } + case 4: + case 5: + { + htmltext = "34267-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34267-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + final QuestState qs = PARTY_QUEST ? getRandomPartyMemberState(killer, -1, 3, npc) : getQuestState(killer, false); + if ((qs != null) && (qs.getCond() > 1)) + { + switch (qs.getCond()) + { + case 2: + { + final int killedGhosts = qs.getInt("AncientGhosts") + 1; + qs.set("AncientGhosts", killedGhosts); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + + if (killedGhosts >= 1) + { + qs.setCond(4, true); + } + break; + } + case 3: + { + final int killedGhosts = qs.getInt("AncientGhosts") + 1; + qs.set("AncientGhosts", killedGhosts); + playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET); + + if (killedGhosts >= 2) + { + qs.setCond(5, true); + } + break; + } + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public Set getNpcLogList(PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1)) + { + final Set holder = new HashSet<>(); + holder.add(new NpcLogListHolder(NpcStringId.COMPLETE_BASIC_TRAINING.getId(), true, qs.getInt("AncientGhosts"))); + return holder; + } + return super.getNpcLogList(player); + } +} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm new file mode 100644 index 0000000000..b267433caa --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-01.htm @@ -0,0 +1,5 @@ +Hunters Guild Member Colin:
+What is it? Do you want to check new missions of the Hunter Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm new file mode 100644 index 0000000000..f25c9ec12c --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-02.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+You know that there are areas called Seeds in Gracia, don't you?
+There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.
+The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm new file mode 100644 index 0000000000..3b168d5f6b --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-03.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+Are you belittling the Hunter Guild's intelligence? It's all true!
+What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.
+With whom? With both Aden and Gracia, of course.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm new file mode 100644 index 0000000000..18737aa50f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-04.htm @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat Tiat, Tauti, Istina, and Ekimus. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it? + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html new file mode 100644 index 0000000000..73857457eb --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-05.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html new file mode 100644 index 0000000000..b22a378594 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-06.html @@ -0,0 +1,4 @@ +Hunters Guild Member Colin:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html new file mode 100644 index 0000000000..eba559c983 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/30703-07.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm new file mode 100644 index 0000000000..cba19db0ef --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-00.htm @@ -0,0 +1,4 @@ +Hunters Guild Member
+I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.
+(Only characters with Lv. 85 or above and Faction level 1 or above with the Hunters Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm new file mode 100644 index 0000000000..97ab59489d --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-01.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm new file mode 100644 index 0000000000..dd0187c26a --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-02.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+There are areas called “Seeds” in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm new file mode 100644 index 0000000000..4daca56c08 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-03.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm new file mode 100644 index 0000000000..74ab81b80e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-04.htm @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat Tiat, Tauti, Istina, and Ekimus and return to me. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html new file mode 100644 index 0000000000..27e12b2eb5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-05.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+You haven't left yet? I told you which Seed Lords you have to deal with.
+They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html new file mode 100644 index 0000000000..a55f565364 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-06.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html new file mode 100644 index 0000000000..88123c1f6d --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/34267-07.html @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java new file mode 100644 index 0000000000..1da2d50c34 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00666_HunterGuildMembersKnowledge/Q00666_HunterGuildMembersKnowledge.java @@ -0,0 +1,210 @@ +/* + * 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.Q00666_HunterGuildMembersKnowledge; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Knowledgeable Hunter Guild Member (666) + * @URL https://l2wiki.com/Knowledgeable_Hunter_Guild_Member + * @author Dmitri + */ +public class Q00666_HunterGuildMembersKnowledge extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + private static final int COLIN = 30703; + // BOSS + private static final int[] BOSES = + { + 3477, // Reinforced Super Kat the Cat + 3479, // Darkened Super Feline Queen + 25933, // Garden Patrol Captain + 3481, // Control-crazed Mew the Cat + 25937, // Spicula Negative + 3473, // Omega Golem + 29163, // Tiat (attack type) + 25886, // Houpon the Warden Overseer + 25902, // Gigantic Golem (96 lvl) + 25887, // Crook the Mad + 26348, // Summoned Garp + 26347, // Summoned Harpas + 26349, // Summoned Moricks + 26431, // Avenger Alusion + 26432, // Avenger Graff + 26312, // Lithra + 26436, // Watcher Setheth + 26435, // Watcher Tristan + 25946, // Antharas' Herald Komabor + 25949, // Lindvior's Herald Numa + 26442, // Mad Cullan + 25922, // Nerva Chief Turakan + 26005, // Nerva Orc Nergatt + 26001, // Amden Orc Turation + 25929, // Tegaffe + 25931, // Theor + 25948, // Valakas' Herald Potigia + 25983, // Varkaron + 25982, // Varmonia + 25957, // Vengeful Agarez + 25961, // Vengeful Agonia + 25960, // Vengeful Edaire + 25956, // Vengeful Eligos + 25958, // Vengeful Lerazia + 25959, // Vengeful Oretross + 26441, // Witch Moira + 26440, // Arrogant Lebruum + 26439, // Ferocious Valac + 26438, // Berserker Tabris + 26437, // Berserker Zetahl + 29374, // Cyrax + 26433, // Demon Venoma + 26434, // Fiend Sarboth + 26443, // Akrikhin Charon + 26444, // Scorpion King Votan + 25876, // + 25877 // + }; + // Misc + private static final int MIN_LEVEL = 85; + + public Q00666_HunterGuildMembersKnowledge() + { + super(666); + addStartNpc(ARCTURUS, COLIN); + addTalkId(ARCTURUS, COLIN); + addKillId(BOSES); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + addFactionLevel(Faction.HUNTERS_GUILD, 1, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + switch (event) + { + case "30703-02.htm": + case "30703-03.htm": + case "34267-02.htm": + case "34267-03.htm": + { + htmltext = event; + break; + } + case "30703-04.htm": + case "34267-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30703-07.html": + case "34267-07.html": + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, 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: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = "30703-01.htm"; + break; + } + case ARCTURUS: + { + htmltext = "34267-01.htm"; + break; + } + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html"; + break; + } + case ARCTURUS: + { + htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html"; + break; + } + } + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + break; + } + qs.setState(State.CREATED); + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm new file mode 100644 index 0000000000..a9775c44e1 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-01.htm @@ -0,0 +1,5 @@ +Hunters Guild Member Colin:
+What is it? Do you want to check new missions of the Hunter Guild?
+Come on. We are always in high demand.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm new file mode 100644 index 0000000000..ba07699031 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-02.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+You know that there are areas called Seeds in Gracia, don't you?
+There are four Seeds, Destruction, Infinity, Annihilation, and Hellfire. Each Seed is guarded by a Seed Lord.
+The Seed Lords are not ordinary people... Shilen herself appointed them. In fact, their roles are similar to those of Anakim and Lilith. All of them work to strengthen Shilen's power.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm new file mode 100644 index 0000000000..a1f4e73631 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-03.htm @@ -0,0 +1,6 @@ +Hunters Guild Member Colin:
+Are you belittling the Hunter Guild's intelligence? It's all true!
+What matters is that the activities of these Seed Lords affect Shilen in some way. So, we have agreed to eliminate the Seed Lords.
+With whom? With both Aden and Gracia, of course.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm new file mode 100644 index 0000000000..18737aa50f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-04.htm @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+The Hunter Guild has kept close ties with the Aden Court. According to the mutual defense agreement between Aden and Gracia, we have been assigned to defeat Tiat, Tauti, Istina, and Ekimus. Some of them are already in the Extreme state. We have to eliminate them. Can you handle it? + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html new file mode 100644 index 0000000000..73857457eb --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-05.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+You haven't left yet. The Gracia Continent is far from the Aden Continent, but it's not impossible to get there. Go to Gracia and defeat Tiat, Tauti, Istina, and Ekimus. Make sure to defeat Tauti and Istina, which are in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html new file mode 100644 index 0000000000..d8a57921b1 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-06.html @@ -0,0 +1,4 @@ +Hunters Guild Member Colin:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html new file mode 100644 index 0000000000..eba559c983 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/30703-07.html @@ -0,0 +1,3 @@ +Hunters Guild Member Colin:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm new file mode 100644 index 0000000000..cba19db0ef --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-00.htm @@ -0,0 +1,4 @@ +Hunters Guild Member
+I don't know where you heard it, but the guild has decided to assign it to a more reliable guild member. Let's talk later when we trust each other more.
+(Only characters with Lv. 85 or above and Faction level 1 or above with the Hunters Guild may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm new file mode 100644 index 0000000000..ffb5c1668c --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-01.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+What's your business? I'm busy with dealing with the Seed Lords that control the seeds in Gracia. Come back later. Ah, no, wait. If you have time, could you help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm new file mode 100644 index 0000000000..8178955e29 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-02.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+There are areas called “Seeds” in Gracia. They include the Seed of Destruction, the Seed of Hellfire, the Seed of Annihilation, and the Seed of Infinity. Goddess Shilen has appointed four lords to rule them. Did you know this?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm new file mode 100644 index 0000000000..cdf6783bc5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-03.htm @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Well, only a few do. What matters is that the more active these lords become, the more easily Shilen can use her power. So, we're focusing on nullifying the Seed Lords.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm new file mode 100644 index 0000000000..74ab81b80e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-04.htm @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Yes. Our goal is to eliminate the Seed Lords and weaken their forces. It's useless to provoke weak ones. Your targets are the Seed Lords in the Extreme state. Defeat Tiat, Tauti, Istina, and Ekimus and return to me. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html new file mode 100644 index 0000000000..27e12b2eb5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-05.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+You haven't left yet? I told you which Seed Lords you have to deal with.
+They are Tiat, Tauti, Istina, and Ekimus. Make sure to eliminate them in the Extreme state. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html new file mode 100644 index 0000000000..175416348c --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-06.html @@ -0,0 +1,4 @@ +Hunters Guild President Arcturus:
+Did you give a good lesson to the Lord of Seeds?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html new file mode 100644 index 0000000000..88123c1f6d --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/34267-07.html @@ -0,0 +1,3 @@ +Hunters Guild President Arcturus:
+Good job. It will help the Hunter Guild take a lead in the Gracia Continent. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java new file mode 100644 index 0000000000..427b865d4f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00668_ABattleWithTheGiants/Q00668_ABattleWithTheGiants.java @@ -0,0 +1,168 @@ +/* + * 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.Q00668_ABattleWithTheGiants; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Fight with the Giants (668) + * @URL https://l2wiki.com/Fight_with_the_Giants + * @author Dmitri + */ +public class Q00668_ABattleWithTheGiants extends Quest +{ + // NPCs + private static final int ARCTURUS = 34267; + private static final int COLIN = 30703; + // BOSS + private static final int[] BOSES = + { + 29305, // Helios + 26143, // Ramona + 26148, // Enhanced Mimir + 26157, // Enhanced Harnak's Wraith + 26152 // Enhanced Core + }; + // Misc + private static final int MIN_LEVEL = 85; + + public Q00668_ABattleWithTheGiants() + { + super(668); + addStartNpc(ARCTURUS, COLIN); + addTalkId(ARCTURUS, COLIN); + addKillId(BOSES); + addCondMinLevel(MIN_LEVEL, "34267-00.htm"); + addFactionLevel(Faction.HUNTERS_GUILD, 1, "34267-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + switch (event) + { + case "30703-02.htm": + case "30703-03.htm": + case "34267-02.htm": + case "34267-03.htm": + { + htmltext = event; + break; + } + case "30703-04.htm": + case "34267-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "30703-07.html": + case "34267-07.html": + { + addFactionPoints(player, Faction.HUNTERS_GUILD, 150); + qs.exitQuest(QuestType.DAILY, 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: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = "30703-01.htm"; + break; + } + case ARCTURUS: + { + htmltext = "34267-01.htm"; + break; + } + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case COLIN: + { + htmltext = (qs.isCond(1)) ? "30703-05.html" : "30703-06.html"; + break; + } + case ARCTURUS: + { + htmltext = (qs.isCond(1)) ? "34267-05.html" : "34267-06.html"; + break; + } + } + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + break; + } + qs.setState(State.CREATED); + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm new file mode 100644 index 0000000000..55d1cb87b7 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-00.htm @@ -0,0 +1,5 @@ +Logart van Dyke:
+The Enchanted Valley has changed, so it's very dangerous.
+I don't think you are supposed to be here yet. Come back when you get stronger.
+(Only characters above Lv. 101, quest Complete Bloody Battle - Seizing Supplies and fraction Kingdom’s Royal Guard amity level 2 or above.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm new file mode 100644 index 0000000000..cdaa8cf547 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-01.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm new file mode 100644 index 0000000000..124f484233 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-02.htm @@ -0,0 +1,4 @@ +Logart van Dyke:
+We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm new file mode 100644 index 0000000000..fba37beef7 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-03.htm @@ -0,0 +1,6 @@ +Logart van Dyke:
+We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm new file mode 100644 index 0000000000..511065d50d --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm new file mode 100644 index 0000000000..472e10842b --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04a.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm new file mode 100644 index 0000000000..c554368bc0 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-04b.htm @@ -0,0 +1,9 @@ +Logart van Dyke:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 40 Mutated Spirit's Souls. +Intermediate Mission - Collect 80 Mutated Spirit's Souls. +Advanced Mission - Collect 120 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html new file mode 100644 index 0000000000..a7f1677e84 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 5 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html new file mode 100644 index 0000000000..6baf75b3c0 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-05a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Your Unworldly Visitors Faction Level Must be 8 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html new file mode 100644 index 0000000000..9b160c1ac5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the basic mission to collect 40 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html new file mode 100644 index 0000000000..9140501de5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06a.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the intermediate mission to collect 80 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html new file mode 100644 index 0000000000..f3712c7387 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-06b.html @@ -0,0 +1,6 @@ +Logart van Dyke:
+You have chosen the advanced mission to collect 120 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html new file mode 100644 index 0000000000..edc546a10f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07.html @@ -0,0 +1,4 @@ +Fairy Mimyu:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 40 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html new file mode 100644 index 0000000000..8d3c0d3031 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07a.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 80 Mutated Spirit's Souls. It should be manageable. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html new file mode 100644 index 0000000000..7f0075d93e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-07b.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 120 Mutated Spirit's Souls. It should be manageable. +y> \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html new file mode 100644 index 0000000000..d491294b59 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 40 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html new file mode 100644 index 0000000000..7c59e3a000 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08a.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 80 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html new file mode 100644 index 0000000000..5e8c893849 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-08b.html @@ -0,0 +1,3 @@ +Logart van Dyke:
+Go to the Garden of Spirits and defeat all type monsters until you collect 120 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html new file mode 100644 index 0000000000..508422d7f9 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-09.html @@ -0,0 +1,5 @@ +Logart van Dyke:
+Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html new file mode 100644 index 0000000000..118d5a38cc --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/34235-10.html @@ -0,0 +1,4 @@ +Logart van Dyke:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java new file mode 100644 index 0000000000..924df96196 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q00845_SabotageTheEmbryoSupplies/Q00845_SabotageTheEmbryoSupplies.java @@ -0,0 +1,356 @@ +/* + * 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.Q00845_SabotageTheEmbryoSupplies; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.Faction; +import org.l2jmobius.gameserver.enums.QuestType; +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 quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; + +/** + * Sabotage the Embryo Supplies (845) + * @URL https://l2wiki.com/Sabotage_the_Embryo_Supplies + * @author Dmitri + */ +public class Q00845_SabotageTheEmbryoSupplies extends Quest +{ + // NPCs + private static final int LOGART_VAN_DYKE = 34235; + // Monsters + private static final int[] MONSTERS = + { + 23589, // + 23507, // + 23506, // + 23505, // + 23508, // + 23537, // + 23538, // + 23509, // + 23512, // + 23511 // + }; + // Items + private static final int EMBRYO_SUPPLIES = 47197; + // Rewards + private static final int BASIC_SUPPLY_BOX = 47175; // Kingdom's Royal Guard Basic Supply Box Atelia Fortress + private static final int INTERMEDIATE_SUPPLY_BOX = 47176; // Kingdom's Royal Guard Intermediate Supply Box Atelia Fortress + private static final int ADVANCED_SUPPLY_BOX = 47177; // Kingdom's Royal Guard Advanced Supply Box Atelia Fortress + // Misc + private static final int MIN_LEVEL = 101; + + public Q00845_SabotageTheEmbryoSupplies() + { + super(845); + addStartNpc(LOGART_VAN_DYKE); + addTalkId(LOGART_VAN_DYKE); + addKillId(MONSTERS); + registerQuestItems(EMBRYO_SUPPLIES); + addCondMinLevel(MIN_LEVEL, "34235-00.htm"); + addCondCompletedQuest(Q10844_BloodyBattleSeizingSupplies.class.getSimpleName(), "34235-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 2, "34235-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34235-02.htm": + case "34235-03.htm": + case "34235-04.htm": + case "34235-04a.htm": + case "34235-04b.htm": + case "34235-06.html": + case "34235-06a.html": + case "34235-06b.html": + { + htmltext = event; + break; + } + case "select_mission": + { + qs.startQuest(); + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "return": + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case "34235-07.html": + { + qs.setCond(2, true); + htmltext = event; + break; + } + case "34235-07a.html": + { + qs.setCond(3, true); + htmltext = event; + break; + } + case "34235-07b.html": + { + qs.setCond(4, true); + htmltext = event; + break; + } + case "34235-10.html": + { + final int chance = getRandom(100); + switch (qs.getCond()) + { + case 5: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 40) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + addExpAndSp(player, 18155754360L, 18155700); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 6: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 80) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + addExpAndSp(player, 36311508720L, 36311400); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 200); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 7: + { + if ((getQuestItemsCount(player, EMBRYO_SUPPLIES) == 120) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, BASIC_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, ADVANCED_SUPPLY_BOX, 1); + } + addExpAndSp(player, 54467263080L, 54467100); + addFactionPoints(player, Faction.KINGDOM_ROYAL_GUARDS, 300); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + } + 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: + { + htmltext = "34235-01.htm"; + // fallthrough? + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + if ((player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 5) && (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) < 8)) + { + htmltext = "34235-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.KINGDOM_ROYAL_GUARDS) >= 8) + { + htmltext = "34235-04b.htm"; + break; + } + htmltext = "34235-04.htm"; + break; + } + case 2: + { + htmltext = "34235-08.html"; + break; + } + case 3: + { + htmltext = "34235-08a.html"; + break; + } + case 4: + { + htmltext = "34235-08b.html"; + break; + } + case 5: + case 6: + case 7: + { + htmltext = "34235-09.html"; + break; + } + } + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) + { + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34235-01.htm"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && (qs.getCond() > 1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) + { + switch (qs.getCond()) + { + case 2: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 40, 0.5, true)) + { + qs.setCond(5, true); + } + break; + } + case 3: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 80, 0.5, true)) + { + qs.setCond(6, true); + } + break; + } + case 4: + { + if (giveItemRandomly(player, npc, EMBRYO_SUPPLIES, 1, 120, 0.5, true)) + { + qs.setCond(7, true); + } + break; + } + } + } + } +} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm new file mode 100644 index 0000000000..11476c760e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-00.htm @@ -0,0 +1,4 @@ +Erda:
+In order to take on this mission, you must first build more trust with us.
+(Only characters with faction level 5 or above with the Blackbird Clan may undertake this quest.)
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm new file mode 100644 index 0000000000..a0b8470772 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-01.htm @@ -0,0 +1,4 @@ +Erda:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm new file mode 100644 index 0000000000..86d31ba146 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-02.htm @@ -0,0 +1,4 @@ +Erda:
+Herphah wants you to do some missions, and I'll chose an appropriate mission depending on your relationship with us at the Adventure Guild.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm new file mode 100644 index 0000000000..c59b0182bb --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-03.htm @@ -0,0 +1,4 @@ +Erda:
+Your mission is to assist with the task at the Altar of Evil. If successful, our Adventure Guild will give you additional rewards on top of the mission payment and your relationship with our faction will grow even stronger.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm new file mode 100644 index 0000000000..f9372620f5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-04.htm @@ -0,0 +1,4 @@ +Erda:
+You've already leamed everything you need to know about the mission. By that I mean, how to go to the Altar of Evil. You should be able to start the mission right away without further explanation.
+But if you want to listen to the explanation again, I'd be happy to tell you. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html new file mode 100644 index 0000000000..4c6743798e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-05.html @@ -0,0 +1,3 @@ +Erda:
+Good choice. Now, go to Black Wizard Lapathia at the Altar of Evil and do the mission that she gives you. When the mission is done, come back to me.
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html new file mode 100644 index 0000000000..5d7d3c0ec0 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-06.html @@ -0,0 +1,5 @@ +Erda:
+I asked the Adventure Guild to send an adventurer but didn't expect they would send you. I'd like to see how good you are.
+(To do "Basic Mission: Isle of Souls," you must do "Uncover the Secret" and "More Aggressive Operation" through Black Wizard Lapathia.)
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html new file mode 100644 index 0000000000..6ed406518a --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-07.html @@ -0,0 +1,5 @@ +Erda:
+You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?
+Don't tell me you're going to walk all the way up there. I know a better way.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html new file mode 100644 index 0000000000..656a032c61 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/34319-08.html @@ -0,0 +1,4 @@ +Erda:
+When setting out for a joumey, veteran adventurers always pack Scrolls of Escape, it teleports the user immediately to the closest village or to the check point.
+If you have these useful items, you can move easily after hunting or when you are far away from the village. Since you've been a great help to me, I'll give you the scroll that can teleport you directly to the Town of Aden. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java new file mode 100644 index 0000000000..9b99af37cd --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10454_FinalEmbryoApostle/Q10454_FinalEmbryoApostle.java @@ -0,0 +1,142 @@ +/* + * 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.Q10454_FinalEmbryoApostle; + +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; + +/** + * Final Embryo Apostle (10454) + * @URL https://l2wiki.com/Final_Embryo_Apostle + * @author Dmitri + */ +public class Q10454_FinalEmbryoApostle extends Quest +{ + // NPCs + private static final int ERDA = 34319; + // Boss + private static final int CAMILLE = 26236; // Camille - Inner Messiahs Castle + // Item + private static final int SCROLL_ENCHANT_R_GRADE_WEAPON = 19447; + private static final int SCROLL_ENCHANT_R_GRADE_ARMOR = 19448; + // Misc + private static final int MIN_LEVEL = 102; + + public Q10454_FinalEmbryoApostle() + { + super(10454); + addStartNpc(ERDA); + addTalkId(ERDA); + addKillId(CAMILLE); + addCondMinLevel(MIN_LEVEL, "34319-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34319-02.htm": + case "34319-03.htm": + case "34319-07.html": + { + htmltext = event; + break; + } + case "34319-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34319-08.html": + { + if (qs.isCond(2)) + { + giveItems(player, SCROLL_ENCHANT_R_GRADE_WEAPON, 1); + giveItems(player, SCROLL_ENCHANT_R_GRADE_ARMOR, 1); + addExpAndSp(player, 36255499714L, 87013199); + 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: + { + htmltext = "34319-01.htm"; + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "34319-05.html"; + } + else + { + htmltext = "34319-06.html"; + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm new file mode 100644 index 0000000000..f0a307e4c0 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-00.htm @@ -0,0 +1,4 @@ +Hurak:
+I do not believe our paths are meant to cross here. Perhaps later down the road.
+(This quest can only be undertaken by characters with Lv. 101 or higher whose faction level with the Kingdom's Royal Guard is 4 or higher and Complete quest: Bloody Battle - Rescue the Smiths.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm new file mode 100644 index 0000000000..472bc369fb --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-01.htm @@ -0,0 +1,5 @@ +Hurak:
+It's been a while since we've found the Atelia Fortress.
+In that time though, the fortress has become more structured, which worries me.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm new file mode 100644 index 0000000000..317de0276c --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-02.htm @@ -0,0 +1,4 @@ +Hurak:
+We have to make sure no issues arise here until Leona comes back from Hellbound. We aren't doing so well, though.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm new file mode 100644 index 0000000000..a1206b25b0 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-03.htm @@ -0,0 +1,5 @@ +Hurak:
+The Atelia Fortress is more structured now.
+Until recently, they didn't have the means to get supplies or train soldiers when they isolated themselves, but now they can do all that within.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm new file mode 100644 index 0000000000..ab3bda70b9 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-04.htm @@ -0,0 +1,5 @@ +Hurak:
+According to the information we got from the clan members inside the fortress, they are building different facilities on each floor.
+I've asked Leona for reinforcements, but they are not doing so great either. We need people who can help us. Do you think you can do it?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm new file mode 100644 index 0000000000..3a2b2da63b --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-05.htm @@ -0,0 +1,4 @@ +Hurak:
+Glad to hear you'll be helping us. Devianne has already infiltrated the fortress and is in contact with our clan members.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html new file mode 100644 index 0000000000..8080af69ae --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34064-06.html @@ -0,0 +1,4 @@ +Hurak:
+Devianne has already infiltrated the fortress, but you'll need to find out where she is from the people who are inside.
+First, go find Glenkinchie in the first stronghold. Anyone inside the fortress should be able to help you more than me. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html new file mode 100644 index 0000000000..32224236b7 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-01.html @@ -0,0 +1,5 @@ +Devianne:
+Elikia said someone would come find me. I guess that was you? The fortress is becoming more systemized by the way, which worries me.
+We are not ready yet, and the Embryo are already expanding their forces.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html new file mode 100644 index 0000000000..9773ec8489 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-02.html @@ -0,0 +1,7 @@ +Devianne:
+I found just a while ago that the fortress is becoming more systemized.
+They've built a supply base, and I saw that they are distributing supplies to the soldiers within the fortress. I would love to go and destroy their supply base...
+Recently, I met Devianne, and she told me about the commander of the fortress.
+She said to create uproars around the fortress to stop the flow of their work inside... Do you think you can help me?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html new file mode 100644 index 0000000000..d2b1eeecdc --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/34323-03.html @@ -0,0 +1,5 @@ +Devianne:
+It's not that difficult. You must have seen the supply boxes laying around. They started getting supplies regularly, but they are still not organized.
+Please open those supply boxes and get me the supplies. Don't just open any box though. There are some traps that could make it very dangerous.
+ Oh, and one more thing! If you defeat the Quartermasters, the soldiers will be affected, making it easier to steal their supplies. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java new file mode 100644 index 0000000000..2331455ece --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10846_BloodyBattleMeetingTheCommander/Q10846_BloodyBattleMeetingTheCommander.java @@ -0,0 +1,161 @@ +/* + * 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.Q10846_BloodyBattleMeetingTheCommander; + +import org.l2jmobius.gameserver.enums.Faction; +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; + +/** + * Bloody Battle - Meeting the Commander (10846) + * @URL https://l2wiki.com/Bloody_Battle_-_Meeting_the_Commander + * @author Dmitri + */ +public class Q10846_BloodyBattleMeetingTheCommander extends Quest +{ + // NPCs + private static final int HURAK = 34064; + private static final int DEVIANNE = 34323; + // MiniBoss + private static final int BURNSTEIN = 26136; // Burnstein + // Item + private static final int RUNE_STONE = 39738; + private static final int SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE = 46158; + // Misc + private static final int MIN_LEVEL = 101; + + public Q10846_BloodyBattleMeetingTheCommander() + { + super(10846); + addStartNpc(HURAK); + addTalkId(HURAK, DEVIANNE); + addKillId(BURNSTEIN); + addCondMinLevel(MIN_LEVEL, "34064-00.htm"); + // addCondCompletedQuest(Q10845_BloodyBattleRescueTheSmiths.class.getSimpleName(), "34064-00.htm"); + addFactionLevel(Faction.KINGDOM_ROYAL_GUARDS, 4, "34064-00.htm"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34064-04.htm": + case "34064-03.htm": + case "34064-02.htm": + case "34323-02.html": + { + htmltext = event; + break; + } + case "34064-05.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34323-03.html": + { + if (qs.isCond(2)) + { + giveItems(player, RUNE_STONE, 1); + giveItems(player, SCROLL_OF_ESCAPE_BLACKBIRD_CAMPSITE, 1); + addExpAndSp(player, 7262301690L, 17429400); + 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() == HURAK) + { + htmltext = "34064-01.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case HURAK: + { + if (qs.isCond(1)) + { + htmltext = "34064-06.html"; + } + break; + } + case DEVIANNE: + { + if (qs.isCond(2)) + { + htmltext = "34323-01.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, PlayerInstance player, boolean isSummon) + { + executeForEachPlayer(player, npc, isSummon, true, false); + return super.onKill(npc, player, isSummon); + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } +} 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 2d6394ff5f..67d0f7d643 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 @@ -62,6 +62,9 @@ import quests.Q00587_MoreAggressiveOperation.Q00587_MoreAggressiveOperation; import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess; import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame; import quests.Q00620_FourGoblets.Q00620_FourGoblets; +import quests.Q00665_BasicTrainingForHunterGuildMember.Q00665_BasicTrainingForHunterGuildMember; +import quests.Q00666_HunterGuildMembersKnowledge.Q00666_HunterGuildMembersKnowledge; +import quests.Q00668_ABattleWithTheGiants.Q00668_ABattleWithTheGiants; import quests.Q00670_DefeatingTheLordOfSeed.Q00670_DefeatingTheLordOfSeed; import quests.Q00674_ChangesInTheShadowOfTheMotherTree.Q00674_ChangesInTheShadowOfTheMotherTree; import quests.Q00675_WhatTheThreadOfThePastShows.Q00675_WhatTheThreadOfThePastShows; @@ -99,6 +102,7 @@ import quests.Q00833_DevilsTreasureTauti.Q00833_DevilsTreasureTauti; import quests.Q00835_PitiableMelisa.Q00835_PitiableMelisa; import quests.Q00842_CaptiveDemons.Q00842_CaptiveDemons; import quests.Q00844_GiantsTreasure.Q00844_GiantsTreasure; +import quests.Q00845_SabotageTheEmbryoSupplies.Q00845_SabotageTheEmbryoSupplies; import quests.Q00901_HowLavasaurusesAreMade.Q00901_HowLavasaurusesAreMade; import quests.Q00903_TheCallOfAntharas.Q00903_TheCallOfAntharas; import quests.Q00905_RefinedDragonBlood.Q00905_RefinedDragonBlood; @@ -129,6 +133,7 @@ import quests.Q10445_AnImpendingThreat.Q10445_AnImpendingThreat; import quests.Q10446_HitAndRun.Q10446_HitAndRun; import quests.Q10447_TimingIsEverything.Q10447_TimingIsEverything; import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition; +import quests.Q10454_FinalEmbryoApostle.Q10454_FinalEmbryoApostle; import quests.Q10455_ElikiasLetter.Q10455_ElikiasLetter; import quests.Q10459_ASickAmbition.Q10459_ASickAmbition; import quests.Q10501_ZakenEmbroideredSoulCloak.Q10501_ZakenEmbroideredSoulCloak; @@ -190,6 +195,7 @@ import quests.Q10839_BlackbirdsNameValue.Q10839_BlackbirdsNameValue; import quests.Q10840_TimeToRecover.Q10840_TimeToRecover; import quests.Q10843_AnomalyInTheEnchantedValley.Q10843_AnomalyInTheEnchantedValley; import quests.Q10844_BloodyBattleSeizingSupplies.Q10844_BloodyBattleSeizingSupplies; +import quests.Q10846_BloodyBattleMeetingTheCommander.Q10846_BloodyBattleMeetingTheCommander; import quests.Q10849_TrialsForAdaptation.Q10849_TrialsForAdaptation; import quests.Q10851_ElvenBotany.Q10851_ElvenBotany; import quests.Q10852_TheMotherTreeRevivalProject.Q10852_TheMotherTreeRevivalProject; @@ -256,9 +262,6 @@ import quests.not_done.Q00595_SpecialMissionRaidersCrossroads; import quests.not_done.Q00596_SpecialMissionDefeatBaylor; import quests.not_done.Q00599_DemonsAndDimensionalEnergy; import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts; -import quests.not_done.Q00665_BasicTrainingForHunterGuildMember; -import quests.not_done.Q00666_HunterGuildMembersKnowledge; -import quests.not_done.Q00668_ABattleWithTheGiants; import quests.not_done.Q00669_DesperateFightWithTheDragons; import quests.not_done.Q00671_PathToFindingThePast; import quests.not_done.Q00672_ArchenemyEmbryo; @@ -277,7 +280,6 @@ import quests.not_done.Q00838_RequestFromTheMotherTreeGuardians; import quests.not_done.Q00839_RequestFromTheUnworldlyVisitors; import quests.not_done.Q00840_RequestFromTheKingdomsRoyalGuard; import quests.not_done.Q00843_GiantEvolutionControl; -import quests.not_done.Q00845_SabotageTheEmbryoSupplies; import quests.not_done.Q00846_BuildingUpStrength; import quests.not_done.Q00929_SeekerRescue; import quests.not_done.Q00930_DisparagingThePhantoms; @@ -293,7 +295,6 @@ import quests.not_done.Q10355_BlacksmithsSoul1; import quests.not_done.Q10356_BlacksmithsSoul2; import quests.not_done.Q10373_ExploringTheDimensionSealingTheDimension; import quests.not_done.Q10418_TheImmortalPirateKing; -import quests.not_done.Q10454_FinalEmbryoApostle; import quests.not_done.Q10457_KefensisIllusion; import quests.not_done.Q10514_NewPathToGlory; import quests.not_done.Q10515_NewWayForPride; @@ -308,7 +309,6 @@ import quests.not_done.Q10673_ValentinesDayLucysReply; import quests.not_done.Q10748_MysteriousSuggestion1; import quests.not_done.Q10749_MysteriousSuggestion2; import quests.not_done.Q10845_BloodyBattleRescueTheSmiths; -import quests.not_done.Q10846_BloodyBattleMeetingTheCommander; import quests.not_done.Q10848_TrialsBeforeTheBattle; import quests.not_done.Q10853_ToWeakenTheGiants; import quests.not_done.Q10854_ToSeizeTheFortress; @@ -406,9 +406,9 @@ public class QuestMasterHandler Q00618_IntoTheFlame.class, Q00620_FourGoblets.class, Q00655_AGrandPlanForTamingWildBeasts.class, // TODO: Not done. - Q00665_BasicTrainingForHunterGuildMember.class, // TODO: Not done. - Q00666_HunterGuildMembersKnowledge.class, // TODO: Not done. - Q00668_ABattleWithTheGiants.class, // TODO: Not done. + Q00665_BasicTrainingForHunterGuildMember.class, + Q00666_HunterGuildMembersKnowledge.class, + Q00668_ABattleWithTheGiants.class, Q00669_DesperateFightWithTheDragons.class, // TODO: Not done. Q00670_DefeatingTheLordOfSeed.class, Q00671_PathToFindingThePast.class, // TODO: Not done. @@ -466,7 +466,7 @@ public class QuestMasterHandler Q00842_CaptiveDemons.class, Q00843_GiantEvolutionControl.class, // TODO: Not done. Q00844_GiantsTreasure.class, - Q00845_SabotageTheEmbryoSupplies.class, // TODO: Not done. + Q00845_SabotageTheEmbryoSupplies.class, Q00846_BuildingUpStrength.class, // TODO: Not done. Q00901_HowLavasaurusesAreMade.class, Q00903_TheCallOfAntharas.class, @@ -512,7 +512,7 @@ public class QuestMasterHandler Q10446_HitAndRun.class, Q10447_TimingIsEverything.class, Q10450_ADarkAmbition.class, - Q10454_FinalEmbryoApostle.class, // TODO: Not done. + Q10454_FinalEmbryoApostle.class, Q10455_ElikiasLetter.class, Q10457_KefensisIllusion.class, // TODO: Not done. Q10459_ASickAmbition.class, @@ -595,7 +595,7 @@ public class QuestMasterHandler Q10843_AnomalyInTheEnchantedValley.class, Q10844_BloodyBattleSeizingSupplies.class, Q10845_BloodyBattleRescueTheSmiths.class, // TODO: Not done. - Q10846_BloodyBattleMeetingTheCommander.class, // TODO: Not done. + Q10846_BloodyBattleMeetingTheCommander.class, Q10848_TrialsBeforeTheBattle.class, // TODO: Not done. Q10849_TrialsForAdaptation.class, Q10851_ElvenBotany.class, diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.java deleted file mode 100644 index 4607e3d7d8..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00665_BasicTrainingForHunterGuildMember.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 Q00665_BasicTrainingForHunterGuildMember extends Quest -{ - private static final int START_NPC = 34267; - - public Q00665_BasicTrainingForHunterGuildMember() - { - super(665); - 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/Q00666_HunterGuildMembersKnowledge.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.java deleted file mode 100644 index 60bd6d6b2f..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00666_HunterGuildMembersKnowledge.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 Q00666_HunterGuildMembersKnowledge extends Quest -{ - private static final int START_NPC = 34267; - - public Q00666_HunterGuildMembersKnowledge() - { - super(666); - 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/Q00668_ABattleWithTheGiants.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.java deleted file mode 100644 index 9678dfa038..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00668_ABattleWithTheGiants.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 Q00668_ABattleWithTheGiants extends Quest -{ - private static final int START_NPC = 34267; - - public Q00668_ABattleWithTheGiants() - { - super(668); - 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/Q00845_SabotageTheEmbryoSupplies.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.java deleted file mode 100644 index 88dc08f95f..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q00845_SabotageTheEmbryoSupplies.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 Q00845_SabotageTheEmbryoSupplies extends Quest -{ - private static final int START_NPC = 34235; - - public Q00845_SabotageTheEmbryoSupplies() - { - super(845); - 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/Q10454_FinalEmbryoApostle.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.java deleted file mode 100644 index 33d310b292..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10454_FinalEmbryoApostle.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 Q10454_FinalEmbryoApostle extends Quest -{ - private static final int START_NPC = 34319; - - public Q10454_FinalEmbryoApostle() - { - super(10454); - 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/Q10846_BloodyBattleMeetingTheCommander.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.java deleted file mode 100644 index caad5680c7..0000000000 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/not_done/Q10846_BloodyBattleMeetingTheCommander.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 Q10846_BloodyBattleMeetingTheCommander extends Quest -{ - private static final int START_NPC = 34064; - - public Q10846_BloodyBattleMeetingTheCommander() - { - super(10846); - addStartNpc(START_NPC); - addTalkId(START_NPC); - addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null)); - } -}