Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Researcher Pio:<br>
I'm currently investigating the events that happened on Windy Hill. Hmm! You won't be much help. Oh yeah, vortex occurs here sometimes. You better be careful.<br>
(This quest is available only to Ertheia characters Lv. 20 or above.)
</body></html>

View File

@@ -1,5 +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>
<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?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-02.htm">"Yes."</Button>
</body></html>

View File

@@ -1,5 +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>
<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.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-03.htm">"Interesting. Go on."</Button>
</body></html>

View File

@@ -1,5 +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>
<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.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-04.htm">"Interesting. Go on."</Button>
</body></html>

View File

@@ -1,6 +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?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-05.htm">"Sure."</Button>
<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 world.<br>
Is it possible for you to kill the spirits ruining this beautiful place and look for leads about the strange power?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-05.htm">"Sure."</Button>
</body></html>

View File

@@ -1,4 +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!
<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!<br>
</body></html>

View File

@@ -1,5 +1,4 @@
<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>
<html><body>Researcher Pio:<br>
I'm only good with books, so I couldn't handle the spirits.<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.
</body></html>

View File

@@ -1,5 +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.
<html><body>Researcher Pio:<br>
Oh! Pretty wing ears!<br>
Did you find anything from the spirits? Can you give them to me?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10756_AnInterdimensionalDraft 33963-08.html">"I got Unworldly Wind. I can feel the power of the Wind Spirit Realm in it."</Button>
</body></html>

View File

@@ -1,3 +1,5 @@
<html><body>Researcher Pio:<br>
(Only Ertheia characters Lv. 20 or above can perform this quest.)
<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 looking 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>

View File

@@ -1,140 +1,133 @@
/*
* This file is part of the L2J Mobius project.
*
* This program 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.
*
* This program 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.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.holders.ItemHolder;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.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 = qs.isCompleted() ? getAlreadyCompletedMsg(player) : getNoQuestMsg(player);
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) && (getQuestItemsCount(player, UNWORLDLY_WIND) >= 30))
{
takeItems(player, UNWORLDLY_WIND, 30);
giveItems(player, STEEL_DOOR_GUILD_COIN);
addExpAndSp(player, 174222, 41);
qs.exitQuest(false, true);
htmltext = "33963-07.html";
}
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) && giveItemRandomly(killer, npc, UNWORLDLY_WIND, 1, 30, 1.0, true))
{
qs.setCond(2);
}
return super.onKill(npc, killer, isSummon);
}
}
/*
* This file is part of the L2J Mobius project.
*
* This program 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.
*
* This program 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.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
/**
* An Interdimensional Draft (10756)
* @author malyelfik
*/
public final class Q10756_AnInterdimensionalDraft extends Quest
{
// NPC
private static final int PIO = 33963;
// Monsters
private static final int[] MONSTERS =
{
20078, // Whispering Wind
21023, // Sobbing Wind
21024, // Babbling Wind
21025, // Giggling Wind
21026, // Singing Wind
23414, // Windima
23415, // Windima Feri
23416, // Windima Resh
};
// Items
private static final int UNWORLDLY_WIND = 39493;
// Misc
private static final int MIN_LEVEL = 20;
private static final double DROP_RATE = 0.7d;
public Q10756_AnInterdimensionalDraft()
{
super(10756);
addStartNpc(PIO);
addTalkId(PIO);
addKillId(MONSTERS);
addCondRace(Race.ERTHEIA, "33963-00.htm");
addCondMinLevel(MIN_LEVEL, "33963-00.htm");
registerQuestItems(UNWORLDLY_WIND);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = event;
switch (event)
{
case "33963-01.htm":
case "33963-02.htm":
case "33963-03.htm":
case "33963-04.htm":
break;
case "33963-05.htm":
{
qs.startQuest();
break;
}
case "33963-08.html":
{
if (qs.isCond(2))
{
giveStoryQuestReward(player, 8);
addExpAndSp(player, 174222, 41);
qs.exitQuest(false, true);
}
break;
}
default:
htmltext = null;
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.CREATED:
htmltext = "33963-01.htm";
break;
case State.STARTED:
htmltext = (qs.isCond(1)) ? "33963-06.html" : "33963-07.html";
break;
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
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) && giveItemRandomly(killer, UNWORLDLY_WIND, 1, 30, DROP_RATE, true))
{
qs.setCond(2, true);
}
return super.onKill(npc, killer, isSummon);
}
}