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>Engineer Lekon:<br>
I'm asking you this because you've proved that you have the qualifications to fly... Will you help me full time? It's been a struggle to maintain and repair Keucereus Alliance Base.<br>
Finding quality help isn't easy in times like these, you know... I have a good feeling about you, though!<br>
<a action="bypass -h Quest Q00699_GuardianOfTheSkies 32557-03.htm">"What would I be doing?"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Engineer Lekon:<br>
Combat experience and skill are both very important. My task is also important, however. Do not take it personally when I say you have not yet proven your worth or earned my trust.<br>
(Only characters who are level 75 or above and who have completed the "Good Day to Fly" quest may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Engineer Lekon:<br>
You've already dealt with the Vulture Riders or Elite Riders before, so you know how dangerous they are. Fortunately, they can't directly attack Keucereus Alliance Base because of the <font color="LEVEL">Barrier Orb</font> handed down from the Giants. But they roam the area as pirates, attacking merchants or isolated bands of soldiers.<br>
The leader of the Vulture Riders is a <font color="LEVEL">Master Rider called Valdstone</font>. He was once the lord of Gracia, but he refused the power of the seed, chose to accept some infernal power, and was subsequently corrupted. He and his minions are a legitimate threat we must take seriously.<br>
That's why I'm asking you this. Will you defeat Master Rider Valdstone? If you succeed, the power of the Vulture Riders and Elite Riders will be greatly reduced. How about it? Will you attempt it?<br>
<a action="bypass -h Quest Q00699_GuardianOfTheSkies 32557-04.htm">Say yes.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Engineer Lekon:<br>
You certainly don't lack for bravery.<br>
Now go defeat bring <font color="LEVEL">Master Rider Valdstone</font> near the Keucereus Alliance Base and bring me a <font color="LEVEL">Vulture's Golden Feather</font> from his mount as proof.<br>
According to what I've heard, the vulture that Valdstone rides is much larger and fiercer than the others. Its feathers are blue when young, but become a golden color as the creature ages. Valdstone's mount should have plenty of golden feathers. Of course, you will be rewarded for all feathers taken from <font color="LEVEL">Vulture Rider</font> mounts.<br>
Eh? Why are you looking at me like that? You don't think I'm more concerned with the feather than I am defeating the Valdstone and his riders? Oh...well, of course the feather is very precious in its own right... But you must defeat these pirates and protect the safety of our air space! Hurry!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Engineer Lekon:<br>
Why haven't you left yet? Hurry!<br>
Bring me the <font color="LEVEL">Vulture's Golden Feather</font> as evidence that you've defeated <font color="LEVEL">Master Rider Valdstone</font> and scattered his followers, the <font color="LEVEL">Vulture Riders and Elite Riders</font>. You must defeat these pirates and protect the safety of our air space! You're not thinking of quitting, are you?<br>
<a action="bypass -h Quest Q00699_GuardianOfTheSkies 32557-08.html">"Of course not. Have the reward ready."</a><br>
<a action="bypass -h Quest Q00699_GuardianOfTheSkies 32557-09.html">"I have another urgent matter to attend to."</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Engineer Lekon:<br>
Ah, you're back. Well? What's this? Judging from the lack of <font color="LEVEL">Vulture's Golden Feathers</font><br>
, it looks as if you defeated only a few <font color="LEVEL">Vulture Riders and Elite Riders</font> but did not face their leader, <font color="LEVEL">Master Rider Valdstone</font>. Here's the reward I promised you, but unless you defeat the Valdstone our fortress is still in danger. Will you keep hunting?<br>
<a action="bypass -h Quest Q00699_GuardianOfTheSkies 32557-08.html">"Of course, I was just getting warmed up."</a><br>
<a action="bypass -h Quest Q00699_GuardianOfTheSkies 32557-09.html">"No, I've had enough."</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Engineer Lekon:<br>
You're back! Let's see here... Ah, you've brought quite a few <font color="LEVEL">Vulture's Golden Feathers</font>. You must have succeeded in defeating <font color="LEVEL">Master Rider Valdstone</font>, or have defeated a great many <font color="LEVEL">Vulture Riders or Elite Riders</font>. Ha ha! This will put a dent in their plans. I'm delighted with your progress!<br>
Here is the reward I promised you. I know it's not much compared to what you've gone through, but I hope it helps.<br>
Say...you've got a real knack for this. Care to go back out and hunt some more?<br>
<a action="bypass -h Quest Q00699_GuardianOfTheSkies 32557-08.html">"Sure."</a><br>
<a action="bypass -h Quest Q00699_GuardianOfTheSkies 32557-09.html">"No, I've had enough."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Engineer Lekon:<br>
Excellent! I'm very happy to hear you say that.<br>
I'll reward you further if you bring me the <font color="LEVEL">Vulture's Golden Feather</font> after defeating <font color="LEVEL">Master Rider Valdstone</font> and his followers, the <font color="LEVEL">Vulture Riders and Elite Riders</font>, who are roaming near Keucereus Alliance Base. Please protect the safety of our air space!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Engineer Lekon:<br>
Too bad! I suppose I can't force you to help us, though. Thanks for what you've done, and good luck in your travels. Farewell!
</body></html>

View File

@@ -0,0 +1,174 @@
/*
* 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.Q00699_GuardianOfTheSkies;
import java.util.HashMap;
import java.util.Map;
import quests.Q10273_GoodDayToFly.Q10273_GoodDayToFly;
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;
/**
* Guardian of the Skies
* @author xban1x
*/
public class Q00699_GuardianOfTheSkies extends Quest
{
// NPC
private static final int LEKON = 32557;
// Monsters
private static final int VALDSTONE = 25623;
private static final Map<Integer, Integer> MONSTERS = new HashMap<>();
static
{
MONSTERS.put(22614, 840); // Vulture Rider lvl 1
MONSTERS.put(22615, 857); // Vulture Rider lvl 2
MONSTERS.put(25633, 719); // Vulture Rider lvl 3
}
// Item
private static final int VULTURES_GOLDEN_FEATHER = 13871;
// Misc
private static final int MIN_LVL = 75;
private static final int VULTURES_GOLDEN_FEATHER_ADENA = 1500;
private static final int BONUS = 8335;
private static final int BONUS_COUNT = 10;
public Q00699_GuardianOfTheSkies()
{
super(699, Q00699_GuardianOfTheSkies.class.getSimpleName(), "Guardian of the Skies");
addStartNpc(LEKON);
addTalkId(LEKON);
addKillId(VALDSTONE);
addKillId(MONSTERS.keySet());
registerQuestItems(VULTURES_GOLDEN_FEATHER);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
String htmltext = null;
if (st != null)
{
switch (event)
{
case "32557-03.htm":
case "32557-08.html":
{
htmltext = event;
break;
}
case "32557-04.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "32557-09.html":
{
st.exitQuest(true, true);
htmltext = event;
break;
}
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if (st != null)
{
if (npc.getId() == VALDSTONE)
{
int amount = 0, chance = getRandom(1000);
if (chance < 215)
{
amount = getRandom(10) + 90;
}
else if (chance < 446)
{
amount = getRandom(10) + 80;
}
else if (chance < 715)
{
amount = getRandom(10) + 70;
}
else
{
amount = getRandom(10) + 60;
}
st.giveItems(VULTURES_GOLDEN_FEATHER, amount);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
else
{
if (getRandom(1000) < MONSTERS.get(npc.getId()))
{
st.giveItems(VULTURES_GOLDEN_FEATHER, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (st != null)
{
switch (st.getState())
{
case State.CREATED:
{
st = player.getQuestState(Q10273_GoodDayToFly.class.getSimpleName());
htmltext = ((st == null) || (!st.isCompleted()) || (player.getLevel() < MIN_LVL)) ? "32557-02.htm" : "32557-01.htm";
break;
}
case State.STARTED:
{
final long feathers = st.getQuestItemsCount(VULTURES_GOLDEN_FEATHER);
if (feathers > 0)
{
st.giveAdena(((feathers * VULTURES_GOLDEN_FEATHER_ADENA) + (feathers > BONUS_COUNT ? BONUS : 0)), true);
st.takeItems(VULTURES_GOLDEN_FEATHER, -1);
htmltext = (feathers > BONUS_COUNT) ? "32557-07.html" : "32557-06.html";
}
else
{
htmltext = "32557-05.html";
}
break;
}
}
}
return htmltext;
}
}