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

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

Author Topic: Chat and City AI statistics  (Read 3477 times)

0 Members and 1 Guest are viewing this topic.

Offline Novel

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Chat and City AI statistics
« on: January 22, 2011, 12:26:41 pm »
Hello

I have written a small script which count how many Cais one person have done and it count the most spammers in chat.

Should work for AoC also. Have fun with it

use:

info chat
info city



Offline Zweiblum

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: Chat and City AI statistics
« Reply #1 on: January 22, 2011, 05:37:12 pm »
Hey,

very nice idea!
Orgs loves it already ;)
But how does it work?
Because we have some People counted who never did a raid...

Offline Novel

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Chat and City AI statistics
« Reply #2 on: January 22, 2011, 07:37:17 pm »
They did a raid. If a cai started write the !city script a line in sql table. You can see it in log if you type !city. I only count the started cais of a player.Its a simple SQL command.

For the chat i write ever written line in sql DB. (On large chat bots it can be an overheap) And count it again at every !info command.

Offline Zweiblum

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: Chat and City AI statistics
« Reply #3 on: January 23, 2011, 09:59:22 am »
ok then :)
might be a long time ago then!

thx for this awesome piece of script ;)

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: Chat and City AI statistics
« Reply #4 on: January 23, 2011, 12:23:03 pm »
After looking over the code it looks like every chat line is saved in the DB? That will make the database balloon out of control really fast IMO.

Otherwise great work!

Offline Novel

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Chat and City AI statistics
« Reply #5 on: January 23, 2011, 12:28:24 pm »
It does. So no script for larg chat bot. I have it in my guild with 100k+ lines and runs fast. If I get some time I will improve it :)

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: Chat and City AI statistics
« Reply #6 on: January 24, 2011, 09:24:08 pm »
Would it be possible to change it so that only the last line from each unique person was displayed and stored with an accumulated total?

Might be a good way to alter it without loss of too much info.

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 399
  • 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