Jump to content
  • 0

Player's Attack Damage Script


indrachan

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/20/17
  • Last Seen:  

How to make player's normal attack has variance damage..?


consider like dota
Hero has Min Atk ~ Max Atk 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  803
  • Reputation:   229
  • Joined:  01/30/13
  • Last Seen:  

It already has damage variance. It's from DEX to WeaponATK. So e.g. if you have 50 dex and the weapon has 140 attack power you have a variance from 50 to 140, plus the base damage. At least that's how it works in pre-renewal.

Other than that, you can always modify damage formulas in battle.c

Seach for "atkmin", then you find the relevant code locations (there are multiple).

https://raw.githubusercontent.com/rathena/rathena/master/src/map/battle.c

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...