Jump to content

  •  

Photo

Custom Stats Delay


  • Please log in to reply
No replies to this topic

#1 buczak

buczak

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts

Posted 27 June 2015 - 03:52 AM

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

 

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]status.c [/color]

/*==========================================* 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;

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]status.h[/color]

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

 

 

 

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]dbconst.txt[/color]

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, 27 June 2015 - 03:55 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 22 user(s)