Bringer Posted February 10, 2017 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: April 16 Share Posted February 10, 2017 Hello my Server is 250/120 300 all stats I want to cap the dmg of Asura Acid Demo Soul Breaker Bowling Bash To Max Damage 100K Only even the player using Ice Pick Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted February 10, 2017 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: Monday at 09:07 AM Share Posted February 10, 2017 I think easiest way to do that would be to add some code in battle_calc_attack. You have already a min damage check there: if( d.damage + d.damage2 < 1 ) { //Miss/Absorbed //Weapon attacks should go through to cause additional effects. if (d.dmg_lv == ATK_DEF /*&& attack_type&(BF_MAGIC|BF_MISC)*/) // Isn't it that additional effects don't apply if miss? d.dmg_lv = ATK_MISS; d.dmotion = 0; } above that I guess you could add something like: if(d.damage > 100000) d.damage = 100000; Quote Link to comment Share on other sites More sharing options...
0 Bringer Posted February 10, 2017 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: April 16 Author Share Posted February 10, 2017 @Playtester on what part on this code if( d.damage + d.damage2 < 1 ) { //Miss/Absorbed //Weapon attacks should go through to cause additional effects. if (d.dmg_lv == ATK_DEF /*&& attack_type&(BF_MAGIC|BF_MISC)*/) // Isn't it that additional effects don't apply if miss? d.dmg_lv = ATK_MISS; d.dmotion = 0; } i will add this if(d.damage > 100000) d.damage = 100000; Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted February 10, 2017 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: Monday at 09:07 AM Share Posted February 10, 2017 As I said: Above Quote Link to comment Share on other sites More sharing options...
0 Bringer Posted February 14, 2017 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: April 16 Author Share Posted February 14, 2017 On 2/11/2017 at 1:46 AM, Playtester said: As I said: Above ok i already test it but the code all CAP skill damage Sir there anyway i can only Cap Soul Breaker and Blowing Bash ? Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted February 16, 2017 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: Monday at 09:07 AM Share Posted February 16, 2017 The current skill_id is in the variable "skill_id". It's avaiable in that function. e.g. if(skill_id == KN_BOWLINGBASH && d.damage > 100000) Quote Link to comment Share on other sites More sharing options...
Question
Bringer
Hello my Server is 250/120 300 all stats
I want to cap the dmg of Asura Acid Demo Soul Breaker Bowling Bash To Max Damage 100K Only even the player using Ice Pick
Link to comment
Share on other sites
5 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.