Getting item weapon speed
Note: This is for Classic
Blizzard made a bunch of changes over the course of beta that slowly broke one of my addons. I'm trying to fix an addon, but one issue i'm running into is I need to find a way to determine my current equipped range weapon's speed for a hunter. I know I can get my weapon speed (with haste applied) by using UnitRangedDamage. I need to find a way to get the base speed. I tried by getting the item link and finding the item mod for weapon speed via the following: Code:
bowlink = GetInventoryItemLink("player", 18) ITEM_MOD_CR_UNUSED_3_SHORT which I found on https://www.townlong-yak.com/framexm...balStrings.lua but it seems like that is not used or is nil as well. Any ideas would be really appreciated. Edit: Just an update... I found I can print out the stats that the item has by using the following.. Code:
for stat, value in pairs(stats) do Any alternative routes to get my base ranged weapon speed would be amazing. |
My real issue is determining ranged haste for aimed shot.
The actual aimed shot cost time is 3.5 seconds and is effected by haste. I was going to determine the ranged haste by looking at the ranged attack speed, the weapon speed, and calculating it based off that, but as I cannot get the weapon's speed this will not be possible. Any ideas for alternatives for determining the ranged haste? |
Cant remember but if its in the tooltip you could read it from there?
|
You could do it in steps, unless there is a better way.
Get the percent that Haste gives you for ranged attacks: https://wow.gamepedia.com/API_GetCombatRatingBonus Code:
local hastePercent = GetCombatRatingBonus(CR_HASTE_RANGED) GetRangedHaste() might also work, but the API isn't documented on Wowpedia; you'll have to check the API docs. https://wow.gamepedia.com/World_of_W...API#Paper_Doll |
Check out DejaClassicStats to see how Deja extracts the numbers from the API.
|
Quote:
I'm going to try the other methods suggested once classic goes live though and hopefully i'll have some type of success with those. Thanks for the input! |
So just an update...
Neither of these work for getting the ranged weapon speed. Any other ideas on how to calculate either my ranged haste or my ranged weapon speed (unhasted) for a hunter? |
All times are GMT -6. The time now is 12:30 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI