getmapstatus

Hakuren

New member
Messages
35
Points
0
hi is this possible?

getting all player that has the status for example blessing? like that

- getmapstatus("prontera",SC_BLESSING);

Additional Info :

like this script made by my idol annieruru but instead of checking all of the entire server and checking all vending it should be one map that it set of and status buff that has it.

BUILDIN_FUNC(getusers_novend) {
struct s_mapiterator* iter = mapit_getallusers();
struct map_session_data* sd;
int count = 0;
for ( sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); sd = (TBL_PC*)mapit_next(iter) )
if ( sd->state.autotrade == 0 && sd->state.vending == 0 && sd->chatID == 0 )
count++;
script_pushint( st, count );
mapit_free(iter);
return 0;
}
 
Last edited by a moderator:
Back
Top