Quest Letters from the Queen: Windy Hill (10755).

Contributed by Stayway.
This commit is contained in:
MobiusDev 2015-12-04 08:04:48 +00:00
parent 23530cafac
commit 3f420ec6de
14 changed files with 349 additions and 9 deletions

View File

@ -0,0 +1,6 @@
<html><body>High Priestess Levian:<br>
Welcome. I was waiting after receiving Queen Navari's message.<br>
Gludin Village is not as busy as it used to be. When Ertheia delegation visited, I was really shocked. I still can't forget the day I saw that legendary race for the first time.<br>
The delegation only came here because they were lost. But what brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10755_LettersFromTheQueen_WindyHill 30037-02.html">"I heard that I can be of help."</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>High Priestess Levian:<br>
I heard from the delegation that I could always ask for help. But I thought you people would have business of your own. Thank you for offering.<br>Speaking of which, a lot has troubled me since Ertheia came over to the Material Realm.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10755_LettersFromTheQueen_WindyHill 30037-03.html">"What troubled you?"</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>High Priestess Levian:<br>
Near Gludin Village, there's a place called Windy Hill where Wind Spirits dwell. But due to the sealing of Beleth, they have become violent.<br>
Then recently, outside wind energy was observed -- there are now spirits that were never seen in the Material Realm before.<br>I need you to go investigate if possible. I don't want any harm done to Gludin Village.<br>
First go to <font color="LEVEL">Windy Hill</font> and see <font color="LEVEL">Researcher Pio</font> for the details.</body></html>

View File

@ -0,0 +1,5 @@
<html><body>
High Priestess Levian:<br>I see...you're not used to the Material Realm yet.<br>
I need you to investigate the odd happenings on the Windy Hill.<br>
First go to <font color="LEVEL">Windy Hill</font> and see <font color="LEVEL">Researcher Pio</font>. She will tell you the details.
</body></html>

View File

@ -0,0 +1,5 @@
Message: <html><body>Researcher Pio:<br>
Hmm? Who are you?<br>
Whoa! Look at you ears! They are like wings, but you're different from the Elves.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10755_LettersFromTheQueen_WindyHill 33963-02.html">"I am Ertheia, child of the wind."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Researcher Pio:<br>
Ertheia? The race made by Sayha, which only existed in the ancient books? How did you end up here? Did you pop out from the books?<br><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10755_LettersFromTheQueen_WindyHill 33963-03.html">"Enough talk. I have High Priest Levian's message."</button></body></html>

View File

@ -0,0 +1,5 @@
<html><body>Researcher Pio:<br>
Oh! You're the one High Priest Levian sent. People of wind... you're perfect for the job.<br>
Okay! Okay! I will tell you what to do. It's a pleasure to work with you.<br>
(You can obtain the next Letters from the Queen at Level 30.)
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>The Queen's Letter.<br>
I am Navari, Queen of Ertheia.<br>
Trace the delegation's steps <font color=LEVEL>Gludin Village</font>. <font color=LEVEL>High Priest Raymond</font> in Einhasad Temple will tell you what to do.<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 Q10755_Teleport">I will go right away this scroll.</button>
</body></html>

View File

@ -0,0 +1,259 @@
/*
* Copyright (C) 2004-2015 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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.
*
* L2J DataPack 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.Q10755_LettersFromTheQueen_WindyHill;
import com.l2jserver.gameserver.ai.CtrlIntention;
import com.l2jserver.gameserver.cache.HtmCache;
import com.l2jserver.gameserver.enums.Race;
import com.l2jserver.gameserver.handler.BypassHandler;
import com.l2jserver.gameserver.handler.IBypassHandler;
import com.l2jserver.gameserver.model.Location;
import com.l2jserver.gameserver.model.actor.L2Character;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.events.EventType;
import com.l2jserver.gameserver.model.events.ListenerRegisterType;
import com.l2jserver.gameserver.model.events.annotations.RegisterEvent;
import com.l2jserver.gameserver.model.events.annotations.RegisterType;
import com.l2jserver.gameserver.model.events.impl.character.player.OnPlayerLevelChanged;
import com.l2jserver.gameserver.model.holders.ItemHolder;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
import com.l2jserver.gameserver.network.NpcStringId;
import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
/**
* Letters From the Queen - Windy Hill (10755)
* @author Stayway
*/
public class Q10755_LettersFromTheQueen_WindyHill extends Quest implements IBypassHandler
{
// NPCs
private static final int LEVIAN = 30037;
private static final int PIO = 33963;
// Items
private static final ItemHolder SCROLL_OF_ESCAPE_WINDY_HILL = new ItemHolder(39492, 1);
private static final ItemHolder SCROLL_OF_ESCAPE_GLUDIN_VILLAGE = new ItemHolder(39491, 1);
private static final ItemHolder STEEL_DOOR_GUILD = new ItemHolder(37045, 5);
// Requirements
private static final int MIN_LEVEL = 20;
private static final int MAX_LEVEL = 29;
// Rewards
private static final int EXP_REWARD = 120960;
private static final int SP_REWARD = 29;
// Teleport
private static final Location TP_LOC = new Location(-79816, 150828, -3040);
private static final String[] TP_COMMANDS =
{
"Q10755_Teleport"
};
public Q10755_LettersFromTheQueen_WindyHill()
{
super(10755, Q10755_LettersFromTheQueen_WindyHill.class.getSimpleName(), "Letters from the Queen: Windy Hill");
addStartNpc(LEVIAN, PIO);
addTalkId(LEVIAN, PIO);
registerQuestItems(SCROLL_OF_ESCAPE_GLUDIN_VILLAGE.getId(), SCROLL_OF_ESCAPE_WINDY_HILL.getId());
addCondLevel(MIN_LEVEL, MAX_LEVEL, "noLevel.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 "30037-03.html":
{
if (qs.isCond(1))
{
qs.setCond(2);
if (qs.getQuestItemsCount(SCROLL_OF_ESCAPE_WINDY_HILL.getId()) < 1)
{
giveItems(player, SCROLL_OF_ESCAPE_WINDY_HILL);
showOnScreenMsg(player, NpcStringId.TRY_USING_THE_TELEPORT_SCROLL_LEVIAN_GAVE_YOU, ExShowScreenMessage.TOP_CENTER, 4500);
}
htmltext = event;
}
break;
}
case "33963-03.html":
{
if (qs.isCond(2))
{
giveItems(player, STEEL_DOOR_GUILD);
addExpAndSp(player, EXP_REWARD, SP_REWARD);
showOnScreenMsg(player, NpcStringId.GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_THE_NEXT_LETTER_FROM_QUEEN_NAVARI_AT_LV_30, ExShowScreenMessage.TOP_CENTER, 4500);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
case "30037-02.html":
case "33963-02.html":
{
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (player.getRace() != Race.ERTHEIA)
{
return "noErtheia.html";
}
switch (qs.getState())
{
case State.CREATED:
{
switch (npc.getId())
{
case LEVIAN:
{
htmltext = "30037-01.htm";
break;
}
case PIO:
{
if (player.getRace() != Race.ERTHEIA)
{
htmltext = getNoQuestMsg(player);
}
else if (qs.isCond(2))
{
htmltext = "33963-01.html";
}
break;
}
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case LEVIAN:
{
if (qs.isCond(1))
{
htmltext = "30037-04.html";
}
break;
}
case PIO:
{
if (qs.isCond(1))
{
htmltext = "33963-04.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)
{
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)
{
if (player.getInventory().getInventoryItemCount(SCROLL_OF_ESCAPE_GLUDIN_VILLAGE.getId(), -1) == 0)
{
giveItems(player, SCROLL_OF_ESCAPE_GLUDIN_VILLAGE);
}
final NpcHtmlMessage html = new NpcHtmlMessage(0, 0);
html.setHtml(HtmCache.getInstance().getHtm(player.getHtmlPrefix(), "scripts/quests/Q10755_LettersFromTheQueen_WindyHill/Announce.html"));
player.sendPacket(html);
}
}
}
@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) || !command.equals("Q10755_Teleport"))
{
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 are in combat.", 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);
}
return true;
}
@Override
public String[] getBypassList()
{
return TP_COMMANDS;
}
}

View File

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

View File

@ -0,0 +1,3 @@
<html><body>Head Blacksmith FLutter:<br>
Your level is wrong for this quest.
</body></html>

View File

@ -247,6 +247,7 @@ import quests.Q10743_StrangeFungus.Q10743_StrangeFungus;
import quests.Q10744_StrongerThanSteel.Q10744_StrongerThanSteel;
import quests.Q10745_TheSecretIngredients.Q10745_TheSecretIngredients;
import quests.Q10746_SeeTheWorld.Q10746_SeeTheWorld;
import quests.Q10755_LettersFromTheQueen_WindyHill.Q10755_LettersFromTheQueen_WindyHill;
import quests.Q10756_AnInterdimensionalDraft.Q10756_AnInterdimensionalDraft;
/**
@ -484,6 +485,7 @@ public class QuestMasterHandler
Q10744_StrongerThanSteel.class,
Q10745_TheSecretIngredients.class,
Q10746_SeeTheWorld.class,
Q10755_LettersFromTheQueen_WindyHill.class,
Q10756_AnInterdimensionalDraft.class
};

View File

@ -837,11 +837,17 @@
<set name="is_depositable" val="false" />
<set name="is_destroyable" val="false" />
<set name="is_dropable" val="false" />
<set name="is_questitem" val="true" />
<set name="is_questitem" val="false" />
<set name="is_stackable" val="true" />
<set name="is_tradable" val="false" />
<set name="etcitem_type" val="SCROLL" />
<set name="handler" val="ItemSkills" />
<set name="item_skill" val="17982-1" /> <!-- Scroll of Escape: Gludin Village -->
<set name="material" val="PAPER" />
<set name="weight" val="30" />
<cond msgId="113" addName="1">
<player flyMounted="false" />
</cond>
</item>
<item id="39492" name="Scroll of Escape: Windy Hill" type="EtcItem">
<!-- Teleports you to the Windy Hill. -->
@ -851,11 +857,17 @@
<set name="is_depositable" val="false" />
<set name="is_destroyable" val="false" />
<set name="is_dropable" val="false" />
<set name="is_questitem" val="true" />
<set name="is_questitem" val="false" />
<set name="is_stackable" val="true" />
<set name="is_tradable" val="false" />
<set name="etcitem_type" val="SCROLL" />
<set name="handler" val="ItemSkills" />
<set name="item_skill" val="17982-1" /> <!-- Scroll of Escape: Windy Hill -->
<set name="material" val="PAPER" />
<set name="weight" val="30" />
<cond msgId="113" addName="1">
<player flyMounted="false" />
</cond>
</item>
<item id="39493" name="Unworldly Wind" type="EtcItem">
<!-- Obtained by killing off the crazed creatures in the Windy Hill. Something feels unworldly about this. -->

View File

@ -952,18 +952,41 @@
</for>
</skill>
<skill id="17981" levels="1" name="Scroll of Escape: Gludin Village">
<!-- AUTO GENERATED SKILL -->
<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="39491" />
<set name="magicLvl" val="1" />
<set name="operateType" val="ACTIVE_INSTANT" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="targetType" val="SELF" />
<set name="hitTime" val="1000" />
<cond msgId="113" addName="1">
<player canEscape="true" />
</cond>
<for>
<effect name="Teleport">
<param x="-79816" y="150828" z="-3040" />
</effect>
</for>
</skill>
<skill id="17982" levels="1" name="Scroll of Escape: Windy Hill">
<!-- AUTO GENERATED SKILL -->
<set name="icon" val="icon.skill0000" />
<skill id="17982" levels="1" name="Scroll of Escape: Gludin Village">
<!-- Escape to Windy Hill. -->
<set name="hitTime" val="200" />
<set name="isMagic" val="2" /> <!-- Static Skill -->
<set name="itemConsumeCount" val="1" />
<set name="itemConsumeId" val="39492" />
<set name="magicLvl" val="1" />
<set name="operateType" val="ACTIVE_INSTANT" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="targetType" val="SELF" />
<set name="hitTime" val="1000" />
<cond msgId="113" addName="1">
<player canEscape="true" />
</cond>
<for>
<effect name="Teleport">
<param x="-93485" y="89699" z="-3221" />
</effect>
</for>
</skill>
<skill id="17983" levels="1" name="Scroll of Escape: Gludin Village Temple">
<!-- AUTO GENERATED SKILL -->