Kartia quests.
Based on script shared by Karma12. Source: http://www.l2jserver.com/forum/viewtopic.php?f=113&t=30972
This commit is contained in:
@@ -26,6 +26,13 @@ import java.util.Calendar;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
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.Config;
|
||||||
import com.l2jserver.gameserver.ThreadPoolManager;
|
import com.l2jserver.gameserver.ThreadPoolManager;
|
||||||
import com.l2jserver.gameserver.instancemanager.InstanceManager;
|
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.L2PcInstance;
|
||||||
import com.l2jserver.gameserver.model.actor.instance.L2QuestGuardInstance;
|
import com.l2jserver.gameserver.model.actor.instance.L2QuestGuardInstance;
|
||||||
import com.l2jserver.gameserver.model.instancezone.InstanceWorld;
|
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.model.skills.AbnormalVisualEffect;
|
||||||
import com.l2jserver.gameserver.network.NpcStringId;
|
import com.l2jserver.gameserver.network.NpcStringId;
|
||||||
import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
|
import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||||
@@ -123,12 +132,13 @@ public final class KartiasLabyrinth extends AbstractInstance
|
|||||||
|
|
||||||
protected class KartiaWorld extends InstanceWorld
|
protected class KartiaWorld extends InstanceWorld
|
||||||
{
|
{
|
||||||
L2QuestGuardInstance adolph = null;
|
protected L2QuestGuardInstance adolph = null;
|
||||||
L2QuestGuardInstance barton = null;
|
protected L2QuestGuardInstance barton = null;
|
||||||
L2QuestGuardInstance hayuk = null;
|
protected L2QuestGuardInstance hayuk = null;
|
||||||
L2QuestGuardInstance eliyah = null;
|
protected L2QuestGuardInstance eliyah = null;
|
||||||
L2QuestGuardInstance elise = null;
|
protected L2QuestGuardInstance elise = null;
|
||||||
List<L2Npc> savedSpawns = new CopyOnWriteArrayList<>();
|
protected List<L2PcInstance> playersInside = new ArrayList<>();
|
||||||
|
protected List<L2Npc> savedSpawns = new CopyOnWriteArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public KartiasLabyrinth()
|
public KartiasLabyrinth()
|
||||||
@@ -575,6 +585,85 @@ public final class KartiasLabyrinth extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (((KartiaWorld) world).savedSpawns.isEmpty())
|
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.
|
// 5 minute exit timer.
|
||||||
InstanceManager.getInstance().getInstance(world.getInstanceId()).setDuration(Config.INSTANCE_FINISH_TIME);
|
InstanceManager.getInstance().getInstance(world.getInstanceId()).setDuration(Config.INSTANCE_FINISH_TIME);
|
||||||
InstanceManager.getInstance().getInstance(world.getInstanceId()).setEmptyDestroyTime(0);
|
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());
|
player.getVariables().set(KARTIA_PARTY_ENTRY_VAR, System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
world.addAllowed(player.getObjectId());
|
world.addAllowed(player.getObjectId());
|
||||||
|
((KartiaWorld) world).playersInside.add(player);
|
||||||
teleportPlayer(player, START_LOC, world.getInstanceId(), false);
|
teleportPlayer(player, START_LOC, world.getInstanceId(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.<br>
|
||||||
|
(This quest can be undertaken by characters who are Lv. 85 - 89.)
|
||||||
|
</body></html>
|
2
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00a.html
vendored
Normal file
2
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-00a.html
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<html><body>You cannot receive quest rewards as your character's level is lower than the minimum required for the quest.
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
What a disaster! Shilen has created dimensional fissures everywhere!<br>
|
||||||
|
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.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00494_IncarnationOfGreedZellakaGroup 33647-02.htm">"I assume you have a plan."</Button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!<br>
|
||||||
|
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!<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00494_IncarnationOfGreedZellakaGroup 33647-03.htm">"I'll have their heads!"</Button>
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Really? That's great!<br>
|
||||||
|
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--<font color="LEVEL">Zellaka</font>.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
I'll leave it to you then. Come back quickly!<br>
|
||||||
|
Remember, clear out the minions and then kill <font color="LEVEL">Zellaka</font>. Easy, right?
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
You're back! Well? Did you send the demons back to the darkness where they belong?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00494_IncarnationOfGreedZellakaGroup 33647-06.html">"The mission is complete."</Button>
|
||||||
|
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00494_IncarnationOfGreedZellakaGroup/33647-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
It appears that we are safe for now. Could you come back to check again tomorrow?<br>
|
||||||
|
(This quest can only be undertaken once a day. It resets everyday at 06:30.)
|
||||||
|
</body></html>
|
@@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
4
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.<br>
|
||||||
|
(This quest can be undertaken by characters who are Lv. 90 - 94.)
|
||||||
|
</body></html>
|
2
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00a.html
vendored
Normal file
2
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-00a.html
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<html><body>You cannot receive quest rewards as your character's level is lower than the minimum required for the quest.
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
What a disaster! Shilen has created dimensional fissures everywhere!<br>
|
||||||
|
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.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00495_IncarnationOfJealousyPellineGroup 33647-02.htm">"I assume you have a plan."</Button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!<br>
|
||||||
|
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!<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00495_IncarnationOfJealousyPellineGroup 33647-03.htm">"I'll have their heads!"</Button>
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Really? That's great!<br>
|
||||||
|
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--<font color="LEVEL">Pelline</font>.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
I'll leave it to you then. Come back quickly!<br>
|
||||||
|
Remember, clear out the minions and then kill <font color="LEVEL">Pelline</font>. Easy, right?
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
You're back! Well? Did you send the demons back to the darkness where they belong?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00495_IncarnationOfJealousyPellineGroup 33647-06.html">"The mission is complete."</Button>
|
||||||
|
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00495_IncarnationOfJealousyPellineGroup/33647-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
It appears that we are safe for now. Could you come back to check again tomorrow?<br>
|
||||||
|
(This quest can only be undertaken once a day. It resets everyday at 06:30.)
|
||||||
|
</body></html>
|
@@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
4
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.<br>
|
||||||
|
(This quest can be undertaken by characters who are Lv. 95 - 99.)
|
||||||
|
</body></html>
|
2
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00a.html
vendored
Normal file
2
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-00a.html
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<html><body>You cannot receive quest rewards as your character's level is lower than the minimum required for the quest.
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
What a disaster! Shilen has created dimensional fissures everywhere!<br>
|
||||||
|
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.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00496_IncarnationOfGluttonyKaliosGroup 33647-02.htm">"I assume you have a plan."</Button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!<br>
|
||||||
|
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!<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00496_IncarnationOfGluttonyKaliosGroup 33647-03.htm">"I'll have their heads!"</Button>
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Really? That's great!<br>
|
||||||
|
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--<font color="LEVEL">Kalios</font>.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
I'll leave it to you then. Come back quickly!<br>
|
||||||
|
Remember, clear out the minions and then kill <font color="LEVEL">Kalios</font>. Easy, right?
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
You're back! Well? Did you send the demons back to the darkness where they belong?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00496_IncarnationOfGluttonyKaliosGroup 33647-06.html">"The mission is complete."</Button>
|
||||||
|
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00496_IncarnationOfGluttonyKaliosGroup/33647-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
It appears that we are safe for now. Could you come back to check again tomorrow?<br>
|
||||||
|
(This quest can only be undertaken once a day. It resets everyday at 06:30.)
|
||||||
|
</body></html>
|
@@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
4
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.<br>
|
||||||
|
(This quest can be undertaken by characters who are Lv. 85 - 89.)
|
||||||
|
</body></html>
|
2
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00a.html
vendored
Normal file
2
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-00a.html
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<html><body>You cannot receive quest rewards as your character's level is lower than the minimum required for the quest.
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
What a disaster! Shilen has created dimensional fissures everywhere!<br>
|
||||||
|
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.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00497_IncarnationOfGreedZellakaSolo 33647-02.htm">"I assume you have a plan."</Button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!<br>
|
||||||
|
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!<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00497_IncarnationOfGreedZellakaSolo 33647-03.htm">"I'll have their heads!"</Button>
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Really? That's great!<br>
|
||||||
|
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--<font color="LEVEL">Zellaka</font>.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
I'll leave it to you then. Come back quickly!<br>
|
||||||
|
Remember, clear out the minions and then kill <font color="LEVEL">Zellaka</font>. Easy, right?
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
You're back! Well? Did you send the demons back to the darkness where they belong?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00497_IncarnationOfGreedZellakaSolo 33647-06.html">"The mission is complete."</Button>
|
||||||
|
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00497_IncarnationOfGreedZellakaSolo/33647-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
It appears that we are safe for now. Could you come back to check again tomorrow?<br>
|
||||||
|
(This quest can only be undertaken once a day. It resets everyday at 06:30.)
|
||||||
|
</body></html>
|
@@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
4
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.<br>
|
||||||
|
(This quest can be undertaken by characters who are Lv. 90 - 94.)
|
||||||
|
</body></html>
|
2
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00a.html
vendored
Normal file
2
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-00a.html
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<html><body>You cannot receive quest rewards as your character's level is lower than the minimum required for the quest.
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
What a disaster! Shilen has created dimensional fissures everywhere!<br>
|
||||||
|
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.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00498_IncarnationOfJealousyPellineSolo 33647-02.htm">"I assume you have a plan."</Button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!<br>
|
||||||
|
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!<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00498_IncarnationOfJealousyPellineSolo 33647-03.htm">"I'll have their heads!"</Button>
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Really? That's great!<br>
|
||||||
|
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--<font color="LEVEL">Pelline</font>.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
I'll leave it to you then. Come back quickly!<br>
|
||||||
|
Remember, clear out the minions and then kill <font color="LEVEL">Pelline</font>. Easy, right?
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
You're back! Well? Did you send the demons back to the darkness where they belong?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00498_IncarnationOfJealousyPellineSolo 33647-06.html">"The mission is complete."</Button>
|
||||||
|
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00498_IncarnationOfJealousyPellineSolo/33647-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
It appears that we are safe for now. Could you come back to check again tomorrow?<br>
|
||||||
|
(This quest can only be undertaken once a day. It resets everyday at 06:30.)
|
||||||
|
</body></html>
|
@@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
4
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.<br>
|
||||||
|
(This quest can be undertaken by characters who are Lv. 95 - 99.)
|
||||||
|
</body></html>
|
2
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00a.html
vendored
Normal file
2
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-00a.html
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<html><body>You cannot receive quest rewards as your character's level is lower than the minimum required for the quest.
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
What a disaster! Shilen has created dimensional fissures everywhere!<br>
|
||||||
|
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.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00499_IncarnationOfGluttonyKaliosSolo 33647-02.htm">"I assume you have a plan."</Button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!<br>
|
||||||
|
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!<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00499_IncarnationOfGluttonyKaliosSolo 33647-03.htm">"I'll have their heads!"</Button>
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Really? That's great!<br>
|
||||||
|
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--<font color="LEVEL">Kalios</font>.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
I'll leave it to you then. Come back quickly!<br>
|
||||||
|
Remember, clear out the minions and then kill <font color="LEVEL">Kalios</font>. Easy, right?
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
You're back! Well? Did you send the demons back to the darkness where they belong?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00499_IncarnationOfGluttonyKaliosSolo 33647-06.html">"The mission is complete."</Button>
|
||||||
|
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth.
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00499_IncarnationOfGluttonyKaliosSolo/33647-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kartia Researcher:<br>
|
||||||
|
It appears that we are safe for now. Could you come back to check again tomorrow?<br>
|
||||||
|
(This quest can only be undertaken once a day. It resets everyday at 06:30.)
|
||||||
|
</body></html>
|
@@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
@@ -126,6 +126,12 @@ import quests.Q00457_LostAndFound.Q00457_LostAndFound;
|
|||||||
import quests.Q00458_PerfectForm.Q00458_PerfectForm;
|
import quests.Q00458_PerfectForm.Q00458_PerfectForm;
|
||||||
import quests.Q00463_IMustBeaGenius.Q00463_IMustBeaGenius;
|
import quests.Q00463_IMustBeaGenius.Q00463_IMustBeaGenius;
|
||||||
import quests.Q00464_Oath.Q00464_Oath;
|
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.Q00501_ProofOfClanAlliance.Q00501_ProofOfClanAlliance;
|
||||||
import quests.Q00503_PursuitOfClanAmbition.Q00503_PursuitOfClanAmbition;
|
import quests.Q00503_PursuitOfClanAmbition.Q00503_PursuitOfClanAmbition;
|
||||||
import quests.Q00504_CompetitionForTheBanditStronghold.Q00504_CompetitionForTheBanditStronghold;
|
import quests.Q00504_CompetitionForTheBanditStronghold.Q00504_CompetitionForTheBanditStronghold;
|
||||||
@@ -364,6 +370,12 @@ public class QuestMasterHandler
|
|||||||
Q00458_PerfectForm.class,
|
Q00458_PerfectForm.class,
|
||||||
Q00463_IMustBeaGenius.class,
|
Q00463_IMustBeaGenius.class,
|
||||||
Q00464_Oath.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,
|
Q00501_ProofOfClanAlliance.class,
|
||||||
Q00503_PursuitOfClanAmbition.class,
|
Q00503_PursuitOfClanAmbition.class,
|
||||||
Q00504_CompetitionForTheBanditStronghold.class,
|
Q00504_CompetitionForTheBanditStronghold.class,
|
||||||
|
Reference in New Issue
Block a user