Custom Skill

letstry

New member
Messages
3
Points
0
Hi everyone,

I've created a custom skill buff that applies a bit of critical boost but reduces aspd.

Duration and skill icon is already working but the stats provided isn't.

Max level is 5 but whenever I use it, I'm only getting 1 crit.

Here is my code

   I've added this at the upper part of status.c.

 set_sc(SN_CUSTOMSKILL         , SC_CUSTOMSKILL     , SI_CUSTOMSKILL           , SCB_CRI|SCB_ASPD);


I've added this at the critical bonus section

if(sc->data[SC_CUSTOMSKILL])
        critical += sc->data[SC_CUSTOMSKILL]->val1 * 2;


I've added this at the bonus aspd section

if (sc->data[SC_CUSTOMSKILL])
            bonus -= sc->data[SC_CUSTOMSKILL]->val1 * 5;


Are there any other compilations that I need to do aside from make plugins and make sql?

Thanks
 

EDIT:
Also I would like to add in, how may I be able to change it to a toggle skill wherein it can be turned on or off by using the skill again?

Thank you

 
Last edited by a moderator:
Back
Top