eppc0330 Posted August 16, 2020 Posted August 16, 2020 Hi, I want to make knuckle with changing triple attack rate for +20 refine bonus. I found this in battle.cpp if(sd && (skillv = pc_checkskill(sd,MO_TRIPLEATTACK)) > 0) { #ifdef RENEWAL int triple_rate = 30; //Base Rate #else int triple_rate = 30 - skillv; //Base Rate #endif My custom item name is Asura. Is it possible to change triple rate to 60% if I equip item +20 Asura? Quote
0 Kreustoo Posted August 16, 2020 Posted August 16, 2020 Hello, Triple attack is an auto cast right? So maybe add a check inside your item to autocast tripleattack if refine +20? Dunno how it adds to the bas chance to triple attack so may need to test what happens and put the right values. Quote
0 eppc0330 Posted August 16, 2020 Author Posted August 16, 2020 8 minutes ago, Kreustoo said: Hello, Triple attack is an auto cast right? So maybe add a check inside your item to autocast tripleattack if refine +20? Dunno how it adds to the bas chance to triple attack so may need to test what happens and put the right values. That means triple rate is always 30% in any level. Actually I already have tested script : skill "MO_TRIPLEATTACK",11; and have changed battle.cpp to : if(sd && (skillv = pc_checkskill(sd,MO_TRIPLEATTACK)) > 0) { #ifdef RENEWAL int triple_rate = (skillv == 11)?100:30; //Base Rate #else int triple_rate = 30 - skillv; //Base Rate #endif It works well but there's very very tiny error with skill MO_TRIPLEATTACK 11 level. So I'm finding another way. Thanks for advice anyway!! Quote
0 Kreustoo Posted August 16, 2020 Posted August 16, 2020 Adding MO_TRIPLEATTACK level 11 when wearing is a huge buff, because now, they don't need AT ALL the skill, I'd rather put in the item script, getting the level of the skill +1 (forgot how but there's a script command to check it, checkskill?). Quote
0 eppc0330 Posted August 16, 2020 Author Posted August 16, 2020 (edited) On 8/16/2020 at 11:57 PM, Kreustoo said: Adding MO_TRIPLEATTACK level 11 when wearing is a huge buff, because now, they don't need AT ALL the skill, I'd rather put in the item script, getting the level of the skill +1 (forgot how but there's a script command to check it, checkskill?). Exactly my item script is : if(getskilllv("MO_TRIPLEATTACK") == 10){ skill "MO_TRIPLEATTACK",getskilllv("MO_TRIPLEATTACK")+1; } But I don't want to use "skill" script because when I unequip and equip this item, Tripleattack skill level is shown as 10 until I relog my character, even though it still works as 11. On 8/16/2020 at 11:57 PM, Kreustoo said: Adding MO_TRIPLEATTACK level 11 when wearing is a huge buff, because now, they don't need AT ALL the skill, I'd rather put in the item script, getting the level of the skill +1 (forgot how but there's a script command to check it, checkskill?). OH MY GOD.... I found the reason of error. It was my custom weapon card. When I use official card there's no error. I can use skill script now.... Edited August 16, 2020 by eppc0330 Quote
Question
eppc0330
Hi, I want to make knuckle with changing triple attack rate for +20 refine bonus.
I found this in battle.cpp
if(sd && (skillv = pc_checkskill(sd,MO_TRIPLEATTACK)) > 0) { #ifdef RENEWAL int triple_rate = 30; //Base Rate #else int triple_rate = 30 - skillv; //Base Rate #endif
My custom item name is Asura.
Is it possible to change triple rate to 60% if I equip item +20 Asura?
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.