Booya
collapse collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Search


* Board Stats

  • stats Total Members: 1074
  • stats Total Posts: 18300
  • stats Total Topics: 2487
  • stats Total Categories: 7
  • stats Total Boards: 31
  • stats Most Online: 500

Author Topic: org bot with raids  (Read 5944 times)

0 Members and 1 Guest are viewing this topic.

Offline Ornaola

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
org bot with raids
« 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.

Offline pusikas

  • Posts: 161
  • Karma: +0/-0
Re: org bot with raids
« Reply #1 on: April 16, 2007, 01:08:40 pm »
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. :)
« Last Edit: April 16, 2007, 01:16:51 pm by pusikas »
Luuv  Bot-Keeper of Vengeance ^^*

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: org bot with raids
« Reply #2 on: April 16, 2007, 01:16:43 pm »
Luuv, your org name is spelt wrong in your signature ;-p

-jj-

Offline pusikas

  • Posts: 161
  • Karma: +0/-0
Re: org bot with raids
« Reply #3 on: April 16, 2007, 01:17:20 pm »
OMFG!
Luuv  Bot-Keeper of Vengeance ^^*

Offline Ornaola

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: org bot with raids
« Reply #4 on: April 16, 2007, 04:09:39 pm »
thanks, that modified raidtime.php is just what i needed, cheers  ;)

Offline Ornaola

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: org bot with raids
« Reply #5 on: April 16, 2007, 05:29:47 pm »
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: [Select]
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: [Select]
/*
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?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: org bot with raids
« Reply #6 on: April 16, 2007, 05:36:49 pm »
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: [Select]
$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.

Offline Ornaola

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: org bot with raids
« Reply #7 on: April 16, 2007, 06:32:22 pm »
nope still nothing  :(

Offline Ornaola

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: org bot with raids
« Reply #8 on: April 16, 2007, 06:43:07 pm »
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: [Select]
/*
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");
}

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: org bot with raids
« Reply #9 on: April 23, 2007, 02:49:09 pm »
- 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, 02:51:11 pm by jjones666 »

Offline Pajeron

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: org bot with raids
« Reply #10 on: April 23, 2007, 10: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

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: org bot with raids
« Reply #11 on: April 24, 2007, 12:30:29 am »
Send me a tell in game Paj ;-p

-jj-

 

* Recent Posts

0.7.0 updates by bitnykk
[May 17, 2020, 04:22:04 pm]


Stats module by bitnykk
[April 16, 2020, 04:45:43 pm]


OnlineOrg by Hell
[February 28, 2020, 11:21:55 pm]


AO Bots - discord server by Kjellis1234
[January 23, 2020, 04:17:04 pm]


Offline AA training timer module by Kjellis1234
[August 29, 2019, 11:12:14 pm]

* Who's Online

  • Dot Guests: 143
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Forum Staff

bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2020, SimplePortal