Addition of Joachim AI.
Contributed by NightBR.
This commit is contained in:
		
							
								
								
									
										5
									
								
								L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-01.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-01.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
<html><body>Herphah:<br>
 | 
			
		||||
A dual class lets you select another class besides your main class and to raise them to the same level.<br>
 | 
			
		||||
There are restrictions to what types of classes you can select, through. Do you want to see if you meet the conditions?.<br>
 | 
			
		||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Joachim 34513-02.html">"Yes, on wuth a dual class."</Button>
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										4
									
								
								L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-02.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-02.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
<html><body>Herphah:<br>
 | 
			
		||||
You do not meet the conditions to add a dual class. Come back when you´re ready, or ask for something else.<br>
 | 
			
		||||
(you must complete the following quest to add a dual class: <font color="LEVEL">Reawekened Fate</font>.)<br>
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										6
									
								
								L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
<html><body>Dual Class Master Joachim:<br>
 | 
			
		||||
Hello, I´m helping Herphah help adventures. My name is Joachim.<br>
 | 
			
		||||
Do you want to do something with dual classes? I can help you to a certain extend, but if you want to request something I can´t do, please talk to <font color="LEVEL">Dual Class Master Rama</font> in <font color="LEVEL">Talking Island Village</font>.<br>
 | 
			
		||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Joachim 34513-01.html"><font color="LEVEL">"On with a dual class! (all races)"</font></button>
 | 
			
		||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
 | 
			
		||||
</body></html>
 | 
			
		||||
							
								
								
									
										69
									
								
								L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/Joachim.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/Joachim.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,69 @@
 | 
			
		||||
/*
 | 
			
		||||
 * 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 ai.areas.Aden.Joachim;
 | 
			
		||||
 | 
			
		||||
import org.l2jmobius.gameserver.model.actor.Npc;
 | 
			
		||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
 | 
			
		||||
 | 
			
		||||
import ai.AbstractNpcAI;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Aden Faction Npc AI
 | 
			
		||||
 * @author NightBR
 | 
			
		||||
 * @date 2019-11-25
 | 
			
		||||
 */
 | 
			
		||||
public class Joachim extends AbstractNpcAI
 | 
			
		||||
{
 | 
			
		||||
	// NPC
 | 
			
		||||
	private static final int Joachim = 34513;
 | 
			
		||||
	
 | 
			
		||||
	private Joachim()
 | 
			
		||||
	{
 | 
			
		||||
		addStartNpc(Joachim);
 | 
			
		||||
		addTalkId(Joachim);
 | 
			
		||||
		addFirstTalkId(Joachim);
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	@Override
 | 
			
		||||
	public String onAdvEvent(String event, Npc npc, PlayerInstance player)
 | 
			
		||||
	{
 | 
			
		||||
		switch (event)
 | 
			
		||||
		{
 | 
			
		||||
			case "34513-01.html":
 | 
			
		||||
			case "34513-02.html":
 | 
			
		||||
			case "34513-03.html":
 | 
			
		||||
			{
 | 
			
		||||
				return event;
 | 
			
		||||
			}
 | 
			
		||||
			default:
 | 
			
		||||
			{
 | 
			
		||||
				return null;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	@Override
 | 
			
		||||
	public String onFirstTalk(Npc npc, PlayerInstance player)
 | 
			
		||||
	{
 | 
			
		||||
		return "34513.html";
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public static void main(String[] args)
 | 
			
		||||
	{
 | 
			
		||||
		new Joachim();
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user