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

[Plugin] TakeAnotherBreak

Karls

New Member
Joined
Apr 11, 2014
Messages
324
Reaction score
2
Take Another Break
Based on TakeABreak by Ghaleon
(v1.0.2 released on 12th May 2014)​

Compatibility
  • TakeAnotherBreak has been tested with DemonBuddy .403 and .408 but should work with any recent version.
  • It's pretty straight forward code that only uses basic DemonBuddy API calls so it should play nice with any version of any other plugin

Known Issues
  • Entering a higher value in the "min" field than in the "max" one can crash DemonBuddy, so make sure to edit them in the correct order for now
  • I was lazy and didn't yet implement decent settings for stopping the bot rather than taking a break, for now you can do this by entering 999 minutes as value for minimum & maximum break time

Reporting Issues
Please include these informations when reporting an issue, it might help locate the problem faster:
  • The version of DemonBuddy you're using
  • The versions of other plugins you're using (just incase)
  • The profile you were running when the problem happened

Features
TakeAnotherBreak is designed to allow you to take random breaks at random intervals or stop the bot after a certain amount of time/games/deaths.
  • In-Town breaks: will trigger when you enter town after a certain amount of time has elapsed since last break (or since starting the bot)
  • Between-Games Breaks: will trigger when entering the main menu after a certain amount of games
  • Death Breaks: Will trigger after a certain amount of deaths (not implemented yet)
When a break happen, plugin will pause the bot for random amount of time (between the minimum and maximum amount of time you set for that break type). Stopping the bot while it's paused will cancel the break so you can restart another profile (or the same) without havint to wait it out.

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

Credits
TakeAnotherBreak is a rewrite of the TakeABreak plugin written by Ghaleon. I rewrote some parts and added some extra features, but more than half the code (and parts of this post!) is coming straight from the original plugin (mostly all the UI/settings stuff that I hate writing), so thanks Ghaleon!

Changelog
Code:
[COLOR="#800000"][B][SIZE=3]version 1.0.2[/SIZE][/B][/COLOR]
[LIST]
[*] Plugin will now correctly resume botting after the break ends
[/LIST]
[COLOR="#800000"][B][SIZE=3]version 1.0.1[/SIZE][/B][/COLOR]
[LIST]
[*] Fixed a bug with break duration
[*] Changed "paused until" date/time format to be more helpful to detect other potential bugs
[/LIST]
[COLOR="#800000"][B][SIZE=3]version 1.0[/SIZE][/B][/COLOR]
[LIST]
[*] Initial release
[/LIST]

Downloads
 

Attachments

Last edited:
- Reserved -

I didn't test it as much as I wanted, but taking a bit of a break so decided to release it now rather than in a week or later. But I'm confident enough that it should work as expected.
 
every step worked as intended until trying to get the demonbuddy to start again. it stops the bot but can't start it up again, status stays at : Paused by TakeAnotherBreak until x:xx:xx PM , running Chest farming profile
 
every step worked as intended until trying to get the demonbuddy to start again. it stops the bot but can't start it up again, status stays at : Paused by TakeAnotherBreak until x:xx:xx PM , running Chest farming profile

Were you using town or menu breaks? Did the plugin post the "Resuming play" message before failing to restart? Or did it trigger any exceptions in demonbuddy?
 
Were you using town or menu breaks? Did the plugin post the "Resuming play" message before failing to restart? Or did it trigger any exceptions in demonbuddy?


Was using the menu break, and no the Resuming play message never showed up. I think the problem is the actual date and time. status stays at : Paused by TakeAnotherBreak until x:xx:xx PM, the x:xx:xx time didn't match or was no where near my time, therefore it probably didn't want to start until the actually time showing on demonbuddy.
 
tested this and doesn't starts the bot again. and i guess cause the watch that plugin uses is somehow.. wrong?

check this:
20:24:11.976 INFO TakeAnotherBreak [TakeAnotherBreak] In menu, it's time to take a break!
20:24:11.976 INFO TakeAnotherBreak [TakeAnotherBreak] Taking a break for 4 minutes...
20:24:11.977 INFO TakeAnotherBreak [TakeAnotherBreak] We will resume play at: [19:36:11]

so at 20:24 he wants to take a break for 4 minutes... until 19:36 :d
 
the time problem has been fixed, but the plugin still refuses to resume the game.
 
tnx!gonna test it right now with fast breaks to see what's happening.

time is ok now, but it won't start the bot back. don't know if it has something to do with wich trinity i use etc...

anyway, looking at how the plugin is working i wonder: if he stops the bot he will stop himself too, how can he see when is due to start again? i guess you need something like a pause, not a stop.
 
I'll have to do more testing on my side then, I was pretty sure the "start" part had worked everytime on my side. At least it can still be used to stop overnight runs after X runs/hours until I get it sorted.

And at first I was using the PauseFor call rather than Stop/Start, but it has the downside of pausing the bot for that duration no matter what (the only way to have DB be able to do anything was to close/restart it)
 
Back
Top