Jump to content
  • 0
Sign in to follow this  
daim

Player Status Check

Question

Hi all,

 

Could anyone code this features? same like @itemlist but with @statuscheck we can check all status (agi,str,hp,sp,matk,atk and etc) from player including buff. Is this posibble?

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

should be possible, I think all we would have to do is check or loop through the SC_ statuses, and for stats just output what @stats does

Share this post


Link to post
Share on other sites
  • 0
for (i = 0; i < (SC_MAX); i++) {		if (sd->sc.data[i] != NULL) {			sprintf(output, "Status ID - %d", i);			clif->message(fd, output);		}	}

So basically tweak the stats command to also output the different statuses the player has?

 

 

I just attached that to the @stats command. I was looking for a way to grab the name of the ID, like enum to string, but not sure of the way to do that in the code.

Share this post


Link to post
Share on other sites
  • 0

 

I just attached that to the @stats command. I was looking for a way to grab the name of the ID, like enum to string, but not sure of the way to do that in the code.

 

 

You can't, unless you hardcode the string for each enum.

Share this post


Link to post
Share on other sites
  • 0

for (i = 0; i < (SC_MAX); i++) {		if (sd->sc.data[i] != NULL) {			sprintf(output, "Status ID - %d", i);			clif->message(fd, output);		}	}

or maybe we need to make variables for sc name on the code manually? off corse there will be huge line.

Share this post


Link to post
Share on other sites
  • 0

yeah I was hoping to find a built in solution, but yeah that may be the direction that needs to be done. Just have to keep an eye out if the numbering changes, then make sure the mapping is correct.

Share this post


Link to post
Share on other sites

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.