• Visit Rebornbuddy
  • Code to vendor items based on bind status?

    Discussion in 'Honorbuddy Forum' started by BanannaKing, Dec 31, 2016.

    1. BanannaKing

      BanannaKing New Member

      Joined:
      Dec 16, 2016
      Messages:
      37
      Likes Received:
      0
      Trophy Points:
      0
      I want to know if it is possible (currently, or theoretically) to write code that would vendor items based on bind status, eg. BoP/Soulbound VS BoE.

      If it is possible, I would love to have this, even that alone. BUT, as an extra step, it would be nice to have the code delineate based on both bind status, and item rarity, with bind status being a higher priority.

      That way I could have my bot sell soulbound items of any item quality, and save BoE items of Rare or Epic quality. Such that I wouldn't miss the possible gold from a rare world drop or other valuable BoE - but I would not have to keep every useless soulbound boss drop to have that possibility.

      I just want to know if this is even theoretically possible, so i can keep tossing the idea around, or give up on it accordingly. Thank you :D
       
      Last edited by a moderator: Jan 1, 2017
    2. Opply

      Opply Community Developer

      Joined:
      Feb 28, 2013
      Messages:
      328
      Likes Received:
      29
      Trophy Points:
      0
    3. BanannaKing

      BanannaKing New Member

      Joined:
      Dec 16, 2016
      Messages:
      37
      Likes Received:
      0
      Trophy Points:
      0
      Okay, so how do I turn this into code that I can put into profiles, or better yet make a plugin? (Sorry if I should know by the links you gave me, i'm not being thick, just lack coding knowledge).
       
    4. Opply

      Opply Community Developer

      Joined:
      Feb 28, 2013
      Messages:
      328
      Likes Received:
      29
      Trophy Points:
      0
      First you need to think about what exactly you want the bot to do for you. Then you need to learn the basics of C# coding or have someone write the code for you.

      On a sidenote, all profiles contains a section like:

      PHP:
         <MailGrey>false</MailGrey>
         <
      MailWhite>false</MailWhite>
         <
      MailGreen>true</MailGreen>
         <
      MailBlue>true</MailBlue>
         <
      MailPurple>true</MailPurple>
         
         <
      SellGrey>true</SellGrey>
         <
      SellWhite>true</SellWhite>
         <
      SellGreen>false</SellGreen>
         <
      SellBlue>false</SellBlue>
         <
      SellPurple>false</SellPurple>
      The first section you tell it to mail all of a selected quality (then they ofc have to be BoE) to the toon specified in your bot settings, the other specifies what qualities you want the bot to vendor. For example <SellPurple>true</SellPurple> tells the bot to vendor all epics.
       
    5. BanannaKing

      BanannaKing New Member

      Joined:
      Dec 16, 2016
      Messages:
      37
      Likes Received:
      0
      Trophy Points:
      0
      I am familiar with that section of code in profiles, yes. See, the thing is that the bot doesn't seem to prioritize going to either the vendor or mailbox first - nor does it always do both if it does one.
      So, you either risk rare BoE rare's & epics getting vendored instead of mailed - or you let all rare's and epics stack up in your bag, regardless of bind status.
      What I would like to achieve is having the bot save BoE rare's & epics, but not soulbound "rares & epics" that I get from dungeon/raid drops which drop very commonly and aren't any good to me for anything but vendoring. That's the end goal. Is that achievable?
      If you could force the bot to go to a mailbox before it vendors, that achieves this.
      If it could be coded to vendor delineating based upon bind status first, as a priority over rarity, that achieves this.

      That is what I am trying to get at here =)
       
    6. Opply

      Opply Community Developer

      Joined:
      Feb 28, 2013
      Messages:
      328
      Likes Received:
      29
      Trophy Points:
      0
      What you want to do can be achived with a <CustomBehavior File="RunCode"> tag with some custom C# code inside of it.

      You want to go over all items in your inventory and vendor all epic items that are soulbound right?

      Head over to the Community Developer forum and ask for help there and I'm sure someone will help you out.
       
    7. BanannaKing

      BanannaKing New Member

      Joined:
      Dec 16, 2016
      Messages:
      37
      Likes Received:
      0
      Trophy Points:
      0
      Can't tell you how much I appreciate the time you took to reply Opply, thank you. So happy to know this is possible, and will be taking my request over to the County Dev. Forum.
      +Rep coming your way, kind sir!
       
    8. Opply

      Opply Community Developer

      Joined:
      Feb 28, 2013
      Messages:
      328
      Likes Received:
      29
      Trophy Points:
      0
      No problems, glad to help :)
       
      UsernameInvalid likes this.
    9. UsernameInvalid

      UsernameInvalid Community Developer

      Joined:
      Jul 27, 2014
      Messages:
      273
      Likes Received:
      11
      Trophy Points:
      18
      This is the most click bait title I've seen on the forums in a while, but so happy to see that you were able to find the help you need. As Opply mentioned, the dev forums are the place to go for help when you are in over your head with making a new script or profile. With that being said, try to learn from what you are provided to see if you can implement it in the future yourself.
       
    10. BanannaKing

      BanannaKing New Member

      Joined:
      Dec 16, 2016
      Messages:
      37
      Likes Received:
      0
      Trophy Points:
      0
      I intend to learn, always, you can count on that! :p
      Wish there was a book I could buy or youtube video courses I could take to learn how to build profiles/plugins honestly. Eager for knowledge >:D
       
    11. pookthetook

      pookthetook Member Buddy Store Developer

      Joined:
      Jan 28, 2012
      Messages:
      214
      Likes Received:
      21
      Trophy Points:
      18
      Quite a bit going on with that to be announced at a later date ;)

      What level of programming knowledge are you at?
       
    12. UsernameInvalid

      UsernameInvalid Community Developer

      Joined:
      Jul 27, 2014
      Messages:
      273
      Likes Received:
      11
      Trophy Points:
      18

    Share This Page