Merged with released L2J-Unity files.
This commit is contained in:
		
							
								
								
									
										10
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-01.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-01.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| <html><body>Captain Mathias:<br> | ||||
| Traveler, I am working on a secret mission for King Astair of Elmore. However, the majority of our soldiers are currently fighting against Shilen, the Goddess of Destruction. I have been authorized to recruit willing travelers as mercenaries.<br> | ||||
| If you meet the following requirements, would you assist with my mission? If you agree, I'll tell you details about the mission.<br> | ||||
| The requirements for a mercenary are...<br> | ||||
| First, you must be fearless against all enemies.<br> | ||||
| Second, you must be willing to fight on behalf of the King.<br> | ||||
| Third, you must have the courage to face multiple enemies alone.<br> | ||||
| Well? Will you help me?<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10442_TheAnnihilatedPlains1 31340-02.htm">"I meet the requirements. Tell me more."</Button> | ||||
| </body></html> | ||||
							
								
								
									
										7
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-02.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-02.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| <html><body>Captain Mathias:<br> | ||||
| Good. You're far braver than most adventurers. Have you heard of the place called the <font color="LEVEL">Land of Chaos</font> near the Orc Village?<br> | ||||
| It used to be a peaceful plain, but on the orders of <font color="LEVEL">Devil Triol, one of the 4 most powerful devils</font>, <font color="LEVEL">Corrupt Shaman Krogel</font> started his movement. Krogel ended up settling in the Land of Chaos near the Orc Village.<br> | ||||
| As soon as he settled there, the baron from Hell lured in nearby creatures and built a mountain of dead bodies. In the process, the refugees who were fleeing the Orc Village fell victim to him as well.<br> | ||||
| As if the numerous dead bodies of such creatures and nearby monsters wasn't bad enough, Chimera monsters sewn together from dead bodies have started appearing in the Land of Chaos.<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10442_TheAnnihilatedPlains1 31340-03.htm">"That's terrible!"</Button> | ||||
| </body></html> | ||||
							
								
								
									
										8
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-03.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-03.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| <html><body>Captain Mathias:<br> | ||||
| That place... has already turned into a place of immortality...<br> | ||||
| Kakai, the Lord of Flame, asked King Astair of Elmore for reinforcements and King Astair ordered me to get rid of monsters in the <font color="LEVEL">Land of Chaos</font>.<br> | ||||
| I've already fought through the area with 5 to 6 soldiers. It's a cruel, surreal land to say the least.<br> | ||||
| The Land of Chaos morphed into a hellish place where Chimera monsters are born and have settled. We have to get rid of them, but there were too many for us to stop. If they spread to nearby areas, this will only get worse.<br> | ||||
| Have I scared you off? Or will you help us?<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10442_TheAnnihilatedPlains1 31340-04.htm">Of course I'll help</Button> | ||||
| </body></html> | ||||
							
								
								
									
										6
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-04.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-04.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| <html><body>Captain Mathias:<br> | ||||
| Your courage is commendable. I'll be counting on you.<br> | ||||
| I've already dispatched my own soldiers, Falk and Parajan, to Gainak and the Land of Chaos respectively.<br> | ||||
| Go meet <font color="LEVEL">Flame Patrol Vice Captain Tuska</font> in <font color="LEVEL">Gainak of the Schuttgart territory</font>. He will tell you how to get to the Land of Chaos and what to do in more detail.<br> | ||||
| Keep in mind that you can go to Gainak through the <font color="LEVEL">Gatekeeper in the Town of Rune</font>. | ||||
| </body></html> | ||||
							
								
								
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-05.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-05.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| <html><body>Captain Mathias:<br> | ||||
| You haven't left yet? Go to <font color="LEVEL">Gainak of the Schuttgart territory</font> and meet <font color="LEVEL">Flame Patrol Vice Captain Tuska</font>. He'll be waiting for you.<br> | ||||
| Keep in mind that you can go to Gainak through the <font color="LEVEL">Gatekeeper in the Town of Rune</font>. | ||||
| </body></html> | ||||
							
								
								
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-06.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/31340-06.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| <html><body>Captain Mathias:<br> | ||||
| Traveler, be careful in these lands. I am working on a secret mission for King Astair of Elmore. While we are desperately in need of assistance, I will not send the unready to their deaths. Should you hone your skills, you know where to find me.<br> | ||||
| (Only characters level 99 or above may undertake this quest.) | ||||
| </body></html> | ||||
							
								
								
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/33839-01.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/33839-01.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| <html><body>Flame Patrol Vice Captain Tuska:<br> | ||||
| What brings the likes of you to such a dangerous place? We keep our wits about us in the Flame Patrol. If you stick around, you're liable to be hurt. Go back, now!<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10442_TheAnnihilatedPlains1 33839-02.html">"Captain Mathias asked me to come here."</Button> | ||||
| </body></html> | ||||
							
								
								
									
										5
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/33839-02.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/33839-02.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| <html><body>Flame Patrol Vice Captain Tuska:<br> | ||||
| Mathias? Ah, yes. Sorry about the mixup.<br> | ||||
| I'm impressed by your moxie. Coming here as a mercenary to help the Land of Chaos. But this place is more terrible than you think. Brace yourself.<br> | ||||
| Anyway, thanks for coming all the way here. When we speak again, I will tell you <font color="LEVEL">how to get to the Land of Chaos</font>. | ||||
| </body></html> | ||||
							
								
								
									
										121
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/Q10442_TheAnnihilatedPlains1.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										121
									
								
								trunk/dist/game/data/scripts/quests/Q10442_TheAnnihilatedPlains1/Q10442_TheAnnihilatedPlains1.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,121 @@ | ||||
| /* | ||||
|  * 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.Q10442_TheAnnihilatedPlains1; | ||||
|  | ||||
| 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; | ||||
|  | ||||
| /** | ||||
|  * The Annihilated Plains - 1 (10442) | ||||
|  * @author St3eT | ||||
|  */ | ||||
| public final class Q10442_TheAnnihilatedPlains1 extends Quest | ||||
| { | ||||
| 	// NPCs | ||||
| 	private static final int MATHIAS = 31340; | ||||
| 	private static final int TUSKA = 33839; | ||||
| 	// Misc | ||||
| 	private static final int MIN_LEVEL = 99; | ||||
| 	 | ||||
| 	public Q10442_TheAnnihilatedPlains1() | ||||
| 	{ | ||||
| 		super(10442); | ||||
| 		addStartNpc(MATHIAS); | ||||
| 		addTalkId(MATHIAS, TUSKA); | ||||
| 		addCondMinLevel(MIN_LEVEL, "31340-06.htm"); | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) | ||||
| 	{ | ||||
| 		final QuestState st = getQuestState(player, false); | ||||
| 		if (st == null) | ||||
| 		{ | ||||
| 			return null; | ||||
| 		} | ||||
| 		 | ||||
| 		String htmltext = null; | ||||
| 		switch (event) | ||||
| 		{ | ||||
| 			case "31340-02.htm": | ||||
| 			case "31340-03.htm": | ||||
| 			{ | ||||
| 				htmltext = event; | ||||
| 				break; | ||||
| 			} | ||||
| 			case "31340-04.htm": | ||||
| 			{ | ||||
| 				st.startQuest(); | ||||
| 				htmltext = event; | ||||
| 				break; | ||||
| 			} | ||||
| 			case "33839-02.html": | ||||
| 			{ | ||||
| 				if (st.isCond(1)) | ||||
| 				{ | ||||
| 					if (player.getLevel() >= MIN_LEVEL) | ||||
| 					{ | ||||
| 						addExpAndSp(player, 15_436_575, 3_704); | ||||
| 					} | ||||
| 					st.exitQuest(false, true); | ||||
| 					htmltext = event; | ||||
| 				} | ||||
| 				break; | ||||
| 			} | ||||
| 		} | ||||
| 		return htmltext; | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public String onTalk(L2Npc npc, L2PcInstance player) | ||||
| 	{ | ||||
| 		String htmltext = getNoQuestMsg(player); | ||||
| 		final QuestState st = getQuestState(player, true); | ||||
| 		 | ||||
| 		switch (st.getState()) | ||||
| 		{ | ||||
| 			case State.CREATED: | ||||
| 			{ | ||||
| 				if (npc.getId() == MATHIAS) | ||||
| 				{ | ||||
| 					htmltext = "31340-01.htm"; | ||||
| 				} | ||||
| 				break; | ||||
| 			} | ||||
| 			case State.STARTED: | ||||
| 			{ | ||||
| 				if (st.isCond(1)) | ||||
| 				{ | ||||
| 					htmltext = npc.getId() == MATHIAS ? "31340-05.html" : "33839-01.html"; | ||||
| 				} | ||||
| 				break; | ||||
| 			} | ||||
| 			case State.COMPLETED: | ||||
| 			{ | ||||
| 				if (npc.getId() == MATHIAS) | ||||
| 				{ | ||||
| 					htmltext = getAlreadyCompletedMsg(player); | ||||
| 				} | ||||
| 				break; | ||||
| 			} | ||||
| 		} | ||||
| 		return htmltext; | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 mobiusdev
					mobiusdev