View Single Post
08/04/14, 07:24 PM   #22
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
ArmorType & WeaponType Funciton Changes

It looks like with the addition of the new ways to get ArmorType & WeaponType from a link:
Lua Code:
  1. local lItemLink = GetItemLink(iBagId, iSlotId)
  2. local ArmorType = GetItemLinkArmorType(lItemLink)
  3. local WeaponType = GetItemLinkWeaponType(lItemLink)

They also changed the way the old functions worked:
Lua Code:
  1. -- These no longer work --
  2. local ArmorType = GetItemArmorType(lItemLink)
  3. local WeaponType = GetItemWeaponType(lItemLink)
They now take a bag & slot ID:
Lua Code:
  1. local ArmorType = GetItemArmorType(iBagId, iSlotId)
  2. local WeaponType = GetItemWeaponType(iBagId, iSlotId)
  Reply With Quote