just for an update - I also added !raid pause/unpause since it was nice to have - and in case someone else can use it (if it's not already somewhere)
In raidtime.php -
under the class definition -
var $paused;
function Raid
function Raid (&$bot)
{
$this -> bot = &$bot;
$this -> raid = false;
$this -> user = array();
$this -> announce = 0;
$this -> locked = false;
$this -> paused = false;
}
added under function tell and function pgmsg
else if (preg_match("/^" . $this -> bot -> commpre . "raid (pause|unpause)$/i", $msg, $info))
$this -> pause_raid($name, $info[1]);
Under function end_raid - when confirmed stopping it
$this -> locked = false;
$this -> paused = false;
under function join_raid
if($this -> locked == false)
{
$this -> user[$name] = $this -> bot -> aoc -> get_uid($name);
$this -> bot -> send_pgroup("<font color=#ffff00>$name</font> has <font color=#ffff00>joined</font> the raid :: " . $this -> clickjoin());
$this -> bot -> db -> query("UPDATE raid_points SET raiding = 1 WHERE id = " . $this -> points_to($name));
}
else
{
$this -> bot -> send_tell($name, "piss off raid is locked omg!11!!!!!1one");
}
Also added function pause_raid
function pause_raid($name, $pause)
{
if ($this -> bot -> admin -> in_group($name, "raidleader"))
{
if ($this -> raid)
{
if (strtolower($pause) == "pause")
{
if($this -> paused)
$this -> bot -> send_tell($name, "Raid already paused");
else
{
$this -> paused = true;
unset($this -> bot -> cron["1min"]["raid"]);
$this -> bot -> send_pgroup("<font color=#ffff00>$name</font> has <font color=#ffff00>paused</font> the raid.");
}
}
else
{
if($this -> paused)
{
$this -> paused = false;
$this -> bot -> cron["1min"]["raid"] = &$this -> bot -> commands["tell"]["raid"];
$this -> bot -> send_pgroup("<font color=#ffff00>$name</font> has <font color=#ffff00>unpaused</font> the raid.");
}
else
$this -> bot -> send_tell($name, "Raid is not paused");
}
}
else
{
$this -> bot -> send_tell($name, "No raid is in progress n00b");
}
}
else
$this -> bot -> send_tell($name, "You must be a raidleader to do this HAHA ownt");
}
Erm I think that was it.