Ramakandra
New Member
- Joined
- Oct 18, 2012
- Messages
- 49
This plugin pauses the currently running action of the bot for a random period every X hours, its all configurable by editing the .cs file.
Credit goes to no1knowsy , this is a port from his plugin for DemonBuddy: http://www.thebuddyforum.com/demonbuddy-forum/plugins/54592-plugin-breaktaker-takes-breaks-orly.html
Everytime this plugin takes a break it will say the number of minutes.seconds on /party so it can synch with other plugins/mods etc.. if you dont want this to happend
edit the .cs file and comment with // line 161:
//Lua.DoString(string.Format("SendChatMessage(\"{0}\", 'PARTY');", RealBreakTime.ToString()));
Download:
View attachment BreakTaker.cs
You will see on the log:
Config:
Credit goes to no1knowsy , this is a port from his plugin for DemonBuddy: http://www.thebuddyforum.com/demonbuddy-forum/plugins/54592-plugin-breaktaker-takes-breaks-orly.html
Everytime this plugin takes a break it will say the number of minutes.seconds on /party so it can synch with other plugins/mods etc.. if you dont want this to happend
edit the .cs file and comment with // line 161:
//Lua.DoString(string.Format("SendChatMessage(\"{0}\", 'PARTY');", RealBreakTime.ToString()));
Download:
View attachment BreakTaker.cs
You will see on the log:
Code:
[BreakTaker] 1.11 minutes until next break at 22:30.
[BreakTaker] Break Starting!
[BreakTaker] Taking break for 7.31 minutes. Will resume around 21:59.
Config:
Code:
// All values are in minutes. So 1 hour = 60 minutes. 3 hours = 180. etc...
// These ones will be how long your breaks will last, and it will be somewhere between these two options.
// Suggested Value: 60 - 120 minutes (equivalent to 1-2 hours)
public static int minBreakTime = 5;
public static int maxBreakTime = 10;
// These ones will be how the bot should go between breaks, and as above it will be somewhere between these two options.
// Suggested Value: 60 - 120 (equivalent to 1-2 hours)
public static int minBetweenTime = 15;
public static int maxBetweenTime = 60;
// How often to print a message to the log stating how long until the next break. Set to -1 to disable.
public static int logTimer = 1;
//We would prefer to be in a good place if we're going to take a break. If once it's break time we're not in town or do not leave a game for this long then force a town portal and quit.
public static int forceTimer = 2;
Last edited: