StrangerThanFiction
New Member
- Joined
- Nov 24, 2012
- Messages
- 241
- Reaction score
- 3
Auto Equipper by GilesSmith
Contributors: GilesSmith, Stranger, rrrix, Ratosh
(v1.8.0.4 (Beta) released: 25th February, 2013)
Copied from the original thread, updated to reflect current changes.
Original Thread: http://www.thebuddyforum.com/demonbuddy-forum/plugins/59415-plugin-giles-auto-equipper.html
Contributors: GilesSmith, Stranger, rrrix, Ratosh
(v1.8.0.4 (Beta) released: 25th February, 2013)
Copied from the original thread, updated to reflect current changes.
Original Thread: http://www.thebuddyforum.com/demonbuddy-forum/plugins/59415-plugin-giles-auto-equipper.html
1: Overview:
Giles Auto Equipper is a plugin to help leveling up of new characters in DemonBuddy, particularly lower-level characters, by automatically equipping any items DemonBuddy loots that would be an upgrade.
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!

This plugin will look at new items it detects in your backpack and decide whether to equip them or not, buy potions while vending items if needed. 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.
- Buys potions from Vendor if you need them. (NOTE: This will not make any special trips to town. It will only fill up on potions when selling off junk on a TownRun)
3: Config Window:

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 GilesEquipper files should now be in their own folder in your plugins folder (eg "C:/Demonbuddy/Plugins/GilesEquipper/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 recommend using GilesTrinity, it will make your life much easier.
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:
---------------------------
Version 1.8.0.4 (Beta)
---------------------------
- Added potion configuration to config window
- Item Identification will no longer causing DCs, Fix by rrrix
- Spam prevention added for BotMain.PauseWhile calls
- Now uses static potion cache, DB was returnin the wrong information
- Will once again check stash for upgrades on TownRuns when enabled.
---------------------------
Version 1.8.0.3 (Beta)
---------------------------
- Fixed typo's in BotMain.PauseWhile calls...
- Fixed InventorySlot Protection
- More improvements to the CheckPotion method
- Fixed Config default values and bugs in Config Window
- Cleaned up the Config Window
- Once again opens the Inventory Window prior to swapping gear
- Many other miscellanous things....
---------------------------
Version 1.8.0.0 (Alpha)
---------------------------
- The CheckMerchant method has been removed in favor of CheckStash
- CheckStash is currently in Alpha use at your own risk (Doesn't protect gear yet)
- Overhauled the CheckPotion method, and dusted it with Raid
- CheckPotion method will only fire once every 2 minutes when visiting a vendor.
- Integrated Ratosh's DPS/EHP item valuations
- Updated ConfigWindow to reflect changes
---------------------------
Version 1.7.5.3 (Beta)
---------------------------
- pulse fix by rrrix
---------------------------
Version 1.7.5.2 (Beta)
---------------------------
- Improved the BuyPotion Logic, Will now buy potions irregardless of level if they can heal for greater than 25% HP and you do not have anything stronger in your backpack.
- Improved the BuyPotion exception catching, and error checks
- Imrpoved the CheckMerchant/CheckBackpack exception catching and error checks.
- Imrpoved the CheckMerchant w/ VendorChecks Buy/Equip logic. Shouldn't buy then sell equipment anymore.
---------------------------
Version 1.7.5.1 (Beta)
---------------------------
- Refactored the BuyPotion logic, (Can now disable CheckMerchant and still have BuyPotions enabled [Only 1 Checkbox needed for Potions only now O_o])
- Combined the CheckMerchant and CheckBackpack routines, Will make things easier to maintain...
---------------------------
Version 1.7.5.0 (Beta)
---------------------------
- Fixed a typo in additional checks which stopped the Equipper from actually makeing a purchase from the merchants
---------------------------
Version 1.7.4.9 (Beta)
---------------------------
- Added additional checks to ensure items being equipped are not marked to be ignored. Was able to force this to occur under rare circumstances.
---------------------------
Version 1.7.4.8 (Beta)
---------------------------
- Bug fix: The buy potion method would become stuck in an endless loop due to excess Thread.Sleep calls
Apparently using Thread.Sleep inside a PauseWhile call on a While loop is a bad idea... Who woulda thought O_o
- Further imrpovements made to BuyPotion logic, now guarantee's to only buy the Strongest Potion available from Merchant
- Code refactoring into more logical peices
---------------------------
Version 1.7.4.7 (Beta)
---------------------------
- Bug Fix: Wasn't saving Weapon and Bracers ignore preferences
---------------------------
Version 1.7.4.6 (Beta)
---------------------------
- Script will now fill up on the strongest available potion on a TownRun, if the vendor has the goods
- Max Item Stacks for Potion Types:
- Minor : 10
- Lesser : 15
- Health : 25
- Greater : 35
- Heroic : 50
- Resplendent : 50
- Mythic : 99
- Will not purchase potions if gold is less than 1,000
- Fixed: CheckMerchant would endlessly pause bot with no light at the end of the tunnel
---------------------------
Version 1.7.4.5 (Beta)
---------------------------
- Bug fix: Should no longer close Inventory window while interacting with a vendor.
- Bug fix: DB freeze when multiple CheckMerchants fired on the same vendor.
- CheckMerchant now works, default adjusted to enabled.
- Identifing items now works properly thanks to rrrix, default adjusted to enabled.
---------------------------
Version 1.7.4.4 (Beta)
---------------------------
- Implemented rrrix's identification fix.
---------------------------
Version 1.7.4.3 (Beta)
---------------------------
- Moved Item Identification to a configurable option. (Still Experimental IMO, Needs more testing)
---------------------------
Version 1.7.4.2 (Beta)
---------------------------
- Now opens the Inventory Window prior to equipping/identifying items
- Fixed item identifcation
- Fixed CheckMerchant Function, now pauses the bot while Vendoring to check for upgrades (Still Experimental IMO, Needs more testing)
---------------------------
Version 1.7.4.1 (Stable)
---------------------------
- Added CheckMerchant back in as a configurable option. (Disabled by Default)
- Reworked the GilesEquipper.xaml file to be more dynamic
---------------------------
Version 1.7.4 (Stable)
---------------------------
- Included changed made by rrrix to stop buying/selling of equipment at vendors.
- Made a few improvements to the code to streamline some if/return statements.
- Moved GilesEquipper.cfg from \Settings\GilesEquipper.cfg to \Settings\[BATTLETAG]\GilesEquipper.cfg
---------------------------
Version 1.7.3 (Stable)
---------------------------
- Changed Slot Ignore Code from Grouped Slots to Indivdualized Slots and updated the XAML UI.
- Inlcluded item identification fixes by rrrix
7: Download:
GIT: http://www.assembla.com/code/autoequipper/git/nodes
Latest Stable Release: v 1.7.4.1, You should always run the latest Stable release unless you don't mind a few bugs or hicups. (See changelog for details)
Latest Test Release: v 1.8.0.4 BETA, This is a pre-release version and will have minor bugs and problems. If you encounter any errors or problems please report it here and attach your log file.
Latest Dev Copy: Latest-AutoEquipper.zip
Attachments
Last edited: