diff --git a/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/30037-01.htm b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/30037-01.htm new file mode 100644 index 0000000000..ceff64efbe --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/30037-01.htm @@ -0,0 +1,5 @@ +High Priest Levian:
+It's you. Ertheia, the people of wind.
+Welcome to Gludin Village. I hear from the delegations about Ertheia.
+I get this feeling that we will speak often. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-01.htm b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-01.htm new file mode 100644 index 0000000000..81befff7bb --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-01.htm @@ -0,0 +1,7 @@ +Karla:
+You're looking pretty good, now that you've grown a bit.
+It's not a bad idea to leave the village and head out on a new adventure. Now that we're in the Material Realm, we should live as they live.
+The delegation just sent a message saying they had arrive in GLUDIN VILLAGE. They had actually left from the Town of Gludio, but since was their first trip, maybe they got lost.
+How about it? Will you set off for the continet?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-02.htm b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-02.htm new file mode 100644 index 0000000000..ca0aaada50 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-02.htm @@ -0,0 +1,5 @@ +Karla:
+Go to Einhased Temple in Gludin Village and see High Priest Levian.
+Do not worry about getting lost, for the Queen will shine a path ahead of you. +Gatekeeper Astiel will help you get to Gludin Village. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-no.htm b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-no.htm new file mode 100644 index 0000000000..730f8a9492 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-no.htm @@ -0,0 +1,3 @@ +Karla:
+This quest is only for Ertheia class. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-noLevel.htm b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-noLevel.htm new file mode 100644 index 0000000000..442db8b4b0 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-noLevel.htm @@ -0,0 +1,3 @@ +Karla:
+Your level is wrong for this quest. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-restriction.htm b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-restriction.htm new file mode 100644 index 0000000000..fe07f35623 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-restriction.htm @@ -0,0 +1,3 @@ +Karla:
+(Quest only available to Ertheia characters Lv. 19 or Lv. 25 who have completed the quest "The Secret Ingredients.") + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33948-01.htm b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33948-01.htm new file mode 100644 index 0000000000..7f1026149d --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33948-01.htm @@ -0,0 +1,9 @@ +Gatekeeper Astiel:
+What a lovely place this town is! I'm glad Ivory Tower sent me here to help. Oh, if you need me, I can help you go to:
+Gludin Village +Town of Gludio +Talking Island Village +Whispering Woods
+Where would you like to go?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33948-02.htm b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33948-02.htm new file mode 100644 index 0000000000..15bbef9273 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33948-02.htm @@ -0,0 +1,4 @@ +Gatekeeper Astiel:
+Remember, safety first!
+Always be mindful of your health. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/Q10746_SeeTheWorld.java b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/Q10746_SeeTheWorld.java new file mode 100644 index 0000000000..a1f8ca5ba2 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/Q10746_SeeTheWorld.java @@ -0,0 +1,159 @@ +/* + * Copyright (C) 2004-2015 L2J Mobius DataPack + * + * This file is part of L2J Mobius 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.Q10746_SeeTheWorld; + +import quests.Q10745_TheSecretIngredients.Q10745_TheSecretIngredients; + +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; +import com.l2jserver.gameserver.network.NpcStringId; +import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage; + +/** + * @author Neanrakyr + */ +public class Q10746_SeeTheWorld extends Quest +{ + // Npcs + private static final int KARLA = 33933; + private static final int ASTIEL = 33948; + private static final int LEVIAN = 30037; + + // Items + private static final ItemHolder EMISSARY_SUPPORT_BOX_WARRIOR = new ItemHolder(40264, 1); + private static final ItemHolder EMISSARY_SUPPORT_BOX_MAGE = new ItemHolder(40265, 1); + + // Level Condition + private static final int MIN_LEVEL = 19; + private static final int MAX_LEVEL = 25; + + public Q10746_SeeTheWorld() + { + super(10746, Q10746_SeeTheWorld.class.getSimpleName(), "See The World"); + addStartNpc(KARLA); + addTalkId(KARLA, ASTIEL, LEVIAN); + addCondLevel(MIN_LEVEL, MAX_LEVEL, "33933-noLevel.htm"); + addCondRace(Race.ERTHEIA, "33933-no.htm"); + addCondCompletedQuest(Q10745_TheSecretIngredients.class.getSimpleName(), "restriction.htm"); + } + + @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 "33933-02.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + + case "33948-02.htm": + { + if (qs.isCond(1)) + { + qs.setCond(2); + player.teleToLocation(-80806, 149975, -3048); + 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 KARLA: + { + if (qs.isCreated()) + { + htmltext = "33933-01.htm"; + } + else if (qs.isStarted()) + { + htmltext = "33933-02.htm"; + } + break; + } + + case ASTIEL: + { + switch (qs.getCond()) + { + case 1: + { + htmltext = "33948-01.htm"; + break; + } + } + break; + } + + case LEVIAN: + { + switch (qs.getCond()) + { + case 2: + { + giveAdena(player, 43000, true); + addExpAndSp(player, 53422, 5); + if (player.isMageClass()) + { + giveItems(player, EMISSARY_SUPPORT_BOX_MAGE); + } + else + { + giveItems(player, EMISSARY_SUPPORT_BOX_WARRIOR); + } + showOnScreenMsg(player, NpcStringId.CHECK_YOUR_EQUIPMENT_IN_YOUR_INVENTORY, ExShowScreenMessage.TOP_CENTER, 4500); + qs.exitQuest(false, true); + htmltext = "30037-01.htm"; + break; + } + } + break; + } + } + return htmltext; + } +} diff --git a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java index 63b8b62822..6117495649 100644 --- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -209,6 +209,7 @@ import quests.Q10742_AFurryFriend.Q10742_AFurryFriend; import quests.Q10743_StrangeFungus.Q10743_StrangeFungus; import quests.Q10744_StrongerThanSteel.Q10744_StrongerThanSteel; import quests.Q10745_TheSecretIngredients.Q10745_TheSecretIngredients; +import quests.Q10746_SeeTheWorld.Q10746_SeeTheWorld; /** * @author NosBit @@ -406,7 +407,8 @@ public class QuestMasterHandler Q10742_AFurryFriend.class, Q10743_StrangeFungus.class, Q10744_StrongerThanSteel.class, - Q10745_TheSecretIngredients.class + Q10745_TheSecretIngredients.class, + Q10746_SeeTheWorld.class }; public static void main(String[] args)