-
LF addon that allows any item (of my choosing) to be deleted with a press of a button
(while not visiting a vendor).

(or maybe its possible to create a macro in isboxer).
Thankfull for any help.
-
I made it work:
/run for b=0,4 do for s=1,GetContainerNumSlots(b)do local n=GetContainerItemLink(b,s);if n and string.find(n,"THE NAME OF THE ITEM YOU WANT TO DELETE") then PickupContainerItem(b,s);DeleteCursorItem();end;en d;end;
or:
/run for bag = 0,4,1 do for slot = 1, 32, 1 do local name = GetContainerItemLink(bag,slot); if name and string.find(name,"ITEM NAME") then PickupContainerItem(bag,slot); DeleteCursorItem(); end; end; end
Should work for most items.
Also:
should you encounter a item that has a "-", like f.ex: Worn-out plate armor, then you need to add a "%" before the "-" letter.
Like this:
/run for b = 0, 4 do for s = 1, GetContainerNumSlots(b) do local l = GetContainerItemLink(b, s) if l and l:find("Warn%-out plate armor") then PickupContainerItem(b, s) DeleteCursorItem() end end end
its possible to make a macro in isboxer that allow for several items to be deleted into one long macro. Just make another line of the above macro and edit it with the new item you want deleted. Though one macro is limited to max 1024 characters (4 items worth if short enough item names). Even though, its less keys assigned in the end.
Sidenote:
Use with caution..
Delete ALL grey items (in the bags only, bank tabs are not affected, even if open).
/run for bag = 0, 4 do for slot = 1, GetContainerNumSlots(bag) do local name = GetContainerItemLink(bag,slot) if name and string.find(name,"ff9d9d9d") then PickupContainerItem(bag,slot) DeleteCursorItem() end end end
Delete all GREEN items (in the bags only, bank tabs are not affected, even if open).
/run for bag = 0, 4 do for slot = 1, GetContainerNumSlots(bag) do local name = GetContainerItemLink(bag,slot) if name and string.find(name,"ff1eff00") then PickupContainerItem(bag,slot) DeleteCursorItem() end end end
Last edited by WOWBOX40 : 12-11-2017 at 07:38 AM
Posting Rules
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Connect With Us