Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-08-14, 09:15 AM   #1
Mazzop
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 74
GetItemFamily, bitfield

I dont have WoW access atm but got little request to my addon and require help now
I want to find out if given item is used for enchanting or not. I found GetItemFamily but dunno how to work with bitfield, so probably something like
Lua Code:
  1. if (bit.band(GetItemFamily(item), 0x0040) ~= 64) then
dose not have much sense (i found those values here http://wowprogramming.com/docs/api_types#bitfield)
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » GetItemFamily, bitfield


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