Quests 10327 to 10330.
Contributed by Neanrakyr.
This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/32977-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/32977-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Lakcis:<br>
|
||||
Why are you here? It's not safe here - you should go back to town now! Hell, even I'm thinking of leaving if this many monsters keep showing up!<br>
|
||||
It's embarrassing to say this but I don't even know how to use magic because I am just a scholar.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10330_ToTheRuinsOfYeSagira 32977-02.htm">"Really? Atran sent me."</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/32977-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/32977-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Lakcis:<br>
|
||||
What? Atran did? That kid was badly hurt last time he was here, I hope he's okay these days.<br>
|
||||
Did you have a message or anything? I doubt Atran wanted you to have the same thing that happened to him happen to you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10330_ToTheRuinsOfYeSagira 32977-03.htm">"He told me to tell you to stop being an idiot Seeker."</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/32977-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/32977-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Lakcis:<br>
|
||||
Hahaha! Yeah, that sounds like Atran alright - He always looks out for me in his own special way.<br>
|
||||
Thanks for the message - it's good to hear he's doing well, and that his injury didn't eviscerate his sense of humor.<br>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/32977-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/32977-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Lakcis:<br>
|
||||
I wouln't advise sight-seeing in a place like this, friend. Unless you enjoy being eaten alive, that is.<br>
|
||||
This quest can only be started by characters working on the quest "To the Esagria Ruins".)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/32977-05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/32977-05.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Lakcis:<br>
|
||||
If there were no monsters, the investigations would be so much easier...<br>
|
||||
(You've already completed this quest.)
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Atran:<br>
|
||||
You're still here?<br>
|
||||
Why?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10330_ToTheRuinsOfYeSagira 33448-02.htm">"I need to know how to get to the Ruins of Ye Sagira."</Button>
|
||||
</body></html>
|
||||
7
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-02.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-02.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Atran:<br>
|
||||
You want to go to Ye Sagira? For what reason?<br1>
|
||||
There are not many rangers left at the <font color="LEVEL">Ruins of Ye Sagira</font>... maybe one or two per exploration zone, but they're not fighters, and can't help you if you find yourself in danger.<br>
|
||||
Idiots go there without a plan, and idiots get hurt. That's how I broke my...<br>
|
||||
No, no... That's not why I got hurt. Anyway. Are you really going there?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10330_ToTheRuinsOfYeSagira 33448-03.htm">"Yes."</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><head><body>Atran:<br>
|
||||
Well then, it is my duty to help you as much as I can.<br>
|
||||
To get to the ruins, follow the path you came, only in the opposite direction. Walk until you meet <font color="LEVEL">Lakcis</font> - he stands at the <font color="LEVEL">Ruins of Ye Sagira Entrance</font> . <br1>
|
||||
He's a scholar, so can't go into Ruins of Ye Sagira. Go help him.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-04.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-04.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Atran:<br>
|
||||
Why are you still here? Hurry and meet <font color="LEVEL">Lakcis</font> at the <font color="LEVEL">Ruins of Ye Sagira Entrance</font>.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-05.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Atran:<br>
|
||||
You're still free? If you have time to play around here, you have time to go somewhere else and hunt.<br>
|
||||
(Only characters level 10 or higher, who have completed the 'Backup Seekers' quest, can start this quest.)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-06.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/33448-06.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><head><body>Atran:<br>
|
||||
You're still free?<br>
|
||||
(You've already completed this quest.)
|
||||
</body></html>
|
||||
128
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/Q10330_ToTheRuinsOfYeSagira.java
vendored
Normal file
128
trunk/dist/game/data/scripts/quests/Q10330_ToTheRuinsOfYeSagira/Q10330_ToTheRuinsOfYeSagira.java
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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.Q10330_ToTheRuinsOfYeSagira;
|
||||
|
||||
import quests.Q10329_BackupSeekers.Q10329_BackupSeekers;
|
||||
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author Neanrakyr
|
||||
*/
|
||||
public class Q10330_ToTheRuinsOfYeSagira extends Quest
|
||||
{
|
||||
// Npcs
|
||||
private static final int ATRAN = 33448;
|
||||
private static final int LAKCIS = 32977;
|
||||
|
||||
// Items
|
||||
private static final ItemHolder LEATHER_SHIRT = new ItemHolder(22, 1);
|
||||
private static final ItemHolder LEATHER_PANTS = new ItemHolder(29, 1);
|
||||
|
||||
// Level Condition
|
||||
private static final int MIN_LEVEL = 8;
|
||||
private static final int MAX_LEVEL = 20;
|
||||
|
||||
public Q10330_ToTheRuinsOfYeSagira()
|
||||
{
|
||||
super(10330, Q10330_ToTheRuinsOfYeSagira.class.getSimpleName(), "To the Ruins of Ye Sagira");
|
||||
addStartNpc(ATRAN);
|
||||
addTalkId(ATRAN, LAKCIS);
|
||||
addCondMinLevel(MIN_LEVEL, "33448-05.htm");
|
||||
addCondMaxLevel(MAX_LEVEL, "33448-05.htm");
|
||||
addCondCompletedQuest(Q10329_BackupSeekers.class.getSimpleName(), "33448-05.htm");
|
||||
}
|
||||
|
||||
@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 "33448-02.htm":
|
||||
case "32977-02.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33448-03.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "32977-03.htm":
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
showOnScreenMsg(player, NpcStringId.ARMOR_HAS_BEEN_ADDED_TO_YOUR_INVENTORY, ExShowScreenMessage.TOP_CENTER, 4500);
|
||||
giveAdena(player, 620, true);
|
||||
giveItems(player, LEATHER_SHIRT);
|
||||
giveItems(player, LEATHER_PANTS);
|
||||
addExpAndSp(player, 23000, 5);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = null;
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = npc.getId() == ATRAN ? "33448-01.htm" : "32977-04.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
htmltext = npc.getId() == ATRAN ? "33448-04.htm" : "32977-01.htm";
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = npc.getId() == ATRAN ? "33448-06.htm" : "32977-05.htm";
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user