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,7 @@
<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>

View File

@@ -0,0 +1,4 @@
<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>

View File

@@ -0,0 +1,6 @@
<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>

View File

@@ -0,0 +1,4 @@
<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>

View File

@@ -0,0 +1,4 @@
<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>

View File

@@ -0,0 +1,6 @@
<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>

View File

@@ -0,0 +1,5 @@
<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>

View File

@@ -0,0 +1,4 @@
<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>

View File

@@ -0,0 +1,6 @@
<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>

View File

@@ -0,0 +1,177 @@
/*
* 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.Q00907_DragonTrophyValakas;
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 - Valakas (907)
* @author Zoey76
*/
public class Q00907_DragonTrophyValakas extends Quest
{
// NPC
private static final int KLEIN = 31540;
// Monster
private static final int VALAKAS = 29028;
// Items
private static final int MEDAL_OF_GLORY = 21874;
private static final int VACUALITE_FLOATING_STONE = 7267;
// Misc
private static final int MIN_LEVEL = 84;
public Q00907_DragonTrophyValakas()
{
super(907, Q00907_DragonTrophyValakas.class.getSimpleName(), "Dragon Trophy - Valakas");
addStartNpc(KLEIN);
addTalkId(KLEIN);
addKillId(VALAKAS);
}
@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(VACUALITE_FLOATING_STONE))
{
switch (event)
{
case "31540-05.htm":
case "31540-06.htm":
{
htmltext = event;
break;
}
case "31540-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);
if (st == null)
{
return getNoQuestMsg(player);
}
String htmltext = getNoQuestMsg(player);
switch (st.getState())
{
case State.CREATED:
{
if (player.getLevel() < MIN_LEVEL)
{
htmltext = "31540-02.html";
}
else if (!st.hasQuestItems(VACUALITE_FLOATING_STONE))
{
htmltext = "31540-04.html";
}
else
{
htmltext = "31540-01.htm";
}
break;
}
case State.STARTED:
{
switch (st.getCond())
{
case 1:
{
htmltext = "31540-08.html";
break;
}
case 2:
{
st.giveItems(MEDAL_OF_GLORY, 30);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.exitQuest(QuestType.DAILY, true);
htmltext = "31540-09.html";
break;
}
}
break;
}
case State.COMPLETED:
{
if (!st.isNowAvailable())
{
htmltext = "31540-03.html";
}
else
{
st.setState(State.CREATED);
if (player.getLevel() < MIN_LEVEL)
{
htmltext = "31540-02.html";
}
else if (!st.hasQuestItems(VACUALITE_FLOATING_STONE))
{
htmltext = "31540-04.html";
}
else
{
htmltext = "31540-01.htm";
}
}
break;
}
}
return htmltext;
}
}