Untitled
By: a guest | Feb 9th, 2010 | Syntax:
None | Size: 1.66 KB | Hits: 19 | Expires: Never
if (spellID == 12891)
multiBarrage((client) PlayerHandler.players[playerIndexToAttack]);
public void multiBarrage(client victim) {
for(Player player : PlayerHandler.players) {
client p = (client) player;
if(!multiCombat() || p == null || p == victim || p == this) {
continue;
}
if(Math.abs(p.combatLevel - combatLevel) > wildyLevel && !isInPitGame()) {
continue;
}
if(Math.abs(p.absX - victim.absX) < 2 && Math.abs(p.absY - victim.absY) < 2) {
if(p.mageDef() < mageAtk()){
p.updateRequired = true;
p.hitDiff = misc.random(30);
p.hitUpdateRequired = true;
p.hitID = playerId;
p.KillerId = playerId;
p.hitUpdateRequired = true; // So the hit will append to you.
p.updateRequired = true; // So the hit will append to you.
p.appearanceUpdateRequired = true; // So the hit will append to you.
p.inCombat = true;
if(p.deathStage > 0)
return;
p.lowGFX(369,0);
if(p.attackingTimer != 0) {
ResetAttack();
}
if(attackingTimer != 0) {
ResetAttack();
}
if(System.currentTimeMillis() - p.lastEntangle > p.entangleDelay){
p.lastEntangle = System.currentTimeMillis();
p.entangleDelay = 20000;
p.sM("You have been frozen");
}
} else {
p.specGFX(85);
p.inCombat = true;
}
}
}
}