Quote:
Originally posted by Kaimetsu
The best thing you could do is to examine screen_name's adaptation. Loops are indispensable for this kind of program.
|
I just looked over the script and I feel bashful... I made a mistake. The below includes the correction
NPC Code:
//#CLIENTSIDE
if (created || timeout) {
timeout = .05;
for (a=0;a<22;a++) {
i = (a*3)+int(a/21);
showpoly a,{playerx,i,i,playery+3};
showpoly a+22,{i,playerx,playery+3,i};
changeimgcolors a,random(0,1),random(0,1),random(0,1),1;
changeimgcolors a+22,random(0,1),random(0,1),random(0,1),1;
changeimgvis a,0;
changeimgvis a+22,0;
}
}