diff --git a/trunk/dist/game/data/html/default/33963.htm b/trunk/dist/game/data/html/default/33963.htm new file mode 100644 index 0000000000..fc8491622d --- /dev/null +++ b/trunk/dist/game/data/html/default/33963.htm @@ -0,0 +1,6 @@ +Researcher Pio:
+The warm breeze! Windy Hill is where the wind spirits, who lost their minds while sealing Beleth in the past, have gathered.
+But I've seen new spirits on the Windy Hill. Also I feel something strange. Don't you feel it?
+I really want to know. I really want to find out what it is. + + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-01.htm b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-01.htm new file mode 100644 index 0000000000..9a3ca5e66e --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-01.htm @@ -0,0 +1,5 @@ +Researcher Pio:
+People of wind! Ertheia! You have ears that look like wings. Welcome to this world. I want to be friends.
+You said that High Priest Levian sent you? + + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-02.htm b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-02.htm new file mode 100644 index 0000000000..a516c0c70c --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-02.htm @@ -0,0 +1,5 @@ +Researcher Pio:
+I'm investigating Windy Hill at High Priest Levian's request. Isn't the wide green field beautiful?
+But I've been feeling strange energy on the Windy Hill. + + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-03.htm b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-03.htm new file mode 100644 index 0000000000..65eb40134f --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-03.htm @@ -0,0 +1,5 @@ +Researcher Pio:
+Windy Hill is where the wind from the sea and the mountains meet. It has always been the ideal place for the spirits.
+But then the wind spirits lost their minds when Beleth was sealed in the past. This happened a long time ago. + + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-04.htm b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-04.htm new file mode 100644 index 0000000000..d849c816f1 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-04.htm @@ -0,0 +1,6 @@ +Researcher Pio:
+Then new spirits appeared...and the spirits all have a strange energy!
+According to High Priest Levian, it's energy that did not exist in this wolrd.
+Is it possible for you to kill the spirits ruining this beautiful place and look for leads about the strange power? + + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-05.htm b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-05.htm new file mode 100644 index 0000000000..04a5013866 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-05.htm @@ -0,0 +1,4 @@ +Researcher Pio:
+Thank you. I'm only good with books.
+Go to Windy Hill and kill Windimas, Sobbing Winds, Windima Feris, Whispering Winds, Windima Reshes, Babbling Winds, Giggling Winds, and Singing Winds and find out about the strange energy. Thanks! + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-06.html b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-06.html new file mode 100644 index 0000000000..7a1988f42f --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-06.html @@ -0,0 +1,5 @@ +Researcher Pio:
+Oh! Pretty wing ears!
+Did you find anything from the spirits? Can you give them to me? + + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-07.html b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-07.html new file mode 100644 index 0000000000..6fd5840244 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-07.html @@ -0,0 +1,5 @@ +Researcher Pio:
+Could it be? Could it be possible the energy from the Wind Spirit Realm is coming through the Dimensional Rift?
+Wind comes from the sea here. And beyond the sea lies the rift through which you came, right?
+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. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-08.html b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-08.html new file mode 100644 index 0000000000..1e51157377 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/33963-08.html @@ -0,0 +1,3 @@ +Researcher Pio:
+(Only Ertheia characters Lv. 20 or above can perform this quest.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/Q10756_AnInterdimensionalDraft.java b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/Q10756_AnInterdimensionalDraft.java new file mode 100644 index 0000000000..6c986e0001 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10756_AnInterdimensionalDraft/Q10756_AnInterdimensionalDraft.java @@ -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 . + */ +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); + } +} \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java index 43453ca9a8..6f85879f03 100644 --- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -245,6 +245,7 @@ import quests.Q10743_StrangeFungus.Q10743_StrangeFungus; import quests.Q10744_StrongerThanSteel.Q10744_StrongerThanSteel; import quests.Q10745_TheSecretIngredients.Q10745_TheSecretIngredients; import quests.Q10746_SeeTheWorld.Q10746_SeeTheWorld; +import quests.Q10756_AnInterdimensionalDraft.Q10756_AnInterdimensionalDraft; /** * @author NosBit @@ -478,7 +479,8 @@ public class QuestMasterHandler Q10743_StrangeFungus.class, Q10744_StrongerThanSteel.class, Q10745_TheSecretIngredients.class, - Q10746_SeeTheWorld.class + Q10746_SeeTheWorld.class, + Q10756_AnInterdimensionalDraft.class }; public static void main(String[] args)