diff --git a/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-01.htm b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-01.htm new file mode 100644 index 0000000000..15cf572315 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-01.htm @@ -0,0 +1,5 @@ +Vice Hierarch Zenya:
+The Succubus monsters are collecting relics in the Imperial Tomb at Shilen's order. I don't know how the relic's power will help Shilen, but we can't just watch +this happen. Adventuren, please take back the relics the Succubus monsters have stolen
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-02.htm b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-02.htm new file mode 100644 index 0000000000..57a57721cb --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-02.htm @@ -0,0 +1,4 @@ +Vice Hierarch Zenya:
+Thank you. Noe You must go to the Imperial Tomb, kill the monsters, and find the Relics of the Empire
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-03.htm b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-03.htm new file mode 100644 index 0000000000..9f7cde720a --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-03.htm @@ -0,0 +1,6 @@ +Vice Hierarch Zenya:
+Relics of the Empire can be obtained from killing Apparition Destroyers, Apparition Assassins, +Apparition Snipers and Apparition Wizard
+Bring me 50 Relics of the Empire.
+Oh! while you are on this mission, you can get Entrance Passes to the Sepulcher. If you want to go to the Four Sepulchers leter, keep them well.
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-04.html b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-04.html new file mode 100644 index 0000000000..3e0b229fe3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-04.html @@ -0,0 +1,4 @@ +Vice Hierarch Zenya:
+Adventurer, you have done well. It was a dangerous mission, but you finished it faithfully. However, Shilen's greed has not stopped yet. +I want you to keep helping me, but you should go and rest first.
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-05.html b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-05.html new file mode 100644 index 0000000000..4c689df941 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-05.html @@ -0,0 +1,3 @@ +Vice Hierarch Zenya:
+Thank you. Noe You must go to the Imperial Tomb, kill the monsters, and find the Relics of the Empire
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/Q00492_TombRaiders.java b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/Q00492_TombRaiders.java new file mode 100644 index 0000000000..3d095ec32e --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/Q00492_TombRaiders.java @@ -0,0 +1,155 @@ +/* + * 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.Q00492_TombRaiders; + +import com.l2jmobius.gameserver.enums.QuestSound; +import com.l2jmobius.gameserver.enums.QuestType; +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; + +/** + * Tomb Raiders (492) + * @URL https://l2wiki.com/Tomb_Raiders + * @author Gigi + */ +public class Q00492_TombRaiders extends Quest +{ + // NPCs + private static final int ZENYA = 32140; + // Items + private static final int RELICS_OF_THE_EMPIRE = 34769; + // Reward + private static final int EXP_REWARD = 300500; + private static final int SP_REWARD = 75; + // Misc + private static final int MIN_LEVEL = 80; + // Monsters + private static final int[] MONSTERS = + { + 23193, // Apparition Destroyer (83) + 23194, // Apparition Assassin (83) + 23195, // Apparition Sniper (83) + 23196 // Apparition Wizard (83) + }; + + public Q00492_TombRaiders() + { + super(492, Q00492_TombRaiders.class.getSimpleName(), "Tomb Raiders"); + addStartNpc(ZENYA); + addTalkId(ZENYA); + registerQuestItems(RELICS_OF_THE_EMPIRE); + addKillId(MONSTERS); + addCondMinLevel(MIN_LEVEL, "noLevel.html"); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "32140-02.htm": + { + htmltext = event; + break; + } + case "32140-03.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + + if (qs.isCompleted()) + { + htmltext = getAlreadyCompletedMsg(player); + } + + if ((npc.getId() == ZENYA) && !player.isSubClassActive() && !player.isDualClassActive() && (player.getClassId().level() == 4)) + { + return "noClass.html"; + } + + switch (npc.getId()) + { + case ZENYA: + { + if (qs.isCreated()) + { + htmltext = "32140-01.htm"; + } + else if (qs.isStarted()) + { + switch (qs.getCond()) + { + case 1: + { + htmltext = "32140-05.html"; + break; + } + case 2: + { + if (qs.isCond(2) && (getQuestItemsCount(player, RELICS_OF_THE_EMPIRE) >= 50)) + { + takeItems(player, RELICS_OF_THE_EMPIRE, 50); + addExpAndSp(player, EXP_REWARD * player.getLevel(), SP_REWARD * player.getLevel()); + playSound(player, QuestSound.ITEMSOUND_QUEST_FINISH); + qs.exitQuest(QuestType.DAILY, true); + htmltext = "32140-04.html"; + } + break; + } + } + } + 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)) + { + if (giveItemRandomly(killer, npc, RELICS_OF_THE_EMPIRE, 1, 50, 0.30, true)) + { + qs.setCond(2); + } + } + return super.onKill(npc, killer, isSummon); + } +} \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/noClass.html b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/noClass.html new file mode 100644 index 0000000000..df16762883 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/noClass.html @@ -0,0 +1,4 @@ +Vice Hierarch Zenya:
+I feel your strength Germunkusa. Now we are able to deal with all problems. And your other necessary assistance.
+(This is a task only for the characters, the last third change of profession, and not degenerate.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/noLevel.html b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/noLevel.html new file mode 100644 index 0000000000..3c0d396dfb --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/noLevel.html @@ -0,0 +1,4 @@ +Vice Hierarch Zenya:
+It is too difficult a task for you. Do not worry, come when will become stronger.
+(This quest is available after reaching level 80.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java index 79374d3260..4d5b803f02 100644 --- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -132,6 +132,7 @@ import quests.Q00471_BreakingThroughTheEmeraldSquare.Q00471_BreakingThroughTheEm import quests.Q00472_ChallengeSteamCorridor.Q00472_ChallengeSteamCorridor; import quests.Q00473_InTheCoralGarden.Q00473_InTheCoralGarden; import quests.Q00490_DutyOfTheSurvivor.Q00490_DutyOfTheSurvivor; +import quests.Q00492_TombRaiders.Q00492_TombRaiders; import quests.Q00494_IncarnationOfGreedZellakaGroup.Q00494_IncarnationOfGreedZellakaGroup; import quests.Q00495_IncarnationOfJealousyPellineGroup.Q00495_IncarnationOfJealousyPellineGroup; import quests.Q00496_IncarnationOfGluttonyKaliosGroup.Q00496_IncarnationOfGluttonyKaliosGroup; @@ -413,6 +414,7 @@ final class QuestMasterHandler Q00472_ChallengeSteamCorridor.class, Q00473_InTheCoralGarden.class, Q00490_DutyOfTheSurvivor.class, + Q00492_TombRaiders.class, Q00494_IncarnationOfGreedZellakaGroup.class, Q00495_IncarnationOfJealousyPellineGroup.class, Q00496_IncarnationOfGluttonyKaliosGroup.class,