This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<html><body>Grand Master Oltlin:<br>
Have you seen the sights of the city? The wonderful castles built by humans, in spite of countless errors and obstacles. Do you have any idea what is beneath them? Often, long shadows are cast under the glow of glory.<br>
You always find the darkest shadows under strong light. Those who pursue glory are wary of shadows. Where there is pure achievement, there is always absence.<br>
<a action="bypass -h Quest Q00358_IllegitimateChildOfTheGoddess 30862-02.htm">"Gee, I didn't expect to hear this sort of thing from someone like you!"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Grand Master Oltlin:<br>
Ah, yes, the bitter ramblings of an old man. As you approach true enlightenment, the shadows grow darker. Among those who pursue glory, some work diligently against the shadow at every opportunity.<br>
At the same time, they must know that their efforts are as futile as covering up the sky with your hand. Of course, I don't need to explain this to you. The gods created us in their own imperfect image.<br>
Perfect beings' only creations are contrivances. As the perfect circle has no edge... perfect hatred only produces monsters.<br>
<a action="bypass -h Quest Q00358_IllegitimateChildOfTheGoddess 30862-03.htm">"Is this a story about... Shilen?"</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Grand Master Oltlin:<br>
Her anger towards Gran Kain and Einhasad for a time turned Shilen into a pure and perfect being. That is, she became the literal incarnation of destruction.<br>
As she achieved the purest form of fury, her benevolence and austerity left her completely. Her perfect wrath is the source of those evil creatures.<br>
They are sealed away now, and I don't know what their current condition is, but their very existence proves that she has become a goddess of destruction!<br>
We worshippers of Shilen teach our children that she is our mother, therefore we must calm her wrath.<br>
<a action="bypass -h Quest Q00358_IllegitimateChildOfTheGoddess 30862-04.htm">"Why can't we kill those creatures?"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Grand Master Oltlin:<br>
There are evil creatures close to her. These are the illegitimate children she bore while her fury was at its fiercest... Go slay <font color="LEVEL">Falibati</font> and <font color="LEVEL">Trives</font> who bear a striking resemblence to her. Bring back their <font color="LEVEL">Snake Scales</font>.<br>
<font color="LEVEL">If you bring me 108 Snake Scales, I will teach you a secret, ancient method of creation.</font>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Grand Master Oltlin:<br>
Have you seen the sights of the city? The wonderful castles built by humans, in spite of countless errors and obstacles. Do you have any idea what is beneath them? Often, long shadows are cast under the glow of glory.<br>
You always find the darkest shadows under strong light. Does this make sense to you? I thought not. It seems you will need more training. Why don't you explore the world some more and come back later.<br>
(This quest can only be undertaken by a character of level 63 or higher.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Grand Master Oltlin:<br>
To restore the dignity and glory of the goddess you must kill <font color="LEVEL">Falibati</font> and <font color="LEVEL">Trives</font>, the illegitimate children born of her wrath, and bring back 108 <font color="LEVEL">Snake Scales</font>.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Grand Master Oltlin:<br>
Thank you for your efforts. I know it was not easy... Needless to say, please don't tell other people that you have done this for me. Above all my children must never learn of it...<br>
In exchange for your efforts, I will give you this Secret Book in which ancient secret creation methods are recorded. I hope it will be helpful to you.<br>
Too many people think they can cover the sky with the palm of their hand. There is such a thing as too much truth... My work will likely never end... If you are ever interested in helping me again, come back to see me.
</body></html>

View File

@@ -0,0 +1,134 @@
/*
* 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 quests.Q00358_IllegitimateChildOfTheGoddess;
import java.util.HashMap;
import java.util.Map;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
/**
* Illegitimate Child of the Goddess (358)
* @author Adry_85
*/
public final class Q00358_IllegitimateChildOfTheGoddess extends Quest
{
// NPC
private static final int OLTRAN = 30862;
// Item
private static final int SNAKE_SCALE = 5868;
// Misc
private static final int MIN_LEVEL = 63;
private static final int SNAKE_SCALE_COUNT = 108;
// Rewards
private static final int[] REWARDS = new int[]
{
5364, // Recipe: Sealed Dark Crystal Shield(60%)
5366, // Recipe: Sealed Shield of Nightmare(60%)
6329, // Recipe: Sealed Phoenix Necklace(70%)
6331, // Recipe: Sealed Phoenix Earring(70%)
6333, // Recipe: Sealed Phoenix Ring(70%)
6335, // Recipe: Sealed Majestic Necklace(70%)
6337, // Recipe: Sealed Majestic Earring(70%)
6339, // Recipe: Sealed Majestic Ring(70%)
};
// Mobs
private static final Map<Integer, Double> MOBS = new HashMap<>();
static
{
MOBS.put(20672, 0.71); // trives
MOBS.put(20673, 0.74); // falibati
}
public Q00358_IllegitimateChildOfTheGoddess()
{
super(358, Q00358_IllegitimateChildOfTheGoddess.class.getSimpleName(), "Illegitimate Child of the Goddess");
addStartNpc(OLTRAN);
addTalkId(OLTRAN);
addKillId(MOBS.keySet());
registerQuestItems(SNAKE_SCALE);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "30862-02.htm":
case "30862-03.htm":
{
htmltext = event;
break;
}
case "30862-04.htm":
{
st.startQuest();
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final QuestState st = getRandomPartyMemberState(player, 1, 3, npc);
if ((st != null) && st.giveItemRandomly(npc, SNAKE_SCALE, 1, SNAKE_SCALE_COUNT, MOBS.get(npc.getId()), true))
{
st.setCond(2, true);
}
return super.onKill(npc, player, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (st.isCreated())
{
htmltext = ((player.getLevel() >= MIN_LEVEL) ? "30862-01.htm" : "30862-05.html");
}
else if (st.isStarted())
{
if (getQuestItemsCount(player, SNAKE_SCALE) < SNAKE_SCALE_COUNT)
{
htmltext = "30862-06.html";
}
else
{
rewardItems(player, REWARDS[getRandom(REWARDS.length)], 1);
st.exitQuest(true, true);
htmltext = "30862-07.html";
}
}
return htmltext;
}
}