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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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