- 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/Baium.java (modified) (35 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/Baium.java
r8406 r8630 34 34 import com.l2jserver.gameserver.model.L2Object; 35 35 import com.l2jserver.gameserver.model.L2Skill; 36 import com.l2jserver.gameserver.model.Location; 37 import com.l2jserver.gameserver.model.StatsSet; 36 38 import com.l2jserver.gameserver.model.actor.L2Character; 37 39 import com.l2jserver.gameserver.model.actor.L2Npc; … … 45 47 import com.l2jserver.gameserver.network.serverpackets.MoveToPawn; 46 48 import com.l2jserver.gameserver.network.serverpackets.PlaySound; 47 import com.l2jserver.gameserver.network.serverpackets.SocialAction;48 import com.l2jserver.gameserver.templates.StatsSet;49 49 import com.l2jserver.gameserver.util.Util; 50 50 import com.l2jserver.util.Rnd; 51 51 52 53 52 /** 54 * Baium AI 55 * 56 * Note1: if the server gets rebooted while players are still fighting Baium, there is no lock, but 57 * players also lose their ability to wake baium up. However, should another person 58 * enter the room and wake him up, the players who had stayed inside may join the raid. 59 * This can be helpful for players who became victims of a reboot (they only need 1 new player to 60 * enter and wake up baium) and is not too exploitable since any player wishing to exploit it 61 * would have to suffer 5 days of being parked in an empty room. 62 * Note2: Neither version of Baium should be a permanent spawn. This script is fully capable of 63 * spawning the statue-version when the lock expires and switching it to the mob version promptly. 64 * 65 * Additional notes ( source http://aleenaresron.blogspot.com/2006_08_01_archive.html ): 66 * * Baium only first respawns five days after his last death. And from those five days he will 67 * respawn within 1-8 hours of his last death. So, you have to know his last time of death. 68 * * If by some freak chance you are the only one in Baium's chamber and NO ONE comes in 69 * [ha, ha] you or someone else will have to wake Baium. There is a good chance that Baium 70 * will automatically kill whoever wakes him. There are some people that have been able to 71 * wake him and not die, however if you've already gone through the trouble of getting the 72 * bloody fabric and camped him out and researched his spawn time, are you willing to take that 73 * chance that you'll wake him and not be able to finish your quest? Doubtful. 74 * [ this powerful attack vs the player who wakes him up is NOT yet implemented here] 75 * * once someone starts attacking Baium no one else can port into the chamber where he is. 76 * Unlike with the other raid bosses, you can just show up at any time as long as you are there 77 * when they die. Not true with Baium. Once he gets attacked, the port to Baium closes. byebye, 78 * see you in 5 days. If nobody attacks baium for 30 minutes, he auto-despawns and unlocks the 79 * vortex 80 * 53 * Baium AI Note1: if the server gets rebooted while players are still fighting Baium, there is no lock, but players also lose their ability to wake baium up. However, should another person enter the room and wake him up, the players who had stayed inside may join the raid. This can be helpful for 54 * players who became victims of a reboot (they only need 1 new player to enter and wake up baium) and is not too exploitable since any player wishing to exploit it would have to suffer 5 days of being parked in an empty room. Note2: Neither version of Baium should be a permanent spawn. This script 55 * is fully capable of spawning the statue-version when the lock expires and switching it to the mob version promptly. Additional notes ( source http://aleenaresron.blogspot.com/2006_08_01_archive.html ): * Baium only first respawns five days after his last death. And from those five days he will 56 * respawn within 1-8 hours of his last death. So, you have to know his last time of death. * If by some freak chance you are the only one in Baium's chamber and NO ONE comes in [ha, ha] you or someone else will have to wake Baium. There is a good chance that Baium will automatically kill whoever 57 * wakes him. There are some people that have been able to wake him and not die, however if you've already gone through the trouble of getting the bloody fabric and camped him out and researched his spawn time, are you willing to take that chance that you'll wake him and not be able to finish your 58 * quest? Doubtful. [ this powerful attack vs the player who wakes him up is NOT yet implemented here] * once someone starts attacking Baium no one else can port into the chamber where he is. Unlike with the other raid bosses, you can just show up at any time as long as you are there when they die. 59 * Not true with Baium. Once he gets attacked, the port to Baium closes. byebye, see you in 5 days. If nobody attacks baium for 30 minutes, he auto-despawns and unlocks the vortex 81 60 * @author Fulminus version 0.1 82 61 */ … … 90 69 private static final int ARCHANGEL = 29021; 91 70 92 // Baium status tracking93 private static final byte ASLEEP = 0; // baium is in the stone version, waiting to be woken up.Entry is unlocked94 private static final byte AWAKE = 1; // baium is awake and fighting.Entry is locked.95 private static final byte DEAD = 2; // baium has been killed and has not yet spawned.Entry is locked71 // Baium status tracking 72 private static final byte ASLEEP = 0; // baium is in the stone version, waiting to be woken up. Entry is unlocked 73 private static final byte AWAKE = 1; // baium is awake and fighting. Entry is locked. 74 private static final byte DEAD = 2; // baium has been killed and has not yet spawned. Entry is locked 96 75 97 76 // fixed archangel spawnloc 98 private final static int ANGEL_LOCATION[][]=99 { 100 { 114239, 17168, 10080, 63544 },101 { 115780, 15564, 10080, 13620 },102 { 114880, 16236, 10080, 5400 },103 { 115168, 17200, 10080, 0 },104 { 115792, 16608, 10080, 0 },77 private final static Location[] ANGEL_LOCATION = 78 { 79 new Location(114239, 17168, 10080, 63544), 80 new Location(115780, 15564, 10080, 13620), 81 new Location(114880, 16236, 10080, 5400), 82 new Location(115168, 17200, 10080, 0), 83 new Location(115792, 16608, 10080, 0) 105 84 }; 106 85 … … 109 88 private L2BossZone _Zone; 110 89 111 public Baium (int questId, String name, String descr)90 public Baium(int questId, String name, String descr) 112 91 { 113 92 super(questId, name, descr); 114 93 115 int[] mob = {LIVE_BAIUM}; 116 this.registerMobs(mob); 94 int[] mob = 95 { 96 LIVE_BAIUM 97 }; 98 registerMobs(mob); 117 99 118 100 // Quest NPC starter initialization … … 120 102 addTalkId(STONE_BAIUM, ANGELIC_VORTEX); 121 103 122 _Zone = GrandBossManager.getInstance().getZone(113100, 14500,10077);104 _Zone = GrandBossManager.getInstance().getZone(113100, 14500, 10077); 123 105 StatsSet info = GrandBossManager.getInstance().getStatsSet(LIVE_BAIUM); 124 106 int status = GrandBossManager.getInstance().getBossStatus(LIVE_BAIUM); … … 129 111 if (temp > 0) 130 112 { 131 // the unlock time has not yet expired. Mark Baium as currently locked (dead).Setup a timer113 // the unlock time has not yet expired. Mark Baium as currently locked (dead). Setup a timer 132 114 // to fire at the correct time (calculate the time between now and the unlock time, 133 115 // setup a timer to fire after that many msec) … … 136 118 else 137 119 { 138 // the time has already expired while the server was offline. Delete the saved time and139 // immediately spawn the stone-baium. Also the state need not be changed from ASLEEP140 addSpawn(STONE_BAIUM, 116033,17447,10104,40188,false,0);141 GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, ASLEEP);120 // the time has already expired while the server was offline. Delete the saved time and 121 // immediately spawn the stone-baium. Also the state need not be changed from ASLEEP 122 addSpawn(STONE_BAIUM, 116033, 17447, 10104, 40188, false, 0); 123 GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, ASLEEP); 142 124 } 143 125 } … … 150 132 final int hp = info.getInteger("currentHP"); 151 133 final int mp = info.getInteger("currentMP"); 152 L2GrandBossInstance baium = (L2GrandBossInstance) addSpawn(LIVE_BAIUM, loc_x,loc_y,loc_z,heading,false,0);134 L2GrandBossInstance baium = (L2GrandBossInstance) addSpawn(LIVE_BAIUM, loc_x, loc_y, loc_z, heading, false, 0); 153 135 GrandBossManager.getInstance().addBoss(baium); 154 136 final L2Npc _baium = baium; 155 ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { 137 ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() 138 { 156 139 @Override 157 140 public void run() … … 159 142 try 160 143 { 161 _baium.setCurrentHpMp(hp, mp);144 _baium.setCurrentHpMp(hp, mp); 162 145 _baium.setIsInvul(true); 163 146 _baium.setIsImmobilized(true); 164 147 _baium.setRunning(); 165 _baium.broadcast Packet(new SocialAction(_baium,2));166 startQuestTimer("baium_wakeup", 15000, _baium, null);148 _baium.broadcastSocialAction(2); 149 startQuestTimer("baium_wakeup", 15000, _baium, null); 167 150 } 168 151 catch (Exception e) … … 171 154 } 172 155 } 173 }, 100L);156 }, 100L); 174 157 } 175 158 else 176 addSpawn(STONE_BAIUM, 116033,17447,10104,40188,false,0);159 addSpawn(STONE_BAIUM, 116033, 17447, 10104, 40188, false, 0); 177 160 } 178 161 179 162 @Override 180 public String onAdvEvent (String event, L2Npc npc, L2PcInstance player)163 public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) 181 164 { 182 165 if (event.equalsIgnoreCase("baium_unlock")) 183 166 { 184 GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, ASLEEP);185 addSpawn(STONE_BAIUM, 116033,17447,10104,40188,false,0);167 GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, ASLEEP); 168 addSpawn(STONE_BAIUM, 116033, 17447, 10104, 40188, false, 0); 186 169 } 187 170 else if (event.equalsIgnoreCase("skill_range") && npc != null) … … 197 180 if (npc.getNpcId() == LIVE_BAIUM) 198 181 { 199 npc.broadcast Packet(new SocialAction(npc,1));200 npc.broadcastPacket(new Earthquake(npc.getX(), npc.getY(), npc.getZ(), 40,5));182 npc.broadcastSocialAction(1); 183 npc.broadcastPacket(new Earthquake(npc.getX(), npc.getY(), npc.getZ(), 40, 5)); 201 184 // start monitoring baium's inactivity 202 185 _LastAttackVsBaiumTime = System.currentTimeMillis(); … … 204 187 startQuestTimer("skill_range", 500, npc, null, true); 205 188 final L2Npc baium = npc; 206 ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { 189 ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() 190 { 207 191 @Override 208 192 public void run() … … 220 204 } 221 205 } 222 }, 11100L);206 }, 11100L); 223 207 // TODO: the person who woke baium up should be knocked across the room, onto a wall, and 224 208 // lose massive amounts of HP. 225 209 for (int i = 0; i < ANGEL_LOCATION.length; i++) 226 210 { 227 L2Npc angel = addSpawn(ARCHANGEL, ANGEL_LOCATION[i] [0], ANGEL_LOCATION[i][1], ANGEL_LOCATION[i][2], ANGEL_LOCATION[i][3], false, 0, true);211 L2Npc angel = addSpawn(ARCHANGEL, ANGEL_LOCATION[i], false, 0, true); 228 212 angel.setIsInvul(true); 229 213 _Minions.add(angel); … … 239 223 // just in case the zone reference has been lost (somehow...), restore the reference 240 224 if (_Zone == null) 241 _Zone = GrandBossManager.getInstance().getZone(113100, 14500,10077);225 _Zone = GrandBossManager.getInstance().getZone(113100, 14500, 10077); 242 226 if (_LastAttackVsBaiumTime + 1800000 < System.currentTimeMillis()) 243 227 { … … 250 234 } 251 235 _Minions.clear(); 252 addSpawn(STONE_BAIUM, 116033,17447,10104,40188,false,0);// spawn stone-baium253 GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, ASLEEP);// mark that Baium is not awake any more236 addSpawn(STONE_BAIUM, 116033, 17447, 10104, 40188, false, 0); // spawn stone-baium 237 GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, ASLEEP); // mark that Baium is not awake any more 254 238 _Zone.oustAllPlayers(); 255 239 cancelQuestTimer("baium_despawn", npc, null); 256 240 } 257 else if ((_LastAttackVsBaiumTime + 300000 < System.currentTimeMillis()) && npc.getCurrentHp() < ( ( npc.getMaxHp() * 3 ) / 4.0))258 { 259 npc.setIsCastingNow(false); // just in case241 else if ((_LastAttackVsBaiumTime + 300000 < System.currentTimeMillis()) && npc.getCurrentHp() < ((npc.getMaxHp() * 3) / 4.0)) 242 { 243 npc.setIsCastingNow(false); // just in case 260 244 npc.setTarget(npc); 261 245 L2Skill skill = SkillTable.getInstance().getInfo(4135, 1); … … 274 258 } 275 259 else if (!_Zone.isInsideZone(npc)) 276 npc.teleToLocation(116033, 17447,10104);260 npc.teleToLocation(116033, 17447, 10104); 277 261 } 278 262 } … … 281 265 282 266 @Override 283 public String onTalk(L2Npc npc, L2PcInstance player)267 public String onTalk(L2Npc npc, L2PcInstance player) 284 268 { 285 269 int npcId = npc.getNpcId(); 286 270 String htmltext = ""; 287 271 if (_Zone == null) 288 _Zone = GrandBossManager.getInstance().getZone(113100, 14500,10077);272 _Zone = GrandBossManager.getInstance().getZone(113100, 14500, 10077); 289 273 if (_Zone == null) 290 274 return "<html><body>Angelic Vortex:<br>You may not enter while admin disabled this zone</body></html>"; … … 295 279 // once Baium is awaken, no more people may enter until he dies, the server reboots, or 296 280 // 30 minutes pass with no attacks made against Baium. 297 GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, AWAKE);281 GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, AWAKE); 298 282 npc.deleteMe(); 299 283 L2GrandBossInstance baium = (L2GrandBossInstance) addSpawn(LIVE_BAIUM, npc, true); 300 284 GrandBossManager.getInstance().addBoss(baium); 301 285 final L2Npc _baium = baium; 302 ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { 286 ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() 287 { 303 288 @Override 304 289 public void run() … … 308 293 _baium.setIsInvul(true); 309 294 _baium.setRunning(); 310 _baium.broadcast Packet(new SocialAction(_baium,2));311 startQuestTimer("baium_wakeup", 15000, _baium, null);295 _baium.broadcastSocialAction(2); 296 startQuestTimer("baium_wakeup", 15000, _baium, null); 312 297 _baium.setShowSummonAnimation(false); 313 298 } … … 317 302 } 318 303 } 319 }, 100L);304 }, 100L); 320 305 } 321 306 else … … 326 311 if (player.isFlying()) 327 312 { 328 // print "Player "+player.getName()+" attempted to enter Baium's lair while flying!";313 // print "Player "+player.getName()+" attempted to enter Baium's lair while flying!"; 329 314 return "<html><body>Angelic Vortex:<br>You may not enter while flying a wyvern</body></html>"; 330 315 } 331 316 332 if (GrandBossManager.getInstance().getBossStatus(LIVE_BAIUM) == ASLEEP 333 && player.getQuestState("baium").getQuestItemsCount(4295) > 0) // bloody fabric 334 { 335 player.getQuestState("baium").takeItems(4295,1); 317 if (GrandBossManager.getInstance().getBossStatus(LIVE_BAIUM) == ASLEEP && player.getQuestState("baium").hasQuestItems(4295)) // bloody fabric 318 { 319 player.getQuestState("baium").takeItems(4295, 1); 336 320 // allow entry for the player for the next 30 secs (more than enough time for the TP to happen) 337 321 // Note: this just means 30secs to get in, no limits on how long it takes before we get out. 338 _Zone.allowPlayerEntry(player, 30);339 player.teleToLocation(113100, 14500,10077);322 _Zone.allowPlayerEntry(player, 30); 323 player.teleToLocation(113100, 14500, 10077); 340 324 } 341 325 else … … 359 343 return super.onSpellFinished(npc, player, skill); 360 344 } 361 345 362 346 @Override 363 347 public String onSpawn(L2Npc npc) … … 366 350 return super.onSpawn(npc); 367 351 } 368 352 369 353 @Override 370 public String onAttack (L2Npc npc, L2PcInstance attacker, int damage, boolean isPet)354 public String onAttack(L2Npc npc, L2PcInstance attacker, int damage, boolean isPet) 371 355 { 372 356 if (!_Zone.isInsideZone(attacker)) 373 357 { 374 attacker.reduceCurrentHp(attacker.getCurrentHp(), attacker,false,false, null);358 attacker.reduceCurrentHp(attacker.getCurrentHp(), attacker, false, false, null); 375 359 return super.onAttack(npc, attacker, damage, isPet); 376 360 } … … 397 381 { 398 382 npc.setTarget(attacker); 399 L2Skill skill = SkillTable.getInstance().getInfo(4258, 1);383 L2Skill skill = SkillTable.getInstance().getInfo(4258, 1); 400 384 if (skill.isMagic()) 401 385 { … … 419 403 420 404 @Override 421 public String onKill (L2Npc npc, L2PcInstance killer, boolean isPet)405 public String onKill(L2Npc npc, L2PcInstance killer, boolean isPet) 422 406 { 423 407 cancelQuestTimer("baium_despawn", npc, null); 424 408 npc.broadcastPacket(new PlaySound(1, "BS01_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ())); 425 409 // spawn the "Teleportation Cubic" for 15 minutes (to allow players to exit the lair) 426 addSpawn(29055, 115203,16620,10078,0,false,900000); ////should we teleport everyone out if the cubic despawns??427 // "lock" baium for 5 days and 1 to 8 hours [i.e. 432,000,000 + 1*3,600,000 + random-less-than(8*3,600,000) millisecs]428 long respawnTime = (long) Config.Interval_Of_Baium_Spawn + Rnd.get(Config.Random_Of_Baium_Spawn);429 GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, DEAD);410 addSpawn(29055, 115203, 16620, 10078, 0, false, 900000); // //should we teleport everyone out if the cubic despawns?? 411 // "lock" baium for 5 days and 1 to 8 hours [i.e. 432,000,000 + 1*3,600,000 + random-less-than(8*3,600,000) millisecs] 412 long respawnTime = (long) Config.Interval_Of_Baium_Spawn + Rnd.get(Config.Random_Of_Baium_Spawn); 413 GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, DEAD); 430 414 startQuestTimer("baium_unlock", respawnTime, null, null); 431 415 // also save the respawn time so that the info is maintained past reboots 432 416 StatsSet info = GrandBossManager.getInstance().getStatsSet(LIVE_BAIUM); 433 info.set("respawn_time", (System.currentTimeMillis()) + respawnTime);434 GrandBossManager.getInstance().setStatsSet(LIVE_BAIUM, info);417 info.set("respawn_time", (System.currentTimeMillis()) + respawnTime); 418 GrandBossManager.getInstance().setStatsSet(LIVE_BAIUM, info); 435 419 for (L2Npc minion : _Minions) 436 420 if (minion != null) … … 442 426 if (getQuestTimer("skill_range", npc, null) != null) 443 427 getQuestTimer("skill_range", npc, null).cancel(); 444 return super.onKill(npc, killer,isPet);428 return super.onKill(npc, killer, isPet); 445 429 } 446 430 … … 460 444 } 461 445 462 if (((L2Character) obj).getZ() < ( npc.getZ() - 100 ) && ((L2Character) obj).getZ() > ( npc.getZ() + 100 ) 463 || !(GeoData.getInstance().canSeeTarget(((L2Character) obj).getX(), ((L2Character) obj).getY(), ((L2Character) obj).getZ(), npc.getX(), npc.getY(), npc.getZ()))) 446 if (((L2Character) obj).getZ() < (npc.getZ() - 100) && ((L2Character) obj).getZ() > (npc.getZ() + 100) || !(GeoData.getInstance().canSeeTarget(((L2Character) obj).getX(), ((L2Character) obj).getY(), ((L2Character) obj).getZ(), npc.getX(), npc.getY(), npc.getZ()))) 464 447 continue; 465 448 } … … 504 487 _target = getRandomTarget(npc); 505 488 if (_target != null) 506 _skill = SkillTable.getInstance().getInfo(getRandomSkill(npc), 1);489 _skill = SkillTable.getInstance().getInfo(getRandomSkill(npc), 1); 507 490 } 508 491 … … 510 493 L2Skill skill = _skill; 511 494 if (skill == null) 512 skill = SkillTable.getInstance().getInfo(getRandomSkill(npc), 1);495 skill = SkillTable.getInstance().getInfo(getRandomSkill(npc), 1); 513 496 514 497 if (skill.isMagic()) … … 537 520 _skill = null; 538 521 if (getDist(skill.getCastRange()) > 0) 539 npc.broadcastPacket(new MoveToPawn(npc, target,getDist(skill.getCastRange())));522 npc.broadcastPacket(new MoveToPawn(npc, target, getDist(skill.getCastRange()))); 540 523 try 541 524 { … … 545 528 } 546 529 catch (Exception e) 547 {e.printStackTrace();} 530 { 531 e.printStackTrace(); 532 } 548 533 } 549 534 else … … 557 542 { 558 543 int skill; 559 if ( npc.getCurrentHp() > ( ( npc.getMaxHp() * 3 ) / 4.0 ))560 { 561 if ( Rnd.get(100) < 10)544 if (npc.getCurrentHp() > ((npc.getMaxHp() * 3) / 4.0)) 545 { 546 if (Rnd.get(100) < 10) 562 547 skill = 4128; 563 else if ( Rnd.get(100) < 10)548 else if (Rnd.get(100) < 10) 564 549 skill = 4129; 565 550 else 566 551 skill = 4127; 567 552 } 568 else if ( npc.getCurrentHp() > ( ( npc.getMaxHp() * 2 ) / 4.0))569 { 570 if ( Rnd.get(100) < 10)553 else if (npc.getCurrentHp() > ((npc.getMaxHp() * 2) / 4.0)) 554 { 555 if (Rnd.get(100) < 10) 571 556 skill = 4131; 572 else if ( Rnd.get(100) < 10)557 else if (Rnd.get(100) < 10) 573 558 skill = 4128; 574 else if ( Rnd.get(100) < 10)559 else if (Rnd.get(100) < 10) 575 560 skill = 4129; 576 561 else 577 562 skill = 4127; 578 563 } 579 else if ( npc.getCurrentHp() > ( ( npc.getMaxHp() * 1 ) / 4.0 ))580 { 581 if ( Rnd.get(100) < 10)564 else if (npc.getCurrentHp() > ((npc.getMaxHp() * 1) / 4.0)) 565 { 566 if (Rnd.get(100) < 10) 582 567 skill = 4130; 583 else if ( Rnd.get(100) < 10)568 else if (Rnd.get(100) < 10) 584 569 skill = 4131; 585 else if ( Rnd.get(100) < 10)570 else if (Rnd.get(100) < 10) 586 571 skill = 4128; 587 else if ( Rnd.get(100) < 10)572 else if (Rnd.get(100) < 10) 588 573 skill = 4129; 589 574 else 590 575 skill = 4127; 591 576 } 592 else if ( Rnd.get(100) < 10)577 else if (Rnd.get(100) < 10) 593 578 skill = 4130; 594 else if ( Rnd.get(100) < 10)579 else if (Rnd.get(100) < 10) 595 580 skill = 4131; 596 else if ( Rnd.get(100) < 10)581 else if (Rnd.get(100) < 10) 597 582 skill = 4128; 598 else if ( Rnd.get(100) < 10)583 else if (Rnd.get(100) < 10) 599 584 skill = 4129; 600 585 else … … 604 589 605 590 @Override 606 public String onSkillSee (L2Npc npc, L2PcInstance caster, L2Skill skill, L2Object[] targets, boolean isPet)591 public String onSkillSee(L2Npc npc, L2PcInstance caster, L2Skill skill, L2Object[] targets, boolean isPet) 607 592 { 608 593 if (npc.isInvul()) … … 618 603 { 619 604 int dist = 0; 620 switch (range)605 switch (range) 621 606 { 622 607 case -1: … … 626 611 break; 627 612 default: 628 dist = range -85;613 dist = range - 85; 629 614 break; 630 615 }
Note: See TracChangeset
for help on using the changeset viewer.
