Jump to content
  • 0

New item_bonuses


TheDerpySupport

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   60
  • Joined:  09/23/17
  • Last Seen:  

I'm in need of some new bonus scripts that effect the Royal Guard skill, Reflect Damage; Currently there is not an item bonus that can increase the percent amount of damage reflected nor an item bonus that can increase the percent chance of the skill proc'ing the reflect.

21f99fd105.png

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  12/11/14
  • Last Seen:  

i can provide a solution without changing source if you want, but obviously it's not as clean as a direct source change.

 

unlock the max level of the skill to be higher than 5 in skill.db and in your client in skillinfoz/skillinfolist and skilltreeview. create an item which checks to see what level you have the skill, as such:

 

if(getskilllv("LG_REFLECTDAMAGE")>0)

skill "LG_REFLECTDAMAGE",getskilllv("LG_REFLECTDAMAGE")+1;

 

this will increase the level of your reflect damage by 1 while you have this item equipped, and the skill would scale accordingly to the formula(+5% damage reflected per level, +10% reflect chance per level). you can also just define the exact level you want instead of making it scale on the current level, as such:

skill "LG_REFLECTDAMAGE",10;

 

this would set your max reflect damage level to 10, but you can change these numbers to suit your needs. 

you can also scale it by refinement level using getrefine() instead of numbers:

skill "LG_REFLECTDAMAGE",getskilllv("LG_REFLECTDAMAGE")+getrefine()/2;

this would increase your reflect damage's level every 2 refines, since we divided it by two. if you wanted it to go beyond level 10, you would have to increase the max skill level of skills in skill.h(this doesn't change anything for people's skill trees, so don't worry about that):

 

svPLVDz.png

 

 

use these examples to create the formula you think is closest to what you want. if you wanted to increase it directly by a % that depends on the stats of your reflect damage, that would require complications and it's not easy in source, especially since there's not any items that do this type of effect to take example from. increasing damage is not on the same level as increasing the potency of a skill, in terms of how complex the change is. us plebs can only work around the system. of course, anyone who actually knows what they're doing can do a much better job than me in terms of offering you options, but i can tell you right now you would have to add an entire thing in reflect damage's code to take into account your specific bonus, and you would have to probably create an entirely new bonus for it(not as hard as it sounds, the "hard" part is changing the skill's code). you can probably hit close to home just abusing of existing options and using levels of the skill, even though it's not the prettiest solution.

Edited by blinzer
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...