Jump to content

Sell the purple items of the first two backpacks?


Recommended Posts

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 post
Share on other sites
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 post
Share on other sites

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

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...