ItsFree Posted August 19, 2017 Share Posted August 19, 2017 Hi, rAthena Community can someone help me with this fast script... trying to find a similar script but i cant like i want... Effect: Autocast 1% 'Skill' If refine +9 o more => +0.5% chance to autocast if refine +10 or more => +0.5% chance to autocast total = 2%. bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,10; Thx! Quote Link to comment Share on other sites More sharing options...
0 sotf Posted August 20, 2017 Share Posted August 20, 2017 if(getrefine()==9) { set .wbchance,5; } else if(getrefine()>=10) { set .wbchance,10; } bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,10+.wbchance; +9 refine: 10+5/10 = 1.5% +10 refine or more: 10+10/10 = 2% Not tested but you can try. Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted August 19, 2017 Share Posted August 19, 2017 if(getrefine()==9){ bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,10;}else if(getrefine()>=10){ bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,20;} try like that Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted August 19, 2017 Share Posted August 19, 2017 if(getrefine()==9){ bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,10;}else if(getrefine()>=10){ bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,20;} try like that Quote Link to comment Share on other sites More sharing options...
0 ItsFree Posted August 23, 2017 Author Share Posted August 23, 2017 Sorry for delay answer... both working, thx ^^ just a little question about { set .wbchance,5; } i can change that to anything right ¿? or.... if i want put more scripts like this i can do it ¿? i mean different script but same "set" ¿? Quote Link to comment Share on other sites More sharing options...
Hi, rAthena Community can someone help me with this fast script... trying to find a similar script but i cant like i want...
Effect:
Autocast 1% 'Skill'
If refine +9 o more => +0.5% chance to autocast
if refine +10 or more => +0.5% chance to autocast
total = 2%.
bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,10;Thx!
Link to comment
Share on other sites