Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/31340-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/31340-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
Nice to meet you. <font color="LEVEL">Kekropus</font> promised me that he would send me someone trustworthy. I guess he kept his word. You probably know what is going on after reading <font color="LEVEL">Kekropus</font>' letter, but let me tell you more details.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10408_KekropusLetterTheSwampOfScreams 31340-02.html">Got it</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/31340-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/31340-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
Orc Trackers were chasing after a suspicious group when they split up towards the <font color="LEVEL">Swamp of Screams</font> and the <font color="LEVEL">Forest of the Dead</font>. The Orc Trackers also divided into two groups and chased after them separately. But now they are asking for help. I think both of the groups have run into problems.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10408_KekropusLetterTheSwampOfScreams 31340-03.html">"So where should I go?"</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/31340-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/31340-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
You're a brave one, aren't you? Go to the <font color="LEVEL">Swamp of Screams</font> and meet <font color="LEVEL">Tracker Dokara</font>. Get the details from him and help him with whatever he needs. I look forward to hearing the results.<br>
|
||||
To get there quickly, use the <font color="LEVEL">Scroll of Escape: Swamp of Screams</font> I gave you, or ask a Gatekeeper for help.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/31340-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/31340-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
Hurry up and meet <font color="LEVEL">Tracker Dokara</font> in the <font color="LEVEL">Swamp of Screams</font>. I look forward to hearing the results. <br>
|
||||
To get there quickly, use the <font color="LEVEL">Scroll of Escape: Swamp of Screams</font> I gave you, or ask a Gatekeeper for help.
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/33847-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/33847-01.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
Captain Mathias must have sent you. He loves to recommend the best.<br>
|
||||
Me? I'm Dokara. An Orc Tracker. Since Shilen and her followers ruined the world, I have been chasing them. For revenge!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10408_KekropusLetterTheSwampOfScreams 33847-02.html">You look injured</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/33847-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/33847-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
I laugh in the face of pain. Hah! It took a <font color="LEVEL">Suspicious Vagabond</font> and all his friends to take me down. We chased him in to the <font color="LEVEL">Swamp of Screams</font>, believing he had some connection to Shilen. He wasn't hard to track. That should've been our first clue.<br>
|
||||
It was a trap! But no more. The <font color="LEVEL">Suspicious Vagabond</font> will never harm another. Not if you go after him.<br><br>
|
||||
<font color="LEVEL">- Note: You can develop yourself through quests and hunting at the hunting ground in the Swamp of Screams. You can get the next item, Kekropus' Letter, at Lv. 70.</font>
|
||||
</body></html>
|
||||
@@ -0,0 +1,156 @@
|
||||
/*
|
||||
* 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.Q10408_KekropusLetterTheSwampOfScreams;
|
||||
|
||||
import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
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: The Swamp of Screams (10408)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q10408_KekropusLetterTheSwampOfScreams extends LetterQuest
|
||||
{
|
||||
// NPCs
|
||||
private static final int MATHIAS = 31340;
|
||||
private static final int DOKARA = 33847;
|
||||
private static final int INVISIBLE_NPC = 19543;
|
||||
// Items
|
||||
private static final int SOE_SWAMP_OF_SCREAMS = 37030; // Scroll of Escape: Swamp of Screams
|
||||
private static final int SOE_TOWN_OF_RUNE = 37117; // Scroll of Escape: Town of Rune
|
||||
private static final int EWA = 729; // Scroll: Enchant Weapon (A-grade)
|
||||
// Location
|
||||
private static final Location TELEPORT_LOC = new Location(42682, -47986, -792);
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 65;
|
||||
private static final int MAX_LEVEL = 69;
|
||||
|
||||
public Q10408_KekropusLetterTheSwampOfScreams()
|
||||
{
|
||||
super(10408);
|
||||
addTalkId(MATHIAS, DOKARA);
|
||||
addSeeCreatureId(INVISIBLE_NPC);
|
||||
|
||||
setIsErtheiaQuest(false);
|
||||
setLevel(MIN_LEVEL, MAX_LEVEL);
|
||||
setStartQuestSound("Npcdialog1.kekrops_quest_6");
|
||||
setStartLocation(SOE_TOWN_OF_RUNE, TELEPORT_LOC);
|
||||
registerQuestItems(SOE_TOWN_OF_RUNE, SOE_SWAMP_OF_SCREAMS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "31340-02.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31340-03.html":
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
takeItems(player, SOE_TOWN_OF_RUNE, -1);
|
||||
giveItems(player, SOE_SWAMP_OF_SCREAMS, 1);
|
||||
st.setCond(2, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33847-02.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.exitQuest(false, true);
|
||||
giveItems(player, EWA, 2);
|
||||
giveStoryQuestReward(player, 91);
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, 942_690, 226);
|
||||
}
|
||||
showOnScreenMsg(player, NpcStringId.GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_THE_NEXT_LETTER_FROM_KEKROPUS_AT_LV_70, ExShowScreenMessage.TOP_CENTER, 6000);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
if (st.isStarted())
|
||||
{
|
||||
if ((npc.getId() == MATHIAS) && st.isCond(1))
|
||||
{
|
||||
htmltext = "31340-01.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = npc.getId() == MATHIAS ? "31340-04.html" : "33847-01.html";
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onSeeCreature(L2Npc npc, L2Character creature, boolean isSummon)
|
||||
{
|
||||
if (creature.isPlayer())
|
||||
{
|
||||
final L2PcInstance player = creature.getActingPlayer();
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
if ((st != null) && st.isCond(2))
|
||||
{
|
||||
showOnScreenMsg(player, NpcStringId.SWAMP_OF_SCREAMS_IA_A_GOOD_HUNTING_ZONE_FOR_LV_65_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
|
||||
}
|
||||
}
|
||||
return super.onSeeCreature(npc, creature, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canShowTutorialMark(L2PcInstance player)
|
||||
{
|
||||
return !player.isMageClass();
|
||||
}
|
||||
}
|
||||
6
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/popup.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10408_KekropusLetterTheSwampOfScreams/popup.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><head><title>Kekropus' Letter</title></head><body>Kekropus' Letter:<br>
|
||||
A group of suspicious people were seen in the <font color="LEVEL">Swamp of Screams</font>, a part of the Rune territory. Go to <font color="LEVEL">Rune Captain Mathias</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%">"I'll go right away with this scroll."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close</Button>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user