Quests 10415, 10766 and 10791.

Contributed by gigilo1968.
This commit is contained in:
MobiusDev
2016-07-25 20:34:23 +00:00
parent dfc47df2f2
commit 1ff8e57d59
49 changed files with 787 additions and 14 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Captain Andrei:<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 Kekropus letter, but let me tell you more details.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10415_KekropusLetterWithWisdom 31292-02.html">Got it</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Andrei:<br>
Orc Trackers were chasing after a suspicious group when they split up toward the Wall of Argos. 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 Q10415_KekropusLetterWithWisdom 31292-03.html">So where should I go?</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Andrei:<br>
You're a brave one, aren't you? Go to the <font color=LEVEL>Wall of Argos</font> and meet <font color=LEVEL>Janitt</font>
Get the details from him and help him with whatever he needs. I look forward to hearing the result.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Andrei:<br>
Hurry to the <font color="LEVEL">Wall of Argos</font> and help the <font color="LEVEL">Giant's Minion Janitt</font> there.<br>
To get there quickly, use the <font color="LEVEL">Scroll of Escape: Wall of Argos</font> I gave you. You could also ask a Gatekeeper for help..
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Janitt:<br>
Me? I'm Janitt. The Giant's Minion. Since Shilen and her followees ruined the world, I have been chasing them. For revenge!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10415_KekropusLetterWithWisdom 33851-02.html">You look injured</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Janitt:<br>
It was a trap! But no more. The Suspicious Vagabond will never harm another. Not if you go after him<br>
<font color=LEVEL>- Note: You can develop yourself through quests and hunting at the hunting ground on Wall of Argos. You can get the next item, Kekropus' Letter, at Lv. 76.</font>
</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.Q10415_KekropusLetterWithWisdom;
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: With Wisdom (10415)
* @URL https://l2wiki.com/Kekropus%27_Letter:_With_Wisdom
* @author Gigi
*/
public class Q10415_KekropusLetterWithWisdom extends LetterQuest
{
// NPCs
private static final int ANDREI = 31292;
private static final int JANITT = 33851;
private static final int INVISIBLE_NPC = 19543;
// Items
private static final int SOE_WALL_OF_ARGOS = 37032; // Scroll of Escape: Wall of Argos
private static final int SOE_TOWN_OF_GODDARD = 37119; // Scroll of Escape: Town of Goddard
private static final int EAA = 730; // Scroll: Enchant Armor (A-grade)
// Requirements
private static final int MIN_LEVEL = 70;
private static final int MAX_LEVEL = 75;
// Teleport
private static final Location TELEPORT_LOC = new Location(147491, -56633, -2776);
public Q10415_KekropusLetterWithWisdom()
{
super(10415);
addTalkId(ANDREI, JANITT);
addSeeCreatureId(INVISIBLE_NPC);
setIsErtheiaQuest(false);
setLevel(MIN_LEVEL, MAX_LEVEL);
setStartQuestSound("Npcdialog1.kekrops_quest_8");
setStartLocation(SOE_TOWN_OF_GODDARD, TELEPORT_LOC);
registerQuestItems(SOE_TOWN_OF_GODDARD, SOE_WALL_OF_ARGOS);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "31292-02.html":
{
htmltext = event;
break;
}
case "31292-03.html":
{
if (qs.isCond(1))
{
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
giveItems(player, SOE_WALL_OF_ARGOS, 1);
qs.setCond(2, true);
htmltext = event;
}
break;
}
case "33851-02.html":
{
if (qs.isCond(2))
{
qs.exitQuest(false, true);
giveItems(player, EAA, 5);
giveStoryQuestReward(player, 123);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, 1_088_640, 261);
}
showOnScreenMsg(player, NpcStringId.GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_THE_NEXT_LETTER_FROM_KEKROPUS_AT_LV_76, ExShowScreenMessage.TOP_CENTER, 6000);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (qs.isStarted())
{
if ((npc.getId() == ANDREI) && qs.isCond(1))
{
htmltext = "31292-01.html";
}
else if (qs.isCond(2))
{
htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33851-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.WALL_OF_ARGOS_IS_A_GOOD_HUNTING_ZONE_FOR_LV_70_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
}
}
return super.onSeeCreature(npc, creature, isSummon);
}
@Override
public boolean canShowTutorialMark(L2PcInstance player)
{
return player.isMageClass();
}
}

View File

@@ -0,0 +1,6 @@
<html><title>Kekropus' Letter</title></head><body>Kekropus' Letter:<br>
A group of suspicious people were seen in the <font color=LEVEL>Wall of Argos</font>, a part of the Goddard territory. Go to <font color=LEVEL>Captain Andrei</font> in the <font color=LEVEL>Town of Goddard</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>