Quest Letters from the Queen: Wall of Argos (10795).

Contributed by gigilo1968.
This commit is contained in:
MobiusDev
2016-04-15 08:39:35 +00:00
parent 9f649e00f2
commit 8de01b4cd2
14 changed files with 382 additions and 17 deletions

View File

@@ -0,0 +1,4 @@
<html><body>High Priest Gregory:<br>
Aren't you an Ertheia? What brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10795_LettersFromTheQueen_WallOfAgros 31279-02.html">"I got Queen Navari's letter."</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>High Priest Gregory:<br>
Oh, are you the one that queen Navari was referring to? The messengers were in a hurry, so I was waiting for the Ertheia they said would come in their place. <br>
So you are looking for the Holy Grail?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10795_LettersFromTheQueen_WallOfAgros 31279-03.html">"Yes"</button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>High Priest Gregory:<br>
The Holy Grail... I already heard it from the messengers, but to think you really are looking for such a thing. I guess this is all part of Einhasad's will...<br>The messengers found a clue in the <font color="LEVEL">Wall of Argos</font>. Go talk to the <font color="LEVEL">Hermit</font> for details.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>High Priest Gregory:<br>
Go to the <font color="LEVEL">Wall of Argos</font> and talk to the <font color="LEVEL">Hermit</font> there for details.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Hermit:<br>Can I help you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10795_LettersFromTheQueen_WallOfAgros 31616-02.html">"What's this item from the delegation?"</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Hermit:<br>
Messengers? Which messengers?<br>
Now that I think about it... I don't think I've ever seen anyone of your race before... Are you an Ertheia, the children of Sayha?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10795_LettersFromTheQueen_WallOfAgros 31616-03.html">"Yes."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Hermit:<br>
To think that I would ever meet an Ertheia. I guess the strange fellows that came by and left right away were also Ertheia.<br>
(The next Letters from the Queen will be available at Lv. 76.)
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>The Queen's Letter:<br>
Have you arrived at the Town of Goddard?<br1>
The delegation found something at the Wall of Argos.<br1>
Go find <font color="LEVEL">High Priest Gregory</font> in Einhasad Temple in the Town of Goddard. <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="quest" action="bypass -h Q10795_Teleport">Here I go!</button>
<button align="left" icon="normal" action="bypass -h Quest Q10795_LettersFromTheQueen_WallOfAgros close">close</button>
</html></body>

View File

@@ -0,0 +1,277 @@
/*
* 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.Q10795_LettersFromTheQueen_WallOfAgros;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.cache.HtmCache;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.handler.BypassHandler;
import com.l2jmobius.gameserver.handler.IBypassHandler;
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.events.EventType;
import com.l2jmobius.gameserver.model.events.ListenerRegisterType;
import com.l2jmobius.gameserver.model.events.annotations.RegisterEvent;
import com.l2jmobius.gameserver.model.events.annotations.RegisterType;
import com.l2jmobius.gameserver.model.events.impl.character.player.OnPlayerLevelChanged;
import com.l2jmobius.gameserver.model.holders.ItemHolder;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
/**
* Letters from the Queen: Wall of Argos (10795)
* @URL https://l2wiki.com/Letters_from_the_Queen:_Wall_of_Argos
* @author Gigi
*/
public class Q10795_LettersFromTheQueen_WallOfAgros extends Quest implements IBypassHandler
{
// NPCs
private static final int GREGORY = 31279;
private static final int HERMIT = 31616;
// Items
private static final ItemHolder SCROLL_OF_ESCAPE_WAAL_OF_ARGOS = new ItemHolder(37033, 1);
private static final ItemHolder SCROLL_OF_ESCAPE_TOWN_OF_GODDARD = new ItemHolder(39584, 1);
private static final ItemHolder STEEL_DOOR_GUILD = new ItemHolder(37045, 123);
private static final ItemHolder EAA = new ItemHolder(730, 2);
// Reward
private static final int EXP_REWARD = 1088640;
private static final int SP_REWARD = 261;
// Misc
private static final int MIN_LEVEL = 70;
private static final int MAX_LEVEL = 75;
// Teleport
private static final Location TP_LOC = new Location(147711, -53956, -2728);
private static final String[] TP_COMMANDS =
{
"Q10795_Teleport"
};
public Q10795_LettersFromTheQueen_WallOfAgros()
{
super(10795, Q10795_LettersFromTheQueen_WallOfAgros.class.getSimpleName(), "Letters from the Queen: Wall of Argos");
addStartNpc(GREGORY);
addTalkId(GREGORY, HERMIT);
registerQuestItems(SCROLL_OF_ESCAPE_WAAL_OF_ARGOS.getId(), SCROLL_OF_ESCAPE_TOWN_OF_GODDARD.getId());
addCondRace(Race.ERTHEIA, "noErtheia.html");
addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_level.html");
BypassHandler.getInstance().registerHandler(this);
}
@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 "31279-02.html":
case "31616-02.html":
{
htmltext = event;
break;
}
case "close":
{
return null;
}
case "31279-03.html":
{
qs.startQuest();
if (getQuestItemsCount(player, SCROLL_OF_ESCAPE_WAAL_OF_ARGOS.getId()) < 1)
{
giveItems(player, SCROLL_OF_ESCAPE_WAAL_OF_ARGOS);
player.sendPacket(new ExShowScreenMessage("Try using the teleport scroll Innocentin gave you to go to Wall of Argos.", 10000));
qs.setCond(2, true);
htmltext = event;
}
break;
}
case "31616-03.html":
{
if (qs.isCond(2))
{
showOnScreenMsg(player, NpcStringId.GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_THE_NEXT_LETTER_FROM_QUEEN_NAVARI_AT_LV_76, ExShowScreenMessage.TOP_CENTER, 5000);
giveItems(player, STEEL_DOOR_GUILD);
giveItems(player, EAA);
addExpAndSp(player, EXP_REWARD, SP_REWARD);
playSound(player, QuestSound.ITEMSOUND_QUEST_FINISH);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = null;
if (qs == null)
{
return htmltext;
}
if (player.getRace() != Race.ERTHEIA)
{
return "noErtheia.html";
}
switch (qs.getState())
{
case State.CREATED:
{
switch (npc.getId())
{
case GREGORY:
{
htmltext = "31279-01.html";
break;
}
case HERMIT:
{
if ((player.getRace() != Race.ERTHEIA))
{
htmltext = getNoQuestMsg(player);
}
else if (qs.isCreated())
{
htmltext = getNoQuestMsg(player);
}
break;
}
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case GREGORY:
{
if (qs.isCond(2))
{
htmltext = "31279-04.html";
}
break;
}
case HERMIT:
{
if (qs.isCond(2))
{
htmltext = "31616-01.html";
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@RegisterEvent(EventType.ON_PLAYER_LEVEL_CHANGED)
@RegisterType(ListenerRegisterType.GLOBAL)
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
{
if (Config.DISABLE_TUTORIAL)
{
return;
}
final L2PcInstance player = event.getActiveChar();
if ((player.getLevel() >= MIN_LEVEL) && (player.getLevel() <= MAX_LEVEL) && (player.getRace() == Race.ERTHEIA))
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
final NpcHtmlMessage html = new NpcHtmlMessage(0, 0);
html.setHtml(HtmCache.getInstance().getHtm(player.getHtmlPrefix(), "scripts/quests/Q10795_LettersFromTheQueen_WallOfAgros/Announce.html"));
player.sendPacket(html);
if (getQuestItemsCount(player, SCROLL_OF_ESCAPE_TOWN_OF_GODDARD.getId()) < 1)
{
giveItems(player, SCROLL_OF_ESCAPE_TOWN_OF_GODDARD);
}
}
}
}
@Override
public boolean useBypass(String command, L2PcInstance player, L2Character bypassOrigin)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) || (player.getLevel() < MIN_LEVEL) || (player.getLevel() > MAX_LEVEL) || ((player.getRace() != Race.ERTHEIA)))
{
return false;
}
if (player.isInParty())
{
player.sendPacket(new ExShowScreenMessage("You cannot teleport when you are in party.", 5000));
}
else if (player.isInCombat())
{
player.sendPacket(new ExShowScreenMessage("You cannot teleport when you in combat status.", 5000));
}
else if (player.isInDuel())
{
player.sendPacket(new ExShowScreenMessage("You cannot teleport when you are in a duel.", 5000));
}
else if (player.isInOlympiadMode())
{
player.sendPacket(new ExShowScreenMessage("You cannot teleport when you are in Olympiad.", 5000));
}
else if (player.isInVehicle())
{
player.sendPacket(new ExShowScreenMessage("You cannot teleport when you are in any vehicle or mount.", 5000));
}
else
{
player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
player.teleToLocation(TP_LOC);
if (getQuestItemsCount(player, SCROLL_OF_ESCAPE_TOWN_OF_GODDARD.getId()) > 0)
{
takeItem(player, SCROLL_OF_ESCAPE_TOWN_OF_GODDARD);
}
}
return true;
}
@Override
public String[] getBypassList()
{
return TP_COMMANDS;
}
}

View File

@@ -0,0 +1,3 @@
<html><body>High Priest Orven:<br>
You are not Ertheia, this quest is not for you.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>You don't meet level requirements<br>
(Quest available from level 70 - 75)
</body></html>

View File

@@ -307,6 +307,7 @@ import quests.Q10789_LettersFromTheQueen_SwampOfScreams.Q10789_LettersFromTheQue
import quests.Q10790_AMercenaryHelper.Q10790_AMercenaryHelper; import quests.Q10790_AMercenaryHelper.Q10790_AMercenaryHelper;
import quests.Q10791_TheManOfMystery.Q10791_TheManOfMystery; import quests.Q10791_TheManOfMystery.Q10791_TheManOfMystery;
import quests.Q10792_LettersFromTheQueen_ForestOfTheDead.Q10792_LettersFromTheQueen_ForestOfTheDead; import quests.Q10792_LettersFromTheQueen_ForestOfTheDead.Q10792_LettersFromTheQueen_ForestOfTheDead;
import quests.Q10795_LettersFromTheQueen_WallOfAgros.Q10795_LettersFromTheQueen_WallOfAgros;
/** /**
* @author NosBit * @author NosBit
@@ -604,7 +605,8 @@ final class QuestMasterHandler
Q10789_LettersFromTheQueen_SwampOfScreams.class, Q10789_LettersFromTheQueen_SwampOfScreams.class,
Q10790_AMercenaryHelper.class, Q10790_AMercenaryHelper.class,
Q10791_TheManOfMystery.class, Q10791_TheManOfMystery.class,
Q10792_LettersFromTheQueen_ForestOfTheDead.class Q10792_LettersFromTheQueen_ForestOfTheDead.class,
Q10795_LettersFromTheQueen_WallOfAgros.class
}; };
public static void main(String[] args) public static void main(String[] args)

View File

@@ -366,7 +366,9 @@
<item id="39726" name="Emissary's Reward Box (Low-grade)" type="EtcItem"> <item id="39726" name="Emissary's Reward Box (Low-grade)" type="EtcItem">
<!-- Reward for successfully completing missions for the Delegation. Double-click to open. --> <!-- Reward for successfully completing missions for the Delegation. Double-click to open. -->
<set name="icon" val="icon.etc_box_of_adventure_1_i00" /> <set name="icon" val="icon.etc_box_of_adventure_1_i00" />
<set name="default_action" val="CAPSULE" /> <set name="capsuled_items" val="36562,1,1,25;36517,1,1,25;36522,1,1,25;36527,1,1,25;" />
<set name="default_action" val="PEEL" />
<set name="handler" val="ExtractableItems" />
<set name="is_auctionable" val="false" /> <set name="is_auctionable" val="false" />
<set name="is_depositable" val="false" /> <set name="is_depositable" val="false" />
<set name="is_destroyable" val="false" /> <set name="is_destroyable" val="false" />
@@ -374,7 +376,7 @@
<set name="is_sellable" val="false" /> <set name="is_sellable" val="false" />
<set name="is_stackable" val="true" /> <set name="is_stackable" val="true" />
<set name="is_tradable" val="false" /> <set name="is_tradable" val="false" />
<set name="material" val="LIQUID" /> <set name="material" val="WOOD" />
<set name="weight" val="100" /> <set name="weight" val="100" />
</item> </item>
<item id="39727" name="Emissary's Reward Box (Mid-grade)" type="EtcItem"> <item id="39727" name="Emissary's Reward Box (Mid-grade)" type="EtcItem">

View File

@@ -255,12 +255,22 @@
<set name="hitTime" val="1500" /> <set name="hitTime" val="1500" />
</skill> </skill>
<skill id="9933" levels="1" name="Scroll of Escape: Town of Goddard"> <skill id="9933" levels="1" name="Scroll of Escape: Town of Goddard">
<!-- AUTO GENERATED SKILL --> <set name="hitTime" val="200" />
<!-- Return to the Town of Oren. --> <set name="isMagic" val="2" /> <!-- Static Skill -->
<set name="icon" val="icon.skill0000" /> <set name="itemConsumeCount" val="1" />
<set name="itemConsumeId" val="39584" />
<set name="magicLvl" val="1" />
<set name="operateType" val="ACTIVE_INSTANT" /> <set name="operateType" val="ACTIVE_INSTANT" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="targetType" val="SELF" /> <set name="targetType" val="SELF" />
<set name="hitTime" val="1500" /> <cond msgId="113" addName="1">
<player canEscape="true" />
</cond>
<for>
<effect name="Teleport">
<param x="147711" y="-53956" z="-2728" />
</effect>
</for>
</skill> </skill>
<skill id="9934" levels="1" name="Scroll of Escape: Town of Goddard"> <skill id="9934" levels="1" name="Scroll of Escape: Town of Goddard">
<!-- AUTO GENERATED SKILL --> <!-- AUTO GENERATED SKILL -->
@@ -918,12 +928,23 @@
<set name="isMagic" val="1" /> <set name="isMagic" val="1" />
</skill> </skill>
<skill id="9991" levels="1" name="Scroll of Escape: Town of Rune"> <skill id="9991" levels="1" name="Scroll of Escape: Town of Rune">
<!-- AUTO GENERATED SKILL --> <!-- Return to Forest of Dead. -->
<!-- Return to the Town of Rune. --> <set name="hitTime" val="200" />
<set name="icon" val="icon.skill0000" /> <set name="isMagic" val="2" /> <!-- Static Skill -->
<set name="itemConsumeCount" val="1" />
<set name="itemConsumeId" val="39582" />
<set name="magicLvl" val="1" />
<set name="operateType" val="ACTIVE_INSTANT" /> <set name="operateType" val="ACTIVE_INSTANT" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="targetType" val="SELF" /> <set name="targetType" val="SELF" />
<set name="hitTime" val="1500" /> <cond msgId="113" addName="1">
<player canEscape="true" />
</cond>
<for>
<effect name="Teleport">
<param x="36599" y="-49238" z="-1133" />
</effect>
</for>
</skill> </skill>
<skill id="9992" levels="1" name="Scroll of Escape: Town of Rune"> <skill id="9992" levels="1" name="Scroll of Escape: Town of Rune">
<!-- AUTO GENERATED SKILL --> <!-- AUTO GENERATED SKILL -->
@@ -934,12 +955,23 @@
<set name="hitTime" val="1500" /> <set name="hitTime" val="1500" />
</skill> </skill>
<skill id="9993" levels="1" name="Scroll of Escape: Town of Aden"> <skill id="9993" levels="1" name="Scroll of Escape: Town of Aden">
<!-- AUTO GENERATED SKILL -->
<!-- Return to the Town of Aden. --> <!-- Return to the Town of Aden. -->
<set name="icon" val="icon.skill0000" /> <set name="hitTime" val="200" />
<set name="isMagic" val="2" /> <!-- Static Skill -->
<set name="itemConsumeCount" val="1" />
<set name="itemConsumeId" val="39578" />
<set name="magicLvl" val="1" />
<set name="operateType" val="ACTIVE_INSTANT" /> <set name="operateType" val="ACTIVE_INSTANT" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="targetType" val="SELF" /> <set name="targetType" val="SELF" />
<set name="hitTime" val="1500" /> <cond msgId="113" addName="1">
<player canEscape="true" />
</cond>
<for>
<effect name="Teleport">
<param x="147446" y="22761" z="-1984" />
</effect>
</for>
</skill> </skill>
<skill id="9994" levels="1" name="Scroll of Escape: Town of Aden"> <skill id="9994" levels="1" name="Scroll of Escape: Town of Aden">
<!-- AUTO GENERATED SKILL --> <!-- AUTO GENERATED SKILL -->
@@ -950,12 +982,23 @@
<set name="hitTime" val="1500" /> <set name="hitTime" val="1500" />
</skill> </skill>
<skill id="9995" levels="1" name="Scroll of Escape: Town of Oren"> <skill id="9995" levels="1" name="Scroll of Escape: Town of Oren">
<!-- AUTO GENERATED SKILL -->
<!-- Return to the Town of Oren. --> <!-- Return to the Town of Oren. -->
<set name="icon" val="icon.skill0000" /> <set name="hitTime" val="200" />
<set name="isMagic" val="2" /> <!-- Static Skill -->
<set name="itemConsumeCount" val="1" />
<set name="itemConsumeId" val="39574" />
<set name="magicLvl" val="1" />
<set name="operateType" val="ACTIVE_INSTANT" /> <set name="operateType" val="ACTIVE_INSTANT" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="targetType" val="SELF" /> <set name="targetType" val="SELF" />
<set name="hitTime" val="1500" /> <cond msgId="113" addName="1">
<player canEscape="true" />
</cond>
<for>
<effect name="Teleport">
<param x="83639" y="53123" z="-1456" />
</effect>
</for>
</skill> </skill>
<skill id="9996" levels="1" name="Fated Support Box"> <skill id="9996" levels="1" name="Fated Support Box">
<!-- AUTO GENERATED SKILL --> <!-- AUTO GENERATED SKILL -->