Jump to content
  • 0
Sign in to follow this  
Hakuren

getmapstatus

Question

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;
}

 

Edited by Hakuren

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.