zhxwbr8 1 Posted October 12, 2020 Share Posted October 12, 2020 I use this one now, but he sells all the items of the backpack. How can I make him sell only the items of the first two backpacks? If my backpack has 30 squares.Thank you. /run local q;if MerchantFrame:IsVisible()then for i=1,300 do q=GetContainerItemLink(i/35,i%35)if q and q:sub(5,10)=="a335ee"then UseContainerItem(i/35,i%35)end;end;end Link to comment https://wrobot.eu/forums/topic/12577-sell-the-purple-items-of-the-first-two-backpacks%EF%BC%9F/ Share on other sites More sharing options...
Droidz 2738 Posted October 12, 2020 Share Posted October 12, 2020 Hi, replace 300 by 69 Link to comment https://wrobot.eu/forums/topic/12577-sell-the-purple-items-of-the-first-two-backpacks%EF%BC%9F/#findComment-60224 Share on other sites More sharing options...
zhxwbr8 1 Posted October 12, 2020 Author Share Posted October 12, 2020 1 minute ago, Droidz said: Hi, replace 300 by 69 Thx,and i want ask ,i know Blue is 0070dd,so when i want sell purple+blue,it is right? RunMacroLua->/run local q;if MerchantFrame:IsVisible()then for i=1,69 do q=GetContainerItemLink(i/35,i%35)if q and q:sub(5,10)=="a335ee,0070dd"then Link to comment https://wrobot.eu/forums/topic/12577-sell-the-purple-items-of-the-first-two-backpacks%EF%BC%9F/#findComment-60225 Share on other sites More sharing options...
Droidz 2738 Posted October 12, 2020 Share Posted October 12, 2020 https://wowwiki.fandom.com/wiki/API_GetItemQualityColor Quote Poor ff9d9d9d Common ffffffff Uncommon ff1eff00 Rare ff0070dd Epic ffa335ee Legendary ffff8000 Artifact ffe6cc80 Heirloom ffe6cc80 WoW Token ff00ccff Try /run local q;if MerchantFrame:IsVisible()then for i=1,300 do q=GetContainerItemLink(i/35,i%35)if (q and (q:sub(5,10)=="a335ee" or q:sub(5,10)=="0070dd")) then UseContainerItem(i/35,i%35)end;end;end zhxwbr8 1 Link to comment https://wrobot.eu/forums/topic/12577-sell-the-purple-items-of-the-first-two-backpacks%EF%BC%9F/#findComment-60227 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now