| |
This is not a pressing concern since it doesn't break any mods, but the 8th return of GetItemInfo is localized: http://www.wowinterface.com/forums/showthread.php?t=1918&page=2
We could determine an item's slot from the 5th and 6th return before, but since they were localized it was difficult to do it in a way that worked across languages.
The 8th return (once guns, crossbows and ammo worked) was to be our silver bullet to no longer scan tooltips or depend on localization. But it appears it's localized also. :(
Since it's relatively new, do you think it'd be possible to make this not localized as planned?
Also do you think range and ammo could be made to work for the 8th return? It's understandable if ammo can't, since it's never actually "equipped". But it would be very useful to work with equippable items without depending on localization.
Specifically: only bows return "Ranged". Guns, crossbows, arrows and bullets all return "" (as do any item that can't be equipped)
You can use this macro to see the returns of GetItemInfo on an item in container slot 0,1:
/script _,_,l=strfind(GetContainerItemLink(0,1)or "","item:(%d+)") local m,i,t,v="" v1,v2,v3,v4,v5,v6,v7,v8=GetItemInfo(l)for i=1,8 do v=getglobal("v"..i)t=tonumber(v)and "" or "\"" m=m.."v"..i.."="..t..(v or "nil")..t.." " end ChatFrame1:AddMessage(m)
Thanks!
|