WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   GetItemInfo (https://www.wowinterface.com/forums/showthread.php?t=55864)

Marsgames 11-20-17 04:02 AM

GetItemInfo
 
Hey,

I don't really understand why, but I have a problem with GetItemInfo.

I have a slash cmd that only do
Lua Code:
  1. feet = function(msg)
  2.     local _, equipedItem, itemEquipRarity = GetItemInfo(132455)
  3.     print(equipedItem)
  4. end,

I tried 5 times:
- /reload
- /gh feet (my cmd)
I got 3 "nil" and 2 "[Norgannon's Foresight]"

I tried with others items and I get the same issue. Sometimes got nil, sometimes got itemLink...

Thanks

Kanegasi 11-20-17 04:59 AM

GetItemInfo won't give you item information if you don't have the item and have not seen it linked or inspected since the last time you cleared your cache folder. You command should give you Norgannon's Foresight each time now.

Banknorris 11-20-17 07:09 AM

http://www.wowinterface.com/forums/s...040#post323040

Marsgames 11-20-17 07:25 AM

Thank you, I will try this :)


All times are GMT -6. The time now is 03:19 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI