• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Train a Recipe from a Repair Vendor

    Discussion in 'Requests & Discussion' started by Qu0ta7, Aug 12, 2014.

    1. Qu0ta7

      Qu0ta7 New Member

      Joined:
      Apr 16, 2011
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      I am attempting to Train a recipe that is sold by a Repair Vendor. I have tried Interactwith and gossipoptions among other things, but I can't seem to find the code to make it work in a QUEST type profile.

      The vendor is Kol Ironpaw at Halfhill and the recipe is Charbroiled Tiger Steak.

      Can anyone point me in the right direction.

      Thanx

      Sorry for my username, I have requested a change.
       
    2. thebrodieman

      thebrodieman Well-Known Member Buddy Store Developer

      Joined:
      Sep 11, 2011
      Messages:
      6,015
      Likes Received:
      81
      Trophy Points:
      48
      If you have the cost to buy it, you can use InteractWith.

      InteractWith InteractByBuyingItemId="12345" BuyItemCount="1"

      Then use the item:

      CustomBehavior File="Misc\RunLua" Lua="UseItemByName(12345)"

      that should work.

      1 issue is "do i have the recipe already". I dont THINK a HasSpell check returns for recipes...so...unless you can figure out how to return this check correctly, it would try to buy it all the time...i think.
       
    3. Qu0ta7

      Qu0ta7 New Member

      Joined:
      Apr 16, 2011
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      I appreciate that BrodieMan - I will give it a try. BTW - Love the Compendium!!!
       

    Share This Page