Letter quest fixes.

Contributed by NightBR.
This commit is contained in:
MobiusDevelopment 2019-04-14 14:20:38 +00:00
parent 90d0322b99
commit 4d40f0875a
122 changed files with 1275 additions and 329 deletions

View File

@ -195,6 +195,7 @@ public abstract class LetterQuest extends Quest
{
player.teleToLocation(_startTeleport);
takeItems(player, _startSOE, -1);
qs.setCond(2, true);
}
}
player.sendPacket(TutorialCloseHtml.STATIC_PACKET);

View File

@ -195,6 +195,7 @@ public abstract class LetterQuest extends Quest
{
player.teleToLocation(_startTeleport);
takeItems(player, _startSOE, -1);
qs.setCond(2, true);
}
}
player.sendPacket(TutorialCloseHtml.STATIC_PACKET);

View File

@ -195,6 +195,7 @@ public abstract class LetterQuest extends Quest
{
player.teleToLocation(_startTeleport);
takeItems(player, _startSOE, -1);
qs.setCond(2, true);
}
}
player.sendPacket(TutorialCloseHtml.STATIC_PACKET);

View File

@ -66,7 +66,6 @@
10418 The Immortal Pirate King
10457 Kefensis' Illusion
10506 Diana's Request
10530 Kekropus' Letter, The Dragon's Transition Achieve Level 81
10531 Odd Happenings at Dragon Valley Strange Things Afoot in the Valley
10532 Uncovering the Conspiracy Eliminate the Undead and Dragons
10537 Kamael Disarray To Retbach

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
What brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 30121-02.htm">"I received a letter from Kekropus."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
Ah, so you were the one! I was looking for someone to ask for help, what with all the complicated goings on in Dragon Valley. I came across the news that someone had defeated Sakum and was helping the Giant's Minions, and was hoping that such a formidable one would be able to resolve the problems that have occurred in Dragon Valley.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 30121-03.htm">"Go on."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
<font color="LEVEL">Namo</font> is at the entrance to Dragon Valley to conduct research. When you meet him, he will explain to you the strange goings on in Dragon Valley, and what sort of help is needed.<br>
I will give you a <font color="LEVEL">Scroll of Escape: Dragon Valley</font>, so that you can find Namo without wasting time. It should make your joumey over there easily.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><head><body>Captain Jeronin:<br>
What are you waiting for? Go now to <font color="LEVEL">Dragon Valley</font> and help <font color="LEVEL">Namo</font>. He is waiting for you.<br>
To get there quickly, use the <font color="LEVEL">Scroll of Escape: Dragon Valley</font> I gave you. You could also ask a Gatekeeper for help.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Namo:<br>
What brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 33973-02.html">"Tell me about the monster."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Namo:<br>
Right now, Dragon Valley is a very dangerous place. As the 6th Seal was broken, the Dimensional Rift caused the undead to appear whenever night fell.<br>
You're really not going to change your mind about investigating such a dangerous place? <br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 33973-03.html">"Yes."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Namo:<br>
Alright I will give you the mission right away.<br>
</body></html>

View File

@ -0,0 +1,150 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package quests.Q10530_KekropusLetterTheDragonsTransition;
import com.l2jmobius.gameserver.model.Location;
import com.l2jmobius.gameserver.model.actor.Creature;
import com.l2jmobius.gameserver.model.actor.Npc;
import com.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import quests.LetterQuest;
/**
* Kekropus' Letter: Belos' Whereabouts (10424)
* @author Stayawy
*/
public final class Q10530_KekropusLetterTheDragonsTransition extends LetterQuest
{
// NPCs
private static final int JERONIN = 30121;
private static final int NAMO = 33973;
private static final int INVISIBLE_NPC = 19543;
// Items
private static final int SOE_TOWN_OF_GIRAN = 46733; // Scroll of Escape: Town of GIRAN
private static final int SOE_DRAGON_VALLEY = 46734; // Scroll of Escape: Dragon Valley
// Location
private static final Location TELEPORT_LOC = new Location(84015, 147219, -3395);
// Rewards
private static final int XP = 1533168;
private static final int SP = 306;
// Misc
private static final int MIN_LEVEL = 81;
private static final int MAX_LEVEL = 84;
public Q10530_KekropusLetterTheDragonsTransition()
{
super(10530);
addTalkId(JERONIN, NAMO);
addSeeCreatureId(INVISIBLE_NPC);
setIsErtheiaQuest(false);
setLevel(MIN_LEVEL, MAX_LEVEL);
setStartQuestSound("Npcdialog1.kekrops_quest_15");
setStartLocation(SOE_TOWN_OF_GIRAN, TELEPORT_LOC);
registerQuestItems(SOE_TOWN_OF_GIRAN, SOE_DRAGON_VALLEY);
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "30121-02.htm":
case "33973-02.html":
{
htmltext = event;
break;
}
case "30121-03.htm":
{
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GIRAN, -1);
giveItems(player, SOE_DRAGON_VALLEY, 1);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33973-03.html":
{
if (qs.isCond(3))
{
qs.exitQuest(false, true);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, XP, SP);
}
showOnScreenMsg(player, NpcStringId.YOU_HAVE_FINISHED_ALL_OF_KEKROPUS_LETTERS_GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_LETTERS_FROM_A_MINSTREL_AT_LV_85, ExShowScreenMessage.TOP_CENTER, 6000);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, PlayerInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return htmltext;
}
if (qs.isStarted())
{
if ((npc.getId() == JERONIN) && qs.isCond(2))
{
htmltext = "30121-01.htm";
}
else if (qs.isCond(3))
{
htmltext = npc.getId() == JERONIN ? "30121-04.htm" : "33973-01.html";
}
}
return htmltext;
}
@Override
public String onSeeCreature(Npc npc, Creature creature, boolean isSummon)
{
if (creature.isPlayer())
{
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.DEN_OF_EVIL_IS_A_GOOD_HUNTING_ZONE_FOR_LV_81_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}
}
return super.onSeeCreature(npc, creature, isSummon);
}
}

View File

@ -0,0 +1,8 @@
<html><head><title>Kekropus' Letter</title></head><body>Kekropus' Letter:<br>
Since the dimensional rift was discovered in Dragon Valley, changes have been observed among the dragons.<br>
I suspect Embryo involvement in this matter as well.<br>
Go to <font color="LEVEL">Captain Jeronin</font> in the <font color="LEVEL">Town of Giran</font> for details.<br>
(A <font color="LEVEL">Scroll of Escape</font> is enclosed. If you want to go now, use it to travel immediately.)<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h %teleport%">"Use the Scroll of Escape."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close</Button>
</body></html>

View File

@ -350,6 +350,7 @@ import quests.Q10525_QueenNavarisLetterKetraOrcOutpost.Q10525_QueenNavarisLetter
import quests.Q10526_TheDarkSecretOfTheKetraOrcs.Q10526_TheDarkSecretOfTheKetraOrcs;
import quests.Q10527_TheAssassinationOfTheKetraOrcCommander.Q10527_TheAssassinationOfTheKetraOrcCommander;
import quests.Q10528_TheAssassinationOfTheKetraOrcChief.Q10528_TheAssassinationOfTheKetraOrcChief;
import quests.Q10530_KekropusLetterTheDragonsTransition.Q10530_KekropusLetterTheDragonsTransition;
import quests.Q10534_HatchlingResearch.Q10534_HatchlingResearch;
import quests.Q10541_TrainLikeTheRealThing.Q10541_TrainLikeTheRealThing;
import quests.Q10542_SearchingForNewPower.Q10542_SearchingForNewPower;
@ -917,6 +918,7 @@ public class QuestMasterHandler
Q10526_TheDarkSecretOfTheKetraOrcs.class,
Q10527_TheAssassinationOfTheKetraOrcCommander.class,
Q10528_TheAssassinationOfTheKetraOrcChief.class,
Q10530_KekropusLetterTheDragonsTransition.class,
Q10531_OddHappeningsAtDragonValley.class, // TODO: Not done.
Q10532_UncoveringTheConspiracy.class, // TODO: Not done.
Q10534_HatchlingResearch.class,

View File

@ -195,6 +195,7 @@ public abstract class LetterQuest extends Quest
{
player.teleToLocation(_startTeleport);
takeItems(player, _startSOE, -1);
qs.setCond(2, true);
}
}
player.sendPacket(TutorialCloseHtml.STATIC_PACKET);

View File

@ -134,7 +134,6 @@
10454 Final Embryo Apostle
10457 Kefensis' Illusion
10506 Diana's Request
10530 Kekropus' Letter, The Dragon's Transition Achieve Level 81
10531 Odd Happenings at Dragon Valley Strange Things Afoot in the Valley
10532 Uncovering the Conspiracy Eliminate the Undead and Dragons
10535 Blacksmith's Soul-awakening Weapon - 3

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
What brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 30121-02.htm">"I received a letter from Kekropus."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
Ah, so you were the one! I was looking for someone to ask for help, what with all the complicated goings on in Dragon Valley. I came across the news that someone had defeated Sakum and was helping the Giant's Minions, and was hoping that such a formidable one would be able to resolve the problems that have occurred in Dragon Valley.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 30121-03.htm">"Go on."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
<font color="LEVEL">Namo</font> is at the entrance to Dragon Valley to conduct research. When you meet him, he will explain to you the strange goings on in Dragon Valley, and what sort of help is needed.<br>
I will give you a <font color="LEVEL">Scroll of Escape: Dragon Valley</font>, so that you can find Namo without wasting time. It should make your joumey over there easily.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><head><body>Captain Jeronin:<br>
What are you waiting for? Go now to <font color="LEVEL">Dragon Valley</font> and help <font color="LEVEL">Namo</font>. He is waiting for you.<br>
To get there quickly, use the <font color="LEVEL">Scroll of Escape: Dragon Valley</font> I gave you. You could also ask a Gatekeeper for help.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Namo:<br>
What brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 33973-02.html">"Tell me about the monster."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Namo:<br>
Right now, Dragon Valley is a very dangerous place. As the 6th Seal was broken, the Dimensional Rift caused the undead to appear whenever night fell.<br>
You're really not going to change your mind about investigating such a dangerous place? <br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 33973-03.html">"Yes."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Namo:<br>
Alright I will give you the mission right away.<br>
</body></html>

View File

@ -0,0 +1,151 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package quests.Q10530_KekropusLetterTheDragonsTransition;
import com.l2jmobius.gameserver.model.Location;
import com.l2jmobius.gameserver.model.actor.Creature;
import com.l2jmobius.gameserver.model.actor.Npc;
import com.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import quests.LetterQuest;
/**
* Kekropus' Letter: Belos' Whereabouts (10424)
* @author Stayawy
*/
public final class Q10530_KekropusLetterTheDragonsTransition extends LetterQuest
{
// NPCs
private static final int JERONIN = 30121;
private static final int NAMO = 33973;
private static final int INVISIBLE_NPC = 19543;
// Items
private static final int SOE_TOWN_OF_GIRAN = 46733; // Scroll of Escape: Town of GIRAN
private static final int SOE_DRAGON_VALLEY = 46734; // Scroll of Escape: Dragon Valley
// Location
private static final Location TELEPORT_LOC = new Location(84015, 147219, -3395);
// Rewards
private static final int XP = 1533168;
private static final int SP = 306;
// Misc
private static final int MIN_LEVEL = 81;
private static final int MAX_LEVEL = 84;
public Q10530_KekropusLetterTheDragonsTransition()
{
super(10530);
addTalkId(JERONIN, NAMO);
addSeeCreatureId(INVISIBLE_NPC);
setIsErtheiaQuest(false);
setLevel(MIN_LEVEL, MAX_LEVEL);
setStartQuestSound("Npcdialog1.kekrops_quest_15");
setStartLocation(SOE_TOWN_OF_GIRAN, TELEPORT_LOC);
registerQuestItems(SOE_TOWN_OF_GIRAN, SOE_DRAGON_VALLEY);
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "30121-02.htm":
case "33973-02.html":
{
htmltext = event;
break;
}
case "30121-03.htm":
{
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GIRAN, -1);
giveItems(player, SOE_DRAGON_VALLEY, 1);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33973-03.html":
{
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, XP, SP);
}
showOnScreenMsg(player, NpcStringId.YOU_HAVE_FINISHED_ALL_OF_KEKROPUS_LETTERS_GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_LETTERS_FROM_A_MINSTREL_AT_LV_85, ExShowScreenMessage.TOP_CENTER, 6000);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, PlayerInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return htmltext;
}
if (qs.isStarted())
{
if ((npc.getId() == JERONIN) && qs.isCond(2))
{
htmltext = "30121-01.htm";
}
else if (qs.isCond(3))
{
htmltext = npc.getId() == JERONIN ? "30121-04.htm" : "33973-01.html";
}
}
return htmltext;
}
@Override
public String onSeeCreature(Npc npc, Creature creature, boolean isSummon)
{
if (creature.isPlayer())
{
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.DEN_OF_EVIL_IS_A_GOOD_HUNTING_ZONE_FOR_LV_81_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}
}
return super.onSeeCreature(npc, creature, isSummon);
}
}

View File

@ -0,0 +1,8 @@
<html><head><title>Kekropus' Letter</title></head><body>Kekropus' Letter:<br>
Since the dimensional rift was discovered in Dragon Valley, changes have been observed among the dragons.<br>
I suspect Embryo involvement in this matter as well.<br>
Go to <font color="LEVEL">Captain Jeronin</font> in the <font color="LEVEL">Town of Giran</font> for details.<br>
(A <font color="LEVEL">Scroll of Escape</font> is enclosed. If you want to go now, use it to travel immediately.)<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h %teleport%">"Use the Scroll of Escape."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close</Button>
</body></html>

View File

@ -348,6 +348,7 @@ import quests.Q10525_QueenNavarisLetterKetraOrcOutpost.Q10525_QueenNavarisLetter
import quests.Q10526_TheDarkSecretOfTheKetraOrcs.Q10526_TheDarkSecretOfTheKetraOrcs;
import quests.Q10527_TheAssassinationOfTheKetraOrcCommander.Q10527_TheAssassinationOfTheKetraOrcCommander;
import quests.Q10528_TheAssassinationOfTheKetraOrcChief.Q10528_TheAssassinationOfTheKetraOrcChief;
import quests.Q10530_KekropusLetterTheDragonsTransition.Q10530_KekropusLetterTheDragonsTransition;
import quests.Q10534_HatchlingResearch.Q10534_HatchlingResearch;
import quests.Q10541_TrainLikeTheRealThing.Q10541_TrainLikeTheRealThing;
import quests.Q10542_SearchingForNewPower.Q10542_SearchingForNewPower;
@ -944,6 +945,7 @@ public class QuestMasterHandler
Q10526_TheDarkSecretOfTheKetraOrcs.class,
Q10527_TheAssassinationOfTheKetraOrcCommander.class,
Q10528_TheAssassinationOfTheKetraOrcChief.class,
Q10530_KekropusLetterTheDragonsTransition.class,
Q10531_OddHappeningsAtDragonValley.class, // TODO: Not done.
Q10532_UncoveringTheConspiracy.class, // TODO: Not done.
Q10534_HatchlingResearch.class,

View File

@ -195,6 +195,7 @@ public abstract class LetterQuest extends Quest
{
player.teleToLocation(_startTeleport);
takeItems(player, _startSOE, -1);
qs.setCond(2, true);
}
}
player.sendPacket(TutorialCloseHtml.STATIC_PACKET);

View File

@ -159,7 +159,6 @@
10454 Final Embryo Apostle
10457 Kefensis' Illusion
10506 Diana's Request
10530 Kekropus' Letter, The Dragon's Transition Achieve Level 81
10531 Odd Happenings at Dragon Valley Strange Things Afoot in the Valley
10532 Uncovering the Conspiracy Eliminate the Undead and Dragons
10535 Blacksmith's Soul-awakening Weapon - 3

View File

@ -119,7 +119,7 @@ public final class Q10390_KekropusLetter extends Quest
{
player.sendPacket(new TutorialShowHtml(getHtm(player, event)));
player.sendPacket(new PlaySound(3, "Npcdialog1.kekrops_quest_1", 0, 0, 0, 0, 0));
qs.setCond(2);
qs.setCond(2, true);
}
break;
}
@ -129,7 +129,7 @@ public final class Q10390_KekropusLetter extends Quest
{
takeItems(player, KEKROPUS_LETTER, -1);
giveItems(player, HAINE_SOE, 1);
qs.setCond(3);
qs.setCond(3, true);
htmltext = event;
}
break;
@ -139,7 +139,7 @@ public final class Q10390_KekropusLetter extends Quest
if (qs.isCond(3))
{
giveItems(player, ALLIGATOR_ISLAND_SOE, 1);
qs.setCond(4);
qs.setCond(4, true);
htmltext = event;
}
break;

View File

@ -77,9 +77,9 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
}
case "30677-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_OUTLAW_FOREST, 1);
htmltext = event;
}
@ -87,7 +87,7 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
}
case "33862-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -114,11 +114,11 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
if (qs.isStarted())
{
if (qs.isCond(1) && (npc.getId() == FLUTER))
if (qs.isCond(2) && (npc.getId() == FLUTER))
{
htmltext = "30677-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == FLUTER ? "30677-04.html" : "33862-01.html";
}
@ -134,7 +134,7 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.OUTLAW_FOREST_IS_A_GOOD_HUNTING_ZONE_FOR_LV_46_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -42,7 +42,7 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
// Location
private static final Location TELEPORT_LOC = new Location(147540, 24661, -1984);
// Misc
private static final int MIN_LEVEL = 58;
private static final int MIN_LEVEL = 56;
private static final int MAX_LEVEL = 60;
public Q10401_KekropusLetterDecodingTheBadge()
@ -77,9 +77,9 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
}
case "33864-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FORSAKEN_PLAINS, 1);
htmltext = event;
}
@ -87,7 +87,7 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
}
case "33865-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -117,11 +117,11 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
if (qs.isStarted())
{
if (qs.isCond(1) && (npc.getId() == PATERSON))
if (qs.isCond(2) && (npc.getId() == PATERSON))
{
htmltext = "33864-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == PATERSON ? "33864-04.html" : "33865-01.html";
}
@ -137,7 +137,7 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.FORSAKEN_PLAINS_IA_A_GOOD_HUNTING_ZONE_FOR_LV_58_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,9 +77,9 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
}
case "33864-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FIELDS_OF_MASSACRE, 1);
htmltext = event;
}
@ -87,7 +87,7 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
}
case "33867-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -117,11 +117,11 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == PATERSON) && qs.isCond(1))
if ((npc.getId() == PATERSON) && qs.isCond(2))
{
htmltext = "33864-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == PATERSON ? "33864-04.html" : "33867-01.html";
}
@ -137,7 +137,7 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.FIELDS_OF_MASSACRE_IS_A_GOOD_HUNTING_ZONE_FOR_LV_61_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10408_KekropusLetterTheSwampOfScreams extends LetterQuest
}
case "31340-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_RUNE, -1);
giveItems(player, SOE_SWAMP_OF_SCREAMS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33847-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10408_KekropusLetterTheSwampOfScreams extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == MATHIAS) && qs.isCond(1))
if ((npc.getId() == MATHIAS) && qs.isCond(2))
{
htmltext = "31340-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == MATHIAS ? "31340-04.html" : "33847-01.html";
}
@ -138,7 +138,7 @@ public final class Q10408_KekropusLetterTheSwampOfScreams extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.SWAMP_OF_SCREAMS_IA_A_GOOD_HUNTING_ZONE_FOR_LV_65_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10411_KekropusLetterTheForestOfTheDead extends LetterQuest
}
case "31340-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_RUNE, -1);
giveItems(player, SOE_FOREST_OF_THE_DEAD, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33849-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10411_KekropusLetterTheForestOfTheDead extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == MATHIAS) && qs.isCond(1))
if ((npc.getId() == MATHIAS) && qs.isCond(2))
{
htmltext = "31340-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == MATHIAS ? "31340-04.html" : "33849-01.html";
}
@ -138,7 +138,7 @@ public final class Q10411_KekropusLetterTheForestOfTheDead extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.FOREST_OF_THE_DEAD_IS_A_GOOD_HUNTING_ZONE_FOR_LV_65_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10414_KekropusLetterWithCourage extends LetterQuest
}
case "31292-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_WALL_OF_ARGOS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33851-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10414_KekropusLetterWithCourage extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
if ((npc.getId() == ANDREI) && qs.isCond(2))
{
htmltext = "31292-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33851-01.html";
}
@ -138,7 +138,7 @@ public final class Q10414_KekropusLetterWithCourage extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.WALL_OF_ARGOS_IS_A_GOOD_HUNTING_ZONE_FOR_LV_70_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -78,18 +78,18 @@ public class Q10415_KekropusLetterWithWisdom extends LetterQuest
}
case "31292-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_WALL_OF_ARGOS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33851-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -113,11 +113,11 @@ public class Q10415_KekropusLetterWithWisdom extends LetterQuest
String htmltext = getNoQuestMsg(player);
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
if ((npc.getId() == ANDREI) && qs.isCond(2))
{
htmltext = "31292-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33851-01.html";
}
@ -133,7 +133,7 @@ public class Q10415_KekropusLetterWithWisdom extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.WALL_OF_ARGOS_IS_A_GOOD_HUNTING_ZONE_FOR_LV_70_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10419_KekropusLetterKampfsWhereabouts extends LetterQuest
}
case "31292-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_VARKA_SILENOS_BARRACKS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33853-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10419_KekropusLetterKampfsWhereabouts extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
if ((npc.getId() == ANDREI) && qs.isCond(2))
{
htmltext = "31292-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33853-01.html";
}
@ -138,7 +138,7 @@ public final class Q10419_KekropusLetterKampfsWhereabouts extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.VARKA_SILENOS_BARRACKS_IS_A_GOOD_HUNTING_ZONE_FOR_LV_76_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -76,18 +76,18 @@ public final class Q10424_KekropusLetterBelosWhereabouts extends LetterQuest
}
case "31292-03.htm":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_KETRA_ORC_OUTPOST, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33852-02.htm":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -117,11 +117,11 @@ public final class Q10424_KekropusLetterBelosWhereabouts extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
if ((npc.getId() == ANDREI) && qs.isCond(2))
{
htmltext = "31292-01.htm";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == ANDREI ? "31292-04.htm" : "33852-01.htm";
}
@ -137,7 +137,7 @@ public final class Q10424_KekropusLetterBelosWhereabouts extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.KETRA_ORC_OUTPOST_IS_A_GOOD_HUNTING_ZONE_FOR_LV_76_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
What brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 30121-02.htm">"I received a letter from Kekropus."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
Ah, so you were the one! I was looking for someone to ask for help, what with all the complicated goings on in Dragon Valley. I came across the news that someone had defeated Sakum and was helping the Giant's Minions, and was hoping that such a formidable one would be able to resolve the problems that have occurred in Dragon Valley.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 30121-03.htm">"Go on."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
<font color="LEVEL">Namo</font> is at the entrance to Dragon Valley to conduct research. When you meet him, he will explain to you the strange goings on in Dragon Valley, and what sort of help is needed.<br>
I will give you a <font color="LEVEL">Scroll of Escape: Dragon Valley</font>, so that you can find Namo without wasting time. It should make your joumey over there easily.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><head><body>Captain Jeronin:<br>
What are you waiting for? Go now to <font color="LEVEL">Dragon Valley</font> and help <font color="LEVEL">Namo</font>. He is waiting for you.<br>
To get there quickly, use the <font color="LEVEL">Scroll of Escape: Dragon Valley</font> I gave you. You could also ask a Gatekeeper for help.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Namo:<br>
What brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 33973-02.html">"Tell me about the monster."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Namo:<br>
Right now, Dragon Valley is a very dangerous place. As the 6th Seal was broken, the Dimensional Rift caused the undead to appear whenever night fell.<br>
You're really not going to change your mind about investigating such a dangerous place? <br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 33973-03.html">"Yes."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Namo:<br>
Alright I will give you the mission right away.<br>
</body></html>

View File

@ -0,0 +1,151 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package quests.Q10530_KekropusLetterTheDragonsTransition;
import com.l2jmobius.gameserver.model.Location;
import com.l2jmobius.gameserver.model.actor.Creature;
import com.l2jmobius.gameserver.model.actor.Npc;
import com.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import quests.LetterQuest;
/**
* Kekropus' Letter: Belos' Whereabouts (10424)
* @author Stayawy
*/
public final class Q10530_KekropusLetterTheDragonsTransition extends LetterQuest
{
// NPCs
private static final int JERONIN = 30121;
private static final int NAMO = 33973;
private static final int INVISIBLE_NPC = 19543;
// Items
private static final int SOE_TOWN_OF_GIRAN = 46733; // Scroll of Escape: Town of GIRAN
private static final int SOE_DRAGON_VALLEY = 46734; // Scroll of Escape: Dragon Valley
// Location
private static final Location TELEPORT_LOC = new Location(84015, 147219, -3395);
// Rewards
private static final int XP = 1533168;
private static final int SP = 306;
// Misc
private static final int MIN_LEVEL = 81;
private static final int MAX_LEVEL = 84;
public Q10530_KekropusLetterTheDragonsTransition()
{
super(10530);
addTalkId(JERONIN, NAMO);
addSeeCreatureId(INVISIBLE_NPC);
setIsErtheiaQuest(false);
setLevel(MIN_LEVEL, MAX_LEVEL);
setStartQuestSound("Npcdialog1.kekrops_quest_15");
setStartLocation(SOE_TOWN_OF_GIRAN, TELEPORT_LOC);
registerQuestItems(SOE_TOWN_OF_GIRAN, SOE_DRAGON_VALLEY);
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "30121-02.htm":
case "33973-02.html":
{
htmltext = event;
break;
}
case "30121-03.htm":
{
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GIRAN, -1);
giveItems(player, SOE_DRAGON_VALLEY, 1);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33973-03.html":
{
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, XP, SP);
}
showOnScreenMsg(player, NpcStringId.YOU_HAVE_COMPLETED_ALL_OF_KEKROPUS_LETTER, ExShowScreenMessage.TOP_CENTER, 6000);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, PlayerInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return htmltext;
}
if (qs.isStarted())
{
if ((npc.getId() == JERONIN) && qs.isCond(2))
{
htmltext = "30121-01.htm";
}
else if (qs.isCond(3))
{
htmltext = npc.getId() == JERONIN ? "30121-04.htm" : "33973-01.html";
}
}
return htmltext;
}
@Override
public String onSeeCreature(Npc npc, Creature creature, boolean isSummon)
{
if (creature.isPlayer())
{
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.DEN_OF_EVIL_IS_A_GOOD_HUNTING_ZONE_FOR_LV_81_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}
}
return super.onSeeCreature(npc, creature, isSummon);
}
}

View File

@ -0,0 +1,8 @@
<html><head><title>Kekropus' Letter</title></head><body>Kekropus' Letter:<br>
Since the dimensional rift was discovered in Dragon Valley, changes have been observed among the dragons.<br>
I suspect Embryo involvement in this matter as well.<br>
Go to <font color="LEVEL">Captain Jeronin</font> in the <font color="LEVEL">Town of Giran</font> for details.<br>
(A <font color="LEVEL">Scroll of Escape</font> is enclosed. If you want to go now, use it to travel immediately.)<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h %teleport%">"Use the Scroll of Escape."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close</Button>
</body></html>

View File

@ -74,9 +74,9 @@ public final class Q10755_LettersFromTheQueenWindyHill extends LetterQuest
}
case "30037-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_WINDY_HILL, 1);
showOnScreenMsg(player, NpcStringId.TRY_USING_THE_TELEPORT_SCROLL_LEVIAN_GAVE_YOU, ExShowScreenMessage.TOP_CENTER, 5000);
}
@ -84,7 +84,7 @@ public final class Q10755_LettersFromTheQueenWindyHill extends LetterQuest
}
case "33963-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 120960, 29);
@ -116,9 +116,9 @@ public final class Q10755_LettersFromTheQueenWindyHill extends LetterQuest
{
if ((npc.getId() == LEVIAN))
{
htmltext = (qs.isCond(1)) ? "30037-01.html" : "30037-04.html";
htmltext = (qs.isCond(2)) ? "30037-01.html" : "30037-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33963-01.html";
}

View File

@ -74,9 +74,9 @@ public class Q10760_LettersFromTheQueenOrcBarracks extends LetterQuest
}
case "30037-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_ORC_BARRACKS, 1);
showOnScreenMsg(player, NpcStringId.TRY_USING_THE_TELEPORT_SCROLL_LEVIAN_GAVE_YOU_TO_GO_TO_ORC_BARRACKS, ExShowScreenMessage.TOP_CENTER, 5000);
}
@ -84,7 +84,7 @@ public class Q10760_LettersFromTheQueenOrcBarracks extends LetterQuest
}
case "30597-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 242760, 58);
@ -116,9 +116,9 @@ public class Q10760_LettersFromTheQueenOrcBarracks extends LetterQuest
{
if ((npc.getId() == LEVIAN))
{
htmltext = (qs.isCond(1)) ? "30037-01.html" : "30037-04.html";
htmltext = (qs.isCond(2)) ? "30037-01.html" : "30037-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "30597-01.html";
}

View File

@ -76,9 +76,9 @@ public final class Q10769_LettersFromTheQueenCrumaTowerPart1 extends LetterQuest
}
case "30070-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_CRUMA_TOWER, 1);
showOnScreenMsg(player, NpcStringId.TRY_USING_THE_TELEPORT_SCROLL_SYLVAIN_GAVE_YOU_TO_GO_TO_CRUMA_TOWER, ExShowScreenMessage.TOP_CENTER, 5000);
}
@ -86,7 +86,7 @@ public final class Q10769_LettersFromTheQueenCrumaTowerPart1 extends LetterQuest
}
case "30673-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveItems(player, ENCHANT_WEAPON_C, 1);
giveItems(player, ENCHANT_ARMOR_C, 1);
@ -119,9 +119,9 @@ public final class Q10769_LettersFromTheQueenCrumaTowerPart1 extends LetterQuest
{
if (npc.getId() == SYLVAIN)
{
htmltext = (qs.isCond(1)) ? "30070-01.html" : "30070-04.html";
htmltext = (qs.isCond(2)) ? "30070-01.html" : "30070-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "30673-01.html";
}

View File

@ -74,9 +74,9 @@ public final class Q10774_LettersFromTheQueenCrumaTowerPart2 extends LetterQuest
}
case "30070-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_CRUMA_TOWER, 1);
showOnScreenMsg(player, NpcStringId.TRY_USING_THE_TELEPORT_SCROLL_SYLVAIN_GAVE_YOU_TO_GO_TO_CRUMA_TOWER_2, ExShowScreenMessage.TOP_CENTER, 8000);
}
@ -84,7 +84,7 @@ public final class Q10774_LettersFromTheQueenCrumaTowerPart2 extends LetterQuest
}
case "30487-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 483840, 116);
@ -115,9 +115,9 @@ public final class Q10774_LettersFromTheQueenCrumaTowerPart2 extends LetterQuest
{
if (npc.getId() == SYLVAIN)
{
htmltext = (qs.isCond(1)) ? "30070-01.html" : "30070-04.html";
htmltext = (qs.isCond(2)) ? "30070-01.html" : "30070-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "30487-01.html";
}

View File

@ -75,9 +75,9 @@ public final class Q10782_LettersFromTheQueenForsakenPlains extends LetterQuest
}
case "30857-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FORSAKEN_PLAINS, 1);
htmltext = event;
}
@ -85,7 +85,7 @@ public final class Q10782_LettersFromTheQueenForsakenPlains extends LetterQuest
}
case "33866-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 731010, 175);
@ -117,9 +117,9 @@ public final class Q10782_LettersFromTheQueenForsakenPlains extends LetterQuest
{
if (npc.getId() == ORVEN)
{
htmltext = (qs.isCond(1)) ? "30857-01.html" : "30857-04.html";
htmltext = (qs.isCond(2)) ? "30857-01.html" : "30857-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33866-01.html";
}

View File

@ -75,9 +75,9 @@ public final class Q10785_LettersFromTheQueenFieldsOfMassacre extends LetterQues
}
case "30857-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FIELDS_OF_MASSACRE, 1);
htmltext = event;
}
@ -85,7 +85,7 @@ public final class Q10785_LettersFromTheQueenFieldsOfMassacre extends LetterQues
}
case "33867-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 807240, 193);
@ -117,9 +117,9 @@ public final class Q10785_LettersFromTheQueenFieldsOfMassacre extends LetterQues
{
if (npc.getId() == ORVEN)
{
htmltext = (qs.isCond(1)) ? "30857-01.html" : "30857-04.html";
htmltext = (qs.isCond(2)) ? "30857-01.html" : "30857-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33867-01.html";
}

View File

@ -75,9 +75,9 @@ public final class Q10789_LettersFromTheQueenSwampOfScreams extends LetterQuest
}
case "31328-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_SWAMP_OF_SCREAMS, 1);
htmltext = event;
}
@ -85,7 +85,7 @@ public final class Q10789_LettersFromTheQueenSwampOfScreams extends LetterQuest
}
case "33847-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 942690, 226);
@ -117,9 +117,9 @@ public final class Q10789_LettersFromTheQueenSwampOfScreams extends LetterQuest
{
if (npc.getId() == INNOCENTIN)
{
htmltext = (qs.isCond(1)) ? "31328-01.html" : "31328-04.html";
htmltext = (qs.isCond(2)) ? "31328-01.html" : "31328-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33847-01.html";
}

View File

@ -74,16 +74,16 @@ public final class Q10792_LettersFromTheQueenForestOfTheDead extends LetterQuest
}
case "31328-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FOREST_OF_DEAD, 1);
}
break;
}
case "33849-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 942690, 226);
@ -114,9 +114,9 @@ public final class Q10792_LettersFromTheQueenForestOfTheDead extends LetterQuest
{
if (npc.getId() == INNOCENTIN)
{
htmltext = (qs.isCond(1)) ? "31328-01.html" : "31328-04.html";
htmltext = (qs.isCond(2)) ? "31328-01.html" : "31328-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33849-01.html";
}

View File

@ -60,9 +60,9 @@ public class Q10795_LettersFromTheQueenWallOfAgros extends LetterQuest
}
case "31279-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_WAAL_OF_ARGOS, 1);
htmltext = event;
}
@ -70,7 +70,7 @@ public class Q10795_LettersFromTheQueenWallOfAgros extends LetterQuest
}
case "31616-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 1088640, 261);
@ -97,9 +97,9 @@ public class Q10795_LettersFromTheQueenWallOfAgros extends LetterQuest
{
if (npc.getId() == GREGORY)
{
htmltext = (qs.isCond(1)) ? "31279-01.html" : "31279-04.html";
htmltext = (qs.isCond(2)) ? "31279-01.html" : "31279-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "31616-01.html";
}

View File

@ -75,9 +75,9 @@ public class Q10798_LettersFromTheQueenDragonValley extends LetterQuest
}
case "30120-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_DRAGON_VALLEY, 1);
htmltext = event;
}
@ -85,7 +85,7 @@ public class Q10798_LettersFromTheQueenDragonValley extends LetterQuest
}
case "33973-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 1277640, 306);
@ -112,9 +112,9 @@ public class Q10798_LettersFromTheQueenDragonValley extends LetterQuest
{
if (npc.getId() == MAXIMILIAN)
{
htmltext = (qs.isCond(1)) ? "30120-01.html" : "30120-04.html";
htmltext = (qs.isCond(2)) ? "30120-01.html" : "30120-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33973-01.html";
}

View File

@ -345,6 +345,7 @@ import quests.Q10525_QueenNavarisLetterKetraOrcOutpost.Q10525_QueenNavarisLetter
import quests.Q10526_TheDarkSecretOfTheKetraOrcs.Q10526_TheDarkSecretOfTheKetraOrcs;
import quests.Q10527_TheAssassinationOfTheKetraOrcCommander.Q10527_TheAssassinationOfTheKetraOrcCommander;
import quests.Q10528_TheAssassinationOfTheKetraOrcChief.Q10528_TheAssassinationOfTheKetraOrcChief;
import quests.Q10530_KekropusLetterTheDragonsTransition.Q10530_KekropusLetterTheDragonsTransition;
import quests.Q10534_HatchlingResearch.Q10534_HatchlingResearch;
import quests.Q10541_TrainLikeTheRealThing.Q10541_TrainLikeTheRealThing;
import quests.Q10542_SearchingForNewPower.Q10542_SearchingForNewPower;
@ -872,6 +873,7 @@ public class QuestMasterHandler
Q10526_TheDarkSecretOfTheKetraOrcs.class,
Q10527_TheAssassinationOfTheKetraOrcCommander.class,
Q10528_TheAssassinationOfTheKetraOrcChief.class,
Q10530_KekropusLetterTheDragonsTransition.class,
Q10531_OddHappeningsAtDragonValley.class, // TODO: Not done.
Q10532_UncoveringTheConspiracy.class, // TODO: Not done.
Q10534_HatchlingResearch.class,

View File

@ -195,6 +195,7 @@ public abstract class LetterQuest extends Quest
{
player.teleToLocation(_startTeleport);
takeItems(player, _startSOE, -1);
qs.setCond(2, true);
}
}
player.sendPacket(TutorialCloseHtml.STATIC_PACKET);

View File

@ -172,7 +172,6 @@
10457 Kefensis' Illusion
10506 Diana's Request
10529 Ivory Tower's Research - Sea of Spores Journal
10530 Kekropus' Letter, The Dragon's Transition Achieve Level 81
10531 Odd Happenings at Dragon Valley Strange Things Afoot in the Valley
10532 Uncovering the Conspiracy Eliminate the Undead and Dragons
10533 Orfen's Ambition

View File

@ -119,7 +119,7 @@ public final class Q10390_KekropusLetter extends Quest
{
player.sendPacket(new TutorialShowHtml(getHtm(player, event)));
player.sendPacket(new PlaySound(3, "Npcdialog1.kekrops_quest_1", 0, 0, 0, 0, 0));
qs.setCond(2);
qs.setCond(2, true);
}
break;
}
@ -129,7 +129,7 @@ public final class Q10390_KekropusLetter extends Quest
{
takeItems(player, KEKROPUS_LETTER, -1);
giveItems(player, HAINE_SOE, 1);
qs.setCond(3);
qs.setCond(3, true);
htmltext = event;
}
break;
@ -139,7 +139,7 @@ public final class Q10390_KekropusLetter extends Quest
if (qs.isCond(3))
{
giveItems(player, ALLIGATOR_ISLAND_SOE, 1);
qs.setCond(4);
qs.setCond(4, true);
htmltext = event;
}
break;

View File

@ -77,9 +77,9 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
}
case "30677-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_OUTLAW_FOREST, 1);
htmltext = event;
}
@ -87,7 +87,7 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
}
case "33862-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -114,11 +114,11 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
if (qs.isStarted())
{
if (qs.isCond(1) && (npc.getId() == FLUTER))
if (qs.isCond(2) && (npc.getId() == FLUTER))
{
htmltext = "30677-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == FLUTER ? "30677-04.html" : "33862-01.html";
}
@ -134,7 +134,7 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.OUTLAW_FOREST_IS_A_GOOD_HUNTING_ZONE_FOR_LV_46_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -42,7 +42,7 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
// Location
private static final Location TELEPORT_LOC = new Location(147540, 24661, -1984);
// Misc
private static final int MIN_LEVEL = 58;
private static final int MIN_LEVEL = 56;
private static final int MAX_LEVEL = 60;
public Q10401_KekropusLetterDecodingTheBadge()
@ -77,9 +77,9 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
}
case "33864-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FORSAKEN_PLAINS, 1);
htmltext = event;
}
@ -87,7 +87,7 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
}
case "33865-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -117,11 +117,11 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
if (qs.isStarted())
{
if (qs.isCond(1) && (npc.getId() == PATERSON))
if (qs.isCond(2) && (npc.getId() == PATERSON))
{
htmltext = "33864-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == PATERSON ? "33864-04.html" : "33865-01.html";
}
@ -137,7 +137,7 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.FORSAKEN_PLAINS_IA_A_GOOD_HUNTING_ZONE_FOR_LV_58_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,9 +77,9 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
}
case "33864-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FIELDS_OF_MASSACRE, 1);
htmltext = event;
}
@ -87,7 +87,7 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
}
case "33867-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -117,11 +117,11 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == PATERSON) && qs.isCond(1))
if ((npc.getId() == PATERSON) && qs.isCond(2))
{
htmltext = "33864-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == PATERSON ? "33864-04.html" : "33867-01.html";
}
@ -137,7 +137,7 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.FIELDS_OF_MASSACRE_IS_A_GOOD_HUNTING_ZONE_FOR_LV_61_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10408_KekropusLetterTheSwampOfScreams extends LetterQuest
}
case "31340-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_RUNE, -1);
giveItems(player, SOE_SWAMP_OF_SCREAMS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33847-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10408_KekropusLetterTheSwampOfScreams extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == MATHIAS) && qs.isCond(1))
if ((npc.getId() == MATHIAS) && qs.isCond(2))
{
htmltext = "31340-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == MATHIAS ? "31340-04.html" : "33847-01.html";
}
@ -138,7 +138,7 @@ public final class Q10408_KekropusLetterTheSwampOfScreams extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.SWAMP_OF_SCREAMS_IA_A_GOOD_HUNTING_ZONE_FOR_LV_65_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10411_KekropusLetterTheForestOfTheDead extends LetterQuest
}
case "31340-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_RUNE, -1);
giveItems(player, SOE_FOREST_OF_THE_DEAD, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33849-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10411_KekropusLetterTheForestOfTheDead extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == MATHIAS) && qs.isCond(1))
if ((npc.getId() == MATHIAS) && qs.isCond(2))
{
htmltext = "31340-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == MATHIAS ? "31340-04.html" : "33849-01.html";
}
@ -138,7 +138,7 @@ public final class Q10411_KekropusLetterTheForestOfTheDead extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.FOREST_OF_THE_DEAD_IS_A_GOOD_HUNTING_ZONE_FOR_LV_65_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10414_KekropusLetterWithCourage extends LetterQuest
}
case "31292-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_WALL_OF_ARGOS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33851-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10414_KekropusLetterWithCourage extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
if ((npc.getId() == ANDREI) && qs.isCond(2))
{
htmltext = "31292-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33851-01.html";
}
@ -138,7 +138,7 @@ public final class Q10414_KekropusLetterWithCourage extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.WALL_OF_ARGOS_IS_A_GOOD_HUNTING_ZONE_FOR_LV_70_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -78,18 +78,18 @@ public class Q10415_KekropusLetterWithWisdom extends LetterQuest
}
case "31292-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_WALL_OF_ARGOS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33851-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -113,11 +113,11 @@ public class Q10415_KekropusLetterWithWisdom extends LetterQuest
String htmltext = getNoQuestMsg(player);
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
if ((npc.getId() == ANDREI) && qs.isCond(2))
{
htmltext = "31292-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33851-01.html";
}
@ -133,7 +133,7 @@ public class Q10415_KekropusLetterWithWisdom extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.WALL_OF_ARGOS_IS_A_GOOD_HUNTING_ZONE_FOR_LV_70_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10419_KekropusLetterKampfsWhereabouts extends LetterQuest
}
case "31292-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_VARKA_SILENOS_BARRACKS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33853-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10419_KekropusLetterKampfsWhereabouts extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
if ((npc.getId() == ANDREI) && qs.isCond(2))
{
htmltext = "31292-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33853-01.html";
}
@ -138,7 +138,7 @@ public final class Q10419_KekropusLetterKampfsWhereabouts extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.VARKA_SILENOS_BARRACKS_IS_A_GOOD_HUNTING_ZONE_FOR_LV_76_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -76,18 +76,18 @@ public final class Q10424_KekropusLetterBelosWhereabouts extends LetterQuest
}
case "31292-03.htm":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_KETRA_ORC_OUTPOST, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33852-02.htm":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -117,11 +117,11 @@ public final class Q10424_KekropusLetterBelosWhereabouts extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
if ((npc.getId() == ANDREI) && qs.isCond(2))
{
htmltext = "31292-01.htm";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == ANDREI ? "31292-04.htm" : "33852-01.htm";
}
@ -137,7 +137,7 @@ public final class Q10424_KekropusLetterBelosWhereabouts extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.KETRA_ORC_OUTPOST_IS_A_GOOD_HUNTING_ZONE_FOR_LV_76_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
What brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 30121-02.htm">"I received a letter from Kekropus."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
Ah, so you were the one! I was looking for someone to ask for help, what with all the complicated goings on in Dragon Valley. I came across the news that someone had defeated Sakum and was helping the Giant's Minions, and was hoping that such a formidable one would be able to resolve the problems that have occurred in Dragon Valley.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 30121-03.htm">"Go on."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Captain Jeronin:<br>
<font color="LEVEL">Namo</font> is at the entrance to Dragon Valley to conduct research. When you meet him, he will explain to you the strange goings on in Dragon Valley, and what sort of help is needed.<br>
I will give you a <font color="LEVEL">Scroll of Escape: Dragon Valley</font>, so that you can find Namo without wasting time. It should make your joumey over there easily.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><head><body>Captain Jeronin:<br>
What are you waiting for? Go now to <font color="LEVEL">Dragon Valley</font> and help <font color="LEVEL">Namo</font>. He is waiting for you.<br>
To get there quickly, use the <font color="LEVEL">Scroll of Escape: Dragon Valley</font> I gave you. You could also ask a Gatekeeper for help.<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Namo:<br>
What brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 33973-02.html">"Tell me about the monster."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Namo:<br>
Right now, Dragon Valley is a very dangerous place. As the 6th Seal was broken, the Dimensional Rift caused the undead to appear whenever night fell.<br>
You're really not going to change your mind about investigating such a dangerous place? <br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10530_KekropusLetterTheDragonsTransition 33973-03.html">"Yes."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Namo:<br>
Alright I will give you the mission right away.<br>
</body></html>

View File

@ -0,0 +1,151 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package quests.Q10530_KekropusLetterTheDragonsTransition;
import com.l2jmobius.gameserver.model.Location;
import com.l2jmobius.gameserver.model.actor.Creature;
import com.l2jmobius.gameserver.model.actor.Npc;
import com.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import quests.LetterQuest;
/**
* Kekropus' Letter: Belos' Whereabouts (10424)
* @author Stayawy
*/
public final class Q10530_KekropusLetterTheDragonsTransition extends LetterQuest
{
// NPCs
private static final int JERONIN = 30121;
private static final int NAMO = 33973;
private static final int INVISIBLE_NPC = 19543;
// Items
private static final int SOE_TOWN_OF_GIRAN = 46733; // Scroll of Escape: Town of GIRAN
private static final int SOE_DRAGON_VALLEY = 46734; // Scroll of Escape: Dragon Valley
// Location
private static final Location TELEPORT_LOC = new Location(84015, 147219, -3395);
// Rewards
private static final int XP = 1533168;
private static final int SP = 306;
// Misc
private static final int MIN_LEVEL = 81;
private static final int MAX_LEVEL = 84;
public Q10530_KekropusLetterTheDragonsTransition()
{
super(10530);
addTalkId(JERONIN, NAMO);
addSeeCreatureId(INVISIBLE_NPC);
setIsErtheiaQuest(false);
setLevel(MIN_LEVEL, MAX_LEVEL);
setStartQuestSound("Npcdialog1.kekrops_quest_15");
setStartLocation(SOE_TOWN_OF_GIRAN, TELEPORT_LOC);
registerQuestItems(SOE_TOWN_OF_GIRAN, SOE_DRAGON_VALLEY);
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "30121-02.htm":
case "33973-02.html":
{
htmltext = event;
break;
}
case "30121-03.htm":
{
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GIRAN, -1);
giveItems(player, SOE_DRAGON_VALLEY, 1);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33973-03.html":
{
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, XP, SP);
}
showOnScreenMsg(player, NpcStringId.YOU_HAVE_COMPLETED_ALL_OF_KEKROPUS_LETTER, ExShowScreenMessage.TOP_CENTER, 6000);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, PlayerInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return htmltext;
}
if (qs.isStarted())
{
if ((npc.getId() == JERONIN) && qs.isCond(2))
{
htmltext = "30121-01.htm";
}
else if (qs.isCond(3))
{
htmltext = npc.getId() == JERONIN ? "30121-04.htm" : "33973-01.html";
}
}
return htmltext;
}
@Override
public String onSeeCreature(Npc npc, Creature creature, boolean isSummon)
{
if (creature.isPlayer())
{
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.DEN_OF_EVIL_IS_A_GOOD_HUNTING_ZONE_FOR_LV_81_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}
}
return super.onSeeCreature(npc, creature, isSummon);
}
}

View File

@ -0,0 +1,8 @@
<html><head><title>Kekropus' Letter</title></head><body>Kekropus' Letter:<br>
Since the dimensional rift was discovered in Dragon Valley, changes have been observed among the dragons.<br>
I suspect Embryo involvement in this matter as well.<br>
Go to <font color="LEVEL">Captain Jeronin</font> in the <font color="LEVEL">Town of Giran</font> for details.<br>
(A <font color="LEVEL">Scroll of Escape</font> is enclosed. If you want to go now, use it to travel immediately.)<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h %teleport%">"Use the Scroll of Escape."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close</Button>
</body></html>

View File

@ -74,9 +74,9 @@ public final class Q10755_LettersFromTheQueenWindyHill extends LetterQuest
}
case "30037-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_WINDY_HILL, 1);
showOnScreenMsg(player, NpcStringId.TRY_USING_THE_TELEPORT_SCROLL_LEVIAN_GAVE_YOU, ExShowScreenMessage.TOP_CENTER, 5000);
}
@ -84,7 +84,7 @@ public final class Q10755_LettersFromTheQueenWindyHill extends LetterQuest
}
case "33963-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 120960, 29);
@ -116,9 +116,9 @@ public final class Q10755_LettersFromTheQueenWindyHill extends LetterQuest
{
if ((npc.getId() == LEVIAN))
{
htmltext = (qs.isCond(1)) ? "30037-01.html" : "30037-04.html";
htmltext = (qs.isCond(2)) ? "30037-01.html" : "30037-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33963-01.html";
}

View File

@ -74,9 +74,9 @@ public class Q10760_LettersFromTheQueenOrcBarracks extends LetterQuest
}
case "30037-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_ORC_BARRACKS, 1);
showOnScreenMsg(player, NpcStringId.TRY_USING_THE_TELEPORT_SCROLL_LEVIAN_GAVE_YOU_TO_GO_TO_ORC_BARRACKS, ExShowScreenMessage.TOP_CENTER, 5000);
}
@ -84,7 +84,7 @@ public class Q10760_LettersFromTheQueenOrcBarracks extends LetterQuest
}
case "30597-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 242760, 58);
@ -116,9 +116,9 @@ public class Q10760_LettersFromTheQueenOrcBarracks extends LetterQuest
{
if ((npc.getId() == LEVIAN))
{
htmltext = (qs.isCond(1)) ? "30037-01.html" : "30037-04.html";
htmltext = (qs.isCond(2)) ? "30037-01.html" : "30037-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "30597-01.html";
}

View File

@ -76,9 +76,9 @@ public final class Q10769_LettersFromTheQueenCrumaTowerPart1 extends LetterQuest
}
case "30070-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_CRUMA_TOWER, 1);
showOnScreenMsg(player, NpcStringId.TRY_USING_THE_TELEPORT_SCROLL_SYLVAIN_GAVE_YOU_TO_GO_TO_CRUMA_TOWER, ExShowScreenMessage.TOP_CENTER, 5000);
}
@ -86,7 +86,7 @@ public final class Q10769_LettersFromTheQueenCrumaTowerPart1 extends LetterQuest
}
case "30673-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveItems(player, ENCHANT_WEAPON_C, 1);
giveItems(player, ENCHANT_ARMOR_C, 1);
@ -119,9 +119,9 @@ public final class Q10769_LettersFromTheQueenCrumaTowerPart1 extends LetterQuest
{
if (npc.getId() == SYLVAIN)
{
htmltext = (qs.isCond(1)) ? "30070-01.html" : "30070-04.html";
htmltext = (qs.isCond(2)) ? "30070-01.html" : "30070-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "30673-01.html";
}

View File

@ -74,9 +74,9 @@ public final class Q10774_LettersFromTheQueenCrumaTowerPart2 extends LetterQuest
}
case "30070-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_CRUMA_TOWER, 1);
showOnScreenMsg(player, NpcStringId.TRY_USING_THE_TELEPORT_SCROLL_SYLVAIN_GAVE_YOU_TO_GO_TO_CRUMA_TOWER_2, ExShowScreenMessage.TOP_CENTER, 8000);
}
@ -84,7 +84,7 @@ public final class Q10774_LettersFromTheQueenCrumaTowerPart2 extends LetterQuest
}
case "30487-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 483840, 116);
@ -115,9 +115,9 @@ public final class Q10774_LettersFromTheQueenCrumaTowerPart2 extends LetterQuest
{
if (npc.getId() == SYLVAIN)
{
htmltext = (qs.isCond(1)) ? "30070-01.html" : "30070-04.html";
htmltext = (qs.isCond(2)) ? "30070-01.html" : "30070-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "30487-01.html";
}

View File

@ -75,9 +75,9 @@ public final class Q10782_LettersFromTheQueenForsakenPlains extends LetterQuest
}
case "30857-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FORSAKEN_PLAINS, 1);
htmltext = event;
}
@ -85,7 +85,7 @@ public final class Q10782_LettersFromTheQueenForsakenPlains extends LetterQuest
}
case "33866-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 731010, 175);
@ -117,9 +117,9 @@ public final class Q10782_LettersFromTheQueenForsakenPlains extends LetterQuest
{
if (npc.getId() == ORVEN)
{
htmltext = (qs.isCond(1)) ? "30857-01.html" : "30857-04.html";
htmltext = (qs.isCond(2)) ? "30857-01.html" : "30857-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33866-01.html";
}

View File

@ -75,9 +75,9 @@ public final class Q10785_LettersFromTheQueenFieldsOfMassacre extends LetterQues
}
case "30857-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FIELDS_OF_MASSACRE, 1);
htmltext = event;
}
@ -85,7 +85,7 @@ public final class Q10785_LettersFromTheQueenFieldsOfMassacre extends LetterQues
}
case "33867-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 807240, 193);
@ -117,9 +117,9 @@ public final class Q10785_LettersFromTheQueenFieldsOfMassacre extends LetterQues
{
if (npc.getId() == ORVEN)
{
htmltext = (qs.isCond(1)) ? "30857-01.html" : "30857-04.html";
htmltext = (qs.isCond(2)) ? "30857-01.html" : "30857-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33867-01.html";
}

View File

@ -75,9 +75,9 @@ public final class Q10789_LettersFromTheQueenSwampOfScreams extends LetterQuest
}
case "31328-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_SWAMP_OF_SCREAMS, 1);
htmltext = event;
}
@ -85,7 +85,7 @@ public final class Q10789_LettersFromTheQueenSwampOfScreams extends LetterQuest
}
case "33847-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 942690, 226);
@ -117,9 +117,9 @@ public final class Q10789_LettersFromTheQueenSwampOfScreams extends LetterQuest
{
if (npc.getId() == INNOCENTIN)
{
htmltext = (qs.isCond(1)) ? "31328-01.html" : "31328-04.html";
htmltext = (qs.isCond(2)) ? "31328-01.html" : "31328-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33847-01.html";
}

View File

@ -74,16 +74,16 @@ public final class Q10792_LettersFromTheQueenForestOfTheDead extends LetterQuest
}
case "31328-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FOREST_OF_DEAD, 1);
}
break;
}
case "33849-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 942690, 226);
@ -114,9 +114,9 @@ public final class Q10792_LettersFromTheQueenForestOfTheDead extends LetterQuest
{
if (npc.getId() == INNOCENTIN)
{
htmltext = (qs.isCond(1)) ? "31328-01.html" : "31328-04.html";
htmltext = (qs.isCond(2)) ? "31328-01.html" : "31328-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33849-01.html";
}

View File

@ -60,9 +60,9 @@ public class Q10795_LettersFromTheQueenWallOfAgros extends LetterQuest
}
case "31279-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_WAAL_OF_ARGOS, 1);
htmltext = event;
}
@ -70,7 +70,7 @@ public class Q10795_LettersFromTheQueenWallOfAgros extends LetterQuest
}
case "31616-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 1088640, 261);
@ -97,9 +97,9 @@ public class Q10795_LettersFromTheQueenWallOfAgros extends LetterQuest
{
if (npc.getId() == GREGORY)
{
htmltext = (qs.isCond(1)) ? "31279-01.html" : "31279-04.html";
htmltext = (qs.isCond(2)) ? "31279-01.html" : "31279-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "31616-01.html";
}

View File

@ -75,9 +75,9 @@ public class Q10798_LettersFromTheQueenDragonValley extends LetterQuest
}
case "30120-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_DRAGON_VALLEY, 1);
htmltext = event;
}
@ -85,7 +85,7 @@ public class Q10798_LettersFromTheQueenDragonValley extends LetterQuest
}
case "33973-03.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
giveStoryQuestReward(npc, player);
addExpAndSp(player, 1277640, 306);
@ -112,9 +112,9 @@ public class Q10798_LettersFromTheQueenDragonValley extends LetterQuest
{
if (npc.getId() == MAXIMILIAN)
{
htmltext = (qs.isCond(1)) ? "30120-01.html" : "30120-04.html";
htmltext = (qs.isCond(2)) ? "30120-01.html" : "30120-04.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = "33973-01.html";
}

View File

@ -299,6 +299,7 @@ import quests.Q10525_QueenNavarisLetterKetraOrcOutpost.Q10525_QueenNavarisLetter
import quests.Q10526_TheDarkSecretOfTheKetraOrcs.Q10526_TheDarkSecretOfTheKetraOrcs;
import quests.Q10527_TheAssassinationOfTheKetraOrcCommander.Q10527_TheAssassinationOfTheKetraOrcCommander;
import quests.Q10528_TheAssassinationOfTheKetraOrcChief.Q10528_TheAssassinationOfTheKetraOrcChief;
import quests.Q10530_KekropusLetterTheDragonsTransition.Q10530_KekropusLetterTheDragonsTransition;
import quests.Q10534_HatchlingResearch.Q10534_HatchlingResearch;
import quests.Q10541_TrainLikeTheRealThing.Q10541_TrainLikeTheRealThing;
import quests.Q10542_SearchingForNewPower.Q10542_SearchingForNewPower;
@ -782,6 +783,7 @@ public class QuestMasterHandler
Q10527_TheAssassinationOfTheKetraOrcCommander.class,
Q10528_TheAssassinationOfTheKetraOrcChief.class,
Q10529_IvoryTowersResearchSeaOfSporesJournal.class, // TODO: Not done.
Q10530_KekropusLetterTheDragonsTransition.class,
Q10531_OddHappeningsAtDragonValley.class, // TODO: Not done.
Q10532_UncoveringTheConspiracy.class, // TODO: Not done.
Q10533_OrfensAmbition.class, // TODO: Not done.

View File

@ -195,6 +195,7 @@ public abstract class LetterQuest extends Quest
{
player.teleToLocation(_startTeleport);
takeItems(player, _startSOE, -1);
qs.setCond(2, true);
}
}
player.sendPacket(TutorialCloseHtml.STATIC_PACKET);

View File

@ -184,7 +184,6 @@
10518 Succeeding the Priestess
10519 Controlling Your Temper
10520 Temple Guardians
10530 Kekropus' Letter, The Dragon's Transition Achieve Level 81
10531 Odd Happenings at Dragon Valley Strange Things Afoot in the Valley
10532 Uncovering the Conspiracy Eliminate the Undead and Dragons
10533 Orfen's Ambition

View File

@ -119,7 +119,7 @@ public final class Q10390_KekropusLetter extends Quest
{
player.sendPacket(new TutorialShowHtml(getHtm(player, event)));
player.sendPacket(new PlaySound(3, "Npcdialog1.kekrops_quest_1", 0, 0, 0, 0, 0));
qs.setCond(2);
qs.setCond(2, true);
}
break;
}
@ -129,7 +129,7 @@ public final class Q10390_KekropusLetter extends Quest
{
takeItems(player, KEKROPUS_LETTER, -1);
giveItems(player, HAINE_SOE, 1);
qs.setCond(3);
qs.setCond(3, true);
htmltext = event;
}
break;
@ -139,7 +139,7 @@ public final class Q10390_KekropusLetter extends Quest
if (qs.isCond(3))
{
giveItems(player, ALLIGATOR_ISLAND_SOE, 1);
qs.setCond(4);
qs.setCond(4, true);
htmltext = event;
}
break;

View File

@ -77,9 +77,9 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
}
case "30677-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_OUTLAW_FOREST, 1);
htmltext = event;
}
@ -87,7 +87,7 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
}
case "33862-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -114,11 +114,11 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
if (qs.isStarted())
{
if (qs.isCond(1) && (npc.getId() == FLUTER))
if (qs.isCond(2) && (npc.getId() == FLUTER))
{
htmltext = "30677-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == FLUTER ? "30677-04.html" : "33862-01.html";
}
@ -134,7 +134,7 @@ public final class Q10393_KekropusLetterAClueCompleted extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.OUTLAW_FOREST_IS_A_GOOD_HUNTING_ZONE_FOR_LV_46_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -42,7 +42,7 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
// Location
private static final Location TELEPORT_LOC = new Location(147540, 24661, -1984);
// Misc
private static final int MIN_LEVEL = 58;
private static final int MIN_LEVEL = 56;
private static final int MAX_LEVEL = 60;
public Q10401_KekropusLetterDecodingTheBadge()
@ -77,9 +77,9 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
}
case "33864-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FORSAKEN_PLAINS, 1);
htmltext = event;
}
@ -87,7 +87,7 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
}
case "33865-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -117,11 +117,11 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
if (qs.isStarted())
{
if (qs.isCond(1) && (npc.getId() == PATERSON))
if (qs.isCond(2) && (npc.getId() == PATERSON))
{
htmltext = "33864-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == PATERSON ? "33864-04.html" : "33865-01.html";
}
@ -137,7 +137,7 @@ public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.FORSAKEN_PLAINS_IA_A_GOOD_HUNTING_ZONE_FOR_LV_58_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,9 +77,9 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
}
case "33864-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
qs.setCond(2, true);
qs.setCond(3, true);
giveItems(player, SOE_FIELDS_OF_MASSACRE, 1);
htmltext = event;
}
@ -87,7 +87,7 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
}
case "33867-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -117,11 +117,11 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == PATERSON) && qs.isCond(1))
if ((npc.getId() == PATERSON) && qs.isCond(2))
{
htmltext = "33864-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == PATERSON ? "33864-04.html" : "33867-01.html";
}
@ -137,7 +137,7 @@ public final class Q10404_KekropusLetterAHiddenMeaning extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.FIELDS_OF_MASSACRE_IS_A_GOOD_HUNTING_ZONE_FOR_LV_61_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10408_KekropusLetterTheSwampOfScreams extends LetterQuest
}
case "31340-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_RUNE, -1);
giveItems(player, SOE_SWAMP_OF_SCREAMS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33847-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10408_KekropusLetterTheSwampOfScreams extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == MATHIAS) && qs.isCond(1))
if ((npc.getId() == MATHIAS) && qs.isCond(2))
{
htmltext = "31340-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == MATHIAS ? "31340-04.html" : "33847-01.html";
}
@ -138,7 +138,7 @@ public final class Q10408_KekropusLetterTheSwampOfScreams extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.SWAMP_OF_SCREAMS_IA_A_GOOD_HUNTING_ZONE_FOR_LV_65_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10411_KekropusLetterTheForestOfTheDead extends LetterQuest
}
case "31340-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_RUNE, -1);
giveItems(player, SOE_FOREST_OF_THE_DEAD, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33849-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10411_KekropusLetterTheForestOfTheDead extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == MATHIAS) && qs.isCond(1))
if ((npc.getId() == MATHIAS) && qs.isCond(2))
{
htmltext = "31340-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == MATHIAS ? "31340-04.html" : "33849-01.html";
}
@ -138,7 +138,7 @@ public final class Q10411_KekropusLetterTheForestOfTheDead extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.FOREST_OF_THE_DEAD_IS_A_GOOD_HUNTING_ZONE_FOR_LV_65_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -77,18 +77,18 @@ public final class Q10414_KekropusLetterWithCourage extends LetterQuest
}
case "31292-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_WALL_OF_ARGOS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33851-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -118,11 +118,11 @@ public final class Q10414_KekropusLetterWithCourage extends LetterQuest
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
if ((npc.getId() == ANDREI) && qs.isCond(2))
{
htmltext = "31292-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33851-01.html";
}
@ -138,7 +138,7 @@ public final class Q10414_KekropusLetterWithCourage extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.WALL_OF_ARGOS_IS_A_GOOD_HUNTING_ZONE_FOR_LV_70_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

View File

@ -78,18 +78,18 @@ public class Q10415_KekropusLetterWithWisdom extends LetterQuest
}
case "31292-03.html":
{
if (qs.isCond(1))
if (qs.isCond(2))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_WALL_OF_ARGOS, 1);
qs.setCond(2, true);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "33851-02.html":
{
if (qs.isCond(2))
if (qs.isCond(3))
{
qs.exitQuest(false, true);
giveStoryQuestReward(npc, player);
@ -113,11 +113,11 @@ public class Q10415_KekropusLetterWithWisdom extends LetterQuest
String htmltext = getNoQuestMsg(player);
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
if ((npc.getId() == ANDREI) && qs.isCond(2))
{
htmltext = "31292-01.html";
}
else if (qs.isCond(2))
else if (qs.isCond(3))
{
htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33851-01.html";
}
@ -133,7 +133,7 @@ public class Q10415_KekropusLetterWithWisdom extends LetterQuest
final PlayerInstance player = creature.getActingPlayer();
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
if ((qs != null) && qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.WALL_OF_ARGOS_IS_A_GOOD_HUNTING_ZONE_FOR_LV_70_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}

Some files were not shown because too many files have changed in this diff Show More