• Visit Rebornbuddy
  • BuyItem needs some love

    Discussion in 'Honorbuddy Support' started by Stove, Sep 20, 2012.

    1. Stove

      Stove New Member

      Joined:
      Apr 10, 2012
      Messages:
      182
      Likes Received:
      9
      Trophy Points:
      0
      I have found several occasions where Profession-Buddy's BuyItem method buys random stuff, or buys nothing at all.
      In this specific profile, it is supposed to buy inks at the ink vendor, with below input - where ink is a variable starting at 0, and NeededGlyphs is a dictionary.
      Code:
       Log("Amount of Glyph({0}) ink: {1}", NeededGlyphs.ElementAt(ink).Value.InkId, NeededGlyphs.ElementAt(ink).Value.Amount*3);
      
      This is what i get logged:
      Logged: Amount of Glyph(43126) ink: 6

      And what it ends up buying is this: Plain Wooden Staff - Item - World of Warcraft
       
    2. Michaelcain6

      Michaelcain6 New Member

      Joined:
      Feb 29, 2012
      Messages:
      230
      Likes Received:
      1
      Trophy Points:
      0
      Thanks for the report. Proffesion buddy is still in development. Include the actual log file though, please. ;)
       
    3. Stove

      Stove New Member

      Joined:
      Apr 10, 2012
      Messages:
      182
      Likes Received:
      9
      Trophy Points:
      0
    4. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      *sigh* probably the same issue i was having with MrGearBuyer.
       
    5. Stove

      Stove New Member

      Joined:
      Apr 10, 2012
      Messages:
      182
      Likes Received:
      9
      Trophy Points:
      0
      Addition:
      I saw that BuyItem had been updated. It still doesn't buy the right thing though.
      Now it buys the first item the vendor has. At least in my case.
      Log : View attachment 5128 2012-09-22 16.13.txt
      I have made several logs in this log, which writes down which itemID it should be buying.
       
    6. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      if your still having problems you could open the vender frame manualy and use an Lua dostring to buy the item
      Code:
      Lua.DoString("BuyMerchantItem(" + Index + ")");
      
      replace index with the itemslot you want to buy

      __________
      | slot | slot|
      | 1 | 2 |
      -----------
      |slot | slot|
      | 3 | 4 |
      -----------
      and so on.
       

    Share This Page