Quest An Interdimensional Draft (10756).
Contributed by Neanrakyr.
This commit is contained in:
parent
d0bbb0470d
commit
0435a7265c
6
trunk/dist/game/data/html/default/33963.htm
vendored
Normal file
6
trunk/dist/game/data/html/default/33963.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<html><body>Researcher Pio:<br>
|
||||||
|
The warm breeze! Windy Hill is where the wind spirits, who lost their minds while sealing Beleth in the past, have gathered.<br>
|
||||||
|
But I've seen new spirits on the Windy Hill. Also I feel something strange. Don't you feel it?<br>
|
||||||
|
I really want to know. I really want to find out what it is.
|
||||||
|
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-01.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Researcher Pio:<br>
|
||||||
|
People of wind! Ertheia! You have ears that look like wings. Welcome to this world. I want to be friends.<br>
|
||||||
|
You said that High Priest Levian sent you?
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-02.htm">"Yes."</Button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-02.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Researcher Pio:<br>
|
||||||
|
I'm investigating Windy Hill at High Priest Levian's request. Isn't the wide green field beautiful?<br>
|
||||||
|
But I've been feeling strange energy on the Windy Hill.
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-03.htm">"Interesting. Go on."</Button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-03.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Researcher Pio:<br>
|
||||||
|
Windy Hill is where the wind from the sea and the mountains meet. It has always been the ideal place for the spirits.<br>
|
||||||
|
But then the wind spirits lost their minds when Beleth was sealed in the past. This happened a long time ago.
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-04.htm">"Interesting. Go on."</Button>
|
||||||
|
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-04.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-04.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<html><body>Researcher Pio:<br>
|
||||||
|
Then new spirits appeared...and the spirits all have a strange energy!<br>
|
||||||
|
According to High Priest Levian, it's energy that did not exist in this wolrd.<br>
|
||||||
|
Is it possible for you to kill the spirits ruining this beautiful place and look for leads about the strange power?
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-05.htm">"Sure."</Button>
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-05.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Researcher Pio:<br>
|
||||||
|
Thank you. I'm only good with books.<br>
|
||||||
|
Go to <font color=LEVEL>Windy Hill</font> and kill <font color=LEVEL>Windimas, Sobbing Winds, Windima Feris, Whispering Winds, Windima Reshes, Babbling Winds, Giggling Winds, and Singing Winds</font> and find out about the strange energy. Thanks!
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-06.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-06.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Researcher Pio:<br>
|
||||||
|
Oh! Pretty wing ears!<br>
|
||||||
|
Did you find anything from the spirits? Can you give them to me?
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-07.html">"I got Unworldly Wind. I can feel the power of the Wind Spirit Realm in it."</Button>
|
||||||
|
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-07.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-07.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Researcher Pio:<br>
|
||||||
|
Could it be? Could it be possible the energy from the Wind Spirit Realm is coming through the Dimensional Rift?<br>
|
||||||
|
Wind comes from the sea here. And beyond the sea lies the rift through which you came, right?<br>
|
||||||
|
How did I know? While you were locking for clues, I asked High Priest Levian about your race. My curiosity got the better of me. Anyway, thanks for your help. You can go now.
|
||||||
|
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-08.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-08.html
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<html><body>Researcher Pio:<br>
|
||||||
|
(Only Ertheia characters Lv. 20 or above can perform this quest.)
|
||||||
|
</body></html>
|
@ -0,0 +1,157 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2004-2015 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.Q10756_AnInterdimensionalDraft;
|
||||||
|
|
||||||
|
import com.l2jserver.gameserver.enums.Race;
|
||||||
|
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||||
|
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||||
|
import com.l2jserver.gameserver.model.holders.ItemHolder;
|
||||||
|
import com.l2jserver.gameserver.model.quest.Quest;
|
||||||
|
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Neanrakyr
|
||||||
|
*/
|
||||||
|
public class Q10756_AnInterdimensionalDraft extends Quest
|
||||||
|
{
|
||||||
|
// NPCs
|
||||||
|
private static final int PIO = 33963;
|
||||||
|
// Items
|
||||||
|
private static final int UNWORLDLY_WIND = 39493; // Unworldly Wind
|
||||||
|
private static final ItemHolder STEEL_DOOR_GUILD_COIN = new ItemHolder(37045, 8); // Steel Door Guild Coin
|
||||||
|
// Mobs
|
||||||
|
private static final int[] MOBS =
|
||||||
|
{
|
||||||
|
20078, // Whispering Wind
|
||||||
|
21023, // Sobbing Wind
|
||||||
|
21024, // Babbling Wind
|
||||||
|
21025, // Giggling Wind
|
||||||
|
21026, // Singing Wind
|
||||||
|
23414, // Windima
|
||||||
|
23415, // Windima Feri
|
||||||
|
23416, // Windima Resh
|
||||||
|
};
|
||||||
|
// Misc
|
||||||
|
private static final int MIN_LEVEL = 20;
|
||||||
|
private static final int MAX_LEVEL = 107;
|
||||||
|
|
||||||
|
public Q10756_AnInterdimensionalDraft()
|
||||||
|
{
|
||||||
|
super(10756, Q10756_AnInterdimensionalDraft.class.getSimpleName(), "An Interdimensional Draft");
|
||||||
|
addStartNpc(PIO);
|
||||||
|
addTalkId(PIO);
|
||||||
|
registerQuestItems(UNWORLDLY_WIND);
|
||||||
|
addKillId(MOBS);
|
||||||
|
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33963-08.html");
|
||||||
|
addCondRace(Race.ERTHEIA, "33963-08.html");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||||
|
{
|
||||||
|
final QuestState qs = getQuestState(player, false);
|
||||||
|
if (qs == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
String htmltext = null;
|
||||||
|
switch (event)
|
||||||
|
{
|
||||||
|
case "33963-05.htm":
|
||||||
|
{
|
||||||
|
qs.startQuest();
|
||||||
|
htmltext = event;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "33963-02.htm":
|
||||||
|
case "33963-03.htm":
|
||||||
|
case "33963-04.htm":
|
||||||
|
case "33963-06.html":
|
||||||
|
{
|
||||||
|
htmltext = event;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return htmltext;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||||
|
{
|
||||||
|
final QuestState qs = getQuestState(player, true);
|
||||||
|
String htmltext = getNoQuestMsg(player);
|
||||||
|
|
||||||
|
if (qs.isCompleted())
|
||||||
|
{
|
||||||
|
htmltext = getAlreadyCompletedMsg(player);
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (npc.getId())
|
||||||
|
{
|
||||||
|
case PIO:
|
||||||
|
{
|
||||||
|
if (qs.isCreated())
|
||||||
|
{
|
||||||
|
htmltext = "33963-01.htm";
|
||||||
|
}
|
||||||
|
else if (qs.isStarted())
|
||||||
|
{
|
||||||
|
switch (qs.getCond())
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
{
|
||||||
|
htmltext = "33963-05.htm";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 2:
|
||||||
|
{
|
||||||
|
if (qs.isCond(2) && (qs.getQuestItemsCount(UNWORLDLY_WIND) >= 30))
|
||||||
|
{
|
||||||
|
qs.takeItems(UNWORLDLY_WIND, 30);
|
||||||
|
giveItems(player, STEEL_DOOR_GUILD_COIN);
|
||||||
|
addExpAndSp(player, 174222, 41);
|
||||||
|
qs.exitQuest(false, true);
|
||||||
|
htmltext = "33963-07.html";
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return htmltext;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||||
|
{
|
||||||
|
final QuestState qs = getQuestState(killer, false);
|
||||||
|
|
||||||
|
if ((qs != null) && qs.isCond(1))
|
||||||
|
{
|
||||||
|
if (giveItemRandomly(killer, npc, UNWORLDLY_WIND, 1, 30, 1.0, true))
|
||||||
|
{
|
||||||
|
qs.setCond(2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return super.onKill(npc, killer, isSummon);
|
||||||
|
}
|
||||||
|
}
|
@ -245,6 +245,7 @@ import quests.Q10743_StrangeFungus.Q10743_StrangeFungus;
|
|||||||
import quests.Q10744_StrongerThanSteel.Q10744_StrongerThanSteel;
|
import quests.Q10744_StrongerThanSteel.Q10744_StrongerThanSteel;
|
||||||
import quests.Q10745_TheSecretIngredients.Q10745_TheSecretIngredients;
|
import quests.Q10745_TheSecretIngredients.Q10745_TheSecretIngredients;
|
||||||
import quests.Q10746_SeeTheWorld.Q10746_SeeTheWorld;
|
import quests.Q10746_SeeTheWorld.Q10746_SeeTheWorld;
|
||||||
|
import quests.Q10756_AnInterdimensionalDraft.Q10756_AnInterdimensionalDraft;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author NosBit
|
* @author NosBit
|
||||||
@ -478,7 +479,8 @@ public class QuestMasterHandler
|
|||||||
Q10743_StrangeFungus.class,
|
Q10743_StrangeFungus.class,
|
||||||
Q10744_StrongerThanSteel.class,
|
Q10744_StrongerThanSteel.class,
|
||||||
Q10745_TheSecretIngredients.class,
|
Q10745_TheSecretIngredients.class,
|
||||||
Q10746_SeeTheWorld.class
|
Q10746_SeeTheWorld.class,
|
||||||
|
Q10756_AnInterdimensionalDraft.class
|
||||||
};
|
};
|
||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
|
Loading…
Reference in New Issue
Block a user