Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/30196-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/30196-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mouen:<br>
|
||||
Good to see you again. I guess you came here because you got a letter from <font color="LEVEL">Kekropus</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10397_KekropusLetterASuspiciousBadge 30196-02.html">"Yes"</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/30196-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/30196-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><head><body>Captain Mouen:<br>
|
||||
You probably got the gist from <font color="LEVEL">Kekropus</font>'s letter but the <font color="LEVEL">Sea of Spores</font> is where you have to go. We've dispatched soldiers to tighten security, but I don't think that is enough.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10397_KekropusLetterASuspiciousBadge 30196-03.html">"What do you need?"</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/30196-03.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/30196-03.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Captain Mouen:<br>
|
||||
According to our latest report, <font color="LEVEL">Suspicious Badges</font> were found on monsters out there. They may have something to do with the monsters' increased ferocity.<br>
|
||||
For more information, go talk to <font color="LEVEL">Andy the Patrol</font> at the <font color="LEVEL">Sea of Spores</font>. Good luck then.<br>
|
||||
To reach the Sea of Spores, use this <font color="LEVEL">Scroll of Escape: Sea of Spores</font>, or ask a Gatekeeper for help.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/30196-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/30196-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mouen:<br>
|
||||
The situation at the <font color="LEVEL">Sea of Spores</font> is not good. Go to the <font color="LEVEL">Sea of Spores</font> and talk to <font color="LEVEL">Andy the Patrol</font>.<br>
|
||||
To reach the Sea of Spores, use the <font color="LEVEL">Scroll of Escape: Sea of Spores</font> I gave you or ask a Gatekeeper for help.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/33845-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/33845-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Andy the Patrol:<br>
|
||||
Here in the <font color="LEVEL">Sea of Spores</font>, we're dependent upon a force field built by the Ivory Tower wizards. The force field prevents the spores from expanding outward and keeps monsters inside at the same time. But lately the monsters have been acting suspicious. I'm worried that if we don't do anything, they might take down the forcefield and plunge this whole area into chaos.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10397_KekropusLetterASuspiciousBadge 33845-02.html">"Do you know anything about the Suspicious Badges being found in the area?"</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/33845-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/33845-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Andy the Patrol:<br>
|
||||
I don't really know the details yet. All I've heard is that <font color="LEVEL">Suspicious Badges</font> were found on monsters, and I assume they're what's making the monsters so violent. There's a scholar staying here in the <font color="LEVEL">Sea of Spores</font> to investigate the badges.<br>
|
||||
I appreciate you coming all the way out here. Hopefully you can get to the bottom of this.<br><br>
|
||||
<font color="LEVEL">- Note: You can develop yourself through quests and hunting at the hunting ground of the Sea of Spores. You can get the next item, Kekropus' Letter, at Lv. 58.</font>
|
||||
</body></html>
|
||||
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* 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.Q10397_KekropusLetterASuspiciousBadge;
|
||||
|
||||
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: A Suspicious Badge (10397)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q10397_KekropusLetterASuspiciousBadge extends LetterQuest
|
||||
{
|
||||
// NPCs
|
||||
private static final int MOUEN = 30196;
|
||||
private static final int ANDY = 33845;
|
||||
private static final int INVISIBLE_NPC = 19543;
|
||||
// Items
|
||||
private static final int SOE_TOWN_OF_OREN = 37114; // Scroll of Escape: Town of Oren
|
||||
private static final int SOE_SEA_OF_SPORES = 37027; // Scroll of Escape: Sea of Spores
|
||||
private static final int EWB = 947; // Scroll: Enchant Weapon (B-grade)
|
||||
// Location
|
||||
private static final Location TELEPORT_LOC = new Location(81013, 56413, -1552);
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 52;
|
||||
private static final int MAX_LEVEL = 57;
|
||||
|
||||
public Q10397_KekropusLetterASuspiciousBadge()
|
||||
{
|
||||
super(10397);
|
||||
addTalkId(MOUEN, ANDY);
|
||||
addSeeCreatureId(INVISIBLE_NPC);
|
||||
|
||||
setIsErtheiaQuest(false);
|
||||
setLevel(MIN_LEVEL, MAX_LEVEL);
|
||||
setStartQuestSound("Npcdialog1.kekrops_quest_3");
|
||||
setStartLocation(SOE_TOWN_OF_OREN, TELEPORT_LOC);
|
||||
registerQuestItems(SOE_TOWN_OF_OREN, SOE_SEA_OF_SPORES);
|
||||
}
|
||||
|
||||
@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 "30196-02.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "30196-03.html":
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
giveItems(player, SOE_SEA_OF_SPORES, 1);
|
||||
st.setCond(2, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33845-02.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.exitQuest(false, true);
|
||||
giveItems(player, EWB, 2);
|
||||
giveStoryQuestReward(player, 20);
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, 635_250, 152);
|
||||
}
|
||||
showOnScreenMsg(player, NpcStringId.GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_THE_NEXT_LETTER_FROM_KEKROPUS_AT_LV_58, 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 (st.isCond(1) && (npc.getId() == MOUEN))
|
||||
{
|
||||
htmltext = "30196-01.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = npc.getId() == MOUEN ? "30196-04.html" : "33845-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.SEA_OF_SPORES_IS_A_GOOD_HUNTING_ZONE_FOR_LV_52_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
|
||||
}
|
||||
}
|
||||
return super.onSeeCreature(npc, creature, isSummon);
|
||||
}
|
||||
}
|
||||
6
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/popup.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10397_KekropusLetterASuspiciousBadge/popup.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><head><title>Kekropus' Letter</title></head><body>Kekropus' Letter:<br>
|
||||
A <font color="LEVEL">Suspicious Badge</font> was discovered in the <font color="LEVEL">Sea of Spores</font>. Go to <font color="LEVEL">Captain Mouen</font> in the <font color="LEVEL">Town of Oren</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