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="" />