Changeset 8630 for trunk/L2J_DataPack/dist/game/data/scripts/ai/group_template/PolymorphingAngel.java
- Timestamp:
- Jan 16, 2012 7:56:19 AM (4 months ago)
- Location:
- trunk/L2J_DataPack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
dist/game/data/scripts/ai/group_template/PolymorphingAngel.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/L2J_DataPack
- Property svn:mergeinfo changed
/branches/unstable/L2J_DataPack_BETA merged: 8407-8426,8428-8480,8482-8491,8493-8588,8590-8629
- Property svn:mergeinfo changed
-
trunk/L2J_DataPack/dist/game/data/scripts/ai/group_template/PolymorphingAngel.java
r8406 r8630 24 24 25 25 /** 26 *27 26 * Angel spawns...when one of the angels in the keys dies, the other angel will spawn. 28 *29 27 */ 30 28 public class PolymorphingAngel extends L2AttackableAIScript 31 29 { 32 30 33 private static final Map<Integer, Integer> ANGELSPAWNS = new FastMap<Integer,Integer>();31 private static final Map<Integer, Integer> ANGELSPAWNS = new FastMap<Integer, Integer>(); 34 32 static 35 33 { 36 ANGELSPAWNS.put(20830, 20859);37 ANGELSPAWNS.put(21067, 21068);38 ANGELSPAWNS.put(21062, 21063);39 ANGELSPAWNS.put(20831, 20860);40 ANGELSPAWNS.put(21070, 21071);34 ANGELSPAWNS.put(20830, 20859); 35 ANGELSPAWNS.put(21067, 21068); 36 ANGELSPAWNS.put(21062, 21063); 37 ANGELSPAWNS.put(20831, 20860); 38 ANGELSPAWNS.put(21070, 21071); 41 39 } 42 40 … … 44 42 { 45 43 super(questId, name, descr); 46 int[] temp = {20830,21067,21062,20831,21070}; 44 int[] temp = 45 { 46 20830, 21067, 21062, 20831, 21070 47 }; 47 48 registerMobs(temp, QuestEventType.ON_KILL); 48 49 } 49 50 50 51 @Override 51 public String onKill (L2Npc npc, L2PcInstance killer, boolean isPet)52 public String onKill(L2Npc npc, L2PcInstance killer, boolean isPet) 52 53 { 53 54 int npcId = npc.getNpcId(); 54 55 if (ANGELSPAWNS.containsKey(npcId)) 55 56 { 56 L2Attackable newNpc = (L2Attackable) this.addSpawn(ANGELSPAWNS.get(npcId),npc);57 L2Attackable newNpc = (L2Attackable) addSpawn(ANGELSPAWNS.get(npcId), npc); 57 58 newNpc.setRunning(); 58 59 } 59 return super.onKill(npc, killer,isPet);60 return super.onKill(npc, killer, isPet); 60 61 } 61 62 … … 63 64 { 64 65 // now call the constructor (starts up the ai) 65 new PolymorphingAngel(-1, "polymorphing_angel","ai");66 new PolymorphingAngel(-1, "polymorphing_angel", "ai"); 66 67 } 67 68 }
Note: See TracChangeset
for help on using the changeset viewer.
