Jump to content
  • 0
Sign in to follow this  
buczak

Custom Stats Delay

Question

Hello, I created a custom buff status added by atcommand but do not know how to add delay to reuse the buff, and status icon showing the delay time ... Here's what I've done so far, everything working for now, just missing part of the delay

 

status.c 

/*==========================================* Apply shared stat mods from status changes [DracoRPG]*------------------------------------------*/unsigned short status_calc_str(struct block_list *bl, struct status_change *sc, int str){                if(sc->data[SC_STOMACHACHE])		str -= sc->data[SC_STOMACHACHE]->val1;	if(sc->data[SC_KYOUGAKU])		str -= sc->data[SC_KYOUGAKU]->val3;	if (sc->data[SC_MYCUSTOM])		str += sc->data[SC_MYCUSTOM]->val1;

status.h

SC_MYCUSTOM = 2999,SC_MAX,...SI_MYCUSTOM = 2999,
SI_MAX,
 
...

 

 

 

dbconst.txt

SC_MYCUSTOM	2999

stateiconinfo.lub

StateIconList[EFST_IDs.EFST_MYCUSTOM] = {  haveTimeLimit = 1,  posTimeLimitStr = 2,  descript = {    { "Test",COLOR_TITLE_BUFF },    {"%s", COLOR_TIME},    { "Test." }  }}

 

I need the status icon shows the delay time and the buff can not be used during this time.
 
Could anyone help me?
Edited by buczak

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.