Jump to content
  • 0
Sign in to follow this  
letstry

Custom Skill

Question

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

Edited by letstry

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.