Skip to content
Snippets Groups Projects
Commit 8f03f0ec authored by Zoey76's avatar Zoey76
Browse files

BETA: Adding two missing quests:

	* Dragon Trophy - Antharas (904)
	* Dragon Trophy - Valakas (907)

'''Note:''' High Five feature.
parent b30fc748
No related branches found
No related tags found
No related merge requests found
Showing
with 281 additions and 0 deletions
...@@ -698,6 +698,8 @@ quests/700_CursedLife/__init__.py ...@@ -698,6 +698,8 @@ quests/700_CursedLife/__init__.py
quests/701_Proof_Of_Existence/__init__.py quests/701_Proof_Of_Existence/__init__.py
quests/Q00702_ATrapForRevenge/Q00702_ATrapForRevenge.java quests/Q00702_ATrapForRevenge/Q00702_ATrapForRevenge.java
quests/Q00901_HowLavasaurusesAreMade/Q00901_HowLavasaurusesAreMade.java quests/Q00901_HowLavasaurusesAreMade/Q00901_HowLavasaurusesAreMade.java
quests/Q00904_DragonTrophyAntharas/Q00904_DragonTrophyAntharas.java
quests/Q00907_DragonTrophyValakas/Q00907_DragonTrophyValakas.java
quests/998_FallenAngelSelect/__init__.py quests/998_FallenAngelSelect/__init__.py
quests/999_T1Tutorial/__init__.py quests/999_T1Tutorial/__init__.py
quests/Q10267_JourneyToGracia/Q10267_JourneyToGracia.java quests/Q10267_JourneyToGracia/Q10267_JourneyToGracia.java
......
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
/*
* Copyright (C) 2004-2013 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server 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 Server 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.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.QuestState.QuestType;
import com.l2jserver.gameserver.model.quest.State;
import com.l2jserver.gameserver.util.Util;
/**
* Dragon Trophy - Antharas (904)
* @author Zoey76
*/
public class Q00904_DragonTrophyAntharas extends Quest
{
// NPC
private static final int THEODRIC = 30755;
// Monsters
private static final int ANTHARAS_OLD = 29019;
private static final int ANTHARAS_WEAK = 29066;
private static final int ANTHARAS_NORMAL = 29067;
private static final int ANTHARAS_STRONG = 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;
private Q00904_DragonTrophyAntharas(int questId, String name, String descr)
{
super(questId, name, descr);
addStartNpc(THEODRIC);
addTalkId(THEODRIC);
addKillId(ANTHARAS_OLD, ANTHARAS_WEAK, ANTHARAS_NORMAL, ANTHARAS_STRONG);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = player.getQuestState(getName());
if (st == null)
{
return null;
}
String htmltext = null;
if (player.getLevel() >= MIN_LEVEL)
{
switch (event)
{
case "30755-05.htm":
{
if ((player.getLevel() >= MIN_LEVEL) && st.hasQuestItems(PORTAL_STONE))
{
htmltext = event;
}
break;
}
case "30755-06.htm":
{
if ((player.getLevel() >= MIN_LEVEL) && st.hasQuestItems(PORTAL_STONE))
{
htmltext = event;
}
break;
}
case "30755-07.html":
{
if ((player.getLevel() >= MIN_LEVEL) && st.hasQuestItems(PORTAL_STONE))
{
st.startQuest();
htmltext = event;
}
break;
}
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = player.getQuestState(getName());
if (st == null)
{
return getNoQuestMsg(player);
}
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;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isPet)
{
final QuestState st = killer.getQuestState(getName());
if ((st != null) && Util.checkIfInRange(1500, npc, killer, false))
{
st.setCond(2, true);
}
return super.onKill(npc, killer, isPet);
}
public static void main(String[] args)
{
new Q00904_DragonTrophyAntharas(904, Q00904_DragonTrophyAntharas.class.getSimpleName(), "Dragon Trophy - Antharas");
}
}
<html><body>Watcher of Valakas Klein:<br>
Is it hot in here or is it just me? Ha, that one never gets old... well, maybe a little. As you probably know this path leads to the lair of Valakas.<br>
Oh how many have come and became one with the flame that fills these halls...<br>
Valakas calls and those brave souls answer. Not like you though. Destiny has brought you here to face and defeat Valakas.<br>
Do you want to fight the beast? Do ya? Who wants to fight Valakas?<br>
<a action="bypass -h Quest Q00907_DragonTrophyValakas 31540-05.htm">"I do! I want to fight Valakas!"</a>
</body></html>
\ No newline at end of file
<html><body>Watcher of Valakas Klein:<br>
Do you look down on the fire dragon? Its claws have shattered countless lives.<br>
(Only characters at level 84 or above can undertake this quest.)
</body></html>
\ No newline at end of file
<html><body>Watcher of Valakas Klein:<br>
Glorious adventurer.<br>
The dragon's nemesis.<br>
You have defeated the dragon. Your power in defeating the evil beast shall be praised throughout the land.<br>
(This quest can be done only a day. This quest gets initialized everyday at 6:30 am.)
</body></html>
\ No newline at end of file
<html><body>Watcher of Valakas Klein:<br>
The fact that you don't have the <font color="LEVEL">Floating Stone</font> means you did not satisfy the minimum requirement for this mission.<br>
If you really want to defeat Valakas, you must first obtain a Vacualite Floating Stone.
</body></html>
\ No newline at end of file
<html><body>Watcher of Valakas Klein:<br>
That a boy... er, girl... ah... you... that's the spirit! I'm somewhat mildy confident of your chances... definitely much better than the hordes of previous adventurers who have been sent to their deaths.<br>
<a action="bypass -h Quest Q00907_DragonTrophyValakas 31540-06.htm">"Nice... anything I need to do?"</a>
</body></html>
\ No newline at end of file
<html><body>Watcher of Valakas Klein:<br>
Nothing special... just march through the vast army of creatures created by the Fire Dragon Valakas into his lair and vanquish the most feared and deadly creature known to roam this land which will most likely kill you and all those around you.<br>
Nah, nothing too much. Just come back with proof you have defeated Valakas and I'll have a surprise waiting for you.<br>
You'll never guess what it is.<br>
<a action="bypass -h Quest Q00907_DragonTrophyValakas 31540-07.html">"Those new Medals of Glory?"</a>
</body></html>
\ No newline at end of file
<html><body>Watcher of Valakas Klein:<br>
Yeah. How did you... never mind. Best of luck kid, you're gonna need it.<br>
You know I feel really dumb for saying this and stop me if you have heard it before... cause you know I've sent how many people to their countless deaths trying to kill that thing that everyone starts to look the same, but you shouldn't go after Valakas solo.<br>
Your best bet would be <font color="LEVEL">attacking Valakas with a large group of equally skilled adventurers.</font>
</body></html>
\ No newline at end of file
<html><body>Watcher of Valakas Klein:<br>
Defeating Valakas is something that you must do with your comrades.<br>
I shall wait here for news of your victory against the beast.
</body></html>
\ No newline at end of file
<html><body>Watcher of Valakas Klein:<br>
What's that you say? You managed to kill the fire dragon? Well, yes, I heard but I thought they were talking about some other adventurer who managed to kill Valakas.<br>
You must feel like Emperor Shunaiman on Aden Mountain so who would want to mess with you.<br>
Well allow me to be the one to kick you off your pedestal so you can fall back to the real world. Valakas ain't dead. Never really dies. He comes back, ever now and then... grumpy as ever and we can expect someone like you to come knocking on his door asking him to turn down that noise.<br>
Well buck up kid, take these Medals of Glory... better than a lousy t-shirt.
</body></html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment