Keim Posted February 28, 2012 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 221 Reputation: 12 Joined: 12/18/11 Last Seen: July 13, 2015 Share 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 Link to comment Share on other sites More sharing options...
Mystery Posted February 28, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted February 28, 2012 Which skills? Quote Link to comment Share on other sites More sharing options...
Variant Posted February 28, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 52 Reputation: 6 Joined: 01/06/12 Last Seen: December 12, 2017 Share 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 Link to comment Share on other sites More sharing options...
Keim Posted February 28, 2012 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 221 Reputation: 12 Joined: 12/18/11 Last Seen: July 13, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Variant Posted February 29, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 52 Reputation: 6 Joined: 01/06/12 Last Seen: December 12, 2017 Share 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 Link to comment Share on other sites More sharing options...
Mystery Posted February 29, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted February 29, 2012 Yeah, I sorta read that afterwards.. LOL >> *Facepalm* Quote Link to comment Share on other sites More sharing options...
Keim Posted March 2, 2012 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 221 Reputation: 12 Joined: 12/18/11 Last Seen: July 13, 2015 Author Share Posted March 2, 2012 lol xD OK, thanks all. Quote Link to comment Share on other sites More sharing options...
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 KeimLink to comment
Share on other sites
6 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.