L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 01:54:30 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: !raid lock
Pages: [1]   Go Down
« previous next »
Print
Author Topic: !raid lock  (Read 597 times)
0 Members and 1 Guest are viewing this topic.
womp
Freshman
*
Offline Offline

Posts: 7


!raid lock
« on: February 06, 2006, 04:01:43 PM »

I have 2 questions about this function...

1. When I "!raid lock" I get the message as well as well as all in the group the the raid has been locked.  Even while the raid is locked people are still able to join the raid where is the command line for this located and how can I fix this...

2. Is there a command already to add a point to all people in the raid so I dont have to go through and add a point to everyones account manually?

Im a newbie at this

Is running in raidbot mode

Using bebot v0.2..2
« Last Edit: February 08, 2006, 02:53:10 AM by womp » Logged
womp
Freshman
*
Offline Offline

Posts: 7


Re: !raid lock
« Reply #1 on: February 08, 2006, 05:31:28 AM »

Upgraded to bebot 3.1 and still the same problems are there. !raid lock will lock the raid but still allowing people to join the raid. Has a ticker in the bot I think I will learn to deal with that. Can't find an !auction command on !raffle... Now the bot is not liking new members. any normal command they try to run says they have to be a member of the bot. !members doesnt show them as a member but if I !member >name< it shows that I have added this player to the bot. Huh any assistance would be appreciated.


**Edit Feb 8 2k6**
OK after doing some searching I was able to find certain things that I needed to help me along with the bot. The only thing is still I like the points ticking for the raids... but how do I stop people from joining the raid once the raid is locked?
« Last Edit: February 08, 2006, 05:54:28 AM by womp » Logged
skeezix
Rookie
**
Offline Offline

Posts: 21


Re: !raid lock
« Reply #2 on: February 08, 2006, 12:39:06 PM »

btw I fiddled with this bot setup some
I'm getting the bug when adding a member who isn't in a guild, on the console it shows this then doesn't add them as a member

 (Incorrect integer value: '' for column 'rank' at row 1)

It says it added the person as a member, sends them a tell, then shows them logged on/off (not member)

To show more clearly from the console when one of the admins added someone's alt who wasn't in a guild ->

Code:
[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.

Haven't looked much at the !raid lock setup, but after a raid is locked anyone who's listed as a member can still join the raid.  I can understand admins+ being able to join a locked raid, but what about regular members?
Logged
lonillen
Freshman
*
Offline Offline

Posts: 15


Re: !raid lock
« Reply #3 on: February 09, 2006, 07:35:33 AM »

for the lock issue, you may need to modify your RaidTime.php to add check for locked status in join_raid function. something similar to the following might be a solution:
Code:
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");

}


Logged
skeezix
Rookie
**
Offline Offline

Posts: 21


Re: !raid lock
« Reply #4 on: February 20, 2006, 01:18:54 PM »

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 -
Code:
var $paused;

function Raid
Code:
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
Code:
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
Code:
$this -> locked = false;
$this -> paused = false;

under function join_raid
Code:
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
Code:
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.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: !raid lock
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 0
Guests: 23
Total: 23

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.4 seconds with 28 queries. (Pretty URLs adds 0.028s, 4q)
Loading...