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,4 @@
<html><body>Engineer Lekon:<br>
Hmm... I'm afraid I can't share the information with someone so inexperienced. Come back when you're more seasoned.<br>
(Only characters who are level 75 or above and have completed the "Good Day To Fly" quest may undertake this quest.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Engineer Lekon:<br>
Now that you are authorized to fly, there's something you should know...<br>
<a action="bypass -h Quest Q10274_CollectingInTheAir 32557-02.htm">"What?"</a>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Engineer Lekon:<br>
Do you know what powers the Airships? It's ancient Giant technology. But you need <font color="LEVEL">Star Stones</font> to power, maintain and repair a Airship. They can only be found in the skies of Gracia. It's not easy to collect these stones, especially since they tend to attract some rather nasty monsters. But don't you think they're worth the risk, given their rarity and value?<br>
I think you've got all the makings of a fine Star Stone collector, actually. What do you say? Will you do it?<br>
<a action="bypass -h Quest Q10274_CollectingInTheAir 32557-03.html">Say yes.</a>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Engineer Lekon:<br>
It would be easier if I went with you, but unfortunately I'm far too busy. I've prepared this <font color="LEVEL">Star Stone Collection Scroll</font> to help beginners like you. Use it near a target and you'll do fine. It's not cheap, though, so I hope you'll learn the collection skill while using it.<br>
Your task is to bring me 8 of the following Extracted Star Stones- either <font color="LEVEL">8 Extracted Coarse Red Star Stones, 8 Extracted Coarse Blue Star Stones, or 8 Extracted Coarse Green Star Stones</font> using the <font color="LEVEL">Star Stone Collection Scrolls</font>.<br>
These star stones can be found in the skies around the Keucereus Alliance Base and on the paths to the Seeds and the Aerial Cleft. Good luck!
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Engineer Lekon:<br>
You haven't left yet? Hurry and collect <font color="LEVEL">8 Crude Red Star Stone Extraction Stones, Crude Blue Star Stone Extraction Stones or Crude Green Star Stone Extraction Stones</font> using the <font color="LEVEL">Star Stone Collection Scroll</font> I gave you. Go on!
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Engineer Lekon:<br>
Excellent! For a beginner, you've done very well. I guess this proves that you learned the collection skill after all. Congratulations! These are very valuable, so collect as many as possible.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Engineer Lekon:<br>
You've already finished this mission. Collect Star Stones in the sky and they will be useful to our cause.<br>
(You have already completed this quest.)
</body></html>

View File

@ -0,0 +1,163 @@
/*
* 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.Q10274_CollectingInTheAir;
import quests.Q10273_GoodDayToFly.Q10273_GoodDayToFly;
import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.model.L2Object;
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.model.skills.Skill;
/**
* Collecting in the Air (10274)<br>
* Original Jython script by Kerberos v1.0 on 2009/04/26.
* @author nonom
*/
public class Q10274_CollectingInTheAir extends Quest
{
// NPC
private static final int LEKON = 32557;
// Items
private static final int SCROLL = 13844;
private static final int RED = 13858;
private static final int BLUE = 13859;
private static final int GREEN = 13860;
// Monsters
private static final int MOBS[] =
{
18684, // Red Star Stone
18685, // Red Star Stone
18686, // Red Star Stone
18687, // Blue Star Stone
18688, // Blue Star Stone
18689, // Blue Star Stone
18690, // Green Star Stone
18691, // Green Star Stone
18692, // Green Star Stone
};
public Q10274_CollectingInTheAir()
{
super(10274, Q10274_CollectingInTheAir.class.getSimpleName(), "Collecting in the Air");
addStartNpc(LEKON);
addTalkId(LEKON);
addSkillSeeId(MOBS);
registerQuestItems(SCROLL, RED, BLUE, GREEN);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return getNoQuestMsg(player);
}
if (event.equals("32557-03.html"))
{
st.startQuest();
st.giveItems(SCROLL, 8);
}
return event;
}
@Override
public String onSkillSee(L2Npc npc, L2PcInstance caster, Skill skill, L2Object[] targets, boolean isSummon)
{
final QuestState st = getQuestState(caster, false);
if ((st == null) || !st.isStarted())
{
return null;
}
if (st.isCond(1) && (skill.getId() == 2630))
{
switch (npc.getId())
{
case 18684:
case 18685:
case 18686:
st.giveItems(RED, 1);
break;
case 18687:
case 18688:
case 18689:
st.giveItems(BLUE, 1);
break;
case 18690:
case 18691:
case 18692:
st.giveItems(GREEN, 1);
break;
}
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
npc.doDie(caster);
}
return super.onSkillSee(npc, caster, skill, targets, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
switch (st.getState())
{
case State.COMPLETED:
htmltext = "32557-0a.html";
break;
case State.CREATED:
st = player.getQuestState(Q10273_GoodDayToFly.class.getSimpleName());
if (st == null)
{
htmltext = "32557-00.html";
}
else
{
htmltext = ((player.getLevel() >= 75) && st.isCompleted()) ? "32557-01.htm" : "32557-00.html";
}
break;
case State.STARTED:
if ((st.getQuestItemsCount(RED) + st.getQuestItemsCount(BLUE) + st.getQuestItemsCount(GREEN)) >= 8)
{
htmltext = "32557-05.html";
st.giveItems(13728, 1);
st.addExpAndSp(25160, 2525);
st.exitQuest(false, true);
}
else
{
htmltext = "32557-04.html";
}
break;
}
return htmltext;
}
}