Emad Posted February 2, 2021 Share Posted February 2, 2021 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 Quote Link to comment Share on other sites More sharing options...
0 botka4aet Posted February 3, 2021 Share Posted February 3, 2021 github.com/rathena/rathena/blob/master/src/map/battle.cpp SC_AUTOSPELL - autospell from sage Just do same way Quote Link to comment Share on other sites More sharing options...
0 Emad Posted February 3, 2021 Author Share Posted February 3, 2021 (edited) 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 February 3, 2021 by emadkm Quote Link to comment Share on other sites More sharing options...
0 botka4aet Posted February 4, 2021 Share Posted February 4, 2021 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 Quote Link to comment Share on other sites More sharing options...
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