- 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/individual/Core.java (modified) (8 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/individual/Core.java
r8406 r8630 22 22 import com.l2jserver.Config; 23 23 import com.l2jserver.gameserver.instancemanager.GrandBossManager; 24 import com.l2jserver.gameserver.model.StatsSet; 24 25 import com.l2jserver.gameserver.model.actor.L2Attackable; 25 26 import com.l2jserver.gameserver.model.actor.L2Npc; … … 29 30 import com.l2jserver.gameserver.network.serverpackets.NpcSay; 30 31 import com.l2jserver.gameserver.network.serverpackets.PlaySound; 31 import com.l2jserver.gameserver.templates.StatsSet;32 32 import com.l2jserver.util.Rnd; 33 33 34 34 /** 35 35 * Core AI 36 *37 36 * @author DrLecter Revised By Emperorc 38 37 */ … … 42 41 private static final int DEATH_KNIGHT = 29007; 43 42 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; 46 45 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. 53 52 54 53 private static boolean _FirstAttacked; … … 62 61 int[] mobs = 63 62 { 64 CORE, DEATH_KNIGHT, DOOM_WRAITH, SUSCEPTOR63 CORE, DEATH_KNIGHT, DOOM_WRAITH, SUSCEPTOR 65 64 }; 66 65 registerMobs(mobs); … … 113 112 GrandBossManager.getInstance().addBoss(npc); 114 113 npc.broadcastPacket(new PlaySound(1, "BS01_A", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ())); 115 // Spawn minions114 // Spawn minions 116 115 L2Attackable mob; 117 116 for (int i = 0; i < 5; i++) 118 117 { 119 118 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); 124 123 mob.setIsRaidMinion(true); 125 124 Minions.add(mob); 126 125 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); 128 127 mob.setIsRaidMinion(true); 129 128 Minions.add(mob); … … 132 131 { 133 132 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); 135 134 mob.setIsRaidMinion(true); 136 135 Minions.add(mob); … … 149 148 else if (event.equalsIgnoreCase("spawn_minion")) 150 149 { 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); 152 151 mob.setIsRaidMinion(true); 153 152 Minions.add(mob); … … 201 200 addSpawn(31842, 18948, 110166, -6397, 0, false, 900000); 202 201 GrandBossManager.getInstance().setBossStatus(CORE, DEAD); 203 // time is 60hour+/- 23hour202 // time is 60hour +/- 23hour 204 203 long respawnTime = (long) Config.Interval_Of_Core_Spawn + Rnd.get(Config.Random_Of_Core_Spawn); 205 204 startQuestTimer("core_unlock", respawnTime, null, null);
Note: See TracChangeset
for help on using the changeset viewer.
