Archive > AO 0.6.x Custom/Unofficial modules

Chat and City AI statistics

(1/2) > >>

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


Zweiblum:
Hey,

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

Novel:
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.

Zweiblum:
ok then :)
might be a long time ago then!

thx for this awesome piece of script ;)

Slacklin:
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!

Navigation

[0] Message Index

[#] Next page

Go to full version