daim 5 Posted September 20, 2014 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? Quote Share this post Link to post Share on other sites
0 Judas 100 Posted September 20, 2014 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 Quote Share this post Link to post Share on other sites
0 Zopokx 7 Posted September 20, 2014 That would be a good idea verbose mode FTW! Quote Share this post Link to post Share on other sites
0 daim 5 Posted September 20, 2014 yeah, we need this, sometime there suspicious player need to look at. Quote Share this post Link to post Share on other sites
0 Judas 100 Posted September 20, 2014 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. Quote Share this post Link to post Share on other sites
0 csnv 12 Posted September 21, 2014 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. Quote Share this post Link to post Share on other sites
0 daim 5 Posted September 21, 2014 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. Quote Share this post Link to post Share on other sites
0 Judas 100 Posted September 21, 2014 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. Quote Share this post Link to post Share on other sites
0 Litro 45 Posted September 21, 2014 as for @stats you can try using this getbattlestats Quote Share this post Link to post Share on other sites
0 daim 5 Posted September 21, 2014 as for @stats you can try using this getbattlestats Thats great, but we also need to check buff. Quote Share this post Link to post Share on other sites
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