Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Paterson:<br>
Eh, are you looking for spiritual help? I may be in a place like this, but I am no priest.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10401_KekropusLetterDecodingTheBadge 33864-02.html">"Do you remember Kekropus?"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Paterson:<br>
Ah, I see. I am a rune scholar who helps out the Giant's Minions. From what they sent over, I've found something called <font color="LEVEL">Inverted Ewaz</font>, an ancient text which can harness the power of Giants.<br>
I'm not sure, but I suspect this was some kind of spell to suppress the Giants' powers. I'd like to find out more...will you help me?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10401_KekropusLetterDecodingTheBadge 33864-03.html">"Me? Well, sure."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Paterson:<br>
<font color="LEVEL">Giant's Minion Eblune</font> is in the <font color="LEVEL">Forsaken Plains</font>. I'll need her assisstance to complete my research. <br>
Let me give you a <font color="LEVEL">Scroll of Escape</font>. It will help you get to your next destination easily.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Paterson:<br>
<font color="LEVEL">Giant's Minion Eblune</font> is in <font color="LEVEL">Forsaken Plains</font>. Help her to finish our investigation.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><head><body>Giant's Minion Eblune:<br>
Are you part of the patrol team? Why are you so late? Why did you come alone? You don't look like a Patrol Member to me...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10401_KekropusLetterDecodingTheBadge 33865-02.html">Deliver Paterson's message.</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Eblune:<br>
I knew it! Not that it matters. I really don't care if you're a Patrol Member or not. I just need an extra hand. I've got a mission for you.<br><br>
<font color="LEVEL">- Note: You can develop yourself through quests and hunting at the hunting ground in the Forsaken Plains. You can get the next item, Kekropus' Letter, at Lv. 61.</font>
</body></html>

View File

@@ -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.Q10401_KekropusLetterDecodingTheBadge;
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: Decoding the Badge (10401)
* @author St3eT
*/
public final class Q10401_KekropusLetterDecodingTheBadge extends LetterQuest
{
// NPCs
private static final int PATERSON = 33864;
private static final int EBLUNE = 33865;
private static final int INVISIBLE_NPC = 19543;
// Items
private static final int SOE_TOWN_OF_ADEN = 37115; // Scroll of Escape: Town of Aden
private static final int SOE_FORSAKEN_PLAINS = 37028; // Scroll of Escape: Forsaken Plains
private static final int EAB = 948; // Scroll: Enchant Armor (B-grade)
// Location
private static final Location TELEPORT_LOC = new Location(147540, 24661, -1984);
// Misc
private static final int MIN_LEVEL = 58;
private static final int MAX_LEVEL = 60;
public Q10401_KekropusLetterDecodingTheBadge()
{
super(10401);
addTalkId(PATERSON, EBLUNE);
addSeeCreatureId(INVISIBLE_NPC);
setIsErtheiaQuest(false);
setLevel(MIN_LEVEL, MAX_LEVEL);
setStartQuestSound("Npcdialog1.kekrops_quest_4");
setStartLocation(SOE_TOWN_OF_ADEN, TELEPORT_LOC);
registerQuestItems(SOE_TOWN_OF_ADEN, SOE_FORSAKEN_PLAINS);
}
@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 "33864-02.html":
{
htmltext = event;
break;
}
case "33864-03.html":
{
if (st.isCond(1))
{
st.setCond(2, true);
giveItems(player, SOE_FORSAKEN_PLAINS, 1);
htmltext = event;
}
break;
}
case "33865-02.html":
{
if (st.isCond(2))
{
st.exitQuest(false, true);
giveItems(player, EAB, 5);
giveStoryQuestReward(player, 30);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, 731_010, 175);
}
showOnScreenMsg(player, NpcStringId.GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_THE_NEXT_LETTER_FROM_KEKROPUS_AT_LV_61, 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() == PATERSON))
{
htmltext = "33864-01.html";
}
else if (st.isCond(2))
{
htmltext = npc.getId() == PATERSON ? "33864-04.html" : "33865-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.FORSAKEN_PLAINS_IA_A_GOOD_HUNTING_ZONE_FOR_LV_58_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}
}
return super.onSeeCreature(npc, creature, isSummon);
}
}

View File

@@ -0,0 +1,6 @@
<html><head><title>Kekropus' Letter</title></head><body>Kekropus' Letter:<br>
I've asked <font color="LEVEL">Paterson</font> to decipher marks inscribed on monsters. His scholarly expertise includes written Rune. Visit him in the <font color="LEVEL">Town of Aden</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>