So i found some nice macros, one that sells everything in my bags execpt the last one and a macro that deletes all the White, Gray and Green items in my bag.
So i want to merge them so that the new macro will delete everything exept for the last bag. if you can help me with this i'll be very grateful.
The macro that sells everything in my bags execpt the last one.
/script for x=0,3 do for y=1,GetContainerNumSlots(x) do UseContainerItem(x,y);end;end;
The other macros.
Gray items:
/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
White items:
/run for bag = 0, 4 do for slot = 1, GetContainerNumSlots(bag) do local name = GetContainerItemLink(bag,slot) if name and string.find(name,"ffffffff") then PickupContainerItem(bag,slot) DeleteCursorItem() end end end
Green items:
/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
thanks in advance.
