yes I suppose it actually replaces for with combo if you need to use for-each.
What i mean by this is:
NPC Code:
for (pl: allplayers) {
if (pl.client.hp>1000) {
pl.chat="I am Hacking!";
sendtorc(pl.account @ "is Hacking");//I think i did that part right, not entirely sure though
}
}
replaces:
NPC Code:
for (i=0;i<allplayerscount;i++) {
with(allplayers[i]) {
if (strtofloat(#s(client.hp))>1000) {
setplayerprop#c, I am hacking!;
sendtorc #a is hacking!;
}
}
}