• Visit Honorbuddy
  • Visit Rebornbuddy
  • Visit Demonbuddy
  • Visit Exilebuddy
  • Visit Hearthbuddy
  • Visit Pokefarmer
  • Visit Buddystore

[Plugin] Giles Auto Equipper

Discussion in 'Plugins' started by GilesSmith, Jul 4, 2012.

  1. GilesSmith

    GilesSmith New Member

    Joined:
    Jun 2, 2012
    Messages:
    1,564
    Likes Received:
    34
    Trophy Points:
    0
    Auto Equipper v1.7.1 by GilesSmith
    (v1.7.1 released: 08th August @ 17:00 BST)​


    1: Overview:
    Giles Auto Equipper is a plugin to help levelling up of new characters in DemonBuddy, particularly lower-level characters, by automatically equipping any items DemonBuddy loots that would be an upgrade. Will also be very useful once DB can explore random dungeons and we can run 1-60/Act1-4 routines in one go.

    Be sure to edit your loot rules to let DemonBuddy pick all items of level 1+ up - it's no good having loot rules that only pick up level 60+ yellow items and then using this plugin on a brand new character! :D

    This plugin will do nothing other than look at new items it detects in your backpack, and decide whether to equip them or not. It does nothing else - it does not interfere with looting, stashing, selling, salvaging, handling full backpacks, or anything else.


    2: Features:
    - Safety feature prevents plugin doing anything if it detects your character level is already 60 (to help prevent any "accidents" on a fully geared character), unless you set the config option to work on 60's (off by default).
    - Config window to make plugin ignore armor, jewelry, weapons, or helmets, incase you have your own equipment you want to force-use.
    - Checks all your items and backpack when DB first starts and equips whatever it thinks is "best in slot".
    - Continues to monitor all items DB picks up to look for any possible upgrades.
    - Tries to identify unidentified items on pickup, if you aren't in combat, to upgrade as soon as possible.
    - Handles all character classes automatically and focuses on appropriate item types and primary stats.
    - Handles rings in both slots without issue.
    - Easy to alter item weightings by editing the .cs file if you don't like how Auto Equipper judges items.
    - Focuses only on 1-handed weapons with an off-hander (shield/mojo/source/quiver) - except for DH's which focus on 2-handed ranged weapons with a quiver.


    3: Config Window:
    [​IMG]
    The config window allows you to disable the equipper from trying to upgrade specific item slots (eg if you have a helmet with a huge +exp gem in it you want to keep). You can also enable the equipper for level 60 toons - be careful that you don't have any unprotected uber items in your backpack first if you do this!


    4: Installation:
    1: Download the attached zip (bottom of post).
    2: Extract to your Demonbuddy directory (eg "C:/Demonbuddy/Plugins/")
    3: The files "GilesEquipper.cs" and "GilesEquipper.xaml" should now both be in their own folder in your plugins folder (eg "C:/Demonbuddy/Plugins/GilesEquip/GilesEquipper.cs")
    4: Start Demonbuddy, select the plugins tab, and click the check mark next to Giles Equipper to enable.
    5: You can click the "Config" button after selecting the plugin in the plugin list to lock specific item-types/slots from ever being evaluated.
    6: Once you start your bot, equipper will do its thing!


    5: Loot Rules:
    You need loot rules that will pickup pretty much everything, so that my plugin can get a chance to evaluate them and use them. I'm not officially supporting the attached loot-rules but I've uploaded them for those that can't make them (I recommend you edit them to suit your own needs). Both the attached loot-rules will pickup all items that are level 1+, and gold and health potions. They will also SELL everything level 1+ - they will not try to stash or salvage anything. This allows my plugin to pick what it wants and junk everything else. Either pick the loot-rules for picking EVERYTHING up (including greys & commons) - or the loot-rules that only pick things up that are at least blue (Magic).
    Don't use these loot rules with valuable equipment on your character, as they may be vendored! Use at own risk!


    6: Notes & Version History:
    I have never programmed before I used DemonBuddy. DemonBuddy is my first adventure into anything more complicated than Excel spreadsheet. Criticism is welcomed but please keep it constructive, and remember I am not a DB developer nor am I being paid - I am a fellow DB user just like you!
    Code:
    v1.7.1:
    -- Updated to support new DemonBuddy.
    -- Updated item handling/recognition to that of latest Giles Stash Replacer (1.9.x range).
    -- Settings file now saved in /DemonBuddy/Settings/ folder (you will need to re-configure settings after first run since 1.7).
    
    v1.7:
    -- Added a config option to enable the plugin for level 60's (useful if you leave your bot on levelling from 55+ and don't mind it still finding upgrades once it hits the cap).
    -- Now tries to identify unidentified items in your backpack, as long as you aren't in combat at the time.
    
    v1.6.1:
    -- Fixed bug with loading/saving ignore helms and ignore armor settings.
    
    v1.6:
    -- Various minor changes/updates to item identification code.
    -- Now comes with a config window and saves your settings in a config file, for editing what item-types not to touch.
    -- Rules files attached to first post updated for those that use them.
    
    v1.5:
    -- Replaces DemonBuddy item identification code with Giles item identification. Now recognizes and supports all item-types including class-specific types.
    
    v1.4:
    -- Added life on hit scoring and weighting for items/weapons.
    -- Fixed bug with weapon scoring treating strength as the "primary stat" for all classes.
    -- Further increased default score-weight of DPS on weapons.
    
    v1.3:
    -- Added variables near the top of the plugin (just above stat weight values) to prevent the plugin touching certain item-types/slots.
    -- Increased the default score-weight of DPS on weapons slightly.
    
    v1.2:
    -- Added weightings for sockets on items and weapons
    -- Added support for characters you manually equip with two-handers, so it evaluates the two-handed weapon before deciding to remove it.
    
    v1.0:
    -- Initial release
    

    7: Download:
    You should download ONE loot-rule, and ONE zip.
    The loot-rule is optional and should never be used with valuable gear on your character! - ideally, you should customize your own loot-rules.
    You should always pick the newest (highest) version zip.
     

    Attached Files:

    Last edited: Aug 16, 2012
  2. Farmbot

    Farmbot New Member

    Joined:
    Jan 15, 2010
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    0
    Cannot download it
     
  3. GilesSmith

    GilesSmith New Member

    Joined:
    Jun 2, 2012
    Messages:
    1,564
    Likes Received:
    34
    Trophy Points:
    0
    You sure? It lets me download it fine :O Might've gone funny if you tried downloading it while I was editing the post!? :D
     
  4. theatristformallyknownasG

    theatristformallyknownasG New Member

    Joined:
    Jan 16, 2010
    Messages:
    3,060
    Likes Received:
    8
    Trophy Points:
    0
    Downloads fine for me, will give it a whirl after dinner, thanks.

    G
     
  5. Farmbot

    Farmbot New Member

    Joined:
    Jan 15, 2010
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    0
    now it works. perhabs bad timing ;-)
    Will test it if server are available und give a response
     
  6. theatristformallyknownasG

    theatristformallyknownasG New Member

    Joined:
    Jan 16, 2010
    Messages:
    3,060
    Likes Received:
    8
    Trophy Points:
    0
    Be nice to have the option not to change weapons, leveling with a 1000dps 2 handed mace and wants to keep equipping a 150dps one hander on my monk.

    G
     
  7. BabySuperman

    BabySuperman New Member

    Joined:
    Jul 4, 2012
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    Great comments, really liking this! Super simple, really understandable code.

    Will you add:
    Block% for shields
    Attack Speed
    Experience per kill
    Sockets

    EDIT:
    I've been running this for ~15 min, doing perfect so far. Perfect picks for items.

    I'll let ya know how it goes overnight.
     
    Last edited: Jul 4, 2012
  8. RcktMan77

    RcktMan77 New Member

    Joined:
    Jun 12, 2012
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Giles, or anyone using this for that matter... Would you mind bundling in the loot rules you're using with this plug-in? Most of the loot rules others have shared seem to all be related to level 60 characters and Inferno loot.
     
  9. GilesSmith

    GilesSmith New Member

    Joined:
    Jun 2, 2012
    Messages:
    1,564
    Likes Received:
    34
    Trophy Points:
    0
    v1.2 uploaded:
    -- Added weightings for sockets on items and weapons
    -- Added support for characters you manually equip with two-handers, so it evaluates the two-handed weapon before deciding to remove it.

    Hah, that must have been frustrating for you! Yes it ignored all 2-handers (valued them all as 0 points) except for Demon hunters who get to use bows/crossbows. Didn't really think about "what if" somebody was putting their own 2-hander on that might have super-high DPS.

    Anyway I've now uploaded v1.2 for you, which will evaluate any two-handers you already have equipped points-wise before deciding to replace them with a one-hander. I tested it and it worked - I had a two-hander equipped with a good shield in my backpack and a poor one-hander. Ran the plugin, it did nothing... picked up a very high DPS one-hander, it replaced the two-hander with the one-hander next pulse, and then the pulse after that equipped the shield (after it replaces a two-hander with a one-hander, it force-rechecks all items already in backpack to try and find an off-hander to use now a hand is free).

    Sockets is the only stat DemonBuddy currently reads from an item out of all of those listed - I've now added a weighting for sockets on v1.2 if you want to try that (and edit the weightings to your tastes if you like), though I think the weightings for sockets should be low - the point of the plugin really is to be able to leave a new character levelling away somewhere (and in future DB releases that support random dungeon exploring, be able to leave it doing, say, Kick's profiles from Act 1 all the way through to Act 4 gearing as it plays), and sockets are really for "manual intervention" (putting gems in sockets, then taking them out again and putting new ones in later, is a bit much for me to try and add for little return).

    Would definitely like to add exp per kill (that's a biggy for levelling up), attack speed and block %, but we'll have to wait for new versions of DB that support those things!
     
  10. GilesSmith

    GilesSmith New Member

    Joined:
    Jun 2, 2012
    Messages:
    1,564
    Likes Received:
    34
    Trophy Points:
    0
    I've added some very basic rules to the first post, but PLEASE read the notes on them first (pasted below, too);

    Loot Rules:
    You need loot rules that will pickup pretty much everything, so that my plugin can get a chance to evaluate them and use them. I'm not officially supporting these loot-rules but I've uploaded them for those that can't make them (I recommend you edit them to suit your own needs):
    All Armor/Jewelry/Weapons ilvl 1+: View attachment 47079
    All Armor/Jewelry/Weapons Blue+ ilvl 1+: View attachment 47120
    That will pickup everything DB reads as an armor, jewelry, or weapon, but be careful as it will also SELL everything classed as those things. It won't try to keep, or salvage, anything (so it should never touch your stash!).
    Don't use these loot rules with valuable equipment on your character, as they may be vendored!
     
    Last edited: Jul 4, 2012
  11. BabySuperman

    BabySuperman New Member

    Joined:
    Jul 4, 2012
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    Still using the first version you put out, working beautifully.

    Thank you very much.
     
  12. theatristformallyknownasG

    theatristformallyknownasG New Member

    Joined:
    Jan 16, 2010
    Messages:
    3,060
    Likes Received:
    8
    Trophy Points:
    0
    Still wants to equip 1 hander 200dps over 2 hander 1100 dps. Can you just put an editable line in there not to swap weapons or check weapons at all ?

    G
     
  13. GilesSmith

    GilesSmith New Member

    Joined:
    Jun 2, 2012
    Messages:
    1,564
    Likes Received:
    34
    Trophy Points:
    0
    Can you give me the stats of the two weapons? I could certainly, easily add a few variable options that simply say "Don't upgrade weapons" "Don't upgrade armor" "Don't upgrade jewelery", but at the same time I'd also like to see what's causing it to think a 200dps 1 hander is better than an 1100 dps two-hander! (did the 1-hander have a huge primary stat bonus and vitality bonus? If so I just need to increase the weight-score of DPS/decrease the weight-scores of stats on weapons). Anyway let me know the stats so I can see if I need to change the weighting scores, and then I'll release a new version with those updates and some variables to disable upgrading of different item types! :D
     
  14. Ipo

    Ipo New Member

    Joined:
    Jun 13, 2012
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    0
    I don't know if you've already thought of this, but when I wrote my unpublished GearUpgrader plugin I found it helpful to have the plugin not replace worn helmets with a socket in them, with the presumption that the player has probably arranged for a +% exp gained gem to be put in there and worn to speed up the leveling. It would suck to find such a piece swapped out and vendored, losing a potentially multi-million gold gem. :)
     
  15. GilesSmith

    GilesSmith New Member

    Joined:
    Jun 2, 2012
    Messages:
    1,564
    Likes Received:
    34
    Trophy Points:
    0
    v1.3 uploaded:

    Right, have added the ability to lock weapons (will prevent plugin from trying to equip any weapon or off-handers), Lock armor (will prevent the plugin from equipping ANY armor slot including helmet, but does not include jewelry), Lock jewelry (prevent plugin from equipping rings or amulets)... or just lock helmets (incase as Ipo says, you equip your own helmet with a high-value +experience gem). You can set any or even all of them to true - though if you set them all to true the plugin will never do anything :D

    Changing Item Weightings & Locking Item Types:
    Open up GilesEquipper.cs in any text editor (eg notepad). Find the line beginning;
    // Ignore Flags - Set these to true if you want this plugin to *IGNORE* these slots
    Below this line you can change values for the various weightings by editing the numbers at the end of each line. You can also set the "false" values to "true" if you want the plugin to ignore specific item types.
     
  16. theatristformallyknownasG

    theatristformallyknownasG New Member

    Joined:
    Jan 16, 2010
    Messages:
    3,060
    Likes Received:
    8
    Trophy Points:
    0
    Will give it a whirl shortly, thanks for the update.

    G
     
  17. theatristformallyknownasG

    theatristformallyknownasG New Member

    Joined:
    Jan 16, 2010
    Messages:
    3,060
    Likes Received:
    8
    Trophy Points:
    0

    Seems to be working fine, level 59 now so some farming coming up today, will give it a good run then.

    G
     
  18. HB9878Y27

    HB9878Y27 New Member

    Joined:
    Jun 10, 2011
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    Good idea for a plugin ! Thank you for your work ! \o/

    But...

    I'm not a professional but is this correct ?
     
  19. GilesSmith

    GilesSmith New Member

    Joined:
    Jun 2, 2012
    Messages:
    1,564
    Likes Received:
    34
    Trophy Points:
    0
    Definitely not! I'll update it and fix that & add lifeonhit stuff today, thanks for pointing it out, I'd only been testing it on a barb and got a bit copy & paste happy I think ;)
     
  20. championcake

    championcake New Member

    Joined:
    Jun 11, 2012
    Messages:
    78
    Likes Received:
    1
    Trophy Points:
    0
    Thanks for creating this. It's seriously awesome. I wish I had the ambition to program something like this, maybe I'll look through your code.
     

Share This Page