Thread Tools Display Modes
05-16-13, 05:43 PM   #1
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
Unit Stats Conversion

Is there a way to get secondary stats (i.e. crit chance) for a naked player without making the player undress her/himself? I need this to get agility/intellect to crit conversions, but GetCritChanceFromAgility/Intellect("player") would include the base crit too, which I need to subtract in order to get agi/int-to-crit contribution from gear and buffs.
  Reply With Quote
05-16-13, 05:58 PM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Death. (too short)
  Reply With Quote
05-16-13, 06:51 PM   #3
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by Dridzt View Post
Death. (too short)
The cause of, and solution to, all of life's problems.
  Reply With Quote
05-16-13, 07:36 PM   #4
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
What do you mean by death? GetCritChanceFromAgility() returns the same values as if the player was alive. Yep, you made me commit suicide!
  Reply With Quote
05-16-13, 08:03 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Does UnitStat() return the same value when you're dead vs. alive?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
05-16-13, 08:17 PM   #6
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Originally Posted by Rainrider View Post
Is there a way to get secondary stats (i.e. crit chance) for a naked player without making the player undress her/himself? I need this to get agility/intellect to crit conversions, but GetCritChanceFromAgility/Intellect("player") would include the base crit too, which I need to subtract in order to get agi/int-to-crit contribution from gear and buffs.
Simple, bust out your calculater and subtract all the stat bnuses from your gear/gems/talents/ect
__________________
Tweets YouTube Website
  Reply With Quote
05-16-13, 09:20 PM   #7
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
Originally Posted by Seerah View Post
Does UnitStat() return the same value when you're dead vs. alive?
Yes, it does. I'm looking for secondary stats though (crit, dodge, parry and the like).

Why I ask:
Human Warlock level 90
naked int: 197
naked crit form int: 1.777752995491
int for 1% crit: 110.81404475180777520043631391918

clothed int: 16222
clothed crit from int: 8.1025867462158
int for 1% crit: 2002.076683421656495736282306532
====
clothed int - naked int = 16025
clothed crit - naked crit = 6.3248337507248
int for 1% crit: 2533.6634339461651056165420208

Verify:
increase int by: 791
crit increased by: 0.3121963739395
int for 1% crit: 2533.6617143198675770537680505276

So 2533.66 is the correct value

Can I get this value through the API in-game without the player undressing?
  Reply With Quote
05-17-13, 02:40 AM   #8
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Rainrider View Post
Yes, it does. I'm looking for secondary stats though (crit, dodge, parry and the like).

Why I ask:
Human Warlock level 90
naked int: 197
naked crit form int: 1.777752995491
int for 1% crit: 110.81404475180777520043631391918

clothed int: 16222
clothed crit from int: 8.1025867462158
int for 1% crit: 2002.076683421656495736282306532
====
clothed int - naked int = 16025
clothed crit - naked crit = 6.3248337507248
int for 1% crit: 2533.6634339461651056165420208

Verify:
increase int by: 791
crit increased by: 0.3121963739395
int for 1% crit: 2533.6617143198675770537680505276

So 2533.66 is the correct value

Can I get this value through the API in-game without the player undressing?
If you want to work with stats like that i suggest to use at least 10 decimals, else it's pointless. (Or just leave the floats as it is)
The problem is since RatingBuster and the libraries it's using havn't really got updates for lvl90, and noone is actually is working on things like that.

However you can get some info like that from: (upto lvl80)

http://www.wowace.com/addons/rating-buster/

Last edited by Resike : 05-17-13 at 02:46 AM.
  Reply With Quote
05-17-13, 03:58 AM   #9
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
GetSpellCritFromIntellect() returns up to 15 decimal places for me. The values for "int for 1% crit" are the output of my calculator. I don't actually want to look those values somewhere up and then keep extensive tables for such data as I lack the time to keep them updated. So no way to pull such a data through the API?
  Reply With Quote
05-17-13, 04:01 AM   #10
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Rainrider View Post
GetSpellCritFromIntellect() returns up to 15 decimal places for me. The values for "int for 1% crit" are the output of my calculator. I don't actually want to look those values somewhere up and then keep extensive tables for such data as I lack the time to keep them updated. So no way to pull such a data through the API?
I don't think so, but i agree about blizz should release these calculations, or create a function to get such infos.

You could also check this:

http://code.google.com/p/simulationcraft/source/browse/trunk/engine/dbc/sc_scale_data.inc

Last edited by Resike : 05-17-13 at 04:05 AM.
  Reply With Quote
05-17-13, 06:22 AM   #11
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
Askmrrobot relies on data by simcraft and they return incorrect crit values.

It's just strange to me that I can get combat rating by doing i.e. GetCombatRating(CR_CRIT_RANGED)/GetCombatRatingBonus(CR_CRIT_RANGED), which returns 600, but can't do the same for agility or intellect, although they behave roughly the same. It's not the case for dodge or parry as they have diminishing returns. It is actually pretty much impossible to do item comparison ingame with all the reforge and item upgrade stuff and on top of that we can't even get from the game how stat contribution works. I just can't believe we are so much in the dark on a matter that fundamental to WoW, so I think I must be missing something here.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Unit Stats Conversion


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off