View Single Post
04-25-17, 04:17 AM   #6
loff93
A Fallenroot Satyr
Join Date: Apr 2017
Posts: 25
Originally Posted by Banknorris View Post
1) You call GetItemInfo(item_id) to force the item to be cached, otherwise it can really take a lot of time for the item to be cached.
2) If you get a null then register for event GET_ITEM_INFO_RECEIVED if not then you can just use the returned information already
3) When the item is ready (which should happen very quickly) you will get a GET_ITEM_INFO_RECEIVED with arg1 equal to the item_id
4) You can call GetItemInfo(item_id) now
Nice, thanks.
How can I use "GET_ITEM_INFO_RECEIVED" to trigger an event however? Assume I can't use it like:
function GET_ITEM_INFO_RECEIVED(Item_ID)()
-- stuff
end

Will play around with it when I get home from Uni.
  Reply With Quote