Thread Tools Display Modes
Today, 11:36 AM   #1
Saint-Ange
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 11
Question Check if item is marked as junk

Hi,

How to check if an armor or weapon item is marked as junk?
I'd like my function to apply some FCOIS icon but only if the item is marked as junk.
  Reply With Quote
Today, 11:55 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,161
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_)
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Check if item is marked as junk


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off