0 Members and 1 Guest are viewing this topic.
[2006-02-08 17:32:07] [PGRP] [MSG] [Pfbot] Reverentia: !member zawhollop (Incorrect integer value: '' for column 'rank' at row 1)[2006-02-08 17:32:08] [TELL] [OUT] -> zawhollop: Reverentia has added you to the bot.[2006-02-08 17:32:08] [BUDDY] [LOG] Zawhollop logged [on] (not member)[2006-02-08 17:32:08] [PGRP] [MSG] [Pfbot] Pfbot: Player zawhollop has been added to the bot.[2006-02-08 17:32:13] [TELL] [INC] Zawhollop: !chat[2006-02-08 17:32:13] [TELL] [OUT] -> Zawhollop: I only listen to members of this bot.
function join_raid($name) { if (isset($this -> user[$name])) $this -> bot -> send_tell($name, "You are already in the raid", 1); else if ($this -> locked) $this -> bot -> send_tell($name, "The raid status is currently <font color=#ffff00>locked</font>."); else if ($this -> raid) { $id = $this -> bot -> aoc -> get_uid($name); $result = $this -> bot -> db -> select ("SELECT id FROM raid_points WHERE id = " . $this -> points_to($name)); if (empty($result)) $this -> bot -> db -> query("INSERT INTO raid_points (id, points, raiding) VALUES (" . $this -> points_to($name) . ", 0, 0)"); $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, "No raid in progress"); }
var $paused;
function Raid (&$bot) { $this -> bot = &$bot; $this -> raid = false; $this -> user = array(); $this -> announce = 0; $this -> locked = false; $this -> paused = false; }
else if (preg_match("/^" . $this -> bot -> commpre . "raid (pause|unpause)$/i", $msg, $info)) $this -> pause_raid($name, $info[1]);
$this -> locked = false; $this -> paused = false;
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");}
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");}