What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Plugin] Take A Break

ghaleon.bolz

New Member
Joined
Dec 21, 2012
Messages
6
Reaction score
0
Take A Break by Ghaleon
Contributors: Ghaleon
(v1.1.0.0 (Beta) released: 22nd January, 2013)​


1: Overview:
Take a Break is a plugin designed to emulate In-Game potty/porn breaks. (i.e. really short 1-2 minute in-game breaks a human would make while playing). After the plugin has determined that the bot has been playing for a long time (configurable), it will open the in-game menu and pause demonbuddy for a short time then resume the bot. Alternatively, it can attempt to teleport to town and idle in town for a short time before taking the town portal back to the dungeon and resuming.

This plugin will trigger the idling flags in Demonbuddy, YAR, Atom, and AntiIdle, so be sure to adjust them to wait longer than your configured break timer.


2: Features:
- Teleports back to town and takes a break for a random amount of time after playing for a random amount of time (Configurable)
- Opens the In-game menu when taking a break to pause single-player games (Configurable)
- Config window to set the time ranges for breaks and game play. Also allows enable/disabling returning to town for the break, and whether the bot should reload the current profile after resuming from a break.


3: Config Window:
TakeABreak.webp

The config window allows you to adjust how long the bot will take a break and how long before the bot should take a break. You can also instruct the bot to restart the current profile after resuming and whether it should attempt to town-portal and take its break in town, or just open the in-game menu and take a break wherever it happens to be.


4: Installation:
1: Download the attached zip (bottom of post).
2: Extract to your Demonbuddy directory (eg "C:/Demonbuddy/Plugins/")
3: The TakeABreak files should now be in their own folder in your plugins folder (eg "C:/Demonbuddy/Plugins/TakeABreak/TakeABreak.cs")
4: Start Demonbuddy, select the plugins tab, and click the check mark next to TakeABreak to enable.
5: You can click the "Config" button after selecting the plugin in the plugin list to adjust its behaviour.
6: Take a break will start working once you start Demonbuddy.


6: Notes & Version History:
Code:
---------------------------
  Version 1.1.0.0 (Beta)
---------------------------
  - Added the option to pause the game by simply entering the in-game menu. (Thanks jiznadj!)
  - Added Several Configuration Window Items - (Statistics, Between Games, Between Deaths)
  - NOTE: Only the In-Game features are currently working

---------------------------
  Version 1.0.0.0 (Beta)
---------------------------
  - First Version


7: Download:
You should always pick the newest version zip.
 

Attachments

Last edited:
added support for this plugin in YAR should be working .. notify me when you encounter issues
it relies on the log message so if you plan to change the log message please notify me so I can update :)
 
In addition to the short breaks in town, can you make it take long breaks at the main menu too?
 
In addition to the short breaks in town, can you make it take long breaks at the main menu too?

Is this not already implemented by Demonbuddy? Settings > Bot > Misc > Game Wait Time

I also believe this is already a feature in Atom? (allows you to specify random breaks between profiles)
 
Is this not already implemented by Demonbuddy? Settings > Bot > Misc > Game Wait Time

I also believe this is already a feature in Atom? (allows you to specify random breaks between profiles)

Well the DB timer just specifies wait time between games. So it would not really be useful for it to take a 20 minute or more break for every game. What I meant was that in addition to the short breaks, it could take a long break after running x number of hours. Like every so many hours it leave the game after the run is complete and wait at the main menu for x amount of time you set it to. I don't use atom anymore, so this would be useful for those that don't use it.
 
Last edited:
which setting in YAR did you change to get this to work?

YAR detects that DB is paused by thirdparty, but still goes ahead with the 30sec "demonbuddy is paused to long" message and restarts everything
 
which setting in YAR did you change to get this to work?

YAR detects that DB is paused by thirdparty, but still goes ahead with the 30sec "demonbuddy is paused to long" message and restarts everything

Also tries to take breaks in the middle of combat, looks like the guy already gave up on this anyway. Only 4 posts and he's gone...
 
which setting in YAR did you change to get this to work?

YAR detects that DB is paused by thirdparty, but still goes ahead with the 30sec "demonbuddy is paused to long" message and restarts everything

The only setting you can modify is the Gold Anti-Idle setting. The 30-second re-syncing restart is something that will have to be updated in YAR. :( (i.e. it's not fully supported yet by YAR. will PM sinterlkaas later tonight if i can get some time)



jiznadj said:
Also tries to take breaks in the middle of combat

Actually it was my intent to force a break even if using teleporting isn't possible. (still fighting mobs or a boss).

It was also my intent for community members to pick up this plugin and copy it/extend it. Since I have limited free time.

Regarding your request for idling inside of the Game Creation screen, it can be done, just haven't had any free time to look at it.
 
Tested this out a bit more, about half the time when it TP to town it can't find the portal to go back. Maybe you could just make it hit the "esc" key so it would just pause the game instead of TP to town and idling. This would be better because it would not matter if it was in combat and it would not need to TP to town and possibly get stuck/restart profile. Also would keep your NV stacks from expiring.
 
Great idea jiznadj. I went ahead and added the "esc" menu option to my current version. Note that I'm still in the process of adding your other requests... ( :( limited free-time... )
 
Yea, this is pretty cool The "esc" thing really works well :cool: Only thing you might want to tweak is using seconds instead of minutes reason being is that it takes breaks that are exact multiples of one minute. Instead of 1 and 5 minutes you could use 45-335 seconds or whatever you set it to make it more random.
 
Last edited:
Getting an error code on a fresh install of the bot.
2014-05-04 03:51:22,582 [1] INFO MainWindow (null) - Demonbuddy v1.1.1862.359 started
2014-05-04 03:51:25,602 [5] INFO MainWindow (null) - Logging in...
2014-05-04 03:51:26,026 [5] INFO MainWindow (null) -
2014-05-04 03:51:26,406 [1] INFO MainWindow (null) - Attached to Diablo III with pid:
2014-05-04 03:51:26,416 [1] INFO MainWindow (null) - Flashing window
2014-05-04 03:51:28,796 [1] DEBUG MainWindow (null) - Executable Path: C:\Users\Owner\Downloads\Demonbuddy 1.1.1862.359\Demonbuddy.exe
2014-05-04 03:51:28,796 [1] DEBUG MainWindow (null) - OS Architecture: AMD64
2014-05-04 03:51:28,796 [1] DEBUG MainWindow (null) - OS: Windows 7 Service Pack 1 64-bit
2014-05-04 03:51:28,796 [1] DEBUG MainWindow (null) - OS Language: English (United States)
2014-05-04 03:51:28,856 [1] DEBUG AssemblyLoader`1 (null) - Reloading AssemblyLoader<Zeta.Common.Plugins.IPlugin> - Initializing plugins
2014-05-04 03:51:29,572 [1] INFO AssemblyLoader`1 (null) - Compiler Error: c:\Users\Owner\Downloads\Demonbuddy 1.1.1862.359\Plugins\TakeABreak\TakeABreak.cs(12,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
2014-05-04 03:51:29,572 [1] INFO AssemblyLoader`1 (null) - Compiler Error: c:\Users\Owner\Downloads\Demonbuddy 1.1.1862.359\Plugins\TakeABreak\TakeABreak.cs(13,12) : error CS0234: The type or namespace name 'Internals' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
2014-05-04 03:51:29,573 [1] INFO AssemblyLoader`1 (null) - Compiler Error: c:\Users\Owner\Downloads\Demonbuddy 1.1.1862.359\Plugins\TakeABreak\TakeABreak.cs(14,12) : error CS0234: The type or namespace name 'Internals' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
2014-05-04 03:51:29,573 [1] INFO AssemblyLoader`1 (null) - Compiler Error: c:\Users\Owner\Downloads\Demonbuddy 1.1.1862.359\Plugins\TakeABreak\TakeABreak.cs(15,12) : error CS0234: The type or namespace name 'Internals' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
2014-05-04 03:51:29,573 [1] INFO AssemblyLoader`1 (null) - Compiler Error: c:\Users\Owner\Downloads\Demonbuddy 1.1.1862.359\Plugins\TakeABreak\TakeABreak.cs(16,12) : error CS0234: The type or namespace name 'Navigation' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
2014-05-04 03:51:30,882 [1] INFO Logger (null) - [Trinity] Initialized v1.8.28
2014-05-04 03:51:31,275 [1] DEBUG MainWindow (null) - There are 2 plugins
2014-05-04 03:52:14,892 [1] DEBUG BotMain (null) - Cannot stop a bot when it is not running.
2014-05-04 03:52:14,894 [1] DEBUG MainWindow (null) - Forcing all open windows to close.
 
Maybe there will be some kind soul that will update this plugin to be compatibile with RoS.
Would be really great to see this working.
 
Taking a look at the code, seems like I could have a use for it as well!

Edit: Got it somewhat working, will see if I can make it a bit more reliable

Sweet +1
 
Taking a look at the code, seems like I could have a use for it as well!

Edit: Got it somewhat working, will see if I can make it a bit more reliable

Edit 2: Might have something usable in a "few" days, not very familiar with DB's API yet and might end up rewriting a bigger part of the plugin than expected. In any case, I'll open a new thread if I end up with something usable.

This~! Really appreciated.
 
Back
Top