• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Need to add a line of code for purchasing items from the AH

    Discussion in 'Honorbuddy Support' started by Murander, Mar 14, 2012.

    1. Murander

      Murander New Member

      Joined:
      Jan 1, 2012
      Messages:
      76
      Likes Received:
      0
      Trophy Points:
      0
      Attached is some AH code that I've been using lately (all credit goes to benkoren). This is professionbuddy code.

      I would like to add the necessary lines of code to purchase specific items off the AH if they are posted below a certain gold threshold. I would like to add this code before the portion of the code already in the profile where my toon cancels autions that have been undercut.

      Therefore, my idea is that say for instance I want carnelians (52177) to sell at or above 47g on my server. First, I want my toon to check the AH for any carnelians below this amount and buy them all. Then he will check the AH for any of my auctions that were undercut (this code is already in the file), then he will check mail, then he will repost auctions.

      If someone knows the code to add for carnelians, I will duplicate it for the other items I am interested in.

      Thanks in advance to anyone who can help out!
       

      Attached Files:

      Last edited: Mar 14, 2012
    2. Murander

      Murander New Member

      Joined:
      Jan 1, 2012
      Messages:
      76
      Likes Received:
      0
      Trophy Points:
      0
      Anybody have any ideas?

      Would be much grateful. :D
       
    3. buzzerbeater

      buzzerbeater Well-Known Member

      Joined:
      Mar 21, 2011
      Messages:
      5,419
      Likes Received:
      28
      Trophy Points:
      48
      Yeah i have many ideas, but my cup of coke is empty, so you need to give me a few moments till i can bash my keyboard with those ideas.

      :)

      Edit:

      So, added a new subroutine for buying from the ah, it will be done before he sells all the stuff to the AH.

      Item 52177 max buyout 47g buy all available.

      View attachment [PB] AH - per my updates v7 buzz.xml
       
      Last edited: Mar 15, 2012
      Murander likes this.
    4. Murander

      Murander New Member

      Joined:
      Jan 1, 2012
      Messages:
      76
      Likes Received:
      0
      Trophy Points:
      0
      Thanks, buzzerbeater. I did not quite understand your joke, but your help is awesome.

      Thank you again, sir.

      Let me repeat..


      YOU ARE THE AWESOME!
       
    5. buzzerbeater

      buzzerbeater Well-Known Member

      Joined:
      Mar 21, 2011
      Messages:
      5,419
      Likes Received:
      28
      Trophy Points:
      48
      Wasnt a joke, just wanted to say it will take a moment to do it.

      But it was so simple, just took 2 minutes. x)

      If you need more code, just tell me.
       

    Share This Page