I think this is the error same with manabeast.
The npc's are functioning well, but when summoning the monsters (tiers)
Mapserver hangs up, then this pop's up:
Tried and tested
Change this :
function script int__ {
set .@num, atoi("\""+getarg(0)+"\"");
if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0);
set .@l, getstrlen(.@num);
for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) {
set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$;
if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;
}
return .@num$;
}
to:
function script int__ {
set .@num, atoi(getarg(0)+"");
if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0);
set .@l, getstrlen(.@num+"");
for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) {
set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$;
if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;
}
return .@num$;
}