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
I need the status icon shows the delay time and the buff can not be used during this time.
Could anyone help me?
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
Code:
StateIconList[EFST_IDs.EFST_MYCUSTOM] = { haveTimeLimit = 1, posTimeLimitStr = 2, descript = { { "Test",COLOR_TITLE_BUFF }, {"%s", COLOR_TIME}, { "Test." } }}
Could anyone help me?
Last edited by a moderator: