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,4 @@
<html><body>Watcher of Antharas Theodric:<br>
You have a <font color="LEVEL">Portal Stone</font>... it means that you are one of the few who can challenge Antharas. I have a task that may interest you.<br>
<a action="bypass -h Quest Q10504_JewelOfAntharas 30755-05.htm">Continue listening.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Watcher of Antharas Theodric:<br>
You do not have the ability to hear my request... Please come back after raising your caliber...<br>
(Only characters above level 84 can undertake this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Watcher of Antharas Theodric:<br>
Praise unto you for your great achievement in fulfilling my request...<br>
(You have already completed this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Watcher of Antharas Theodric:<br>
The fact that you don't have the <font color="LEVEL">Portal Stone</font> means you did not satisfy the minimum requirement for this mission.<br>
If you really want to hear my request, you must first be recognized by <font color="LEVEL">Gabriel</font> in Giran Village.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Watcher of Antharas Theodric:<br>
Actually, it is more of a challenge than a task. I have this <font color="LEVEL">Clear Crystal</font> I would like you to fill with the energy of Antharas.<br>
<a action="bypass -h Quest Q10504_JewelOfAntharas 30755-06.htm">"Fill the crystal with energy... this sounds familiar."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Watcher of Antharas Theodric:<br>
I have no idea what you are talking about. Maybe you are mistaking me for another Watcher and another Dragon. With this crystal in your possession, once you have defeated Antharas it should draw the energy of the land dragon into the crystal.<br>
<a action="bypass -h Quest Q10504_JewelOfAntharas 30755-07.html">Accept the mission.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Watcher of Antharas Theodric:<br>
Excellent. Take this <font color="LEVEL">Clear Crystal</font>.<br>
I must warn you however, you will need <font color="LEVEL">many soldiers of equal skill in order to challenge Antharas.</font><br>
Best of luck to you, sir!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Watcher of Antharas Theodric:<br>
Apologies, sir! It does not appear as though you have defeated the land dragon. If you did that <font color="LEVEL">Clear Crystal</font> would be filled with Antharas<61>s energy. Good try though, sir! I<>ll be keeping an eye on you and your shenanigans.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Watcher of Antharas Theodric:<br>
Without the <font color="LEVEL">Clear Crystal</font>, you cannot contain Antharas's energy even after defeating it. So please take this Clear Crystal.
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Watcher of Antharas Theodric:<br>
Amazing! I congratulate you on your accomplishment!<br>
The crystal is filled with the energy of the land dragon.<br>
You have brought back the land dragon's energy.<br>
Alas... this victory is short lived. Though Antharas has been defeated and we may celebrate peace for now... the land dragon will return some day.<br>
As always, I shall sit here and wait for that time to come. And when it does I await your return to vanquish the land dragon again. Please, take this... it should help you when the time comes again.
</body></html>

View File

@@ -0,0 +1,167 @@
/*
* 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.Q10504_JewelOfAntharas;
import com.l2jserver.gameserver.enums.QuestSound;
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;
import com.l2jserver.gameserver.util.Util;
/**
* Jewel of Antharas (10504)
* @author Zoey76
*/
public final class Q10504_JewelOfAntharas extends Quest
{
// NPC
private static final int THEODRIC = 30755;
// Monster
private static final int ANTHARAS = 29068;
// Items
private static final int CLEAR_CRYSTAL = 21905;
private static final int FILLED_CRYSTAL_ANTHARAS_ENERGY = 21907;
private static final int JEWEL_OF_ANTHARAS = 21898;
private static final int PORTAL_STONE = 3865;
// Misc
private static final int MIN_LEVEL = 84;
public Q10504_JewelOfAntharas()
{
super(10504, Q10504_JewelOfAntharas.class.getSimpleName(), "Jewel of Antharas");
addStartNpc(THEODRIC);
addTalkId(THEODRIC);
addKillId(ANTHARAS);
registerQuestItems(CLEAR_CRYSTAL, FILLED_CRYSTAL_ANTHARAS_ENERGY);
}
@Override
public void actionForEachPlayer(L2PcInstance player, L2Npc npc, boolean isSummon)
{
final QuestState st = getQuestState(player, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, player, false))
{
st.takeItems(CLEAR_CRYSTAL, -1);
st.giveItems(FILLED_CRYSTAL_ANTHARAS_ENERGY, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.setCond(2, true);
}
}
@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 ((player.getLevel() >= MIN_LEVEL) && st.hasQuestItems(PORTAL_STONE))
{
switch (event)
{
case "30755-05.htm":
case "30755-06.htm":
{
htmltext = event;
break;
}
case "30755-07.html":
{
st.startQuest();
st.giveItems(CLEAR_CRYSTAL, 1);
htmltext = event;
break;
}
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
executeForEachPlayer(killer, npc, isSummon, true, true);
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (st.getState())
{
case State.CREATED:
{
if (player.getLevel() < MIN_LEVEL)
{
htmltext = "30755-02.html";
}
else if (!st.hasQuestItems(PORTAL_STONE))
{
htmltext = "30755-04.html";
}
else
{
htmltext = "30755-01.htm";
}
break;
}
case State.STARTED:
{
switch (st.getCond())
{
case 1:
{
if (st.hasQuestItems(CLEAR_CRYSTAL))
{
htmltext = "30755-08.html";
}
else
{
st.giveItems(CLEAR_CRYSTAL, 1);
htmltext = "30755-09.html";
}
break;
}
case 2:
{
st.giveItems(JEWEL_OF_ANTHARAS, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.exitQuest(false, true);
htmltext = "30755-10.html";
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = "30755-03.html";
break;
}
}
return htmltext;
}
}