Warrior Stat Calculator
-
- Novice
- Posts: 70
- Joined: 05 Oct 2009, 23:27
Warrior Stat Calculator
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!
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.
Re: Warrior Stat Calculator
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.
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.
“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.
-
- Novice
- Posts: 70
- Joined: 05 Oct 2009, 23:27
Re: Warrior Stat Calculator
Thank you! I'll be adding more calculators and such as time goes on 

Re: Warrior Stat Calculator
2 questions though:
- Does the weapon have to be equipped? Setzer, Rock Knife and Ice gladius have now the same +110 damage, setzer reduces attack delay.
- 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.
“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.
-
- Novice
- Posts: 70
- Joined: 05 Oct 2009, 23:27
Re: Warrior Stat Calculator
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.
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.
- borgomatic
- Newly Registered User
- Posts: 9
- Joined: 29 Apr 2012, 17:13
- Location: Down by the creek, Missouri, USA.
Re: Warrior Stat Calculator
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.
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.
-
- Novice
- Posts: 70
- Joined: 05 Oct 2009, 23:27
Re: Warrior Stat Calculator
In your example, using 1009 as your attack delay would yield the result you are looking for.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.
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.
- Ichimaru Leon
- Peon
- Posts: 24
- Joined: 10 Oct 2011, 03:37
- Location: Indonesia
Re: Warrior Stat Calculator
its nice calculator Gareth...
thanks...

thanks...



Re: Warrior Stat Calculator
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 . . .Ichimaru Leon wrote:its nice calculator Gareth...
thanks...![]()
![]()

-
- Novice
- Posts: 70
- Joined: 05 Oct 2009, 23:27
Re: Warrior Stat Calculator
Yes, there will be many tools sometime in the future.fuadfauzi wrote: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 . . .Ichimaru Leon wrote:its nice calculator Gareth...
thanks...![]()
![]()
Re: Warrior Stat Calculator
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.GARRETTtheGREAT wrote: Yes, there will be many tools sometime in the future.

Re: Warrior Stat Calculator
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.
-
- Novice
- Posts: 70
- Joined: 05 Oct 2009, 23:27
Re: Warrior Stat Calculator
The calculator is a very simple program. It is less than 500 lines of code!fuadfauzi wrote: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.GARRETTtheGREAT wrote: Yes, there will be many tools sometime in the future.
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);
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.
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.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.
Re: Warrior Stat Calculator
The calculator is nice i cant wait for archer and mage calculator 

Re: Warrior Stat Calculator
Cool calculator. Nice work! Can't wait for archer. I hope your still planning to do archer.


Fewer things are harder to put up with than the annoyance of a good example.
- Mark Twain
- Mark Twain