Warrior Stat Calculator

A place for The Mana World players to discuss game-related topics outside the scope of development including guilds, player interactions, game meta and more.


GARRETTtheGREAT
Novice
Novice
Posts: 70
Joined: 05 Oct 2009, 23:27

Warrior Stat Calculator

Post by GARRETTtheGREAT »

I'm working on a stat calculator for warrior builds.

Would any warriors out there mind checking it out and telling me what you think?

Thanks!

http://tmw.gjr.gr/warrior.php

edit: I suppose you don't have to be a warrior, but if anyone can put their stats in and make sure the numbers work out, that would be awesome!
Last edited by GARRETTtheGREAT on 03 Feb 2013, 18:31, edited 1 time in total.
User avatar
Nard
Knight
Knight
Posts: 1113
Joined: 27 Jun 2010, 12:45
Location: France, near Paris

Re: Warrior Stat Calculator

Post by Nard »

Wow that's nice and helpful! The results were a bit surprising to me though I suspected someting like that. I'd like to have that on TMW web site.
In case you have extra time, This page could help though it needs a strong update to fit TMW: http://ro.doddlercon.com/calc/calcx.html

Edit: I include a link to your page on the Stats wiki page.
"The language of everyday life is clogged with sentiment, and the science of human nature has not advanced so far that we can describe individual sentiment in a clear way." Lancelot Hogben, Mathematics for the Million.
“There are two motives for reading a book; one, that you enjoy it; the other, that you can boast about it.” Bertrand Russell, Conquest of Happiness.
"If you optimize everything, you will always be unhappy." Donald Knuth.
GARRETTtheGREAT
Novice
Novice
Posts: 70
Joined: 05 Oct 2009, 23:27

Re: Warrior Stat Calculator

Post by GARRETTtheGREAT »

Thank you! I'll be adding more calculators and such as time goes on :D
User avatar
Nard
Knight
Knight
Posts: 1113
Joined: 27 Jun 2010, 12:45
Location: France, near Paris

Re: Warrior Stat Calculator

Post by Nard »

2 questions though:
  1. Does the weapon have to be equipped? Setzer, Rock Knife and Ice gladius have now the same +110 damage, setzer reduces attack delay.
  2. Do the status improvement items have to be equipped for strength and agil, or is base status the only important thing?
"The language of everyday life is clogged with sentiment, and the science of human nature has not advanced so far that we can describe individual sentiment in a clear way." Lancelot Hogben, Mathematics for the Million.
“There are two motives for reading a book; one, that you enjoy it; the other, that you can boast about it.” Bertrand Russell, Conquest of Happiness.
"If you optimize everything, you will always be unhappy." Donald Knuth.
GARRETTtheGREAT
Novice
Novice
Posts: 70
Joined: 05 Oct 2009, 23:27

Re: Warrior Stat Calculator

Post by GARRETTtheGREAT »

1. When you provide your current attack damage and delay, the algorithm will calculate what I call your "base attack" and "base delay", which include your weapon, focus skill, etc. (everything except for your agility and strength). These "base stats" are essentially what your attack and delay would be if your strength and agility were both 1. I've verified this in-game by re-rolling.

2. You should be fully geared up as you would want to be normally. Items will affect your stat points and your "base attack" and "base delay" as will the speed skill. The raging skill does not appear to affect your "base stats". I've added some instructions to make this more clear. I haven't tested +stat items yet, but I think these will be accounted for automatically by the calculator and the bonus should be ignored.
User avatar
borgomatic
Newly Registered User
Posts: 9
Joined: 29 Apr 2012, 17:13
Location: Down by the creek, Missouri, USA.

Re: Warrior Stat Calculator

Post by borgomatic »

This looks pretty reasonable, though I hesitate to say that DPS is the major parameter for a Warrior. Lower attack delay can result in faster kills due to more hits per minute if your hit percentage is less than 100. I have verified this by comparing time to kill with and without using a concentration potion.

Of course ping time to server has a big effect on that too. Though I have an attack delay of 499, a 230 ping results in a real attack delay of 1009. I'd really like to see the round trip ping time subtracted somehow from the attack delay.
GARRETTtheGREAT
Novice
Novice
Posts: 70
Joined: 05 Oct 2009, 23:27

Re: Warrior Stat Calculator

Post by GARRETTtheGREAT »

borgomatic wrote:This looks pretty reasonable, though I hesitate to say that DPS is the major parameter for a Warrior. Lower attack delay can result in faster kills due to more hits per minute if your hit percentage is less than 100. I have verified this by comparing time to kill with and without using a concentration potion.

Of course ping time to server has a big effect on that too. Though I have an attack delay of 499, a 230 ping results in a real attack delay of 1009. I'd really like to see the round trip ping time subtracted somehow from the attack delay.
In your example, using 1009 as your attack delay would yield the result you are looking for.

I will eventually have PvM and PvP statistics, but it will require extensive research into the combat system that I don't quite have time for at the moment.
User avatar
Ichimaru Leon
Peon
Peon
Posts: 24
Joined: 10 Oct 2011, 03:37
Location: Indonesia

Re: Warrior Stat Calculator

Post by Ichimaru Leon »

its nice calculator Gareth...
thanks... :lol: :lol: :lol:
User avatar
fuadfauzi
Peon
Peon
Posts: 36
Joined: 23 Nov 2012, 12:47
Location: Yogyakarta, Indonesia
Contact:

Re: Warrior Stat Calculator

Post by fuadfauzi »

Ichimaru Leon wrote:its nice calculator Gareth...
thanks... :lol: :lol: :lol:
Yes sure, its a very handy & useful tools. But, i wonder if there would be other tools to calculate other type such as Archer, Mage . . . Hope so . . . :)
GARRETTtheGREAT
Novice
Novice
Posts: 70
Joined: 05 Oct 2009, 23:27

Re: Warrior Stat Calculator

Post by GARRETTtheGREAT »

fuadfauzi wrote:
Ichimaru Leon wrote:its nice calculator Gareth...
thanks... :lol: :lol: :lol:
Yes sure, its a very handy & useful tools. But, i wonder if there would be other tools to calculate other type such as Archer, Mage . . . Hope so . . . :)
Yes, there will be many tools sometime in the future.
User avatar
fuadfauzi
Peon
Peon
Posts: 36
Joined: 23 Nov 2012, 12:47
Location: Yogyakarta, Indonesia
Contact:

Re: Warrior Stat Calculator

Post by fuadfauzi »

GARRETTtheGREAT wrote: Yes, there will be many tools sometime in the future.
BTW, I have litle knowledge about PHP programming. What can I do to help you realize the tools. So the future will be fasten come true. :D
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: Warrior Stat Calculator

Post by o11c »

This would be better done in pure HTML + javascript. None of the numbers involved get high enough for the numerical instability to come into play ... but you *will* need to make sure all your divisions truncate toward zero.
Former programmer for the TMWA server.
GARRETTtheGREAT
Novice
Novice
Posts: 70
Joined: 05 Oct 2009, 23:27

Re: Warrior Stat Calculator

Post by GARRETTtheGREAT »

fuadfauzi wrote:
GARRETTtheGREAT wrote: Yes, there will be many tools sometime in the future.
BTW, I have litle knowledge about PHP programming. What can I do to help you realize the tools. So the future will be fasten come true. :D
The calculator is a very simple program. It is less than 500 lines of code!

The main issue is finding the algorithms to calculate the stats. There are many complex relationships between stats, items, focus skills, monster stats, status effects, etc. that are difficult to break down into simple mathematical functions.

Here is the function for calculating the number of stat points needed for a given stat level:

Code: Select all

$statpts_agi = 5 * (pow(floor(($input_agi - 1) / 10), 2) + 3 * floor(($input_agi - 1) / 10) ) + (($input_agi - 1) % 10) * (floor(($input_agi - 1) / 10) + 2);
Stat point cost is very easily measurable and is a function that is only dependent upon the level of the stat.

Consider what the function would look like for the actual damage dealt to a monster. Your actual damage is based on strength, dexterity, luck, items, skills, monster stat points, status effects, and more than likely a random roll for the player attack and monster defense.

For the DPS calculator, it was easy to reverse-engineer the formulas based on the information easily gained from the client, but most important data is not so easy to obtain and will not be easy to reverse-engineer. These stats will require extensive research into the code of the server.
o11c wrote:This would be better done in pure HTML + javascript. None of the numbers involved get high enough for the numerical instability to come into play ... but you *will* need to make sure all your divisions truncate toward zero.
I don't program in JS very often and so it takes me much longer to develop. The final version will be at least AJAX so it will update the fields automatically, but polishing the UI is much less of a priority to me than having accurate calculations.
User avatar
Avenn
Novice
Novice
Posts: 79
Joined: 24 May 2012, 19:20
Location: Hell

Re: Warrior Stat Calculator

Post by Avenn »

The calculator is nice i cant wait for archer and mage calculator :mrgreen:
User avatar
Zopar
Peon
Peon
Posts: 21
Joined: 05 Oct 2008, 20:34

Re: Warrior Stat Calculator

Post by Zopar »

Cool calculator. Nice work! Can't wait for archer. I hope your still planning to do archer.
:mrgreen:
Fewer things are harder to put up with than the annoyance of a good example.
- Mark Twain
Post Reply