Ignore:
Timestamp:
Jan 16, 2012 7:56:19 AM (4 months ago)
Author:
MELERIX
Message:

STABLE: Sync with BETA [8629]

Location:
trunk/L2J_DataPack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/L2J_DataPack

  • trunk/L2J_DataPack/dist/game/data/scripts/ai/group_template/PolymorphingAngel.java

    r8406 r8630  
    2424 
    2525/** 
    26  *  
    2726 * Angel spawns...when one of the angels in the keys dies, the other angel will spawn. 
    28  *  
    2927 */ 
    3028public class PolymorphingAngel extends L2AttackableAIScript 
    3129{ 
    3230         
    33         private static final Map<Integer,Integer> ANGELSPAWNS = new FastMap<Integer,Integer>(); 
     31        private static final Map<Integer, Integer> ANGELSPAWNS = new FastMap<Integer, Integer>(); 
    3432        static 
    3533        { 
    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); 
    4139        } 
    4240         
     
    4442        { 
    4543                super(questId, name, descr); 
    46                 int[] temp = {20830,21067,21062,20831,21070}; 
     44                int[] temp = 
     45                { 
     46                        20830, 21067, 21062, 20831, 21070 
     47                }; 
    4748                registerMobs(temp, QuestEventType.ON_KILL); 
    4849        } 
    4950         
    5051        @Override 
    51         public String onKill (L2Npc npc, L2PcInstance killer, boolean isPet) 
     52        public String onKill(L2Npc npc, L2PcInstance killer, boolean isPet) 
    5253        { 
    5354                int npcId = npc.getNpcId(); 
    5455                if (ANGELSPAWNS.containsKey(npcId)) 
    5556                { 
    56                         L2Attackable newNpc = (L2Attackable) this.addSpawn(ANGELSPAWNS.get(npcId),npc); 
     57                        L2Attackable newNpc = (L2Attackable) addSpawn(ANGELSPAWNS.get(npcId), npc); 
    5758                        newNpc.setRunning(); 
    5859                } 
    59                 return super.onKill(npc,killer,isPet); 
     60                return super.onKill(npc, killer, isPet); 
    6061        } 
    6162         
     
    6364        { 
    6465                // now call the constructor (starts up the ai) 
    65                 new PolymorphingAngel(-1,"polymorphing_angel","ai"); 
     66                new PolymorphingAngel(-1, "polymorphing_angel", "ai"); 
    6667        } 
    6768} 
Note: See TracChangeset for help on using the changeset viewer.