diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt index b839cf32ca..a396ddf9a5 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/MissingQuests.txt @@ -89,7 +89,6 @@ 10389 The Voice of Authority 10432 Chasing Varangka 10435 Chasing Keltron -10438 Chasing Loygen 10441 Chasing Meccadan 10446 Hit and Run 10447 Timing is Everything diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-00.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-00.htm new file mode 100644 index 0000000000..f31bad6807 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-00.htm @@ -0,0 +1,4 @@ +Investigator Laki:
+Embryo's power is expanding to the Plains of the Lizardmen... I need help but I don't think you're the right person for the task.
+(This quest is for level 81 or higher Sagittariuses, Moonlight Sentinels, Ghost Sentinels or Tricksters who have completed the quest "The Seal of Punishment - the Plains of the Lizardmen".) + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-01.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-01.htm new file mode 100644 index 0000000000..577561f61d --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-01.htm @@ -0,0 +1,5 @@ +Investigator Laki:
+Thank you for checking in. I've been so busy studying these fragments, I forgot I'd promised you additional work.
+Do you have time to help me out again?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-02.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-02.htm new file mode 100644 index 0000000000..15e9d5ac96 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-02.htm @@ -0,0 +1,5 @@ +Investigator Laki:
+The Mark of Embryo has text hidden by magic. Embryo must have written it to deliver a message to Tanta Lizardmen in secret.
+I used my magic to analyze the Mark of Embryo, and I could see hidden text. It said...
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-03.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-03.htm new file mode 100644 index 0000000000..ec7d592f06 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-03.htm @@ -0,0 +1,5 @@ +Investigator Laki:
+Embryo is trying to pressure the Tanta Lizardmen to get their chief, Loygen, to approach and remove the Seal of Punishment.
What's worse, I believe Tanta Lizardman Chief Loygen already knows how to remove the Seal of Punishment!
+We can't let this happen.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-04.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-04.htm new file mode 100644 index 0000000000..562dc70d9c --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-04.htm @@ -0,0 +1,4 @@ +Investigator Laki:
+Isn't it obvious? Go to the Plains of the Lizardmen and kill Tanta Lizardman Chief Loygen! We must not let anyone else find out how to remove the 6th seal! If others were to find out... it's only a matter of time before Embryo will get the secret!
+I'll talk to Captain Mouen myself. Hurry! + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-05.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-05.html new file mode 100644 index 0000000000..bf0cfb1b0a --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-05.html @@ -0,0 +1,4 @@ +Investigator Laki:
+Whatever you've come back to tell me, it's not important. You clearly haven't killed Loygen yet. Our future is up to you, so don't let us down again.
+It's a simple thing. Go to the Plains of the Lizardmen and kill Tanta Lizardman Chief Loygen. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-06.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-06.html new file mode 100644 index 0000000000..2af31450de --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-06.html @@ -0,0 +1,4 @@ +Investigator Laki:
+Is it done? Are we safe?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-07.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-07.html new file mode 100644 index 0000000000..4f7613e0ab --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-07.html @@ -0,0 +1,11 @@ +Investigator Laki:
+Embryo has been using the Tanta Lizardmen to distract us! Goodness...
+Not only did they prevent us from reaching the 6th seal, they now know how to remove it!
+Oh, sorry. Here, please choose what you want along with your reward.
+ + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-08.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-08.html new file mode 100644 index 0000000000..4ca6b1851e --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/32742-08.html @@ -0,0 +1,5 @@ +Investigator Laki:
+Here you go. I also added some things for all the work you've done.
+But Embryo has already found a way to release the Seal of Punishment... I don't know what to think. This is devastating news.
+I must report this to Captain Mouen. Excuse me. + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/Q10438_ChasingLoygen.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/Q10438_ChasingLoygen.java new file mode 100644 index 0000000000..47c71616d0 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/Q10438_ChasingLoygen.java @@ -0,0 +1,152 @@ +/* + * 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.Q10438_ChasingLoygen; + +import com.l2jmobius.gameserver.enums.CategoryType; +import com.l2jmobius.gameserver.enums.Race; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; +import com.l2jmobius.gameserver.model.quest.Quest; +import com.l2jmobius.gameserver.model.quest.QuestState; +import com.l2jmobius.gameserver.model.quest.State; + +import quests.Q10437_TheSealOfPunishmentPlainsOfTheLizardmen.Q10437_TheSealOfPunishmentPlainsOfTheLizardmen; + +/** + * Chasing Loygen (10438) + * @URL https://l2wiki.com/Chasing_Loygen + * @author Gigi + */ +public class Q10438_ChasingLoygen extends Quest +{ + // NPCs + private static final int LAKI = 32742; + private static final int TANTA_LIZARDMAN_CHIEF_LOYGEN = 27497; + // Misc + private static final int MIN_LEVEL = 81; + // Reward + private static final int EAS = 960; + + public Q10438_ChasingLoygen() + { + super(10438); + addStartNpc(LAKI); + addTalkId(LAKI); + addKillId(TANTA_LIZARDMAN_CHIEF_LOYGEN); + addCondMinLevel(MIN_LEVEL, "32742-00.htm"); + addCondNotRace(Race.ERTHEIA, "noErtheia.html"); + addCondInCategory(CategoryType.BOW_MASTER, "32742-00.htm"); + addCondCompletedQuest(Q10437_TheSealOfPunishmentPlainsOfTheLizardmen.class.getSimpleName(), "32742-00.htm"); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "32742-02.htm": + case "32742-03.htm": + case "32742-07.html": + { + htmltext = event; + break; + } + case "32742-04.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "reward_9546": + case "reward_9547": + case "reward_9548": + case "reward_9549": + case "reward_9550": + case "reward_9551": + { + if (qs.isCond(2)) + { + final int stoneId = Integer.parseInt(event.replaceAll("reward_", "")); + giveItems(player, stoneId, 15); + giveItems(player, EAS, 5); + giveStoryQuestReward(player, 30); + addExpAndSp(player, 14120400, 3388); + qs.exitQuest(false, true); + } + htmltext = "32742-08.html"; + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + if (qs == null) + { + return htmltext; + } + switch (qs.getState()) + { + case State.CREATED: + { + htmltext = "32742-01.htm"; + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "32742-05.html"; + break; + } + else if (qs.isCond(2)) + { + htmltext = "32742-06.html"; + } + break; + } + case State.COMPLETED: + { + htmltext = getNoQuestMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if ((qs != null) && qs.isCond(1)) + { + qs.setCond(2, true); + } + return super.onKill(npc, killer, isSummon); + } +} \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/noErtheia.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/noErtheia.html new file mode 100644 index 0000000000..632160dfd6 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10438_ChasingLoygen/noErtheia.html @@ -0,0 +1,4 @@ +Investigator Laki:
+Embryo's power is expanding to the Plains of the Lizardmen... I need help but I don't think you're the right person for the task.
+(Ertheia is excluded from this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java index 006f2d657d..5768acb965 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -299,6 +299,7 @@ import quests.Q10433_KekropusLetterRegardingASeal.Q10433_KekropusLetterRegarding import quests.Q10434_TheSealOfPunishmentSelMahumTrainingGrounds.Q10434_TheSealOfPunishmentSelMahumTrainingGrounds; import quests.Q10436_KekropusLetterTheSealOfPunishment.Q10436_KekropusLetterTheSealOfPunishment; import quests.Q10437_TheSealOfPunishmentPlainsOfTheLizardmen.Q10437_TheSealOfPunishmentPlainsOfTheLizardmen; +import quests.Q10438_ChasingLoygen.Q10438_ChasingLoygen; import quests.Q10439_KekropusLetterTheOriginsOfARumor.Q10439_KekropusLetterTheOriginsOfARumor; import quests.Q10440_TheSealOfPunishmentTheFields.Q10440_TheSealOfPunishmentTheFields; import quests.Q10442_TheAnnihilatedPlains1.Q10442_TheAnnihilatedPlains1; @@ -685,6 +686,7 @@ public class QuestMasterHandler Q10434_TheSealOfPunishmentSelMahumTrainingGrounds.class, Q10436_KekropusLetterTheSealOfPunishment.class, Q10437_TheSealOfPunishmentPlainsOfTheLizardmen.class, + Q10438_ChasingLoygen.class, Q10439_KekropusLetterTheOriginsOfARumor.class, Q10440_TheSealOfPunishmentTheFields.class, Q10442_TheAnnihilatedPlains1.class, diff --git a/L2J_Mobius_Underground/dist/game/data/spawns/old/22_20.xml b/L2J_Mobius_Underground/dist/game/data/spawns/old/22_20.xml index d88fec12ff..72d8613871 100644 --- a/L2J_Mobius_Underground/dist/game/data/spawns/old/22_20.xml +++ b/L2J_Mobius_Underground/dist/game/data/spawns/old/22_20.xml @@ -658,6 +658,7 @@ + \ No newline at end of file