Originally Posted by runamonk
I scan the tooltip and pull the scaled item level from there, it works everytime.
This looks interesting.
|
That is what I was using before but this is a lot easier. One side note is you may need to wrap the code in the following code if it is going to load at startup.
Lua Code:
local item = Item:CreateFromBagAndSlot(bagID, slotID)
item:ContinueOnItemLoad(function()
-- Do thing with the data here.
end)
The way they have item and spell data it needs to make sure everything is loaded before when the player first logs in.
-----
Oh and it also has a function to check if an item is soulbound or not.
Lua Code:
local item = Item:CreateFromBagAndSlot(bagID, slotID)
item:ContinueOnItemLoad(function()
local location = item:GetItemLocation()
local isSoulbound = C_Item.IsBound(location)
-- Do stuff here.
end)