@GmOcean
case 5:
{
int map_index;
map_index = map_mapname2mapid(script_getstr(st,4));
if(map_index < 0){
script_pushint(st,0);
return 0;
}
for( sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); sd = (TBL_PC*)mapit_next(iter)){
if(!script_getnum(st,3)||!sd->st)
if( sd->bl.m == map_index)
run_script(st->script,st->pos,sd->status.account_id,st->oid);
}
}
another suggestion for addrid
Is it possible to persist temporary variable across the addrid command?
ex:
prontera,151,186,5 script zxcvasdfqwe 721,{
.@i=501;
.@a=10;
addrid(0);
getitem .@i,.@a;
close;
}