Quantcast WoWInterface - View Single Post - Getting item weapon speed
View Single Post
08-15-19, 09:52 AM   #1
MinguasBeef
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 33
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)
stats = GetItemStats(bowlink)
print(bowlink)
print(tostring(stats["ITEM_MOD_SPEED_SHORT"]))
However i'm getting back nil for the ITEM_MOD_SPEED_SHORT stat. I also tried the item mod
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
   print(stat)
end
It looks like there is not a weapon speed stat.

Any alternative routes to get my base ranged weapon speed would be amazing.

Last edited by MinguasBeef : 08-15-19 at 01:17 PM.
  Reply With Quote