Oraios Posted October 14, 2013 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
skyleo Posted October 15, 2013 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
Oraios Posted October 15, 2013 Author Posted October 15, 2013 status->def2 += status->vit*2; is this correct? Quote
skyleo Posted October 15, 2013 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
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
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.