Jump to content
  • 0
Emad

R>how to turn dragon breath skill to autocast while melee with chance

Question

i tried some coding but did not find yet . i want to to turn dragonbreath to chance to autocast while melee damage only per level increase chance and i made it passive btw so i want the coding script thanks

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
7 hours ago, botka4aet said:

github.com/rathena/rathena/blob/master/src/map/battle.cpp

SC_AUTOSPELL - autospell from sage

Just do same way

i replaced the original sc_autospell to rk dragonbreath for test but did not work??

if (sc && sc->data[RK_DRAGONBREATH] && rnd()%100 < sc->data[RK_DRAGONBREATH]->val4) {
        int sp = 0;
        uint16 skill_id = sc->data[RK_DRAGONBREATH]->val2;
        uint16 skill_lv = sc->data[RK_DRAGONBREATH]->val3;
        int i = rnd()%100;


btw dragonbreath i made it passive i don't want the select window from autospell just only level the skill and chance get up and autocast when melee 

Edited by emadkm
Link to comment
Share on other sites

  • 0

No, it's not so easy: autospell - active skill, that add status. And if status active - you'll get autoskill

But you need check - if you learned skill

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.