This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<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.<br>
|
||||
So, do you feel that you are up to the challenge of defeating the land dragon?<br>
|
||||
<a action="bypass -h Quest Q00904_DragonTrophyAntharas 30755-05.htm">Say that you can defeat it.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
Do you look down on the earth dragon? Its claws have shattered countless lives.<br>
|
||||
(Only characters at level 84 or above can undertake this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-03.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-03.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
Ah, you have returned, and with a victor's skip in your step!<br>
|
||||
You have defeated the dragon! Your power shall be praised throughout the lands!<br>
|
||||
(This quest can be done only a day. This quest gets initialized everyday at 6:30 am.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-04.html
vendored
Normal 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 didn't satisfy the minimum requirement for this mission.<br>
|
||||
If you really want to defeat Antharas, first you need to get recognized by <font color="LEVEL">Gabrielle</font> in Giran village.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-05.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-05.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
You may think that you are invincible and that your courage is unmatched, but does anyone know of your fame?<br>
|
||||
Do you wish to become famous?<br>
|
||||
<a action="bypass -h Quest Q00904_DragonTrophyAntharas 30755-06.htm">Ask how to become famous.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-06.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-06.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
It's simple really. Use your strength and destroy the first offspring of the Goddess of Destruction... Antharas. Who is the Goddess of Destruction? This discussion will have to wait for another time.<br>
|
||||
Do you think you can handle the challenge to defeat Antharas?<br>
|
||||
<a action="bypass -h Quest Q00904_DragonTrophyAntharas 30755-07.html">"I shall defeat Antharas."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
I wish you the best of luck. Unfortunately I cannot go with you on this journey. However, I am sure there are others just like you who wish to take on Antharas.<br>
|
||||
You may wish to continue once you have acquired <font color="LEVEL">a large group of highly skilled adventurers</font> to go with you on your journey.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-08.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-08.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
I know for a fact that you have not destroyed Antharas.<br>
|
||||
When you do, I know for I shall have heard it echo throughout the winds.<br>
|
||||
Until that time, I stand... I wait... and I watch.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-09.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/30755-09.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
Word has already spread throughout the land that you and your fellowship have defeated the land dragon Antharas. Enjoy your victory while it lasts. Unfortunately, the legends are true about Antharas... the beast can never truly be killed. It will rise once again.<br>
|
||||
True to my code, I will stand watch for the land dragon's return. When it does I will be here awaiting your return.<br>
|
||||
As promised, here is the gift of fame and fortune. These are rare... be sure to use them wisely.
|
||||
</body></html>
|
172
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/Q00904_DragonTrophyAntharas.java
vendored
Normal file
172
trunk/dist/game/data/scripts/quests/Q00904_DragonTrophyAntharas/Q00904_DragonTrophyAntharas.java
vendored
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* 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.Q00904_DragonTrophyAntharas;
|
||||
|
||||
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;
|
||||
import com.l2jserver.gameserver.util.Util;
|
||||
|
||||
/**
|
||||
* Dragon Trophy - Antharas (904)
|
||||
* @author Zoey76
|
||||
*/
|
||||
public final class Q00904_DragonTrophyAntharas extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int THEODRIC = 30755;
|
||||
// Monster
|
||||
private static final int ANTHARAS = 29068;
|
||||
// Items
|
||||
private static final int MEDAL_OF_GLORY = 21874;
|
||||
private static final int PORTAL_STONE = 3865;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 84;
|
||||
|
||||
public Q00904_DragonTrophyAntharas()
|
||||
{
|
||||
super(904, Q00904_DragonTrophyAntharas.class.getSimpleName(), "Dragon Trophy - Antharas");
|
||||
addStartNpc(THEODRIC);
|
||||
addTalkId(THEODRIC);
|
||||
addKillId(ANTHARAS);
|
||||
}
|
||||
|
||||
@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.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();
|
||||
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:
|
||||
{
|
||||
htmltext = "30755-08.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
st.giveItems(MEDAL_OF_GLORY, 30);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
st.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = "30755-09.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (!st.isNowAvailable())
|
||||
{
|
||||
htmltext = "30755-03.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
st.setState(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;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user