I basically know how to use the new for function but I have a question.
It's supposed to replace the with command but I am not sure exactly how one is supposed to actually do a function with it, though setting variables i an do.
I think it is something like this:
NPC Code:
for (pl: players) {
pl.setlevel2(level,x,y);
}
But I am not sure if that's right. I ahve been trying it like that but my results are inconclusive, can someone tell me if this is right, and if not, the proper way to do it?