• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • eBuy - buying ammo and food - v2.0

    Discussion in 'Archives' started by erenion, Jan 15, 2010.

    1. erenion

      erenion DEVELOPER Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      321
      Likes Received:
      6
      Trophy Points:
      0
      Check http://www.buddyforum.de/showthread.php?8548-eBuy-3.0-Buys-food-drinks-completly-automatically for the new version.



      What is eBuy? It is a plugin for honor buddy that will buy food and ammo for you. Yes that means no more buying ammo.

      How to make it work: simply open it up and add this line below the example:
      Code:
      new ItemToBuy("Vendor Name",xLocation,yLocation,zLocation,"itemName",stacktobuyat,numbertohave,item#invendor,stacksizesold),
      replacing of course everything like below
      Code:
      new ItemToBuy("Vikki Lonsav",-1272.656,-2533.512,21.38472,"Solid Shot",1000,1200,12, 200),
      item#invendor is the "index number". For example we have below the vendor where each number is the item (also the index number)
      _________
      | 1 | 2 |
      | 3 | 4 |
      | 5 | 6 |
      | 7 | 8 |


      fairly easy to understand. You can use it for as many items as you want.

      YOU MUST make sure the mesh can get to the vendor. If not bad things happen. Be warned - don't over use it (like buying food every 10 minutes). It can get stuck and do nothing. I suggest only using it for things that you can't bot without (ammo).

      To Do:

      • [li]Add support for multiple vendors selling the same item[/li]
        [li]Make it so it never gets stuck[/li]


      Change Log:
      Code:
      v2.0 - Released May 2, 2010
       - Updated for HB 2.0
      
      v1.1 - Released January 15, 2010
       - Will now check to see if you can walk to the vendor before trying
       - Will no longer get stuck and simply stand there
      
      v1.0 - Released December 25, 2009
       - Initial Release
       

      Attached Files:

      Last edited: Aug 16, 2010
    2. mctrix

      mctrix Member

      Joined:
      Jan 15, 2010
      Messages:
      225
      Likes Received:
      1
      Trophy Points:
      18
      Thanks for this!

      im guessing this question is abit trivial but....how do you get the co'rods of the npc?

      do you have an updated version with some vendors in it?
       
    3. erenion

      erenion DEVELOPER Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      321
      Likes Received:
      6
      Trophy Points:
      0
      To get the vendor location simply select the vendor in game and select it, go to navigation tab in HB and click current target. Then on the navigator log stuff will appear telling you the vendor's location etc.
       
    4. mctrix

      mctrix Member

      Joined:
      Jan 15, 2010
      Messages:
      225
      Likes Received:
      1
      Trophy Points:
      18
      ok so once i have that i fill out the xml will hb make its way to the buy npc? or does the mesh need to know how to path to it?
       
    5. erenion

      erenion DEVELOPER Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      321
      Likes Received:
      6
      Trophy Points:
      0
      You need to modify the .cs file as specified in the post. The mesh also needs to know how to get to the vendor.
       
    6. brabbit

      brabbit New Member

      Joined:
      Jan 15, 2010
      Messages:
      153
      Likes Received:
      0
      Trophy Points:
      0
      Very nice!
      Thanks E
       
    7. erenion

      erenion DEVELOPER Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      321
      Likes Received:
      6
      Trophy Points:
      0
      Not a problem =)
       
    8. mctrix

      mctrix Member

      Joined:
      Jan 15, 2010
      Messages:
      225
      Likes Received:
      1
      Trophy Points:
      18
      so if i was using the 60 - 70 human file that wouldnt find the npc? how do you edit an exsisting mesh file?
       
    9. erenion

      erenion DEVELOPER Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      321
      Likes Received:
      6
      Trophy Points:
      0
      Load up the mesh and add nodes like you would any other mesh. There are guides on how to do this.
       
    10. metus

      metus Member

      Joined:
      Jan 15, 2010
      Messages:
      142
      Likes Received:
      3
      Trophy Points:
      18
      First of all, thanks for this nice bit of code.
      Is there a way to make an xml of some sort called Food.xml to make a list with vendors and the food they have available and let the script choose the closest vendor and buy the appropriate level food and set HonorBuddy's food to that specific one?
       
    11. erenion

      erenion DEVELOPER Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      321
      Likes Received:
      6
      Trophy Points:
      0
      Yes it is quite possible - I think I am going to start developing it more once I'm done with what I'm currently working on.
       
    12. LAP87

      LAP87 Member

      Joined:
      Jan 15, 2010
      Messages:
      451
      Likes Received:
      0
      Trophy Points:
      16
      Yeah, i am using Faction Discount addon (it's awesomesauce) .. And i always set it up so when i speak to an innkeeper or just a regular vendor it buys me stuff that i've told it to.
      My biggest concern is that HB doesn't know when food/water/ammo is running low and it doesn't make use of the different food-vendors specified in the profile.
       
    13. nickw082

      nickw082 New Member

      Joined:
      Jan 15, 2010
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      1
      Can we add multiple lines of vendors? Or will this only work with 1 vendor? If we can add multiple do I just add a new one on each line?

      Will HB know to use the correct vendor for whatever mesh I'm currently leveling with?
       
    14. erenion

      erenion DEVELOPER Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      321
      Likes Received:
      6
      Trophy Points:
      0
      Yes you can use multiple vendors but it will attempt to go to all of the vendors you add... eBuy is on my to-do list.
       
    15. morgalis

      morgalis New Member

      Joined:
      Jan 15, 2010
      Messages:
      54
      Likes Received:
      0
      Trophy Points:
      0
      Could you add some Gossip handle too ? Some Innkeepers dont show the vendor page but you must choose what ... here ebuy doesnt work.
       
    16. MrBig

      MrBig Member

      Joined:
      Jan 25, 2010
      Messages:
      419
      Likes Received:
      5
      Trophy Points:
      18
      One thing it could do is, by giving just the food name, it would check in a database (wowhead) to see where it can buy that specific food/water, in the same zone. If there wasnt one like that, it would just find another one available in the zone, within the same level range.

      Ofc the profile would need to have this vendor too.
       
    17. erenion

      erenion DEVELOPER Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      321
      Likes Received:
      6
      Trophy Points:
      0
      I wish that could be done but wowhead doesn't have xyz coords so it can't be.
       
    18. chaser21

      chaser21 Community Developer

      Joined:
      Jan 21, 2010
      Messages:
      43
      Likes Received:
      0
      Trophy Points:
      0
      I looked for the guides can u link them for the Noob :( <--- Me

      Thanks
       
    19. erenion

      erenion DEVELOPER Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      321
      Likes Received:
      6
      Trophy Points:
      0
    20. blackthorn

      blackthorn New Member

      Joined:
      Jan 25, 2010
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      1
      Problem with eBuy

      This seems like a great tool, however I cannot get it to work properly. I have tried all the standard recommendation (remove all addons/plugins, reinstall HB, clear WoW cache, etc). I have read everything I can on the forums regarding this plugin, searched for similar issues in other plugins and scanned my log files extensively, but cannot find a solution.

      I did add the following line to eBuy.cs, as per the instructions.
      new ItemToBuy("Caregiver Poallu",3003.715,4052.131,26.36842, "Fillet of Icefin",10,100,5, 5),
      but it keeps throwing an exception on line 40.

      Please help.
       

      Attached Files:

    Share This Page