Keim Posted February 28, 2012 Posted February 28, 2012 (edited) Can anyone tell me how to make the skill damage higher? I've changed the battle.c but I errored on recompiling so... And i want to change the skill damage of all skills..not just one. Edited March 2, 2012 by Keim Quote
Variant Posted February 28, 2012 Posted February 28, 2012 (edited) In battle.c find int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damage *d,int damage,int skill_num,int skill_lv) Then go to the end of that function: status_damage(src, s_bl, damage, 0, clif_damage(s_bl, s_bl, gettick(), 500, 500, damage, -1, 0, 0), 0); return ATK_NONE; } } } return damage; } and change return damage; to: if(skill_num) return damage */+- CONST; else return damage; You actually don't even need that 'else', but it's for clarity. Edit: You should read that function over, just in case there's some skills that return damage beforehand (like Pressure) that you want to modify. Edited February 28, 2012 by Variant Quote
Keim Posted February 28, 2012 Author Posted February 28, 2012 Which skills? All skills. lol In battle.c find int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damage *d,int damage,int skill_num,int skill_lv) Then go to the end of that function: status_damage(src, s_bl, damage, 0, clif_damage(s_bl, s_bl, gettick(), 500, 500, damage, -1, 0, 0), 0); return ATK_NONE; } } } return damage; } and change return damage; to: if(skill_num) return damage */+- CONST; else return damage; You actually don't even need that 'else', but it's for clarity. Edit: You should read that function over, just in case there's some skills that return damage beforehand (like Pressure) that you want to modify. Thanks. Do i need to edit anything there? Like the */+- CONST? I mean do i need to set it to a number like 80 or something for it to be high? Or shall i leave it with */+- CONST?. Thanks Quote
Variant Posted February 29, 2012 Posted February 29, 2012 Const = any constant, and the +/-* are the operators. You change that to whatever you want to alter the damage by. So for example, if you wanted to double the damage you'd do return damage * 2; Quote
Mystery Posted February 29, 2012 Posted February 29, 2012 Yeah, I sorta read that afterwards.. LOL >> *Facepalm* Quote
Question
Keim
Can anyone tell me how to make the skill damage higher? I've changed the battle.c but I errored on recompiling so... And i want to change the skill damage of all skills..not just one.
Edited by Keim6 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.