SetItemIsJunk
ESO Lua API function — used by 41 of the 3,030 addons we indexed (combined 2,590,554 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
SetItemIsJunk([Bag|#Bag] bagId, integer slotIndex, bool junk)Real usage — from Lootdrop, Continued (All in One)
if self.db.Junk and GetItemLinkItemType(itemLink) == ITEMTYPE_TRASH and IsItemJunk(self.lastSingleSlotUpdateBagId, self.lastSingleSlotUpdateSlotId) == false then
SetItemIsJunk(self.lastSingleSlotUpdateBagId, self.lastSingleSlotUpdateShort excerpt from the shipping addon Lootdrop, Continued (All in One) — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Lootdrop, Continued (All in One) | 1,145,178 |
| Sous Chef - Provisioning Helper (Recipe helper/search) | 583,928 |
| Bandits Loot Manager | 134,811 |
| Zolan's Junk Handler | 129,556 |
| Thief Tools | 119,252 |
| JunkBuster | 67,472 |