Hi all. I'm looking for a macro that will vendor sell all of one particular item in my bags. The item is the Brutal Gladiator's Mutilator, which is purchased with honor points. Upon purchasing the item, players have to wait 4 hours before they can vendor it. I don't know if that matters or not.
Someone once gave me this macro:
Code:
for container = 0, 5 ,1 do
if (GetContainerNumSlots(container)~=nil)then
local contSlots=GetContainerNumSlots(container);
for slot = 1, contSlots+1 ,1 do
local contItemlink=GetContainerItemLink(container,slot);
if (contItemlink~=nil)then
local itemName, = GetItemInfo(contItemlink);
if(itemName:match("Brutal Gladiator's Mutilator"))then
UseContainerItem(container,slot);
end
end
end
end
end
But that didn't work. I think there was a way to turn on errors to help troubleshoot? How would I do that exactly?
Thanks in advance.