Skip to content
Snippets Groups Projects
Commit 7d6d0889 authored by Adry_85's avatar Adry_85
Browse files

BETA: Implementing quest '''Seven Signs, Girl of Doubt''' (10292).

	Reviewed by: jurchiks, Nos, !UnAfraid, Zoey76
	Thanks to: lion
parent eca90576
No related branches found
No related tags found
No related merge requests found
Showing
with 213 additions and 1 deletion
<?xml version="1.0" encoding="UTF-8"?>
<instance name="Elcadia's Tent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/instance.xsd">
<activityTime val="30" />
<allowSummon val="false" />
<emptyDestroyTime val="1" />
<spawnPoint spawnX="43275" spawnY="-87928" spawnZ="-2835" />
<spawnlist>
<group name="general">
<!-- Elcadia -->
<spawn npcId="32784" x="89440" y="-238080" z="-9632" heading="0" respawn="0" />
</group>
</spawnlist>
</instance>
......@@ -185,6 +185,7 @@ instances/CrystalCaverns/CrystalCaverns.java
instances/DarkCloudMansion/DarkCloudMansion.java
instances/DemonPrinceFloor/DemonPrinceFloor.java
instances/DisciplesNecropolisPast/DisciplesNecropolisPast.java
instances/ElcadiasTent/ElcadiasTent.java
instances/FinalEmperialTomb/FinalEmperialTomb.java
instances/HellboundTown/HellboundTown.java
instances/HideoutOfTheDawn/HideoutOfTheDawn.java
......@@ -669,7 +670,7 @@ quests/Q10288_SecretMission/Q10288_SecretMission.java
quests/Q10289_FadeToBlack/Q10289_FadeToBlack.java
quests/Q10290_LandDragonConqueror/Q10290_LandDragonConqueror.java
quests/Q10291_FireDragonDestroyer/Q10291_FireDragonDestroyer.java
#quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java
quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java
#quests/Q10293_SevenSignsForbiddenBookOfTheElmoreAdenKingdom/Q10293_SevenSignsForbiddenBookOfTheElmoreAdenKingdom.java
#quests/Q10294_SevenSignsToTheMonasteryOfSilence/Q10294_SevenSignsToTheMonasteryOfSilence.java
#quests/Q10295_SevenSignsSolinasTomb/Q10295_SevenSignsSolinasTomb.java
......
<html><body>Abyssal Saintess Elcadia:<br>
Ugh. I'm already bored... How hard is it to find a competent adventurer?<br>
<a action="bypass -h Quest ElcadiasTent">I like to go outside.</a><br>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
<html><body>Gruff-looking Man:<br>
I thought long and hard, but nothing comes to mind that you should be here for. Go back. Look around for something else that you should do now.
</body></html>
\ No newline at end of file
<html><body>Gruff-looking Man:<br>
Maybe you should just leave now. Before you bother me...<br>
<a action="bypass -h npc_%objectId%_Quest ElcadiasTent">I'm here on business.</a>
</body></html>
\ No newline at end of file
/*
* Copyright (C) 2004-2014 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 instances.ElcadiasTent;
import quests.Q10292_SevenSignsGirlOfDoubt.Q10292_SevenSignsGirlOfDoubt;
import com.l2jserver.gameserver.instancemanager.InstanceManager;
import com.l2jserver.gameserver.model.Location;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.instancezone.InstanceWorld;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.network.SystemMessageId;
/**
* Elcadia's Tent instance zone.
* @author Adry_85
*/
public final class ElcadiasTent extends Quest
{
protected class ETWorld extends InstanceWorld
{
protected long storeTime = 0;
}
private static final int INSTANCEID = 158;
// NPCs
private static final int ELCADIA = 32784;
private static final int GRUFF_LOOKING_MAN = 32862;
// Locations
private static final Location START_LOC = new Location(89706, -238074, -9632, 0, 0);
private static final Location EXIT_LOC = new Location(43316, -87986, -2832, 0, 0);
private ElcadiasTent()
{
super(-1, ElcadiasTent.class.getSimpleName(), "instances");
addFirstTalkId(GRUFF_LOOKING_MAN, ELCADIA);
addStartNpc(GRUFF_LOOKING_MAN, ELCADIA);
addTalkId(GRUFF_LOOKING_MAN, ELCADIA);
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = null;
if (npc.getId() == ELCADIA)
{
htmltext = "32784.html";
}
else
{
htmltext = "32862.html";
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance talker)
{
if (npc.getId() == GRUFF_LOOKING_MAN)
{
final QuestState qs = talker.getQuestState(Q10292_SevenSignsGirlOfDoubt.class.getSimpleName());
if ((qs != null) && qs.isStarted())
{
enterInstance(talker, "ElcadiasTent.xml", START_LOC);
}
else
{
return "32862-01.html";
}
}
else
{
final InstanceWorld world = InstanceManager.getInstance().getPlayerWorld(talker);
world.removeAllowed(talker.getObjectId());
talker.setInstanceId(0);
talker.teleToLocation(EXIT_LOC);
}
return super.onTalk(npc, talker);
}
protected int enterInstance(L2PcInstance player, String template, Location loc)
{
// check for existing instances for this player
InstanceWorld world = InstanceManager.getInstance().getPlayerWorld(player);
// existing instance
if (world != null)
{
if (!(world instanceof ETWorld))
{
player.sendPacket(SystemMessageId.ALREADY_ENTERED_ANOTHER_INSTANCE_CANT_ENTER);
return 0;
}
teleportPlayer(player, loc, world.getInstanceId(), false);
return 0;
}
// New instance
world = new ETWorld();
world.setInstanceId(InstanceManager.getInstance().createDynamicInstance(template));
world.setTemplateId(INSTANCEID);
world.setStatus(0);
((ETWorld) world).storeTime = System.currentTimeMillis();
InstanceManager.getInstance().addWorld(world);
_log.info("Elcadia's Tent started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
// teleport players
teleportPlayer(player, loc, world.getInstanceId(), false);
world.addAllowed(player.getObjectId());
return world.getInstanceId();
}
public static void main(String[] args)
{
new ElcadiasTent();
}
}
<html><body>Hardin:<br>
Embryo... The information miss Elcadia was looking for was regarding Embryo. Unfortunately, I couldn't satisfy her desire for answers... I remember very vaguely finding that there are others who whisper its name.<br>
<a action="bypass -h Quest Q10292_SevenSignsGirlOfDoubt 30832-02.html">"Tell me more."</a>
</body></html>
\ No newline at end of file
<html><body>Hardin:<br>
Wait a sec... I didn't mean that the information is right here, I just remember seeing a book mentioning Embryo when I last stayed at the Ivory Tower. I don't know what the book was about exactly, though, but, if you find the book, you might be able to find the information you have been looking for.<br>
<a action="bypass -h Quest Q10292_SevenSignsGirlOfDoubt 30832-03.html">"Where is the book?"</a>
</body></html>
\ No newline at end of file
<html><body>Hardin:<br>
Library of Sages holds so many ancient books. I believe you might be able to find whatever you seek there, friend. Please tell Elcadia she should head there first.
</body></html>
\ No newline at end of file
<html><body>Hardin:<br>
Library of Sages holds so many ancient books. I believe you might be able to find whatever you seek there, friend. Please tell Elcadia she should head there first.
</body></html>
\ No newline at end of file
<html><body>Priest Wood:<br>
You are a difficult person to find. Lord Franz wishes something of you. Can you go and speak with Lord Franz?<br>
<a action="bypass -h Quest Q10292_SevenSignsGirlOfDoubt 32593-04.htm">Accept request.</a>
</body></html>
\ No newline at end of file
<html><body>Priest Wood:<br>
Thanks to you, we've moved another step forward.<br>
(This is an already completed quest.)
</body></html>
\ No newline at end of file
<html><body>Priest Wood:<br>
There is more you must do first. Return when you can help me.<br>
(Only characters with level 81 or above can take on this quest.)
</body></html>
\ No newline at end of file
<html><body>Priest Wood:<br>
Lord Franz requests you, I'm afraid this is an urgent matter. Can you see Lord Franz right away?<br>
<a action="bypass -h Quest Q10292_SevenSignsGirlOfDoubt 32593-05.htm">I will go right now.</a><br>
<a action="bypass -h Quest Q10292_SevenSignsGirlOfDoubt 32593-06.htm">I will go later.</a>
</body></html>
\ No newline at end of file
<html><body>Priest Wood:<br>
Very well. If you must, go ahead and meet Lord Franz.<br>
<a action="bypass -h npc_%objectId%_Quest HideoutOfTheDawn">Enter.</a>
</body></html>
\ No newline at end of file
<html><body>Priest Wood:<br>
Are you busy right now? Alright, but tell me as soon as you are ready.
</body></html>
\ No newline at end of file
<html><body>Priest Wood:<br>
Alright. Go ahead, you may meet Lord Franz.<br>
<a action="bypass -h npc_%objectId%_Quest HideoutOfTheDawn">Enter.</a>
</body></html>
\ No newline at end of file
<html><body>Priest Franz:<br>
Ahh!!! It's been a long time. How have you been? I contacted you because I have a request....<br>
<a action="bypass -h Quest Q10292_SevenSignsGirlOfDoubt 32597-02.html">"Go on..."</a>
</body></html>
\ No newline at end of file
<html><body>Priest Franz:<br>
I had a good deal of results ever since the research on the Seven Signs was completed. Also, I received information suggesting that the Revolutionaries of Dusk had uncovered more information too. We're going to send someone to uncover their findings, and I want you to accompany him and find out what they know.<br>
<a action="bypass -h Quest Q10292_SevenSignsGirlOfDoubt 32597-07.html">"Sure."</a><br>
<a action="bypass -h Quest Q10292_SevenSignsGirlOfDoubt 32597-06.html">"Not interested."</a>
</body></html>
\ No newline at end of file
<html><body>Priest Franz:<br>
How did the job I requested go?
</body></html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment