Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 27th, 2012  |  syntax: None  |  size: 0.65 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if self.db.profile.soulbound then
  2.         local _,class = UnitClass('player')
  3.  
  4.         if itemsBOP[itemId] ~= nil then
  5.                 if itemType == 'Weapon' or itemType == 'Armor' then
  6.                         local f = CreateFrame('GameTooltip', 'AVTooltip', UIParent, 'GameTooltipTemplate')
  7.                         f:SetOwner(UIParent, 'ANCHOR_NONE')
  8.                         f:SetHyperlink(link)
  9.                         itemsBOP[itemId] = AVTooltipTextLeft2:GetText() == ITEM_BIND_ON_PICKUP or AVTooltipTextLeft3:GetText() == ITEM_BIND_ON_PICKUP or AVTooltipTextLeft4:GetText() == ITEM_BIND_ON_PICKUP
  10.                        
  11.                         -- finally hide it again
  12.                         f:Hide()
  13.                 end
  14.         end
  15.        
  16.         if itemsBOP[itemId] and AV:CannotUse(class, itemType, itemSubType) then
  17.                 return true
  18.         end
  19.        
  20. end