BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Ornaola on April 16, 2007, 12:25:32 am
-
hey, need help again :)
using 1 bot for org, and raid channel for raids, is there any modul for raids that has raid start/pause etc, the usual stuff but also where you can chose ticking points or fixed (or just with fixed would be good)
if you know such a modul i would be great full if you can post link, thanks.
-
The out-of-the-box BeBot 2.11 has two raid modules. One for time-based raids (0.1 point per minute) and one where the raidleader doles out points. You have to activate one of them. In a fresh install, the module RaidTime.php is active. If you want to activate the other one, rename it to _RaidTime.php and rename _RaidSingle.php to RaidSingle.php.
If you want both, it gets a bit more complicated. You can, for example, activate both, and rename the raid commands in both modules - they are both !raid. Make them !raida (for Achievement) and !raidt (for Time) or so, and you can use both.
There are some fixes for the time-based raid module on this forum, adding a working !raid lock, as well as a !raid pause and !raid unpause command. http://bebot.link/index.php/topic,325.msg1837.html#msg1837 (http://bebot.link/index.php/topic,325.msg1837.html#msg1837) I think, may be wrong.
Also, there are some slightly different raid modules you can try out, one of them mixing fixed cost with bidding and such. http://bebot.link/index.php/topic,313.0.html (http://bebot.link/index.php/topic,313.0.html) Best bet is to first browse and see what others have done, and find a module that comes close to your needs. And as always, start to modify it then, to make it perfect. :)
-
Luuv, your org name is spelt wrong in your signature ;-p
-jj-
-
OMFG!
-
thanks, that modified raidtime.php is just what i needed, cheers ;)
-
ok got a problem with this:
http://bebot.link/index.php/topic,325.msg1837.html#msg1837
i did all from that post, but when i start bot its says it has a error in T_ELSE
it says add under funcion raid_join
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");
}
my .php looks like this: (orginal)
/*
Joins a Raid
*/
function join_raid($name)
{
if (isset($this -> user[$name]))
$this -> bot -> send_tell($name, "You are already in the raid", 1);
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");
}
i tryed inserting it into but i get that error, and if i delete all and insert just that in first quite, raid starts but 0 points is given, and you can click join raid forever (it will say you joined raid every time....)
i know im noob at this, help me out, where should i insert that code?
-
I'm not using that module at all, but I guess you got to replace the last 3 lines of code in the else if ($this -> raid) block
$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));
with the code supposed to be inserted.
-
nope still nothing :(
-
hm, copy pasting and running bot to check if its working made id by lucky shot, did it like this and it works now, damn lucker ^^
/*
Joins a Raid
*/
function join_raid($name)
{
if (isset($this -> user[$name]))
$this -> bot -> send_tell($name, "You are already in the raid", 1);
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)");
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");
}
}
else
$this -> bot -> send_tell($name, "No raid in progress");
}
-
- Timed raid module.
- Raid starts automatically paused.
- includes !lock, !unlock, !pause, !unpause as from above URL.
- single file to add all features mentioned rather than cut n paste.
http://www.jjones.co.uk/files/new/raidtime.php
I'll add manual raid adding and removal of people during in the week (hello Pajeron!!!) but too lazy at the moment.
Hmm, I'll maybe add some basic logging too. We'll see though ;-p
-jj-
-
Guessing that I'm using a different raid module, although it says it's locking and unlocking raids.. no-one can join once it's unlock and if I lock a started raid people can still join 0-o
-
Send me a tell in game Paj ;-p
-jj-