Merged with released L2J-Unity files.
This commit is contained in:
		| @@ -1,4 +0,0 @@ | ||||
| <html><body>Kartia Researcher:<br> | ||||
| Don't waste my time. Strong though you may be, I need someone of a specific caliber for this task.<br> | ||||
| (This quest can be undertaken by characters who are Lv. 90 - 94.) | ||||
| </body></html> | ||||
| @@ -1,2 +0,0 @@ | ||||
| <html><body>You cannot receive quest rewards as your character's level is lower than the minimum required for the quest. | ||||
| </body></html> | ||||
| @@ -1,5 +0,0 @@ | ||||
| <html><body>Kartia Researcher:<br> | ||||
| What a disaster! Shilen has created dimensional fissures everywhere!<br> | ||||
| Ever since the Kartia Labyrinth appeared monsters from the dark spirit realm have crossed over to our material plane. If we can't find a way to stop them, I'm afraid we're finished.<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00498_IncarnationOfJealousyPellineSolo 33647-02.htm">"I assume you have a plan."</Button> | ||||
| </body></html> | ||||
| @@ -1,5 +0,0 @@ | ||||
| <html><body>Kartia Researcher:<br> | ||||
| The powerful demons Zellaka, Pelline, and Kalios command Kartia's Labyrinth!<br> | ||||
| What's worse, they're summoning minions to do their bidding. We can't allow them to bring those friends into the Material Realm. Kill them before we're overrun!<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00498_IncarnationOfJealousyPellineSolo 33647-03.htm">"I'll have their heads!"</Button> | ||||
| </body></html> | ||||
| @@ -1,4 +0,0 @@ | ||||
| <html><body>Kartia Researcher:<br> | ||||
| Really? That's great!<br> | ||||
| Based on my extensive knowledge of the labyrinth, it should be enough to get rid of the minions and then kill one of more powerful demons--<font color="LEVEL">Pelline</font>. | ||||
| </body></html> | ||||
| @@ -1,4 +0,0 @@ | ||||
| <html><body>Kartia Researcher:<br> | ||||
| I'll leave it to you then. Come back quickly!<br> | ||||
| Remember, clear out the minions and then kill <font color="LEVEL">Pelline</font>. Easy, right? | ||||
| </body></html> | ||||
| @@ -1,4 +0,0 @@ | ||||
| <html><body>Kartia Researcher:<br> | ||||
| You're back! Well? Did you send the demons back to the darkness where they belong?<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00498_IncarnationOfJealousyPellineSolo 33647-06.html">"The mission is complete."</Button> | ||||
| </body></html> | ||||
| @@ -1,3 +0,0 @@ | ||||
| <html><body>Kartia Researcher:<br> | ||||
| Your brevity is disturbing, though maybe the details would have been more so. At least the demons won't escape from the labyrinth. | ||||
| </body></html> | ||||
| @@ -1,4 +0,0 @@ | ||||
| <html><body>Kartia Researcher:<br> | ||||
| It appears that we are safe for now. Could you come back to check again tomorrow?<br> | ||||
| (This quest can only be undertaken once a day. It resets everyday at 06:30.) | ||||
| </body></html> | ||||
| @@ -1,132 +0,0 @@ | ||||
| /* | ||||
|  * 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.Q00498_IncarnationOfJealousyPellineSolo; | ||||
|  | ||||
| import com.l2jmobius.gameserver.enums.QuestType; | ||||
| 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; | ||||
|  | ||||
| /** | ||||
|  * Incarnation of Jealousy Pelline (Solo) (498) | ||||
|  * @author Mobius | ||||
|  */ | ||||
| public class Q00498_IncarnationOfJealousyPellineSolo extends Quest | ||||
| { | ||||
| 	// NPC | ||||
| 	private static final int KARTIA_RESEARCHER = 33647; | ||||
| 	// Item | ||||
| 	private static final int DIMENSION_TRAVELERS_RED_BOX = 34931; | ||||
| 	// Misc | ||||
| 	private static final int MIN_LEVEL = 90; | ||||
| 	private static final int MAX_LEVEL = 94; | ||||
| 	 | ||||
| 	public Q00498_IncarnationOfJealousyPellineSolo() | ||||
| 	{ | ||||
| 		super(498, Q00498_IncarnationOfJealousyPellineSolo.class.getSimpleName(), "Incarnation of Jealousy Pelline (Solo)"); | ||||
| 		addStartNpc(KARTIA_RESEARCHER); | ||||
| 		addTalkId(KARTIA_RESEARCHER); | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) | ||||
| 	{ | ||||
| 		final QuestState qs = getQuestState(player, false); | ||||
| 		if (qs == null) | ||||
| 		{ | ||||
| 			return null; | ||||
| 		} | ||||
| 		 | ||||
| 		final String htmltext = event; | ||||
| 		if (event.equals("33647-03.htm")) | ||||
| 		{ | ||||
| 			qs.startQuest(); | ||||
| 		} | ||||
| 		else if (event.equals("33647-06.html") && qs.isCond(2)) | ||||
| 		{ | ||||
| 			rewardItems(player, DIMENSION_TRAVELERS_RED_BOX, 1); | ||||
| 			qs.exitQuest(QuestType.DAILY, true); | ||||
| 		} | ||||
| 		return htmltext; | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public String onTalk(L2Npc npc, L2PcInstance player) | ||||
| 	{ | ||||
| 		String htmltext = getNoQuestMsg(player); | ||||
| 		final QuestState qs = getQuestState(player, true); | ||||
| 		if (qs == null) | ||||
| 		{ | ||||
| 			return htmltext; | ||||
| 		} | ||||
| 		 | ||||
| 		switch (qs.getState()) | ||||
| 		{ | ||||
| 			case State.CREATED: | ||||
| 			{ | ||||
| 				if ((player.getLevel() < MIN_LEVEL) || (player.getLevel() > MAX_LEVEL)) | ||||
| 				{ | ||||
| 					htmltext = "33647-00.htm"; | ||||
| 				} | ||||
| 				else | ||||
| 				{ | ||||
| 					htmltext = "33647-01.htm"; | ||||
| 				} | ||||
| 				break; | ||||
| 			} | ||||
| 			case State.STARTED: | ||||
| 			{ | ||||
| 				if (qs.isCond(1)) | ||||
| 				{ | ||||
| 					htmltext = "33647-04.html"; | ||||
| 				} | ||||
| 				else if (qs.isCond(2)) | ||||
| 				{ | ||||
| 					if ((player.getLevel() < MIN_LEVEL) || (player.getLevel() > MAX_LEVEL)) | ||||
| 					{ | ||||
| 						htmltext = "33647-00a.htm"; | ||||
| 					} | ||||
| 					else | ||||
| 					{ | ||||
| 						htmltext = "33647-05.html"; | ||||
| 					} | ||||
| 				} | ||||
| 				break; | ||||
| 			} | ||||
| 			case State.COMPLETED: | ||||
| 			{ | ||||
| 				if ((player.getLevel() < MIN_LEVEL) || (player.getLevel() > MAX_LEVEL)) | ||||
| 				{ | ||||
| 					htmltext = "33647-00.htm"; | ||||
| 				} | ||||
| 				else if (!qs.isNowAvailable()) | ||||
| 				{ | ||||
| 					htmltext = "33647-07.html"; | ||||
| 				} | ||||
| 				else | ||||
| 				{ | ||||
| 					qs.setState(State.CREATED); | ||||
| 					htmltext = "33647-01.htm"; | ||||
| 				} | ||||
| 				break; | ||||
| 			} | ||||
| 		} | ||||
| 		return htmltext; | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 mobiusdev
					mobiusdev