BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.2.x Custom/Unofficial Modules => Topic started by: Alreadythere on February 06, 2006, 05:09:23 pm

Title: !count
Post by: Alreadythere on February 06, 2006, 05:09:23 pm
Added a !count function to my raid bots.
Easy syntax:
!count all shows the number of characters in the raid bot, split into professions
!count prof shows the characters of selected profession online.

Adapt the professions table to your needs, the shortcuts just need to be unique. Don't mess with the profession names though, or it won't work ;)

Needs my color module, and uses my whois cache. And is using get_tablename too.

File (http://www.m8y.de/ao/bebot/Count.phps) (save as .php)
Title: Re: !count
Post by: stonybg on March 21, 2006, 05:17:19 pm
i tray to use this plugin but get error
Quote
Fatal error: Call to a member function on a non-object in D:\Install\bots\bots\modules\Count.php on line 89

hre its  line 89
Quote
$retstr = "Total: " . $this -> bot -> colors -> colorize("lightgrey", $totalcount[0][0]);
Title: Re: !count
Post by: Alreadythere on March 21, 2006, 05:47:12 pm
Needs my color module, and uses my whois cache. And is using get_tablename too.

Check here (http://bebot.link/index.php/topic,312.0.html).
SimplePortal 2.3.7 © 2008-2024, SimplePortal