Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-24-17, 11:17 AM   #1
loff93
A Fallenroot Satyr
Join Date: Apr 2017
Posts: 25
WoW LUA - cache issue

Hello!

Just started working with lua and WoW addons. It's pretty fun and I have already made some simple addons.
My only issue so far is the cache. When the items I try to use is not in the local cache and I end up getting errors. How can I manage to get the item info right away, to avoid GetItemInfo(id) being equal to "nil" unless I already have it in cache?
I'm pretty new to lua even if I have worked with programming so try to explain it in a simple way if possible.

Thanks!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » WoW LUA - cache issue


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off