Oraios Posted October 14, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 11/06/12 Last Seen: December 16, 2016 Share Posted October 14, 2013 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 Quote Link to comment Share on other sites More sharing options...
skyleo Posted October 15, 2013 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 39 Reputation: 2 Joined: 08/19/12 Last Seen: April 8, 2022 Share Posted October 15, 2013 (edited) 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 October 15, 2013 by skyleo Quote Link to comment Share on other sites More sharing options...
Oraios Posted October 15, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 11/06/12 Last Seen: December 16, 2016 Author Share Posted October 15, 2013 status->def2 += status->vit*2; is this correct? Quote Link to comment Share on other sites More sharing options...
skyleo Posted October 15, 2013 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 39 Reputation: 2 Joined: 08/19/12 Last Seen: April 8, 2022 Share Posted October 15, 2013 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. Quote Link to comment Share on other sites More sharing options...
Question
Oraios
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.