kalleql 0 Posted April 9, 2018 Share Posted April 9, 2018 Hi there, I am building a TBC quest profile. In this Profile I learn in OG skinning and by luck directly next to the trainer is the vendor "Tamar" for my skinning knife. I already have the bot open the vendor and there I am.... I am playing TBC <QuestsSorted Action="RunMacroLua" NameClass="/tar Tamar" /> <QuestsSorted Action="RunLuaCode" NameClass="RunBinding("INTERACTTARGET") " /> <QuestsSorted Action="Wait" NameClass="1000" /> <QuestsSorted Action="RunLuaCode" NameClass="local itemName = "Skinning Knife"
local quantity = 1
for i=1,GetMerchantNumItems() do
 local n=GetMerchantItemInfo(i) print(n)
 if n then
 if n == itemName then 
 BuyMerchantItem(i, quantity)
 end
 end
end" /> <QuestsSorted Action="Wait" NameClass="1000" /> <QuestsSorted Action="RunLuaCode" NameClass="CloseMerchant() 
ClearTarget() " /> <QuestsSorted Action="Wait" NameClass="60000" /> <QuestsSorted Action="GoToStep" NameClass="0" /> <QuestsSorted Action="EndIf" NameClass="" /> Link to comment https://wrobot.eu/forums/topic/9086-buying-at-vendor/ Share on other sites More sharing options...
Jensen- 25 Posted April 9, 2018 Share Posted April 9, 2018 Lua.LuaDoString("BuyMerchantItem(16,1)"); 16 item numer in the vendor menu and 1 is how many items you want use it with runecode Link to comment https://wrobot.eu/forums/topic/9086-buying-at-vendor/#findComment-42286 Share on other sites More sharing options...
Marsbar 228 Posted April 9, 2018 Share Posted April 9, 2018 C# code: wManager.Wow.Helpers.Vendor.BuyItem("Skinning Knife",1); Link to comment https://wrobot.eu/forums/topic/9086-buying-at-vendor/#findComment-42287 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