Quest See the World (10746).
Contributed by Neanrakyr.
This commit is contained in:
		
							
								
								
									
										5
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/30037-01.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/30037-01.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
<html><body>High Priest Levian:<br>
 | 
			
		||||
It's you. Ertheia, the people of wind.<br>
 | 
			
		||||
Welcome to Gludin Village. I hear from the delegations about Ertheia.<br>
 | 
			
		||||
I get this feeling that we will speak often.
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										7
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-01.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-01.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
<html><body>Karla:<br>
 | 
			
		||||
You're looking pretty good, now that you've grown a bit.<br>
 | 
			
		||||
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.<br>
 | 
			
		||||
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.<br>
 | 
			
		||||
How about it? Will you set off for the continet?<br>
 | 
			
		||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10746_SeeTheWorld 33933-02.htm">Yes.</button>
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										5
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-02.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-02.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
<html><body>Karla:<br>
 | 
			
		||||
Go to <font color=LEVEL>Einhased Temple</font> in <font color=LEVEL>Gludin Village and see High Priest Levian.</font><br>
 | 
			
		||||
Do not worry about getting lost, for the Queen will shine a path ahead of you. 
 | 
			
		||||
<font color=LEVEL>Gatekeeper Astiel</font> will help you get to <font color=LEVEL>Gludin Village.</font>
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										3
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-no.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-no.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
<html><body>Karla:<br>
 | 
			
		||||
This quest is only for Ertheia class.
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										3
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-noLevel.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-noLevel.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
<html><body>Karla:<br>
 | 
			
		||||
Your level is wrong for this quest.
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										3
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-restriction.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33933-restriction.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
<html><body>Karla:<br>
 | 
			
		||||
(Quest only available to Ertheia characters Lv. 19 or Lv. 25 who have completed the quest "The Secret Ingredients.")
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										9
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33948-01.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33948-01.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
<html><body>Gatekeeper Astiel:<br>
 | 
			
		||||
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:<br>
 | 
			
		||||
<font color=LEVEL>Gludin Village</font><br1>
 | 
			
		||||
<font color=LEVEL>Town of Gludio</font><br1>
 | 
			
		||||
<font color=LEVEL>Talking Island Village</font><br1>
 | 
			
		||||
<font color=LEVEL>Whispering Woods</font><br>
 | 
			
		||||
Where would you like to go?<br>
 | 
			
		||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10746_SeeTheWorld 33948-02.htm">Send me to Gludin Village.</button>
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33948-02.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/33948-02.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
<html><body>Gatekeeper Astiel:<br>
 | 
			
		||||
Remember, safety first!<br>
 | 
			
		||||
Always be mindful of your health.
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										159
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/Q10746_SeeTheWorld.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										159
									
								
								trunk/dist/game/data/scripts/quests/Q10746_SeeTheWorld/Q10746_SeeTheWorld.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -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 <http://www.gnu.org/licenses/>.
 | 
			
		||||
 */
 | 
			
		||||
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;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user