well, how do i make so a npc use ( ice barrage )
and it will hit like 4 people if there are four people near him,
i tried this :
Code:
final Client o = (Client) PlayerHandler.players[i];
if (c.freezeTimer <= 0){
c.freezeTimer = 15;
c.gfx0(369);
c.sendMessage("You have been frozen.");
c.barrageCount = 0;
for (int j = 0; j < PlayerHandler.players.length; j++)
if (PlayerHandler.players[j] != null) {
if (j == o.playerId)
continue;
if (c.barrageCount >= 9)
break;
if (o.goodDistance(o.getX(), o.getY(),
PlayerHandler.players[j].getX(),
PlayerHandler.players[j].getY(), 1))
appendMultiBarrage(j, c.magicFailed);
}
and yehh, that didnt work that good
gave me loads of errors
thanks (=