zhxwbr8 0 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 Quote Link to post Share on other sites
Droidz 2522 Posted October 12, 2020 Share Posted October 12, 2020 Hi, replace 300 by 69 Quote Link to post Share on other sites
zhxwbr8 0 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 Quote Link to post Share on other sites
Droidz 2522 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 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.