Jump to content

Buying at vendor


kalleql

Recommended Posts

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(&quot;INTERACTTARGET&quot;) " />
    <QuestsSorted Action="Wait" NameClass="1000" />

    <QuestsSorted Action="RunLuaCode" NameClass="local itemName = &quot;Skinning Knife&quot;&#xD;&#xA;local quantity = 1&#xD;&#xA;for i=1,GetMerchantNumItems() do&#xD;&#xA; local n=GetMerchantItemInfo(i) print(n)&#xD;&#xA;  if n then&#xD;&#xA;   if n == itemName  then &#xD;&#xA;    BuyMerchantItem(i, quantity)&#xD;&#xA;  end&#xD;&#xA; end&#xD;&#xA;end" />
    <QuestsSorted Action="Wait" NameClass="1000" />
    <QuestsSorted Action="RunLuaCode" NameClass="CloseMerchant() &#xD;&#xA;ClearTarget() " />
    <QuestsSorted Action="Wait" NameClass="60000" />
    <QuestsSorted Action="GoToStep" NameClass="0" />
    <QuestsSorted Action="EndIf" NameClass="" />

Link to comment
Share on other sites

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...