- 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/Orfen.java (modified) (10 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/Orfen.java
r8406 r8630 27 27 import com.l2jserver.gameserver.model.L2Skill; 28 28 import com.l2jserver.gameserver.model.L2Spawn; 29 import com.l2jserver.gameserver.model.Location; 30 import com.l2jserver.gameserver.model.StatsSet; 29 31 import com.l2jserver.gameserver.model.actor.L2Attackable; 30 32 import com.l2jserver.gameserver.model.actor.L2Character; … … 36 38 import com.l2jserver.gameserver.network.serverpackets.NpcSay; 37 39 import com.l2jserver.gameserver.network.serverpackets.PlaySound; 38 import com.l2jserver.gameserver.templates.StatsSet;39 40 import com.l2jserver.util.Rnd; 40 41 41 42 /** 42 43 * Orfen AI 43 *44 44 * @author Emperorc 45 *46 45 */ 47 46 public class Orfen extends L2AttackableAIScript 48 47 { 49 48 50 private static final int[][] Pos = 51 { 52 { 53 43728, 17220, -4342 54 }, 55 { 56 55024, 17368, -5412 57 }, 58 { 59 53504, 21248, -5486 60 }, 61 { 62 53248, 24576, -5262 63 } 49 //@formatter:off 50 private static final Location[] Pos = 51 { 52 new Location(43728, 17220, -4342), 53 new Location(55024, 17368, -5412), 54 new Location(53504, 21248, -5486), 55 new Location(53248, 24576, -5262) 64 56 }; 65 57 … … 67 59 { 68 60 NpcStringId.S1_STOP_KIDDING_YOURSELF_ABOUT_YOUR_OWN_POWERLESSNESS, 69 NpcStringId.S1_ILL_MAKE_YOU_FEEL_WHAT_TRUE_FEAR_IS, 70 NpcStringId.YOURE_REALLY_STUPID_TO_HAVE_CHALLENGED_ME_S1_GET_READY, 61 NpcStringId.S1_ILL_MAKE_YOU_FEEL_WHAT_TRUE_FEAR_IS, 62 NpcStringId.YOURE_REALLY_STUPID_TO_HAVE_CHALLENGED_ME_S1_GET_READY, 71 63 NpcStringId.S1_DO_YOU_THINK_THATS_GOING_TO_WORK 72 64 }; 65 //@formatter:on 73 66 74 67 private static final int ORFEN = 29014; 75 // private static final int RAIKEL = 29015;68 // private static final int RAIKEL = 29015; 76 69 private static final int RAIKEL_LEOS = 29016; 77 // private static final int RIBA = 29017;70 // private static final int RIBA = 29017; 78 71 private static final int RIBA_IREN = 29018; 79 72 … … 90 83 int[] mobs = 91 84 { 92 ORFEN, RAIKEL_LEOS, RIBA_IREN85 ORFEN, RAIKEL_LEOS, RIBA_IREN 93 86 }; 94 87 registerMobs(mobs); 95 88 _IsTeleported = false; 96 _Zone = GrandBossManager.getInstance().getZone(Pos[0] [0], Pos[0][1], Pos[0][2]);89 _Zone = GrandBossManager.getInstance().getZone(Pos[0]); 97 90 StatsSet info = GrandBossManager.getInstance().getStatsSet(ORFEN); 98 91 int status = GrandBossManager.getInstance().getBossStatus(ORFEN); … … 109 102 // the time has already expired while the server was offline. Immediately spawn Orfen. 110 103 int i = Rnd.get(10); 111 int x = 0; 112 int y = 0; 113 int z = 0; 104 Location loc; 114 105 if (i < 4) 115 106 { 116 x = Pos[1][0]; 117 y = Pos[1][1]; 118 z = Pos[1][2]; 107 loc = Pos[1]; 119 108 } 120 109 else if (i < 7) 121 110 { 122 x = Pos[2][0]; 123 y = Pos[2][1]; 124 z = Pos[2][2]; 111 loc = Pos[2]; 125 112 } 126 113 else 127 114 { 128 x = Pos[3][0]; 129 y = Pos[3][1]; 130 z = Pos[3][2]; 115 loc = Pos[3]; 131 116 } 132 L2GrandBossInstance orfen = (L2GrandBossInstance) addSpawn(ORFEN, x, y, z, 0, false, 0);117 L2GrandBossInstance orfen = (L2GrandBossInstance) addSpawn(ORFEN, loc, false, 0); 133 118 GrandBossManager.getInstance().setBossStatus(ORFEN, ALIVE); 134 119 spawnBoss(orfen); … … 154 139 npc.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE, null, null); 155 140 L2Spawn spawn = npc.getSpawn(); 156 spawn.setLocx(Pos[index][0]); 157 spawn.setLocy(Pos[index][1]); 158 spawn.setLocz(Pos[index][2]); 159 npc.teleToLocation(Pos[index][0], Pos[index][1], Pos[index][2]); 141 spawn.setLocation(Pos[index]);; 142 npc.teleToLocation(Pos[index], false); 160 143 } 161 144 … … 165 148 npc.broadcastPacket(new PlaySound(1, "BS01_A", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ())); 166 149 startQuestTimer("check_orfen_pos", 10000, npc, null, true); 167 // Spawn minions150 // Spawn minions 168 151 int x = npc.getX(); 169 152 int y = npc.getY(); 170 153 L2Attackable mob; 171 mob = (L2Attackable) addSpawn(RAIKEL_LEOS, x + 100, y + 100, npc.getZ(), 0, false, 0);154 mob = (L2Attackable) addSpawn(RAIKEL_LEOS, x + 100, y + 100, npc.getZ(), 0, false, 0); 172 155 mob.setIsRaidMinion(true); 173 156 _Minions.add(mob); 174 mob = (L2Attackable) addSpawn(RAIKEL_LEOS, x + 100, y - 100, npc.getZ(), 0, false, 0);157 mob = (L2Attackable) addSpawn(RAIKEL_LEOS, x + 100, y - 100, npc.getZ(), 0, false, 0); 175 158 mob.setIsRaidMinion(true); 176 159 _Minions.add(mob); 177 mob = (L2Attackable) addSpawn(RAIKEL_LEOS, x - 100, y + 100, npc.getZ(), 0, false, 0);160 mob = (L2Attackable) addSpawn(RAIKEL_LEOS, x - 100, y + 100, npc.getZ(), 0, false, 0); 178 161 mob.setIsRaidMinion(true); 179 162 _Minions.add(mob); 180 mob = (L2Attackable) addSpawn(RAIKEL_LEOS, x - 100, y - 100, npc.getZ(), 0, false, 0);163 mob = (L2Attackable) addSpawn(RAIKEL_LEOS, x - 100, y - 100, npc.getZ(), 0, false, 0); 181 164 mob.setIsRaidMinion(true); 182 165 _Minions.add(mob); … … 190 173 { 191 174 int i = Rnd.get(10); 192 int x = 0; 193 int y = 0; 194 int z = 0; 175 Location loc; 195 176 if (i < 4) 196 177 { 197 x = Pos[1][0]; 198 y = Pos[1][1]; 199 z = Pos[1][2]; 178 loc = Pos[1]; 200 179 } 201 180 else if (i < 7) 202 181 { 203 x = Pos[2][0]; 204 y = Pos[2][1]; 205 z = Pos[2][2]; 182 loc = Pos[2]; 206 183 } 207 184 else 208 185 { 209 x = Pos[3][0]; 210 y = Pos[3][1]; 211 z = Pos[3][2]; 212 } 213 L2GrandBossInstance orfen = (L2GrandBossInstance) addSpawn(ORFEN, x, y, z, 0, false, 0); 186 loc = Pos[3]; 187 } 188 L2GrandBossInstance orfen = (L2GrandBossInstance) addSpawn(ORFEN, loc, false, 0); 214 189 GrandBossManager.getInstance().setBossStatus(ORFEN, ALIVE); 215 190 spawnBoss(orfen); … … 250 225 else if (event.equalsIgnoreCase("spawn_minion")) 251 226 { 252 L2Attackable mob = (L2Attackable) addSpawn(RAIKEL_LEOS, npc.getX(), npc.getY(), npc.getZ(), 0, false, 0);227 L2Attackable mob = (L2Attackable) addSpawn(RAIKEL_LEOS, npc.getX(), npc.getY(), npc.getZ(), 0, false, 0); 253 228 mob.setIsRaidMinion(true); 254 229 _Minions.add(mob); … … 342 317 npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ())); 343 318 GrandBossManager.getInstance().setBossStatus(ORFEN, DEAD); 344 // time is 48hour+/- 20hour319 // time is 48hour +/- 20hour 345 320 long respawnTime = (long) Config.Interval_Of_Orfen_Spawn + Rnd.get(Config.Random_Of_Orfen_Spawn); 346 321 startQuestTimer("orfen_unlock", respawnTime, null, null);
Note: See TracChangeset
for help on using the changeset viewer.
