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?
September 08, 2008, 01:16:46 AM

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: org bot with raids
Pages: [1]   Go Down
« previous next »
Print
Author Topic: org bot with raids  (Read 707 times)
0 Members and 1 Guest are viewing this topic.
Ornaola
Rookie
**
Offline Offline

Gender: Male
Posts: 20


org bot with raids
« on: April 15, 2007, 05:25:32 PM »

hey, need help again  Smiley

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.
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: org bot with raids
« Reply #1 on: April 16, 2007, 06:08:40 AM »

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.shadow-realm.org/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.shadow-realm.org/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. Smiley
« Last Edit: April 16, 2007, 06:16:51 AM by pusikas » Logged

Luuv  Bot-Keeper of Vengeance ^^*
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: org bot with raids
« Reply #2 on: April 16, 2007, 06:16:43 AM »

Luuv, your org name is spelt wrong in your signature ;-p

-jj-
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: org bot with raids
« Reply #3 on: April 16, 2007, 06:17:20 AM »

OMFG!
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Ornaola
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: org bot with raids
« Reply #4 on: April 16, 2007, 09:09:39 AM »

thanks, that modified raidtime.php is just what i needed, cheers  Wink
Logged
Ornaola
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: org bot with raids
« Reply #5 on: April 16, 2007, 10:29:47 AM »

ok got a problem with this:

http://bebot.shadow-realm.org/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

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");
}

my .php looks like this: (orginal)

Code:
/*
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?
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1024


Re: org bot with raids
« Reply #6 on: April 16, 2007, 10:36:49 AM »

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
Code:
$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.
Logged
Ornaola
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: org bot with raids
« Reply #7 on: April 16, 2007, 11:32:22 AM »

nope still nothing  Sad
Logged
Ornaola
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: org bot with raids
« Reply #8 on: April 16, 2007, 11:43:07 AM »

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 ^^

Code:
/*
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");
}
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: org bot with raids
« Reply #9 on: April 23, 2007, 07:49:09 AM »

- 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-

« Last Edit: April 23, 2007, 07:51:11 AM by jjones666 » Logged
Pajeron
Freshman
*
Offline Offline

Posts: 1


Re: org bot with raids
« Reply #10 on: April 23, 2007, 03:42:41 PM »

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
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: org bot with raids
« Reply #11 on: April 23, 2007, 05:30:29 PM »

Send me a tell in game Paj ;-p

-jj-
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: org bot with raids
« previous next »
 
Jump to:  

Recent
BeBot v0.5.3 released (de...
by Temar
[Today at 12:32:25 AM]

Help with online info in ...
by Barlyman
[September 07, 2008, 07:56:24 PM]

Security
by Alreadythere
[September 06, 2008, 10:02:42 AM]

Probs with relay from gue...
by Temar
[September 06, 2008, 09:03:06 AM]

Raid spam in guild chat
by Temar
[September 06, 2008, 09:01:18 AM]

Org Relaying
by Nytridr
[September 06, 2008, 01:34:35 AM]

Link 2 Guilds via 2 Bots?
by Temar
[September 05, 2008, 04:22:40 PM]

SVN download
by clashbot
[September 05, 2008, 05:12:59 AM]

TWC
by Temar
[September 05, 2008, 12:27:23 AM]

How to find the guild ID?...
by Irinir
[September 03, 2008, 02:58:54 PM]
Stats
Members
Total Members: 965
Latest: morisey
Stats
Total Posts: 10416
Total Topics: 1413
Online Today: 10
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 3
Guests: 28
Total: 31
Temar
Wolfbiter
kaagee

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