Quellcode durchsuchen

BETA: LoA improvements and fixes.

Adry_85 vor 12 Jahren
Ursprung
Commit
5231180bde

+ 23 - 1
L2J_DataPack_BETA/dist/game/data/Routes.xml

@@ -173,16 +173,19 @@
 	</route>
 	<!-- Tracker Howl -->
 	<route id="14" repeat="true" repeatStyle="back">
-		<point string="" X="86101" Y="107610" Z="-3192" delay="0" run="true" />
+		<target id="22859" spawnX="86101" spawnY="107610" spawnZ="-3187" />
+		<point string="" X="85322" Y="108058" Z="-3253" delay="0" run="true" />
 		<point string="" X="81900" Y="109310" Z="-3128" delay="0" run="true" />
 		<point string="" X="80917" Y="109419" Z="-3056" delay="0" run="true" />
 	</route>
 	<route id="15" repeat="true" repeatStyle="back">
+		<target id="22859" spawnX="87129" spawnY="112224" spawnZ="-3264" />
 		<point string="" X="86093" Y="112083" Z="-3107" delay="0" run="true" />
 		<point string="" X="87807" Y="112301" Z="-3304" delay="0" run="true" />
 		<point string="" X="89399" Y="112616" Z="-3115" delay="0" run="true" />
 	</route>
 	<route id="16" repeat="true" repeatStyle="back">
+		<target id="22859" spawnX="85752" spawnY="119612" spawnZ="-2992" />
 		<point string="" X="88157" Y="120566" Z="-3056" delay="0" run="true" />
 		<point string="" X="87409" Y="120446" Z="-3056" delay="0" run="true" />
 		<point string="" X="85980" Y="119904" Z="-2992" delay="0" run="true" />
@@ -192,10 +195,12 @@
 	</route>
 	<!-- Mesmer Drake -->
 	<route id="17" repeat="true" repeatStyle="back">
+		<target id="22820" spawnX="80733" spawnY="109807" spawnZ="-3056" />
 		<point string="" X="80896" Y="109746" Z="-3056" delay="0" run="true" />
 		<point string="" X="86646" Y="108280" Z="-3136" delay="0" run="true" />
 	</route>
 	<route id="18" repeat="true" repeatStyle="back">
+		<target id="22820" spawnX="86980" spawnY="120934" spawnZ="-3040" />
 		<point string="" X="88293" Y="119300" Z="-3056" delay="0" run="true" />
 		<point string="" X="88038" Y="120205" Z="-3056" delay="0" run="true" />
 		<point string="" X="86980" Y="120910" Z="-3040" delay="0" run="true" />
@@ -203,29 +208,34 @@
 		<point string="" X="83436" Y="119239" Z="-2984" delay="0" run="true" />
 	</route>
 	<route id="19" repeat="true" repeatStyle="back">
+		<target id="22820" spawnX="83346" spawnY="112987" spawnZ="-3048" />
 		<point string="" X="85127" Y="111670" Z="-3168" delay="0" run="true" />
 		<point string="" X="83587" Y="112855" Z="-3056" delay="0" run="true" />
 		<point string="" X="82065" Y="113903" Z="-3155" delay="0" run="true" />
 	</route>
 	<!-- Dust Dragon Tracker -->
 	<route id="20" repeat="true" repeatStyle="back">
+		<target id="22834" spawnX="89602" spawnY="108262" spawnZ="-3032" />
 		<point string="" X="90646" Y="107968" Z="-3056" delay="0" run="true" />
 		<point string="" X="89632" Y="108234" Z="-3032" delay="0" run="true" />
 		<point string="" X="88634" Y="107866" Z="-3056" delay="0" run="true" />
 		<point string="" X="88139" Y="106812" Z="-3160" delay="0" run="true" />
 	</route>
 	<route id="21" repeat="true" repeatStyle="back">
+		<target id="22834" spawnX="94790" spawnY="107669" spawnZ="-3050" />
 		<point string="" X="93889" Y="107662" Z="-3030" delay="0" run="true" />
 		<point string="" X="91776" Y="107693" Z="-3061" delay="0" run="true" />
 		<point string="" X="90142" Y="106656" Z="-3190" delay="0" run="true" />
 	</route>
 	<route id="22" repeat="true" repeatStyle="back">
+		<target id="22834" spawnX="109329" spawnY="115546" spawnZ="-3112" />
 		<point string="" X="108493" Y="117187" Z="-3056" delay="0" run="true" />
 		<point string="" X="109107" Y="116739" Z="-3056" delay="0" run="true" />
 		<point string="" X="109580" Y="113966" Z="-3040" delay="0" run="true" />
 		<point string="" X="109514" Y="113270" Z="-3064" delay="0" run="true" />
 	</route>
 	<route id="23" repeat="true" repeatStyle="back">
+		<target id="22834" spawnX="111281" spawnY="110266" spawnZ="-3043" />
 		<point string="" X="111962" Y="111711" Z="-2760" delay="0" run="true" />
 		<point string="" X="111828" Y="112545" Z="-2776" delay="0" run="true" />
 		<point string="" X="112962" Y="113160" Z="-2839" delay="0" run="true" />
@@ -235,6 +245,7 @@
 		<point string="" X="114352" Y="110043" Z="-3008" delay="0" run="true" />
 	</route>
 	<route id="24" repeat="true" repeatStyle="back">
+		<target id="22834" spawnX="119960" spawnY="109355" spawnZ="-2962" />
 		<point string="" X="120152" Y="109087" Z="-2936" delay="0" run="true" />
 		<point string="" X="118556" Y="109787" Z="-2952" delay="0" run="true" />
 		<point string="" X="116791" Y="110044" Z="-3008" delay="0" run="true" />
@@ -243,6 +254,7 @@
 	</route>
 	<!-- Dragon Tracker of the Valley -->
 	<route id="25" repeat="true" repeatStyle="back">
+		<target id="22831" spawnX="113097" spawnY="110311" spawnZ="-3000" />
 		<point string="" X="110591" Y="111250" Z="-3144" delay="0" run="true" />
 		<point string="" X="111760" Y="110583" Z="-3032" delay="0" run="true" />
 		<point string="" X="113311" Y="110284" Z="-3000" delay="0" run="true" />
@@ -251,6 +263,7 @@
 	</route>
 	<!-- Dragon Scout of the Valley -->
 	<route id="26" repeat="true" repeatStyle="back">
+		<target id="22832" spawnX="122135" spawnY="108852" spawnZ="-2961" />
 		<point string="" X="122159" Y="108862" Z="-2952" delay="0" run="true" />
 		<point string="" X="121475" Y="109471" Z="-2912" delay="0" run="true" />
 		<point string="" X="120869" Y="109733" Z="-3000" delay="0" run="true" />
@@ -261,6 +274,7 @@
 		<point string="" X="116854" Y="110209" Z="-2992" delay="0" run="true" />
 	</route>
 	<route id="27" repeat="true" repeatStyle="back">
+		<target id="22832" spawnX="113482" spawnY="115162" spawnZ="-3200" />
 		<point string="" X="111754" Y="117413" Z="-3008" delay="0" run="true" />
 		<point string="" X="111850" Y="116609" Z="-3024" delay="0" run="true" />
 		<point string="" X="112105" Y="115698" Z="-3184" delay="0" run="true" />
@@ -268,17 +282,20 @@
 	</route>
 	<!-- Sand Drake Tracker -->
 	<route id="28" repeat="true" repeatStyle="back">
+		<target id="22833" spawnX="123997" spawnY="108488" spawnZ="-2986" />
 		<point string="" X="124404" Y="109398" Z="-3112" delay="0" run="true" />
 		<point string="" X="122726" Y="108027" Z="-3000" delay="0" run="true" />
 		<point string="" X="120859" Y="108421" Z="-2960" delay="0" run="true" />
 	</route>
 	<route id="29" repeat="true" repeatStyle="back">
+		<target id="22833" spawnX="114890" spawnY="115234" spawnZ="-3217" />
 		<point string="" X="115708" Y="115130" Z="-3112" delay="0" run="true" />
 		<point string="" X="113822" Y="115981" Z="-3224" delay="0" run="true" />
 		<point string="" X="112598" Y="118103" Z="-3064" delay="0" run="true" />
 	</route>
 	<!-- Knoriks -->
 	<route id="30" repeat="true" repeatStyle="back">
+		<target id="22857" spawnX="140633" spawnY="114472" spawnZ="-3725" />
 		<point string="" X="140639" Y="114460" Z="-3729" delay="0" run="true" />
 		<point string="" X="142095" Y="114336" Z="-3729" delay="0" run="true" />
 		<point string="" X="142664" Y="113707" Z="-3720" delay="0" run="true" />
@@ -288,6 +305,7 @@
 		<point string="" X="148227" Y="117724" Z="-3712" delay="0" run="true" />
 	</route>
 	<route id="31" repeat="true" repeatStyle="back">
+		<target id="22857" spawnX="143007" spawnY="108951" spawnZ="-3948" />
 		<point string="" X="143007" Y="108951" Z="-3953" delay="0" run="true" />
 		<point string="" X="141716" Y="109380" Z="-3953" delay="0" run="true" />
 		<point string="" X="140653" Y="112072" Z="-3720" delay="0" run="true" />
@@ -298,12 +316,14 @@
 		<point string="" X="140890" Y="109445" Z="-3953" delay="0" run="true" />
 	</route>
 	<route id="32" repeat="true" repeatStyle="back">
+		<target id="22857" spawnX="147896" spawnY="110033" spawnZ="-3941" />
 		<point string="" X="147895" Y="110043" Z="-3946" delay="0" run="true" />
 		<point string="" X="145685" Y="109132" Z="-3953" delay="0" run="true" />
 		<point string="" X="144924" Y="108192" Z="-3928" delay="0" run="true" />
 		<point string="" X="144558" Y="107723" Z="-3953" delay="0" run="true" />
 	</route>
 	<route id="33" repeat="true" repeatStyle="back">
+		<target id="22857" spawnX="142480" spawnY="119635" spawnZ="-3916" />
 		<point string="" X="142480" Y="119635" Z="-3921" delay="0" run="true" />
 		<point string="" X="142960" Y="117501" Z="-3921" delay="0" run="true" />
 		<point string="" X="142026" Y="117331" Z="-3912" delay="0" run="true" />
@@ -318,6 +338,7 @@
 		<point string="" X="145785" Y="120344" Z="-3912" delay="0" run="true" />
 	</route>
 	<route id="34" repeat="true" repeatStyle="back">
+		<target id="22857" spawnX="152585" spawnY="110480" spawnZ="-5524" />
 		<point string="" X="152585" Y="110480" Z="-5529" delay="0" run="true" />
 		<point string="" X="153524" Y="110822" Z="-5529" delay="0" run="true" />
 		<point string="" X="153325" Y="111607" Z="-5529" delay="0" run="true" />
@@ -336,6 +357,7 @@
 		<point string="" X="146442" Y="109417" Z="-3432" delay="0" run="true" />
 	</route>
 	<route id="35" repeat="true" repeatStyle="cycle">
+		<target id="22857" spawnX="146901" spawnY="116472" spawnZ="-3698" />
 		<point string="" X="146901" Y="116472" Z="-3703" delay="0" run="true" />
 		<point string="" X="148652" Y="115744" Z="-3721" delay="0" run="true" />
 		<point string="" X="149213" Y="114571" Z="-3721" delay="0" run="true" />

+ 0 - 6
L2J_DataPack_BETA/dist/game/data/scripts.cfg

@@ -93,22 +93,17 @@ ai/individual/CatsEyeBandit.java
 ai/individual/Core.java
 ai/individual/DarkWaterDragon.java
 ai/individual/DemonPrince.java
-ai/individual/DragonScout.java
-ai/individual/DragonTracker.java
 ai/individual/DrakeWalkers.java
 ai/individual/DrChaos.java
-ai/individual/DustDragon.java
 ai/individual/Epidos.java
 ai/individual/FleeNpc.java
 ai/individual/FrightenedRagnaOrc.java
 ai/individual/GeneralDilios.java
 ai/individual/Gordon.java
 ai/individual/HellboundCore.java
-ai/individual/Howl.java
 ai/individual/Keltas.java
 ai/individual/Knoriks.java
 ai/individual/Lindvior.java
-ai/individual/MesmerDrake.java
 ai/individual/NaiaLock.java
 ai/individual/NecromancerValley.java
 ai/individual/Orfen.java
@@ -116,7 +111,6 @@ ai/individual/OutpostCaptain.java
 ai/individual/QueenAnt.java
 ai/individual/QueenShyeed.java
 ai/individual/Ranku.java
-ai/individual/SandDrake.java
 ai/individual/SinWardens.java
 ai/individual/Typhoon.java
 ai/individual/Valakas.java

+ 0 - 73
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/DragonScout.java

@@ -1,73 +0,0 @@
-/*
- * Copyright (C) 2004-2013 L2J DataPack
- * 
- * This file is part of L2J 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 ai.individual;
-
-import javolution.util.FastSet;
-import ai.npc.AbstractNpcAI;
-
-import com.l2jserver.gameserver.datatables.SpawnTable;
-import com.l2jserver.gameserver.instancemanager.WalkingManager;
-import com.l2jserver.gameserver.model.L2Spawn;
-import com.l2jserver.gameserver.model.actor.L2Npc;
-
-/**
- * Dragon Scout of the Valley AI.
- * @author Adry_85
- */
-public class DragonScout extends AbstractNpcAI
-{
-	private static final int DRAGON_SCOUT_ID = 22832;
-	
-	private static final int[] ROUTE_ID =
-	{
-		26,
-		27
-	};
-	
-	private DragonScout(String name, String descr)
-	{
-		super(name, descr);
-		addSpawnId(DRAGON_SCOUT_ID);
-		
-		FastSet<L2Spawn> spawns = SpawnTable.getInstance().getSpawnTable();
-		for (L2Spawn spawn : spawns)
-		{
-			if (spawn.getNpcid() == DRAGON_SCOUT_ID)
-			{
-				onSpawn(spawn.getLastSpawn());
-			}
-		}
-	}
-	
-	@Override
-	public String onSpawn(L2Npc npc)
-	{
-		for (int route : ROUTE_ID)
-		{
-			WalkingManager.getInstance().startMoving(npc, route);
-		}
-		
-		return super.onSpawn(npc);
-	}
-	
-	public static void main(String[] args)
-	{
-		new DragonScout(DragonScout.class.getSimpleName(), "ai");
-	}
-}

+ 0 - 66
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/DragonTracker.java

@@ -1,66 +0,0 @@
-/*
- * Copyright (C) 2004-2013 L2J DataPack
- * 
- * This file is part of L2J 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 ai.individual;
-
-import javolution.util.FastSet;
-import ai.npc.AbstractNpcAI;
-
-import com.l2jserver.gameserver.datatables.SpawnTable;
-import com.l2jserver.gameserver.instancemanager.WalkingManager;
-import com.l2jserver.gameserver.model.L2Spawn;
-import com.l2jserver.gameserver.model.actor.L2Npc;
-
-/**
- * Dragon Tracker of the Valley AI.
- * @author Adry_85
- */
-public class DragonTracker extends AbstractNpcAI
-{
-	private static final int DRAGON_TRACKER_ID = 22831;
-	
-	private static final int ROUTE_ID = 25;
-	
-	private DragonTracker(String name, String descr)
-	{
-		super(name, descr);
-		addSpawnId(DRAGON_TRACKER_ID);
-		
-		FastSet<L2Spawn> spawns = SpawnTable.getInstance().getSpawnTable();
-		for (L2Spawn spawn : spawns)
-		{
-			if (spawn.getNpcid() == DRAGON_TRACKER_ID)
-			{
-				onSpawn(spawn.getLastSpawn());
-			}
-		}
-	}
-	
-	@Override
-	public String onSpawn(L2Npc npc)
-	{
-		WalkingManager.getInstance().startMoving(npc, ROUTE_ID);
-		
-		return super.onSpawn(npc);
-	}
-	
-	public static void main(String[] args)
-	{
-		new DragonTracker(DragonTracker.class.getSimpleName(), "ai");
-	}
-}

+ 0 - 76
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/DustDragon.java

@@ -1,76 +0,0 @@
-/*
- * Copyright (C) 2004-2013 L2J DataPack
- * 
- * This file is part of L2J 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 ai.individual;
-
-import javolution.util.FastSet;
-import ai.npc.AbstractNpcAI;
-
-import com.l2jserver.gameserver.datatables.SpawnTable;
-import com.l2jserver.gameserver.instancemanager.WalkingManager;
-import com.l2jserver.gameserver.model.L2Spawn;
-import com.l2jserver.gameserver.model.actor.L2Npc;
-
-/**
- * Dust Dragon Tracker AI.
- * @author Adry_85
- */
-public class DustDragon extends AbstractNpcAI
-{
-	private static final int DUST_DRAGON_ID = 22834;
-	
-	private static final int[] ROUTE_ID =
-	{
-		20,
-		21,
-		22,
-		23,
-		24
-	};
-	
-	private DustDragon(String name, String descr)
-	{
-		super(name, descr);
-		addSpawnId(DUST_DRAGON_ID);
-		
-		FastSet<L2Spawn> spawns = SpawnTable.getInstance().getSpawnTable();
-		for (L2Spawn spawn : spawns)
-		{
-			if (spawn.getNpcid() == DUST_DRAGON_ID)
-			{
-				onSpawn(spawn.getLastSpawn());
-			}
-		}
-	}
-	
-	@Override
-	public String onSpawn(L2Npc npc)
-	{
-		for (int route : ROUTE_ID)
-		{
-			WalkingManager.getInstance().startMoving(npc, route);
-		}
-		
-		return super.onSpawn(npc);
-	}
-	
-	public static void main(String[] args)
-	{
-		new DustDragon(DustDragon.class.getSimpleName(), "ai");
-	}
-}

+ 0 - 74
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/Howl.java

@@ -1,74 +0,0 @@
-/*
- * Copyright (C) 2004-2013 L2J DataPack
- * 
- * This file is part of L2J 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 ai.individual;
-
-import javolution.util.FastSet;
-import ai.npc.AbstractNpcAI;
-
-import com.l2jserver.gameserver.datatables.SpawnTable;
-import com.l2jserver.gameserver.instancemanager.WalkingManager;
-import com.l2jserver.gameserver.model.L2Spawn;
-import com.l2jserver.gameserver.model.actor.L2Npc;
-
-/**
- * Tracker Howl AI.
- * @author Adry_85
- */
-public class Howl extends AbstractNpcAI
-{
-	private static final int HOWL_ID = 22859;
-	
-	private static final int[] ROUTE_ID =
-	{
-		14,
-		15,
-		16
-	};
-	
-	private Howl(String name, String descr)
-	{
-		super(name, descr);
-		addSpawnId(HOWL_ID);
-		
-		FastSet<L2Spawn> spawns = SpawnTable.getInstance().getSpawnTable();
-		for (L2Spawn spawn : spawns)
-		{
-			if (spawn.getNpcid() == HOWL_ID)
-			{
-				onSpawn(spawn.getLastSpawn());
-			}
-		}
-	}
-	
-	@Override
-	public String onSpawn(L2Npc npc)
-	{
-		for (int route : ROUTE_ID)
-		{
-			WalkingManager.getInstance().startMoving(npc, route);
-		}
-		
-		return super.onSpawn(npc);
-	}
-	
-	public static void main(String[] args)
-	{
-		new Howl(Howl.class.getSimpleName(), "ai");
-	}
-}

+ 0 - 35
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/Knoriks.java

@@ -18,12 +18,8 @@
  */
 package ai.individual;
 
-import javolution.util.FastSet;
 import ai.npc.AbstractNpcAI;
 
-import com.l2jserver.gameserver.datatables.SpawnTable;
-import com.l2jserver.gameserver.instancemanager.WalkingManager;
-import com.l2jserver.gameserver.model.L2Spawn;
 import com.l2jserver.gameserver.model.actor.L2Npc;
 import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
 import com.l2jserver.gameserver.network.NpcStringId;
@@ -38,41 +34,11 @@ import com.l2jserver.util.Rnd;
 public class Knoriks extends AbstractNpcAI
 {
 	private static final int KNORIKS_ID = 22857;
-	private static final int[] ROUTE_ID =
-	{
-		30,
-		31,
-		32,
-		33,
-		34,
-		35
-	};
 	
 	private Knoriks(String name, String descr)
 	{
 		super(name, descr);
-		addSpawnId(KNORIKS_ID);
 		addAggroRangeEnterId(KNORIKS_ID);
-		
-		FastSet<L2Spawn> spawns = SpawnTable.getInstance().getSpawnTable();
-		for (L2Spawn spawn : spawns)
-		{
-			if (spawn.getNpcid() == KNORIKS_ID)
-			{
-				onSpawn(spawn.getLastSpawn());
-			}
-		}
-	}
-	
-	@Override
-	public String onSpawn(L2Npc npc)
-	{
-		for (int element : ROUTE_ID)
-		{
-			WalkingManager.getInstance().startMoving(npc, element);
-		}
-		
-		return super.onSpawn(npc);
 	}
 	
 	@Override
@@ -86,7 +52,6 @@ public class Knoriks extends AbstractNpcAI
 			}
 			npc.broadcastPacket(new NpcSay(npc.getObjectId(), Say2.NPC_SHOUT, npc.getNpcId(), NpcStringId.WHOS_THERE_IF_YOU_DISTURB_THE_TEMPER_OF_THE_GREAT_LAND_DRAGON_ANTHARAS_I_WILL_NEVER_FORGIVE_YOU), 1000);
 		}
-		
 		return super.onAggroRangeEnter(npc, player, isPet);
 	}
 	

+ 0 - 74
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/MesmerDrake.java

@@ -1,74 +0,0 @@
-/*
- * Copyright (C) 2004-2013 L2J DataPack
- * 
- * This file is part of L2J 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 ai.individual;
-
-import javolution.util.FastSet;
-import ai.npc.AbstractNpcAI;
-
-import com.l2jserver.gameserver.datatables.SpawnTable;
-import com.l2jserver.gameserver.instancemanager.WalkingManager;
-import com.l2jserver.gameserver.model.L2Spawn;
-import com.l2jserver.gameserver.model.actor.L2Npc;
-
-/**
- * Mesmer Drake AI.
- * @author Adry_85
- */
-public class MesmerDrake extends AbstractNpcAI
-{
-	private static final int MESMER_DRAKE_ID = 22820;
-	
-	private static final int[] ROUTE_ID =
-	{
-		17,
-		18,
-		19
-	};
-	
-	private MesmerDrake(String name, String descr)
-	{
-		super(name, descr);
-		addSpawnId(MESMER_DRAKE_ID);
-		
-		FastSet<L2Spawn> spawns = SpawnTable.getInstance().getSpawnTable();
-		for (L2Spawn spawn : spawns)
-		{
-			if (spawn.getNpcid() == MESMER_DRAKE_ID)
-			{
-				onSpawn(spawn.getLastSpawn());
-			}
-		}
-	}
-	
-	@Override
-	public String onSpawn(L2Npc npc)
-	{
-		for (int route : ROUTE_ID)
-		{
-			WalkingManager.getInstance().startMoving(npc, route);
-		}
-		
-		return super.onSpawn(npc);
-	}
-	
-	public static void main(String[] args)
-	{
-		new MesmerDrake(MesmerDrake.class.getSimpleName(), "ai");
-	}
-}

+ 0 - 73
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/SandDrake.java

@@ -1,73 +0,0 @@
-/*
- * Copyright (C) 2004-2013 L2J DataPack
- * 
- * This file is part of L2J 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 ai.individual;
-
-import javolution.util.FastSet;
-import ai.npc.AbstractNpcAI;
-
-import com.l2jserver.gameserver.datatables.SpawnTable;
-import com.l2jserver.gameserver.instancemanager.WalkingManager;
-import com.l2jserver.gameserver.model.L2Spawn;
-import com.l2jserver.gameserver.model.actor.L2Npc;
-
-/**
- * Sand Drake AI.
- * @author Adry_85
- */
-public class SandDrake extends AbstractNpcAI
-{
-	private static final int SAND_DRAKE_ID = 22833;
-	
-	private static final int[] ROUTE_ID =
-	{
-		28,
-		29
-	};
-	
-	private SandDrake(String name, String descr)
-	{
-		super(name, descr);
-		addSpawnId(SAND_DRAKE_ID);
-		
-		FastSet<L2Spawn> spawns = SpawnTable.getInstance().getSpawnTable();
-		for (L2Spawn spawn : spawns)
-		{
-			if (spawn.getNpcid() == SAND_DRAKE_ID)
-			{
-				onSpawn(spawn.getLastSpawn());
-			}
-		}
-	}
-	
-	@Override
-	public String onSpawn(L2Npc npc)
-	{
-		for (int element : ROUTE_ID)
-		{
-			WalkingManager.getInstance().startMoving(npc, element);
-		}
-		
-		return super.onSpawn(npc);
-	}
-	
-	public static void main(String[] args)
-	{
-		new SandDrake(SandDrake.class.getSimpleName(), "ai");
-	}
-}