Jump to content

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
 

 

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 

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

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...