From 804ee1069a695f1d85a82c22bed745d805c3ece5 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 13 Dec 2015 17:21:40 +0000 Subject: [PATCH] Kartia quests. Based on script shared by Karma12. Source: http://www.l2jserver.com/forum/viewtopic.php?f=113&t=30972 --- .../KartiasLabyrinth/KartiasLabyrinth.java | 102 ++++++++++++- .../33647-00.htm | 4 + .../33647-00a.html | 2 + .../33647-01.htm | 5 + .../33647-02.htm | 5 + .../33647-03.htm | 4 + .../33647-04.html | 4 + .../33647-05.html | 4 + .../33647-06.html | 3 + .../33647-07.html | 4 + ...Q00494_IncarnationOfGreedZellakaGroup.java | 134 ++++++++++++++++++ .../33647-00.htm | 4 + .../33647-00a.html | 2 + .../33647-01.htm | 5 + .../33647-02.htm | 5 + .../33647-03.htm | 4 + .../33647-04.html | 4 + .../33647-05.html | 4 + .../33647-06.html | 3 + .../33647-07.html | 4 + ...495_IncarnationOfJealousyPellineGroup.java | 134 ++++++++++++++++++ .../33647-00.htm | 4 + .../33647-00a.html | 2 + .../33647-01.htm | 5 + .../33647-02.htm | 5 + .../33647-03.htm | 4 + .../33647-04.html | 4 + .../33647-05.html | 4 + .../33647-06.html | 3 + .../33647-07.html | 4 + ...0496_IncarnationOfGluttonyKaliosGroup.java | 134 ++++++++++++++++++ .../33647-00.htm | 4 + .../33647-00a.html | 2 + .../33647-01.htm | 5 + .../33647-02.htm | 5 + .../33647-03.htm | 4 + .../33647-04.html | 4 + .../33647-05.html | 4 + .../33647-06.html | 3 + .../33647-07.html | 4 + .../Q00497_IncarnationOfGreedZellakaSolo.java | 134 ++++++++++++++++++ .../33647-00.htm | 4 + .../33647-00a.html | 2 + .../33647-01.htm | 5 + .../33647-02.htm | 5 + .../33647-03.htm | 4 + .../33647-04.html | 4 + .../33647-05.html | 4 + .../33647-06.html | 3 + .../33647-07.html | 4 + ...0498_IncarnationOfJealousyPellineSolo.java | 134 ++++++++++++++++++ .../33647-00.htm | 4 + .../33647-00a.html | 2 + .../33647-01.htm | 5 + .../33647-02.htm | 5 + .../33647-03.htm | 4 + .../33647-04.html | 4 + .../33647-05.html | 4 + .../33647-06.html | 3 + .../33647-07.html | 4 + ...00499_IncarnationOfGluttonyKaliosSolo.java | 134 ++++++++++++++++++ .../scripts/quests/QuestMasterHandler.java | 12 ++ 62 files changed, 1122 insertions(+), 6 deletions(-) create mode 100644 trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00a.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-03.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-04.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-05.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-06.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-07.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/Q00494_IncarnationOfGreedZellakaGroup.java create mode 100644 trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00a.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-03.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-04.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-05.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-06.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-07.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/Q00495_IncarnationOfJealousyPellineGroup.java create mode 100644 trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00a.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-03.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-04.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-05.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-06.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-07.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/Q00496_IncarnationOfGluttonyKaliosGroup.java create mode 100644 trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00a.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-03.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-04.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-05.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-06.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-07.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/Q00497_IncarnationOfGreedZellakaSolo.java create mode 100644 trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00a.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-03.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-04.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-05.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-06.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-07.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/Q00498_IncarnationOfJealousyPellineSolo.java create mode 100644 trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00a.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-03.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-04.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-05.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-06.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-07.html create mode 100644 trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/Q00499_IncarnationOfGluttonyKaliosSolo.java diff --git a/trunk/dist/game/data/scripts/instances/KartiasLabyrinth/KartiasLabyrinth.java b/trunk/dist/game/data/scripts/instances/KartiasLabyrinth/KartiasLabyrinth.java index e092bb8bd6..34a88c37a5 100644 --- a/trunk/dist/game/data/scripts/instances/KartiasLabyrinth/KartiasLabyrinth.java +++ b/trunk/dist/game/data/scripts/instances/KartiasLabyrinth/KartiasLabyrinth.java @@ -26,6 +26,13 @@ import java.util.Calendar; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; +import quests.Q00494_IncarnationOfGreedZellakaGroup.Q00494_IncarnationOfGreedZellakaGroup; +import quests.Q00495_IncarnationOfJealousyPellineGroup.Q00495_IncarnationOfJealousyPellineGroup; +import quests.Q00496_IncarnationOfGluttonyKaliosGroup.Q00496_IncarnationOfGluttonyKaliosGroup; +import quests.Q00497_IncarnationOfGreedZellakaSolo.Q00497_IncarnationOfGreedZellakaSolo; +import quests.Q00498_IncarnationOfJealousyPellineSolo.Q00498_IncarnationOfJealousyPellineSolo; +import quests.Q00499_IncarnationOfGluttonyKaliosSolo.Q00499_IncarnationOfGluttonyKaliosSolo; + import com.l2jserver.Config; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.instancemanager.InstanceManager; @@ -35,6 +42,8 @@ import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.actor.instance.L2QuestGuardInstance; import com.l2jserver.gameserver.model.instancezone.InstanceWorld; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; import com.l2jserver.gameserver.model.skills.AbnormalVisualEffect; import com.l2jserver.gameserver.network.NpcStringId; import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage; @@ -123,12 +132,13 @@ public final class KartiasLabyrinth extends AbstractInstance protected class KartiaWorld extends InstanceWorld { - L2QuestGuardInstance adolph = null; - L2QuestGuardInstance barton = null; - L2QuestGuardInstance hayuk = null; - L2QuestGuardInstance eliyah = null; - L2QuestGuardInstance elise = null; - List savedSpawns = new CopyOnWriteArrayList<>(); + protected L2QuestGuardInstance adolph = null; + protected L2QuestGuardInstance barton = null; + protected L2QuestGuardInstance hayuk = null; + protected L2QuestGuardInstance eliyah = null; + protected L2QuestGuardInstance elise = null; + protected List playersInside = new ArrayList<>(); + protected List savedSpawns = new CopyOnWriteArrayList<>(); } public KartiasLabyrinth() @@ -575,6 +585,85 @@ public final class KartiasLabyrinth extends AbstractInstance { if (((KartiaWorld) world).savedSpawns.isEmpty()) { + // Check Instance Quests. + for (L2PcInstance plr : ((KartiaWorld) world).playersInside) + { + switch (world.getTemplateId()) + { + case SOLO_85_TEMPLATE_ID: + { + if ((plr != null) && (plr.getInstanceId() == world.getInstanceId())) + { + final QuestState qs = player.getQuestState(Q00497_IncarnationOfGreedZellakaSolo.class.getSimpleName()); + if ((qs != null) && (qs.getState() == State.STARTED) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } + break; + } + case SOLO_90_TEMPLATE_ID: + { + if ((plr != null) && (plr.getInstanceId() == world.getInstanceId())) + { + final QuestState qs = player.getQuestState(Q00498_IncarnationOfJealousyPellineSolo.class.getSimpleName()); + if ((qs != null) && (qs.getState() == State.STARTED) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } + break; + } + case SOLO_95_TEMPLATE_ID: + { + if ((plr != null) && (plr.getInstanceId() == world.getInstanceId())) + { + final QuestState qs = player.getQuestState(Q00499_IncarnationOfGluttonyKaliosSolo.class.getSimpleName()); + if ((qs != null) && (qs.getState() == State.STARTED) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } + break; + } + case PARTY_85_TEMPLATE_ID: + { + if ((plr != null) && (plr.getInstanceId() == world.getInstanceId())) + { + final QuestState qs = player.getQuestState(Q00494_IncarnationOfGreedZellakaGroup.class.getSimpleName()); + if ((qs != null) && (qs.getState() == State.STARTED) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } + break; + } + case PARTY_90_TEMPLATE_ID: + { + if ((plr != null) && (plr.getInstanceId() == world.getInstanceId())) + { + final QuestState qs = player.getQuestState(Q00495_IncarnationOfJealousyPellineGroup.class.getSimpleName()); + if ((qs != null) && (qs.getState() == State.STARTED) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } + break; + } + case PARTY_95_TEMPLATE_ID: + { + if ((plr != null) && (plr.getInstanceId() == world.getInstanceId())) + { + final QuestState qs = player.getQuestState(Q00496_IncarnationOfGluttonyKaliosGroup.class.getSimpleName()); + if ((qs != null) && (qs.getState() == State.STARTED) && qs.isCond(1)) + { + qs.setCond(2, true); + } + } + break; + } + } + } // 5 minute exit timer. InstanceManager.getInstance().getInstance(world.getInstanceId()).setDuration(Config.INSTANCE_FINISH_TIME); InstanceManager.getInstance().getInstance(world.getInstanceId()).setEmptyDestroyTime(0); @@ -620,6 +709,7 @@ public final class KartiasLabyrinth extends AbstractInstance player.getVariables().set(KARTIA_PARTY_ENTRY_VAR, System.currentTimeMillis()); } world.addAllowed(player.getObjectId()); + ((KartiaWorld) world).playersInside.add(player); teleportPlayer(player, START_LOC, world.getInstanceId(), false); } diff --git a/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00.htm b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00.htm new file mode 100644 index 0000000000..b65cfcbbb3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.
+(This quest can be undertaken by characters who are Lv. 85 - 89.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00a.html b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00a.html new file mode 100644 index 0000000000..4234024911 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00a.html @@ -0,0 +1,2 @@ +You cannot receive quest rewards as your character's level is lower than the minimum required for the quest. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-01.htm b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-01.htm new file mode 100644 index 0000000000..a1a81dddd8 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-01.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+What a disaster! Shilen has created dimensional fissures everywhere!
+Ever since the Kartia Labyrinth appeared monsters from the dark spirit realm have crossed over to our material plane. If we can't find a way to stop them, I'm afraid we're finished.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-02.htm b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-02.htm new file mode 100644 index 0000000000..5cb4ff27ee --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-02.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!
+What's worse, they're summoning minions to do their bidding. We can't allow them to bring those friends into the Material Realm. Kill them before we're overrun!
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-03.htm b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-03.htm new file mode 100644 index 0000000000..b32f91c701 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-03.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Really? That's great!
+Based on my extensive knowledge of the labyrinth, it should be enough to get rid of the minions and then kill one of more powerful demons--Zellaka. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-04.html b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-04.html new file mode 100644 index 0000000000..26f7948690 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-04.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+I'll leave it to you then. Come back quickly!
+Remember, clear out the minions and then kill Zellaka. Easy, right? + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-05.html b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-05.html new file mode 100644 index 0000000000..cbebe04aae --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-05.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+You're back! Well? Did you send the demons back to the darkness where they belong?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-06.html b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-06.html new file mode 100644 index 0000000000..780863fca4 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-06.html @@ -0,0 +1,3 @@ +Kartia Researcher:
+Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-07.html b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-07.html new file mode 100644 index 0000000000..ec0e3a18c3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-07.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+It appears that we are safe for now. Could you come back to check again tomorrow?
+(This quest can only be undertaken once a day. It resets everyday at 06:30.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/Q00494_IncarnationOfGreedZellakaGroup.java b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/Q00494_IncarnationOfGreedZellakaGroup.java new file mode 100644 index 0000000000..db84eefa9b --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/Q00494_IncarnationOfGreedZellakaGroup.java @@ -0,0 +1,134 @@ +/* + * Copyright (C) 2004-2015 L2J DataPack + * + * This file is part of L2J DataPack. + * + * L2J DataPack 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. + * + * L2J DataPack 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.Q00494_IncarnationOfGreedZellakaGroup; + +import com.l2jserver.gameserver.enums.QuestType; +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; + +/** + * Incarnation of Greed Zellaka (Group) (494) + * @author Mobius + */ +public class Q00494_IncarnationOfGreedZellakaGroup extends Quest +{ + // NPC + private static final int KARTIA_RESEARCHER = 33647; + // Item + private static final int DIMENSION_KEEPER_BLUE_BOX = 34927; + // Misc + private static final int MIN_LEVEL = 85; + private static final int MAX_LEVEL = 89; + + public Q00494_IncarnationOfGreedZellakaGroup() + { + super(494, Q00494_IncarnationOfGreedZellakaGroup.class.getSimpleName(), "Incarnation of Greed Zellaka (Group)"); + addStartNpc(KARTIA_RESEARCHER); + addTalkId(KARTIA_RESEARCHER); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = event; + if (event.equals("33647-03.htm")) + { + qs.startQuest(); + } + else if (event.equals("33647-06.html") && qs.isCond(2)) + { + rewardItems(player, DIMENSION_KEEPER_BLUE_BOX, 1); + qs.exitQuest(QuestType.DAILY, true); + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + String htmltext = getNoQuestMsg(player); + final QuestState qs = getQuestState(player, true); + if (qs == null) + { + return htmltext; + } + + switch (qs.getState()) + { + case State.CREATED: + { + if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "33647-04.html"; + } + else if (qs.isCond(2)) + { + if ((player.getLevel() < MIN_LEVEL) && (player.getLevel() > MAX_LEVEL)) + { + htmltext = "33647-00a.htm"; + } + else + { + htmltext = "33647-05.html"; + } + } + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + else if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = "33647-07.html"; + } + break; + } + } + return htmltext; + } +} \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00.htm b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00.htm new file mode 100644 index 0000000000..c155deb616 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.
+(This quest can be undertaken by characters who are Lv. 90 - 94.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00a.html b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00a.html new file mode 100644 index 0000000000..4234024911 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00a.html @@ -0,0 +1,2 @@ +You cannot receive quest rewards as your character's level is lower than the minimum required for the quest. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-01.htm b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-01.htm new file mode 100644 index 0000000000..03362a90f4 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-01.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+What a disaster! Shilen has created dimensional fissures everywhere!
+Ever since the Kartia Labyrinth appeared monsters from the dark spirit realm have crossed over to our material plane. If we can't find a way to stop them, I'm afraid we're finished.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-02.htm b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-02.htm new file mode 100644 index 0000000000..0494314cb3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-02.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!
+What's worse, they're summoning minions to do their bidding. We can't allow them to bring those friends into the Material Realm. Kill them before we're overrun!
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-03.htm b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-03.htm new file mode 100644 index 0000000000..477e6dacb4 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-03.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Really? That's great!
+Based on my extensive knowledge of the labyrinth, it should be enough to get rid of the minions and then kill one of more powerful demons--Pelline. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-04.html b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-04.html new file mode 100644 index 0000000000..dfee16e7f6 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-04.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+I'll leave it to you then. Come back quickly!
+Remember, clear out the minions and then kill Pelline. Easy, right? + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-05.html b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-05.html new file mode 100644 index 0000000000..128b6fe7b6 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-05.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+You're back! Well? Did you send the demons back to the darkness where they belong?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-06.html b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-06.html new file mode 100644 index 0000000000..780863fca4 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-06.html @@ -0,0 +1,3 @@ +Kartia Researcher:
+Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-07.html b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-07.html new file mode 100644 index 0000000000..ec0e3a18c3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-07.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+It appears that we are safe for now. Could you come back to check again tomorrow?
+(This quest can only be undertaken once a day. It resets everyday at 06:30.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/Q00495_IncarnationOfJealousyPellineGroup.java b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/Q00495_IncarnationOfJealousyPellineGroup.java new file mode 100644 index 0000000000..b087b40cfc --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/Q00495_IncarnationOfJealousyPellineGroup.java @@ -0,0 +1,134 @@ +/* + * Copyright (C) 2004-2015 L2J DataPack + * + * This file is part of L2J DataPack. + * + * L2J DataPack 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. + * + * L2J DataPack 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.Q00495_IncarnationOfJealousyPellineGroup; + +import com.l2jserver.gameserver.enums.QuestType; +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; + +/** + * Incarnation of Jealousy Pelline (Group) (495) + * @author Mobius + */ +public class Q00495_IncarnationOfJealousyPellineGroup extends Quest +{ + // NPC + private static final int KARTIA_RESEARCHER = 33647; + // Item + private static final int DIMENSION_KEEPER_RED_BOX = 34928; + // Misc + private static final int MIN_LEVEL = 90; + private static final int MAX_LEVEL = 94; + + public Q00495_IncarnationOfJealousyPellineGroup() + { + super(495, Q00495_IncarnationOfJealousyPellineGroup.class.getSimpleName(), "Incarnation of Jealousy Pelline (Group)"); + addStartNpc(KARTIA_RESEARCHER); + addTalkId(KARTIA_RESEARCHER); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = event; + if (event.equals("33647-03.htm")) + { + qs.startQuest(); + } + else if (event.equals("33647-06.html") && qs.isCond(2)) + { + rewardItems(player, DIMENSION_KEEPER_RED_BOX, 1); + qs.exitQuest(QuestType.DAILY, true); + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + String htmltext = getNoQuestMsg(player); + final QuestState qs = getQuestState(player, true); + if (qs == null) + { + return htmltext; + } + + switch (qs.getState()) + { + case State.CREATED: + { + if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "33647-04.html"; + } + else if (qs.isCond(2)) + { + if ((player.getLevel() < MIN_LEVEL) && (player.getLevel() > MAX_LEVEL)) + { + htmltext = "33647-00a.htm"; + } + else + { + htmltext = "33647-05.html"; + } + } + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + else if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = "33647-07.html"; + } + break; + } + } + return htmltext; + } +} \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00.htm b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00.htm new file mode 100644 index 0000000000..69e9244a8a --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.
+(This quest can be undertaken by characters who are Lv. 95 - 99.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00a.html b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00a.html new file mode 100644 index 0000000000..4234024911 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00a.html @@ -0,0 +1,2 @@ +You cannot receive quest rewards as your character's level is lower than the minimum required for the quest. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-01.htm b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-01.htm new file mode 100644 index 0000000000..5dc5c7b7c0 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-01.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+What a disaster! Shilen has created dimensional fissures everywhere!
+Ever since the Kartia Labyrinth appeared monsters from the dark spirit realm have crossed over to our material plane. If we can't find a way to stop them, I'm afraid we're finished.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-02.htm b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-02.htm new file mode 100644 index 0000000000..1d0243cfc5 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-02.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!
+What's worse, they're summoning minions to do their bidding. We can't allow them to bring those friends into the Material Realm. Kill them before we're overrun!
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-03.htm b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-03.htm new file mode 100644 index 0000000000..0547195e2c --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-03.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Really? That's great!
+Based on my extensive knowledge of the labyrinth, it should be enough to get rid of the minions and then kill one of more powerful demons--Kalios. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-04.html b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-04.html new file mode 100644 index 0000000000..d871f18728 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-04.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+I'll leave it to you then. Come back quickly!
+Remember, clear out the minions and then kill Kalios. Easy, right? + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-05.html b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-05.html new file mode 100644 index 0000000000..d366e59b42 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-05.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+You're back! Well? Did you send the demons back to the darkness where they belong?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-06.html b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-06.html new file mode 100644 index 0000000000..780863fca4 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-06.html @@ -0,0 +1,3 @@ +Kartia Researcher:
+Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-07.html b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-07.html new file mode 100644 index 0000000000..ec0e3a18c3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-07.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+It appears that we are safe for now. Could you come back to check again tomorrow?
+(This quest can only be undertaken once a day. It resets everyday at 06:30.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/Q00496_IncarnationOfGluttonyKaliosGroup.java b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/Q00496_IncarnationOfGluttonyKaliosGroup.java new file mode 100644 index 0000000000..ac1961fc11 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/Q00496_IncarnationOfGluttonyKaliosGroup.java @@ -0,0 +1,134 @@ +/* + * Copyright (C) 2004-2015 L2J DataPack + * + * This file is part of L2J DataPack. + * + * L2J DataPack 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. + * + * L2J DataPack 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.Q00496_IncarnationOfGluttonyKaliosGroup; + +import com.l2jserver.gameserver.enums.QuestType; +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; + +/** + * Incarnation of Gluttony Kalios (Group) (496) + * @author Mobius + */ +public class Q00496_IncarnationOfGluttonyKaliosGroup extends Quest +{ + // NPC + private static final int KARTIA_RESEARCHER = 33647; + // Item + private static final int DIMENSION_KEEPER_GOLDEN_BOX = 34929; + // Misc + private static final int MIN_LEVEL = 95; + private static final int MAX_LEVEL = 99; + + public Q00496_IncarnationOfGluttonyKaliosGroup() + { + super(496, Q00496_IncarnationOfGluttonyKaliosGroup.class.getSimpleName(), "Incarnation of Gluttony Kalios (Group)"); + addStartNpc(KARTIA_RESEARCHER); + addTalkId(KARTIA_RESEARCHER); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = event; + if (event.equals("33647-03.htm")) + { + qs.startQuest(); + } + else if (event.equals("33647-06.html") && qs.isCond(2)) + { + rewardItems(player, DIMENSION_KEEPER_GOLDEN_BOX, 1); + qs.exitQuest(QuestType.DAILY, true); + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + String htmltext = getNoQuestMsg(player); + final QuestState qs = getQuestState(player, true); + if (qs == null) + { + return htmltext; + } + + switch (qs.getState()) + { + case State.CREATED: + { + if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "33647-04.html"; + } + else if (qs.isCond(2)) + { + if ((player.getLevel() < MIN_LEVEL) && (player.getLevel() > MAX_LEVEL)) + { + htmltext = "33647-00a.htm"; + } + else + { + htmltext = "33647-05.html"; + } + } + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + else if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = "33647-07.html"; + } + break; + } + } + return htmltext; + } +} \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00.htm b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00.htm new file mode 100644 index 0000000000..b65cfcbbb3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.
+(This quest can be undertaken by characters who are Lv. 85 - 89.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00a.html b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00a.html new file mode 100644 index 0000000000..4234024911 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00a.html @@ -0,0 +1,2 @@ +You cannot receive quest rewards as your character's level is lower than the minimum required for the quest. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-01.htm b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-01.htm new file mode 100644 index 0000000000..d951e1bf3f --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-01.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+What a disaster! Shilen has created dimensional fissures everywhere!
+Ever since the Kartia Labyrinth appeared monsters from the dark spirit realm have crossed over to our material plane. If we can't find a way to stop them, I'm afraid we're finished.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-02.htm b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-02.htm new file mode 100644 index 0000000000..98ba26a301 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-02.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!
+What's worse, they're summoning minions to do their bidding. We can't allow them to bring those friends into the Material Realm. Kill them before we're overrun!
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-03.htm b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-03.htm new file mode 100644 index 0000000000..b32f91c701 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-03.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Really? That's great!
+Based on my extensive knowledge of the labyrinth, it should be enough to get rid of the minions and then kill one of more powerful demons--Zellaka. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-04.html b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-04.html new file mode 100644 index 0000000000..26f7948690 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-04.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+I'll leave it to you then. Come back quickly!
+Remember, clear out the minions and then kill Zellaka. Easy, right? + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-05.html b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-05.html new file mode 100644 index 0000000000..86e3cb5bce --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-05.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+You're back! Well? Did you send the demons back to the darkness where they belong?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-06.html b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-06.html new file mode 100644 index 0000000000..780863fca4 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-06.html @@ -0,0 +1,3 @@ +Kartia Researcher:
+Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-07.html b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-07.html new file mode 100644 index 0000000000..ec0e3a18c3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-07.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+It appears that we are safe for now. Could you come back to check again tomorrow?
+(This quest can only be undertaken once a day. It resets everyday at 06:30.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/Q00497_IncarnationOfGreedZellakaSolo.java b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/Q00497_IncarnationOfGreedZellakaSolo.java new file mode 100644 index 0000000000..0d750d69d6 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/Q00497_IncarnationOfGreedZellakaSolo.java @@ -0,0 +1,134 @@ +/* + * Copyright (C) 2004-2015 L2J DataPack + * + * This file is part of L2J DataPack. + * + * L2J DataPack 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. + * + * L2J DataPack 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.Q00497_IncarnationOfGreedZellakaSolo; + +import com.l2jserver.gameserver.enums.QuestType; +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; + +/** + * Incarnation of Greed Zellaka (Solo) (497) + * @author Mobius + */ +public class Q00497_IncarnationOfGreedZellakaSolo extends Quest +{ + // NPC + private static final int KARTIA_RESEARCHER = 33647; + // Item + private static final int DIMENSION_TRAVELERS_BLUE_BOX = 34930; + // Misc + private static final int MIN_LEVEL = 85; + private static final int MAX_LEVEL = 89; + + public Q00497_IncarnationOfGreedZellakaSolo() + { + super(497, Q00497_IncarnationOfGreedZellakaSolo.class.getSimpleName(), "Incarnation of Greed Zellaka (Solo)"); + addStartNpc(KARTIA_RESEARCHER); + addTalkId(KARTIA_RESEARCHER); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = event; + if (event.equals("33647-03.htm")) + { + qs.startQuest(); + } + else if (event.equals("33647-06.html") && qs.isCond(2)) + { + rewardItems(player, DIMENSION_TRAVELERS_BLUE_BOX, 1); + qs.exitQuest(QuestType.DAILY, true); + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + String htmltext = getNoQuestMsg(player); + final QuestState qs = getQuestState(player, true); + if (qs == null) + { + return htmltext; + } + + switch (qs.getState()) + { + case State.CREATED: + { + if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "33647-04.html"; + } + else if (qs.isCond(2)) + { + if ((player.getLevel() < MIN_LEVEL) && (player.getLevel() > MAX_LEVEL)) + { + htmltext = "33647-00a.htm"; + } + else + { + htmltext = "33647-05.html"; + } + } + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + else if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = "33647-07.html"; + } + break; + } + } + return htmltext; + } +} \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00.htm b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00.htm new file mode 100644 index 0000000000..c155deb616 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.
+(This quest can be undertaken by characters who are Lv. 90 - 94.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00a.html b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00a.html new file mode 100644 index 0000000000..4234024911 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00a.html @@ -0,0 +1,2 @@ +You cannot receive quest rewards as your character's level is lower than the minimum required for the quest. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-01.htm b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-01.htm new file mode 100644 index 0000000000..99f6b9d939 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-01.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+What a disaster! Shilen has created dimensional fissures everywhere!
+Ever since the Kartia Labyrinth appeared monsters from the dark spirit realm have crossed over to our material plane. If we can't find a way to stop them, I'm afraid we're finished.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-02.htm b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-02.htm new file mode 100644 index 0000000000..debcd6015e --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-02.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!
+What's worse, they're summoning minions to do their bidding. We can't allow them to bring those friends into the Material Realm. Kill them before we're overrun!
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-03.htm b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-03.htm new file mode 100644 index 0000000000..477e6dacb4 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-03.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Really? That's great!
+Based on my extensive knowledge of the labyrinth, it should be enough to get rid of the minions and then kill one of more powerful demons--Pelline. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-04.html b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-04.html new file mode 100644 index 0000000000..dfee16e7f6 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-04.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+I'll leave it to you then. Come back quickly!
+Remember, clear out the minions and then kill Pelline. Easy, right? + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-05.html b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-05.html new file mode 100644 index 0000000000..76102ebd08 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-05.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+You're back! Well? Did you send the demons back to the darkness where they belong?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-06.html b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-06.html new file mode 100644 index 0000000000..780863fca4 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-06.html @@ -0,0 +1,3 @@ +Kartia Researcher:
+Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-07.html b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-07.html new file mode 100644 index 0000000000..ec0e3a18c3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-07.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+It appears that we are safe for now. Could you come back to check again tomorrow?
+(This quest can only be undertaken once a day. It resets everyday at 06:30.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/Q00498_IncarnationOfJealousyPellineSolo.java b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/Q00498_IncarnationOfJealousyPellineSolo.java new file mode 100644 index 0000000000..51296fc528 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/Q00498_IncarnationOfJealousyPellineSolo.java @@ -0,0 +1,134 @@ +/* + * Copyright (C) 2004-2015 L2J DataPack + * + * This file is part of L2J DataPack. + * + * L2J DataPack 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. + * + * L2J DataPack 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.Q00498_IncarnationOfJealousyPellineSolo; + +import com.l2jserver.gameserver.enums.QuestType; +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; + +/** + * Incarnation of Jealousy Pelline (Solo) (498) + * @author Mobius + */ +public class Q00498_IncarnationOfJealousyPellineSolo extends Quest +{ + // NPC + private static final int KARTIA_RESEARCHER = 33647; + // Item + private static final int DIMENSION_TRAVELERS_RED_BOX = 34931; + // Misc + private static final int MIN_LEVEL = 90; + private static final int MAX_LEVEL = 94; + + public Q00498_IncarnationOfJealousyPellineSolo() + { + super(498, Q00498_IncarnationOfJealousyPellineSolo.class.getSimpleName(), "Incarnation of Jealousy Pelline (Solo)"); + addStartNpc(KARTIA_RESEARCHER); + addTalkId(KARTIA_RESEARCHER); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = event; + if (event.equals("33647-03.htm")) + { + qs.startQuest(); + } + else if (event.equals("33647-06.html") && qs.isCond(2)) + { + rewardItems(player, DIMENSION_TRAVELERS_RED_BOX, 1); + qs.exitQuest(QuestType.DAILY, true); + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + String htmltext = getNoQuestMsg(player); + final QuestState qs = getQuestState(player, true); + if (qs == null) + { + return htmltext; + } + + switch (qs.getState()) + { + case State.CREATED: + { + if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "33647-04.html"; + } + else if (qs.isCond(2)) + { + if ((player.getLevel() < MIN_LEVEL) && (player.getLevel() > MAX_LEVEL)) + { + htmltext = "33647-00a.htm"; + } + else + { + htmltext = "33647-05.html"; + } + } + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + else if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = "33647-07.html"; + } + break; + } + } + return htmltext; + } +} \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00.htm b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00.htm new file mode 100644 index 0000000000..69e9244a8a --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.
+(This quest can be undertaken by characters who are Lv. 95 - 99.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00a.html b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00a.html new file mode 100644 index 0000000000..4234024911 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00a.html @@ -0,0 +1,2 @@ +You cannot receive quest rewards as your character's level is lower than the minimum required for the quest. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-01.htm b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-01.htm new file mode 100644 index 0000000000..8c205d0c6a --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-01.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+What a disaster! Shilen has created dimensional fissures everywhere!
+Ever since the Kartia Labyrinth appeared monsters from the dark spirit realm have crossed over to our material plane. If we can't find a way to stop them, I'm afraid we're finished.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-02.htm b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-02.htm new file mode 100644 index 0000000000..505b278b04 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-02.htm @@ -0,0 +1,5 @@ +Kartia Researcher:
+The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!
+What's worse, they're summoning minions to do their bidding. We can't allow them to bring those friends into the Material Realm. Kill them before we're overrun!
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-03.htm b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-03.htm new file mode 100644 index 0000000000..0547195e2c --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-03.htm @@ -0,0 +1,4 @@ +Kartia Researcher:
+Really? That's great!
+Based on my extensive knowledge of the labyrinth, it should be enough to get rid of the minions and then kill one of more powerful demons--Kalios. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-04.html b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-04.html new file mode 100644 index 0000000000..d871f18728 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-04.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+I'll leave it to you then. Come back quickly!
+Remember, clear out the minions and then kill Kalios. Easy, right? + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-05.html b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-05.html new file mode 100644 index 0000000000..7619fb9b7f --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-05.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+You're back! Well? Did you send the demons back to the darkness where they belong?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-06.html b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-06.html new file mode 100644 index 0000000000..780863fca4 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-06.html @@ -0,0 +1,3 @@ +Kartia Researcher:
+Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-07.html b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-07.html new file mode 100644 index 0000000000..ec0e3a18c3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-07.html @@ -0,0 +1,4 @@ +Kartia Researcher:
+It appears that we are safe for now. Could you come back to check again tomorrow?
+(This quest can only be undertaken once a day. It resets everyday at 06:30.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/Q00499_IncarnationOfGluttonyKaliosSolo.java b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/Q00499_IncarnationOfGluttonyKaliosSolo.java new file mode 100644 index 0000000000..b70ca247e1 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/Q00499_IncarnationOfGluttonyKaliosSolo.java @@ -0,0 +1,134 @@ +/* + * Copyright (C) 2004-2015 L2J DataPack + * + * This file is part of L2J DataPack. + * + * L2J DataPack 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. + * + * L2J DataPack 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.Q00499_IncarnationOfGluttonyKaliosSolo; + +import com.l2jserver.gameserver.enums.QuestType; +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; + +/** + * Incarnation of Gluttony Kalios (Solo) (499) + * @author Mobius + */ +public class Q00499_IncarnationOfGluttonyKaliosSolo extends Quest +{ + // NPC + private static final int KARTIA_RESEARCHER = 33647; + // Item + private static final int DIMENSION_TRAVELERS_GOLDEN_BOX = 34932; + // Misc + private static final int MIN_LEVEL = 95; + private static final int MAX_LEVEL = 99; + + public Q00499_IncarnationOfGluttonyKaliosSolo() + { + super(499, Q00499_IncarnationOfGluttonyKaliosSolo.class.getSimpleName(), "Incarnation of Gluttony Kalios (Solo)"); + addStartNpc(KARTIA_RESEARCHER); + addTalkId(KARTIA_RESEARCHER); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = event; + if (event.equals("33647-03.htm")) + { + qs.startQuest(); + } + else if (event.equals("33647-06.html") && qs.isCond(2)) + { + rewardItems(player, DIMENSION_TRAVELERS_GOLDEN_BOX, 1); + qs.exitQuest(QuestType.DAILY, true); + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + String htmltext = getNoQuestMsg(player); + final QuestState qs = getQuestState(player, true); + if (qs == null) + { + return htmltext; + } + + switch (qs.getState()) + { + case State.CREATED: + { + if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + break; + } + case State.STARTED: + { + if (qs.isCond(1)) + { + htmltext = "33647-04.html"; + } + else if (qs.isCond(2)) + { + if ((player.getLevel() < MIN_LEVEL) && (player.getLevel() > MAX_LEVEL)) + { + htmltext = "33647-00a.htm"; + } + else + { + htmltext = "33647-05.html"; + } + } + break; + } + case State.COMPLETED: + { + if (qs.isNowAvailable()) + { + qs.setState(State.CREATED); + htmltext = ((player.getLevel() < MIN_LEVEL)) ? "33647-00.htm" : "33647-01.htm"; + } + else if (player.getLevel() > MAX_LEVEL) + { + htmltext = "33647-00.htm"; + } + else + { + htmltext = "33647-07.html"; + } + break; + } + } + return htmltext; + } +} \ 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 119604f37b..e5169e3a9f 100644 --- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -126,6 +126,12 @@ import quests.Q00457_LostAndFound.Q00457_LostAndFound; import quests.Q00458_PerfectForm.Q00458_PerfectForm; import quests.Q00463_IMustBeaGenius.Q00463_IMustBeaGenius; import quests.Q00464_Oath.Q00464_Oath; +import quests.Q00494_IncarnationOfGreedZellakaGroup.Q00494_IncarnationOfGreedZellakaGroup; +import quests.Q00495_IncarnationOfJealousyPellineGroup.Q00495_IncarnationOfJealousyPellineGroup; +import quests.Q00496_IncarnationOfGluttonyKaliosGroup.Q00496_IncarnationOfGluttonyKaliosGroup; +import quests.Q00497_IncarnationOfGreedZellakaSolo.Q00497_IncarnationOfGreedZellakaSolo; +import quests.Q00498_IncarnationOfJealousyPellineSolo.Q00498_IncarnationOfJealousyPellineSolo; +import quests.Q00499_IncarnationOfGluttonyKaliosSolo.Q00499_IncarnationOfGluttonyKaliosSolo; import quests.Q00501_ProofOfClanAlliance.Q00501_ProofOfClanAlliance; import quests.Q00503_PursuitOfClanAmbition.Q00503_PursuitOfClanAmbition; import quests.Q00504_CompetitionForTheBanditStronghold.Q00504_CompetitionForTheBanditStronghold; @@ -364,6 +370,12 @@ public class QuestMasterHandler Q00458_PerfectForm.class, Q00463_IMustBeaGenius.class, Q00464_Oath.class, + Q00494_IncarnationOfGreedZellakaGroup.class, + Q00495_IncarnationOfJealousyPellineGroup.class, + Q00496_IncarnationOfGluttonyKaliosGroup.class, + Q00497_IncarnationOfGreedZellakaSolo.class, + Q00498_IncarnationOfJealousyPellineSolo.class, + Q00499_IncarnationOfGluttonyKaliosSolo.class, Q00501_ProofOfClanAlliance.class, Q00503_PursuitOfClanAmbition.class, Q00504_CompetitionForTheBanditStronghold.class,