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>Daichir, Priest of Earth:<br>
If you're wandering around in a remote place like this, I'm guessing you have some time on your hands. I have need of an adventurer like you...<br>
It must be the will of the Goddess of Earth that you have come when you did...<br>
<a action="bypass -h Quest Q00451_LuciensAltar 30537-04.htm">"What do you need?"</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Daichir, Priest of Earth:<br>
As it happens, I do need the services of an adventurer, but you are far too unexperienced to entrust with this matter.<br>
Perhaps our paths will cross again, if the Goddess wills it. <font color="LEVEL">Karna Maprera!</font><br>
(Only characters who are level 80 or above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Daichir, Priest of Earth:<br>
Thanks to your help, we have been able to stabilize the force shield surrounding the Mithril Mine.<br>
This isn't a permanent solution, but it should buy us some time. I will contact you when we again need your services.<br>
(This quest can only be completed once per day. It resets every day at 6:30 AM.)
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Daichir, Priest of Earth:<br>
Have you heard about the Ratmen's damaging the magical shield deep inside the Mithril Mine? Now the mine has been shut down and all the miners have been forced to evacuate.<br>
If the shield is completely destroyed...well, I shudder to think what will happen!<br>
Will you help us prevent that?<br>
<a action="bypass -h Quest Q00451_LuciensAltar 30537-05.htm">Say yes.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Daichir, Priest of Earth:<br>
Thank Maphr!<br>
Here is a <font color="LEVEL">Replenished Power Bead</font>. Go to the Mithril Mine and take it to the various <font color="LEVEL">Lucien's Altars</font> within. Then the power within will again flow into the altar.<br>
You must <font color="LEVEL">visit all 5 altars</font>. If you are successful, I promise that you will be richly rewarded!<br>
Good luck! <font color="LEVEL">Karna Maprera!</font>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Daichir, Priest of Earth:<br>
You made it back safely, thanks be to Maphr! The magical shield in the Mithril Mine seems to have again been stabilized...at least for now.<br>
Thank you for your help! Here is the reward I promised -- use it well. I fear this positive change is only temporary, though, so I hope you will help us if the shield begins to weaken again.<br>
Until then, may Maphr shield you from all harm! <font color="LEVEL">Karna Maprera!</font>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Daichir, Priest of Earth:<br>
If you lack the courage for this mission, tell me now. No? <font color="LEVEL">Karna Maprera!</font><br>
Then hurry and use this <font color="LEVEL">Replenished Power Bead</font>to recharge the <font color="LEVEL">Lucien's Altars</font> in the mine. Do not forget that <font color="LEVEL">you must visit all 5 altars</font>!<br>
Good luck! <font color="LEVEL">Karna Maprera!</font>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Daichir, Priest of Earth:<br>
Did you forget? <font color="LEVEL">You must visit all 5 altars</font>, just as I told you. Hurry back after you have completed the mission.<br>
May Maphr forgive your slowness... <font color="LEVEL">Karna Maprera!</font>
</body></html>

View File

@@ -0,0 +1,157 @@
/*
* 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.Q00451_LuciensAltar;
import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.enums.QuestType;
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;
import com.l2jserver.gameserver.model.quest.State;
/**
* Lucien's Altar (451)<br>
* Original Jython script by Bloodshed.
* @author malyelfik
*/
public class Q00451_LuciensAltar extends Quest
{
// NPCs
private static final int DAICHIR = 30537;
private static final int[] ALTARS =
{
32706,
32707,
32708,
32709,
32710
};
// Items
private static final int REPLENISHED_BEAD = 14877;
private static final int DISCHARGED_BEAD = 14878;
// Misc
private static final int MIN_LEVEL = 80;
public Q00451_LuciensAltar()
{
super(451, Q00451_LuciensAltar.class.getSimpleName(), "Lucien's Altar");
addStartNpc(DAICHIR);
addTalkId(ALTARS);
addTalkId(DAICHIR);
registerQuestItems(REPLENISHED_BEAD, DISCHARGED_BEAD);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
if (event.equals("30537-04.htm"))
{
htmltext = event;
}
else if (event.equals("30537-05.htm"))
{
st.startQuest();
st.giveItems(REPLENISHED_BEAD, 5);
htmltext = event;
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
final int npcId = npc.getId();
if (npcId == DAICHIR)
{
switch (st.getState())
{
case State.COMPLETED:
if (!st.isNowAvailable())
{
htmltext = "30537-03.html";
break;
}
st.setState(State.CREATED);
case State.CREATED:
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30537-01.htm" : "30537-02.htm";
break;
case State.STARTED:
if (st.isCond(1))
{
if (st.isSet("32706") || st.isSet("32707") || st.isSet("32708") || st.isSet("32709") || st.isSet("32710"))
{
htmltext = "30537-10.html";
}
else
{
htmltext = "30537-09.html";
}
}
else
{
st.giveAdena(255380, true); // Tauti reward: 13 773 960 exp, 16 232 820 sp, 742 800 Adena
st.exitQuest(QuestType.DAILY, true);
htmltext = "30537-08.html";
}
break;
}
}
else if (st.isCond(1) && st.hasQuestItems(REPLENISHED_BEAD))
{
if (st.getInt(String.valueOf(npcId)) == 0)
{
st.set(String.valueOf(npcId), "1");
st.takeItems(REPLENISHED_BEAD, 1);
st.giveItems(DISCHARGED_BEAD, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
if (st.getQuestItemsCount(DISCHARGED_BEAD) >= 5)
{
st.setCond(2, true);
}
htmltext = "recharge.html";
}
else
{
htmltext = "findother.html";
}
}
return htmltext;
}
}

View File

@@ -0,0 +1,3 @@
<html><body>Altar of Lucien:<br>
(Find another altar. This one has already been recharged.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Lucien's Altar:<br>
(Mysterious energy flows out from the bead into the altar as the Recharged Power Bead is brought closer to it. After its power is exhausted, the bead becomes a Depleted Black Bead.<br>
The process appears to be completed. Find more Lucien's Crystals elsewhere.)
</body></html>