Thread Tools Display Modes
05-07-22, 04:27 AM   #1
Yukka
A Theradrim Guardian
 
Yukka's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2020
Posts: 60
Macro to destroy all grey items in the bags - Need to be updated

Please, can someone experienced make this macro work for the latest version? I do a lot of raids and dungeons and it's a real pain to delete all grey items one by one when there's no vendor nearby. Thanks a lot.

Code:
/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
  Reply With Quote
05-07-22, 09:00 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
See the new (9.1.5) restrictions on DeleteCursorItem
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
05-08-22, 05:57 AM   #3
Yukka
A Theradrim Guardian
 
Yukka's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2020
Posts: 60
Oh that's why... Thanks!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Macro to destroy all grey items in the bags - Need to be updated

Thread Tools
Display Modes

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