Originally posted by [b]Inkfish[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2047
Doc says:
CODE
// This will make array element 0 change to 245
cleararray @array[0],245,1;
Actually, this wil set both @array[0] and @array[1] to 245.
Because the script doesnot stop before 'start' get bigger than 'end', while it SHOULD stop as soon as 'start' get equal to 'end'.
CODE
for(; start <= end; ++start )//we shall omit the '='?
set_reg(st, sd, reference_uid(id, start), name, v, script_getref(st,2));