collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: !count  (Read 3851 times)

0 Members and 1 Guest are viewing this topic.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
!count
« 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 (save as .php)

Offline stonybg

  • BeBot User
  • **
  • Posts: 23
  • Karma: +0/-0
Re: !count
« Reply #1 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]);
« Last Edit: March 21, 2006, 05:22:03 pm by stonybg »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: !count
« Reply #2 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.

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 387
  • 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-2024, SimplePortal