This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-00.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-00.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
Even at my busiest, I see the sky now and again -- it's so beautiful!<br>
|
||||
Look at it! Not a cloud to be seen, a gentle breeze... Don't you agree that it's a perfect day to fly? You don't have any idea what I'm talking about, do you? Well, with some more experience I'm sure you will understand.<br>
|
||||
(Only characters who are level 75 or higher may undertake this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
Even at my busiest, I see the sky now and again -- it's so beautiful!<br>
|
||||
Look at it! Not a cloud to be seen, a gentle breeze... Don't you agree that it's a perfect day to fly?<br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-02.htm">"Perfect day to fly?!"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Engineer Lecon:<br>
|
||||
A skilled adventurer like you doesn't know about this? You don't know about <font color="LEVEL">the flying creature named Aurabird</font>? Hmm. Well, listen carefully.<br>
|
||||
Long, long ago the <font color="LEVEL">Aurabirds</font> were the pet birds of the Giants. They were believed extinct until very recently. But it appears that at least a few survived in the high mountains.<br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-03.htm">Listen to the story.</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-03.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-03.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
When the Seed suddenly appeared in Gracia, the Aurabirds' spirit protected them from the contamination that affected the other creatures. They flew here to the Keucereus Alliance Base, where the power of the Seed is weakest. I guess they wanted to survive.<br>
|
||||
A few of us were interested in the origins and biology of the Aurabirds. But more wanted to find a way to use them in the war effort.<br>
|
||||
An Aurabird is big enough for even a young Orc to ride, after all! Several of us thought they held the key to avoiding dependence on Airships.<br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-04.htm">Keep listening.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-04.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-04.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
If the method was easy, we would have certainly have used it before now. We did find some ancient historical documents, but until recently we were unable to successfully duplicate the process. Only through the efforts of several Necromancers, the Wizards of the Ivory Tower and Dwarven technology were we finally able to do it.<br>Our process magically transforms a person to provide Aurabird activity without changing the person's original shape.<br>
|
||||
For it to be effective, the user must have transformation capability and possess certain magical items.<br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-05.htm">"Then what do I need to do to fly?"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-05.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-05.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
Any skilled adventurer in Gracia is permitted to fly. <font color="LEVEL">Hunting</font> and <font color="LEVEL">collecting</font> are possible up there too.<br><br>
|
||||
Of course, you will need to pass a simple test to prove that you're a match for any of the monsters you might encounter. I'm not worried about you, though! So how about it? Would you like to take the test?<br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-06.htm">Say yes.</a>
|
||||
</body></html>
|
9
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-06.htm
vendored
Normal file
9
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-06.htm
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
You must select a type of Aurabird. There are two types to choose from.<br>
|
||||
When the Aurabird was first created during the Age of the Giants, it is said they altered several species. However, only two types survived after the fall of the Giants.<br>
|
||||
One is called the <font color="LEVEL">Aurabird Falcon</font>, which has a penchant for melee type attacks and flies very fast. The other is called the <font color="LEVEL">Aurabird Owl</font>, which leans more towards magic type attacks.The Aurabird Owl flies more slowly, but has easier maneuverability.<br>
|
||||
Which type do you want to be transformed into?<br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-09.html">Aurabird Falcon</a><br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-10.html">Aurabird Owl</a><br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-08.html">"I need to think about it."</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-07.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-07.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
In order to prove yourself, you need to bring <font color="LEVEL">5 Rider Marks</font> as proof that you defeated the <font color="LEVEL">Vulture Riders</font>.<br>
|
||||
So, should I transform you into an <font color="LEVEL">Aurabird Falcon</font> or an <font color="LEVEL">Aurabird Owl</font>?<br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-09.html">Aurabird Falcon</a><br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-10.html">Aurabird Owl</a><br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-08.html">"I need to think about it."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-08.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-08.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
Hmm... Can't make a decision, eh? Indecision won't help you up there, that's for sure. Are you sure you're ready for this?<br>
|
||||
Well, make up your mind and talk to me when you've decided. Hurry up, though. I don't have all day!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-09.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-09.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
You chose an Aurabird Falcon, eh? A good choice... The sight of it streaking across the sky, closing in on its prey, is a beautiful thing.<br>
|
||||
Good hunting!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-0a.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-0a.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
Say, didn't you already earn the qualification? You don't need my permission to fly anymore -- you're free to do so whenever you want. Now go!<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-10.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-10.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
You chose an Aurabird Owl, eh? A good choice... The sight of it silently sneaking up on its enemy is a beautiful thing.<br>
|
||||
Good hunting!
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-11.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-11.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
Eh? The transformation has ended? Then I will transform you again into your choice of Aurabird.<br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-13.html">Transform</a><br>
|
||||
<a action="bypass -h Quest Q10273_GoodDayToFly 32557-12.html">"I need a moment to prepare."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-12.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-12.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
You're just wasting my time. Get ready or get out!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-13.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-13.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
You're all set -- good hunting!
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-14.html
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/32557-14.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Engineer Lekon:<br>
|
||||
How did it go? Ah, I was right about you. I knew you would succeed! (Ah, this one will be very useful to us...)<br>
|
||||
Huh? What's that? Oh, it's nothing -- just talking to myself. Very well, let me write out your certificate.<br>
|
||||
(He writes something on a paper.)<br>
|
||||
With this, nobody will question your right to fly.<br>
|
||||
I will also give you a spellbook that describes how to transform into your choice of Aurabird. Use it and I think you'll be able to fly in the Gracian skies without any help from me.<br>
|
||||
Good luck!
|
||||
</body></html>
|
169
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/Q10273_GoodDayToFly.java
vendored
Normal file
169
trunk/dist/game/data/scripts/quests/Q10273_GoodDayToFly/Q10273_GoodDayToFly.java
vendored
Normal file
@@ -0,0 +1,169 @@
|
||||
/*
|
||||
* 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.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.holders.SkillHolder;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Good Day to Fly (10273)<br>
|
||||
* Original Jython script by Kerberos v1.0 on 2009/04/25
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q10273_GoodDayToFly extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int LEKON = 32557;
|
||||
// Monsters
|
||||
private static final int[] MOBS =
|
||||
{
|
||||
22614, // Vulture Rider
|
||||
22615, // Vulture Rider
|
||||
};
|
||||
|
||||
// Item
|
||||
private static final int MARK = 13856;
|
||||
// Skills
|
||||
private static final SkillHolder AURA_BIRD_FALCON = new SkillHolder(5982, 1);
|
||||
private static final SkillHolder AURA_BIRD_OWL = new SkillHolder(5983, 1);
|
||||
|
||||
public Q10273_GoodDayToFly()
|
||||
{
|
||||
super(10273, Q10273_GoodDayToFly.class.getSimpleName(), "Good Day to Fly");
|
||||
addStartNpc(LEKON);
|
||||
addTalkId(LEKON);
|
||||
addKillId(MOBS);
|
||||
registerQuestItems(MARK);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "32557-06.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "32557-09.html":
|
||||
st.set("transform", "1");
|
||||
AURA_BIRD_FALCON.getSkill().applyEffects(player, player);
|
||||
break;
|
||||
case "32557-10.html":
|
||||
st.set("transform", "2");
|
||||
AURA_BIRD_OWL.getSkill().applyEffects(player, player);
|
||||
break;
|
||||
case "32557-13.html":
|
||||
switch (st.getInt("transform"))
|
||||
{
|
||||
case 1:
|
||||
AURA_BIRD_FALCON.getSkill().applyEffects(player, player);
|
||||
break;
|
||||
case 2:
|
||||
AURA_BIRD_OWL.getSkill().applyEffects(player, player);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState st = getQuestState(killer, false);
|
||||
if ((st == null) || !st.isStarted())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
final long count = st.getQuestItemsCount(MARK);
|
||||
if (st.isCond(1) && (count < 5))
|
||||
{
|
||||
st.giveItems(MARK, 1);
|
||||
if (count == 4)
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
final int transform = st.getInt("transform");
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
htmltext = "32557-0a.html";
|
||||
break;
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() < 75) ? "32557-00.html" : "32557-01.htm";
|
||||
break;
|
||||
default:
|
||||
if (st.getQuestItemsCount(MARK) >= 5)
|
||||
{
|
||||
htmltext = "32557-14.html";
|
||||
if (transform == 1)
|
||||
{
|
||||
st.giveItems(13553, 1);
|
||||
}
|
||||
else if (transform == 2)
|
||||
{
|
||||
st.giveItems(13554, 1);
|
||||
}
|
||||
st.giveItems(13857, 1);
|
||||
st.addExpAndSp(25160, 2525);
|
||||
st.exitQuest(false, true);
|
||||
}
|
||||
else if (transform == 0)
|
||||
{
|
||||
htmltext = "32557-07.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "32557-11.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user