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,6 @@
<html><body>High Priest Sylvain:<br>
Ertheia, are you here to see me? I heard from the High Priest in the Einhasad Temple in Gludin Village.<br>
He said that the people of Sayha are back on this land. It's an honor to meet you.<br>
But what brings you to Town of Dion?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10769_LettersFromTheQueenCrumaTowerPart1 30070-02.html">"I'm investigating this fragment and the Grail."</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>High Priest Sylvain:<br>
The Grail... So you're looking for the leads about the Grail at the giants' relics.<br>
Near Town of Dion, there is a place the giants used as a fortress and a laboratory during the Era of the Lesser Giants. It's Cruma Tower.<br>
Would you like to go there?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10769_LettersFromTheQueenCrumaTowerPart1 30070-03.html">"Yes."</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>High Priest Sylvain:<br>
Good.<br>
I heard that there are ways to see the ancient giants in Cruma Tower. You may ask the ones there to obtain useful information. I hope you learn information that is helpful for the Ertheia.<br>
First go to Cruma Tower and find <font color="LEVEL">Researcher Lorain</font> <font color="LEVEL">near the entrance</font>.<br>
You won't find a better helper.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>High Priest Sylvain:<br>
Oh! You need to ask again because you're not used to the Material Realm yet.<br>
I heard that there are ways to see the ancient giants in Cruma Tower. You may ask the ones there to obtain useful information. I hope you learn information that is helpful for the Ertheia.<br>
First go to Cruma Tower and find <font color="LEVEL">Researcher Lorain</font> <font color="LEVEL">near the entrance</font>.<br>
You won't find a better helper.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Researcher Lorain:<br>
Who are you? I've never seen you before. You're not an Elf... those ears...<br>
Who are you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10769_LettersFromTheQueenCrumaTowerPart1 30673-02.html">"I am Ertheia, child of the wind."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Researcher Lorain:<br>
Ertheia? The race in the ancient documents? I cannot believe it. I thought it was just a legend.<br>
Where did you come from? I want to explore your place instead of Cruma Tower now.<br><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10769_LettersFromTheQueenCrumaTowerPart1 30673-03.html">"I have High Priest Sylvain's message."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Researcher Lorain:<br>
So you're the one High Priest Sylvain was talking about. I never imagined that you'd be Ertheia.<br>
He told me that someone was looking for information about Cruma Tower. I will help you with what I know.<br>
(You can obtain the next Letters from the Queen at Level 46.)
</body></html>

View File

@@ -0,0 +1,127 @@
/*
* 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.Q10769_LettersFromTheQueenCrumaTowerPart1;
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: Cruma Tower, Part 1 (10769)
* @author malyelfik
*/
public final class Q10769_LettersFromTheQueenCrumaTowerPart1 extends LetterQuest
{
// NPCs
private static final int SYLVAIN = 30070;
private static final int LORAIN = 30673;
// Items
private static final int SOE_DION_TOWN = 39593;
private static final int SOE_CRUMA_TOWER = 39594;
private static final int ENCHANT_WEAPON_C = 951;
private static final int ENCHANT_ARMOR_C = 952;
// Location
private static final Location TELEPORT_LOC = new Location(16014, 142326, -2688);
// Misc
private static final int MIN_LEVEL = 40;
private static final int MAX_LEVEL = 45;
public Q10769_LettersFromTheQueenCrumaTowerPart1()
{
super(10769);
addTalkId(SYLVAIN, LORAIN);
setIsErtheiaQuest(true);
setLevel(MIN_LEVEL, MAX_LEVEL);
setStartLocation(SOE_DION_TOWN, TELEPORT_LOC);
setStartQuestSound("Npcdialog1.serenia_quest_3");
registerQuestItems(SOE_DION_TOWN, SOE_CRUMA_TOWER);
}
@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 "30070-02.html":
case "30673-02.html":
break;
case "30070-03.html":
{
if (qs.isCond(1))
{
qs.setCond(2, true);
giveItems(player, SOE_CRUMA_TOWER, 1);
showOnScreenMsg(player, NpcStringId.TRY_USING_THE_TELEPORT_SCROLL_SYLVAIN_GAVE_YOU_TO_GO_TO_CRUMA_TOWER, ExShowScreenMessage.TOP_CENTER, 5000);
}
break;
}
case "30673-03.html":
{
if (qs.isCond(2))
{
giveItems(player, ENCHANT_WEAPON_C, 1);
giveItems(player, ENCHANT_ARMOR_C, 1);
giveStoryQuestReward(player, 11);
addExpAndSp(player, 370440, 88);
showOnScreenMsg(player, NpcStringId.GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_THE_NEXT_LETTER_FROM_QUEEN_NAVARI_AT_LV_46, 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() == SYLVAIN)
{
htmltext = (qs.isCond(1)) ? "30070-01.html" : "30070-04.html";
}
else if (qs.isCond(2))
{
htmltext = "30673-01.html";
}
}
return htmltext;
}
}

View File

@@ -0,0 +1,8 @@
<html><body>The Queen's Letter:<br>
Remember the fragment you discovered last time?<br1>
Similar fragments have been found in Cruma Tower, which are ruins of the giants. I want you to go there to check.<br>
For details, go to <font color="LEVEL">High Priest Sylvain</font> in the <font color="LEVEL">Town of Dion Einhasad Temple</font>.<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>