To check for an enchant, you need to parse the
itemstring.
You can get an itemlink for a slot in your inventory with
GetInventoryItemLink:
lua Code:
local slotId = GetInventorySlotInfo("ChestSlot")
local link = GetInventoryItemLink("player", slotId)
local itemId, enchantId, gem1, gem2, gem3, gem4 = link:match("item:(%d+):(%d+):(%d+):(%d+):(%d+):(%d+)")
Tekkub's Bimbo is an excellent example of how you can detect enchants/gems.