View Single Post
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