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/individual/Core.java

    r8406 r8630  
    2222import com.l2jserver.Config; 
    2323import com.l2jserver.gameserver.instancemanager.GrandBossManager; 
     24import com.l2jserver.gameserver.model.StatsSet; 
    2425import com.l2jserver.gameserver.model.actor.L2Attackable; 
    2526import com.l2jserver.gameserver.model.actor.L2Npc; 
     
    2930import com.l2jserver.gameserver.network.serverpackets.NpcSay; 
    3031import com.l2jserver.gameserver.network.serverpackets.PlaySound; 
    31 import com.l2jserver.gameserver.templates.StatsSet; 
    3232import com.l2jserver.util.Rnd; 
    3333 
    3434/** 
    3535 * Core AI 
    36  *  
    3736 * @author DrLecter Revised By Emperorc 
    3837 */ 
     
    4241        private static final int DEATH_KNIGHT = 29007; 
    4342        private static final int DOOM_WRAITH = 29008; 
    44         //private static final int DICOR = 29009; 
    45         //private static final int VALIDUS = 29010; 
     43        // private static final int DICOR = 29009; 
     44        // private static final int VALIDUS = 29010; 
    4645        private static final int SUSCEPTOR = 29011; 
    47         //private static final int PERUM = 29012; 
    48         //private static final int PREMO = 29013; 
    49          
    50         //CORE Status Tracking : 
    51         private static final byte ALIVE = 0; //Core is spawned. 
    52         private static final byte DEAD = 1; //Core has been killed. 
     46        // private static final int PERUM = 29012; 
     47        // private static final int PREMO = 29013; 
     48         
     49        // CORE Status Tracking : 
     50        private static final byte ALIVE = 0; // Core is spawned. 
     51        private static final byte DEAD = 1; // Core has been killed. 
    5352         
    5453        private static boolean _FirstAttacked; 
     
    6261                int[] mobs = 
    6362                { 
    64                                 CORE, DEATH_KNIGHT, DOOM_WRAITH, SUSCEPTOR 
     63                        CORE, DEATH_KNIGHT, DOOM_WRAITH, SUSCEPTOR 
    6564                }; 
    6665                registerMobs(mobs); 
     
    113112                GrandBossManager.getInstance().addBoss(npc); 
    114113                npc.broadcastPacket(new PlaySound(1, "BS01_A", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ())); 
    115                 //Spawn minions 
     114                // Spawn minions 
    116115                L2Attackable mob; 
    117116                for (int i = 0; i < 5; i++) 
    118117                { 
    119118                        int x = 16800 + i * 360; 
    120                         mob = (L2Attackable)addSpawn(DEATH_KNIGHT, x, 110000, npc.getZ(), 280 + Rnd.get(40), false, 0); 
    121                         mob.setIsRaidMinion(true); 
    122                         Minions.add(mob); 
    123                         mob = (L2Attackable)addSpawn(DEATH_KNIGHT, x, 109000, npc.getZ(), 280 + Rnd.get(40), false, 0); 
     119                        mob = (L2Attackable) addSpawn(DEATH_KNIGHT, x, 110000, npc.getZ(), 280 + Rnd.get(40), false, 0); 
     120                        mob.setIsRaidMinion(true); 
     121                        Minions.add(mob); 
     122                        mob = (L2Attackable) addSpawn(DEATH_KNIGHT, x, 109000, npc.getZ(), 280 + Rnd.get(40), false, 0); 
    124123                        mob.setIsRaidMinion(true); 
    125124                        Minions.add(mob); 
    126125                        int x2 = 16800 + i * 600; 
    127                         mob = (L2Attackable)addSpawn(DOOM_WRAITH, x2, 109300, npc.getZ(), 280 + Rnd.get(40), false, 0); 
     126                        mob = (L2Attackable) addSpawn(DOOM_WRAITH, x2, 109300, npc.getZ(), 280 + Rnd.get(40), false, 0); 
    128127                        mob.setIsRaidMinion(true); 
    129128                        Minions.add(mob); 
     
    132131                { 
    133132                        int x = 16800 + i * 450; 
    134                         mob = (L2Attackable)addSpawn(SUSCEPTOR, x, 110300, npc.getZ(), 280 + Rnd.get(40), false, 0); 
     133                        mob = (L2Attackable) addSpawn(SUSCEPTOR, x, 110300, npc.getZ(), 280 + Rnd.get(40), false, 0); 
    135134                        mob.setIsRaidMinion(true); 
    136135                        Minions.add(mob); 
     
    149148                else if (event.equalsIgnoreCase("spawn_minion")) 
    150149                { 
    151                         L2Attackable mob = (L2Attackable)addSpawn(npc.getNpcId(), npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), false, 0); 
     150                        L2Attackable mob = (L2Attackable) addSpawn(npc.getNpcId(), npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), false, 0); 
    152151                        mob.setIsRaidMinion(true); 
    153152                        Minions.add(mob); 
     
    201200                        addSpawn(31842, 18948, 110166, -6397, 0, false, 900000); 
    202201                        GrandBossManager.getInstance().setBossStatus(CORE, DEAD); 
    203                         //time is 60hour        +/- 23hour 
     202                        // time is 60hour +/- 23hour 
    204203                        long respawnTime = (long) Config.Interval_Of_Core_Spawn + Rnd.get(Config.Random_Of_Core_Spawn); 
    205204                        startQuestTimer("core_unlock", respawnTime, null, null); 
Note: See TracChangeset for help on using the changeset viewer.