View Single Post
06/08/16, 07:18 AM   #7
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Originally Posted by votan View Post
Lua Code:
  1. function FilterIt.GetSlotData(_iBagId, _iSlotId)
  2.     local bIsBagSlotValid = false
  3.  
  4.     if (type(_iBagId) == "number") and(type(_iSlotId) == "number") then
  5.         bIsBagSlotValid = _iBagId ~= BAG_BUYBACK
  6.     end
  7.  
  8.     local slotData = nil
  9.     if bIsBagSlotValid then
  10.         slotData = SHARED_INVENTORY:GenerateSingleSlotData(_iBagId, _iSlotId)
  11.     end
  12.     return slotData or { stackCount = 0 }
  13. end
without much testing, but works.

I added it to FilteIt.lua
but stil got erros
need to replace other functions or add like new in the end?
  Reply With Quote