View Single Post
07-10-19, 02:44 PM   #4
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
When I did something similar you got to listen for GET_ITEM_INFO_RECEIVED

if ( event == "GET_ITEM_INFO_RECEIVED" ) then
-- STL_LogTextLine( "STL - GET_ITEM_INFO_RECEIVED " );
local arg1, arg2, arg3, arg4, arg5, arg6 = ...;

--STL_LogTextLine("[" .. tostring(arg1) .. "] [" .. tostring(arg2) .. "] [" .. tostring(arg3) .. "] [" .. tostring(arg4) .. "] [" .. tostring(arg5) .. "] [" .. tostring(arg6) .. "]" );
--RecordLoot(iItemID, "");
AsyncUpdateItems(arg1);
end


and then

local function AsyncUpdateItems(itemID)

local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount, itemEquipLoc, iconFileDataID, itemSellPrice, itemClassID, itemSubClassID, bindType, expacID, itemSetID, isCraftingReagent = GetItemInfo(itemString);

end

itemString is already known so you must be ready before the event comes in (have a map or something)

or use the itemID but I do not know off the top of my head would have to dig more to fine it

Last edited by doofus : 07-10-19 at 02:48 PM.
  Reply With Quote