Originally Posted by Baertram
Code:
* CanItemBeMarkedAsJunk(*[Bag|#Bag]* _bagId_, *integer* _slotIndex_)
** _Returns:_ *bool* _canBeMarkedAsJunk_
* IsItemJunk(*[Bag|#Bag]* _bagId_, *integer* _slotIndex_)
** _Returns:_ *bool* _junk_
* HasAnyJunk(*[Bag|#Bag]* _bagId_, *bool* _excludeStolenItems_)
** _Returns:_ *bool* _hasJunk_
* SetItemIsJunk(*[Bag|#Bag]* _bagId_, *integer* _slotIndex_, *bool* _junk_)
|
Thank you very much, works like a charm!
Lua Code:
-- Check if the item is marked as junk (junked).
local isJunk = IsItemJunk(bagId, slotId)
d("Item: " .. itemLink .. " | Is Junk: " .. tostring(isJunk)) -- Debug output
end