WOWBOX40
12-07-2017, 12:48 PM
(while not visiting a vendor).
:p
(or maybe its possible to create a macro in isboxer).
Thankfull for any help.
WOWBOX40
12-09-2017, 05:07 PM
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
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.