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

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.