Jump to content
  • 0

2 Vit = 1 Def | Where can I change this?


Oraios

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   1
  • Joined:  11/06/12
  • Last Seen:  

Hello community,

does someone know where we can change to make 2 Vit = 1 Def??

 

Thx very much for your help and sorry for my bad english^^

 

~Oraios

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  39
  • Reputation:   2
  • Joined:  08/19/12
  • Last Seen:  

it's in src/map/status.csearch for this line:
status->def2 += (int)(((float)level + status->vit)/2 + ((float)status->agi/5)); //base level + (every 2 vit = +1 def) + (every 5 agi = +1 def)

just edit the status->vit)/2

you can just use normal mathematic operators (+, * , / and -)

And don't forget to consider the brackets, I find it weird that the comment says that def = level + vit/2 + agi/5

since the value is written like this: def = (level + vit)/2 + agi/5

 

It also applies only to renewal and be sure that changing it can imbalance your server. (not from code but from playstyle)

If you wanted to change the value for pre-renewal it's just a few lines later, this line:

status->def2 += status->vit;

just multiply it with 2 after the vit.

Edited by skyleo
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   1
  • Joined:  11/06/12
  • Last Seen:  

status->def2 += status->vit*2;

 

is this correct? :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  39
  • Reputation:   2
  • Joined:  08/19/12
  • Last Seen:  

nope, "status ->def2 +=" means that the following value is being added to the def. so adding the value of your vit multiplied with 2 means that you have 1 vit = 2 def,
you have to devide it, just like in the renewal formula.

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