Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -0,0 +1,5 @@
<html><body>High Priest Innocentin:<br>
What brings you here?<br1>
I'm just an empthy shell that can't hear the goddess' voice anymore...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10789_LettersFromTheQueenSwampOfScreams 31328-02.html">"You asked for help from the Ertheia?"</button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>High Priest Innocentin:<br>
Oh, you are the Ertheia that the messengers promised would help us? Lately, we've had a lot of problems here in Rune Castle. We haven't been able to take care of everything because of the sheer amount.<br>
Do you think you can help us?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10789_LettersFromTheQueenSwampOfScreams 31328-03.html">"I'll help."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>High Priest Innocentin:<br>
Thank you. I never thought that one of the Ertheia that only come out in legends would come to help us like this... It looks like the gods haven't forsaken us.<br>
First, go to the <font color="LEVEL">Swamp of Screams</font> and find <font color="LEVEL">Tracker Dokara</font>. He will tell you the details.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>High Priest Innocentin:<br>
First, go to the <font color="LEVEL">Swamp of Screams</font> and find <font color="LEVEL">Tracker Dokara</font> to hear the details.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tracker Dokara:<br>
Who are you and why are you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10789_LettersFromTheQueenSwampOfScreams 33847-02.html">"I have a message from High Priest Innocentin."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tracker Dokara:<br>
Innocentin sent you? Hm. I did mention in passing that I needed some help. Looks like he hadn't forgotten.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10789_LettersFromTheQueenSwampOfScreams 33847-03.html">"Absolutely."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Tracker Dokara:<br>
Good. They've sent us someone who could actually be of some help.<br>
(You can get the next Letters from the Queen at Lv. 70.)
</body></html>

View File

@@ -0,0 +1,130 @@
/*
* 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.Q10789_LettersFromTheQueenSwampOfScreams;
import com.l2jmobius.gameserver.model.Location;
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;
/**
* Letters from the Queen: Swamp of Screams (10789)
* @author malyelfik
*/
public final class Q10789_LettersFromTheQueenSwampOfScreams extends LetterQuest
{
// NPCs
private static final int INNOCENTIN = 31328;
private static final int DOKARA = 33847;
// Items
private static final int SOE_RUNE = 39580;
private static final int SOE_SWAMP_OF_SCREAMS = 39581;
private static final int ENCHANT_WEAPON_A = 26350;
// Location
private static final Location TELEPORT_LOC = new Location(36563, -49178, -1128);
// Misc
private static final int MIN_LEVEL = 65;
private static final int MAX_LEVEL = 69;
public Q10789_LettersFromTheQueenSwampOfScreams()
{
super(10789);
addTalkId(INNOCENTIN, DOKARA);
setIsErtheiaQuest(true);
setLevel(MIN_LEVEL, MAX_LEVEL);
setStartQuestSound("Npcdialog1.serenia_quest_9");
setStartLocation(SOE_RUNE, TELEPORT_LOC);
registerQuestItems(SOE_RUNE, SOE_SWAMP_OF_SCREAMS);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = event;
switch (event)
{
case "31328-02.html":
case "33847-02.html":
break;
case "31328-03.html":
{
if (qs.isCond(1))
{
qs.setCond(2, true);
giveItems(player, SOE_SWAMP_OF_SCREAMS, 1);
}
break;
}
case "33847-03.html":
{
if (qs.isCond(2))
{
giveItems(player, ENCHANT_WEAPON_A, 2);
giveStoryQuestReward(player, 91);
addExpAndSp(player, 942690, 226);
showOnScreenMsg(player, NpcStringId.GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_THE_NEXT_LETTER_FROM_QUEEN_NAVARI_AT_LV_70, ExShowScreenMessage.TOP_CENTER, 8000);
qs.exitQuest(false, true);
}
break;
}
default:
htmltext = null;
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
String htmltext = getNoQuestMsg(player);
if (qs == null)
{
return htmltext;
}
if (qs.isStarted())
{
if (npc.getId() == INNOCENTIN)
{
htmltext = (qs.isCond(1)) ? "31328-01.html" : "31328-04.html";
}
else if (qs.isCond(2))
{
htmltext = "33847-01.html";
}
}
return htmltext;
}
@Override
public boolean canShowTutorialMark(L2PcInstance player)
{
return !player.isMageClass();
}
}

View File

@@ -0,0 +1,7 @@
<html><body>The Queen's Letter:<br>
The Town of Rune asked for help.<br>
We are held by an oath to help. Go see <font color="LEVEL">High Priest Innocentin</font> in Town of Rune.<br>
He will tell you about the incidents in the Swamp of Screams.<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%">"Here I go!"</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close</button>
</body></html>