Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: None | Size: 1.66 KB | Hits: 19 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1.                                                                                 if (spellID == 12891)
  2.                                                                         multiBarrage((client) PlayerHandler.players[playerIndexToAttack]);
  3.  
  4.  
  5.  
  6.         public void multiBarrage(client victim) {
  7.                 for(Player player : PlayerHandler.players) {
  8.                         client p = (client) player;
  9.                         if(!multiCombat() || p == null || p == victim || p == this) {
  10.                                 continue;
  11.                         }
  12.                         if(Math.abs(p.combatLevel - combatLevel) > wildyLevel && !isInPitGame()) {
  13.                                 continue;
  14.                         }
  15.                         if(Math.abs(p.absX - victim.absX) < 2 && Math.abs(p.absY - victim.absY) < 2) {
  16.                               if(p.mageDef() < mageAtk()){
  17.                                         p.updateRequired = true;
  18.                                         p.hitDiff = misc.random(30);
  19.                                         p.hitUpdateRequired = true;
  20.                                         p.hitID = playerId;
  21.                                         p.KillerId = playerId;
  22.                                p.hitUpdateRequired = true; // So the hit will append to you.
  23.                                p.updateRequired = true; // So the hit will append to you.
  24.                                p.appearanceUpdateRequired = true; // So the hit will append to you.
  25.  
  26.                                                 p.inCombat = true;
  27.  
  28.                                         if(p.deathStage > 0)
  29.                                                 return;
  30.  
  31.                                         p.lowGFX(369,0);
  32.                         if(p.attackingTimer != 0) {
  33.                                 ResetAttack();
  34.                                         }
  35.                         if(attackingTimer != 0) {
  36.                                 ResetAttack();
  37.                                 }
  38.  
  39.                                         if(System.currentTimeMillis() - p.lastEntangle > p.entangleDelay){
  40.                                                p.lastEntangle = System.currentTimeMillis();
  41.                                               p.entangleDelay = 20000;
  42.                                               p.sM("You have been frozen");
  43.  
  44.                                         }
  45.                                 } else {
  46.                                         p.specGFX(85);
  47.                                         p.inCombat = true;
  48.                                 }
  49.                         }
  50.                 }
  51.         }