General Info
**EDIT**
Before anyone starts *****ing about copyright **** etc, I had some examples but I wrote and figured this out myself!
**/EDIT**
Not to sure where I had to post this cuz it isnt really a hack for vB3 itself, it just pulls info out of the vB3 dbase and post it in iRC.
First off you need a few things before this can work for your board.
If you dont have one of the required elements or dont have the access to install it you can stop reading. This is what you need:
- Eggdrop bot (d0h :p )
- Mysqltcl library (you can find it here http://www.xdobry.de/mysqltcl/)
- Location to your mysql.sock file (depends on the *nix installation but usually its in /tmp/)
- Abit of knowledge about coding in tcl (in case you wanna change colours and such)
Configuration of tcl explained
On line 1 of the tcl file you will see:
You must first be a
registered member to view any code.
This must be path to where libmysqltcl.so.2 is stored so it could be different on your box. If you dont know where to find it ask your shell provider.
On line 10 you will find:
You must first be a
registered member to view any code.
This is the path to where your mysql.sock file is stored, like above it could be different on your box.
*NOTE* You only have to use this line if you get an error without it. Thus first try the script with that line commented out, if it generates an mysql.sock error you will have to get the path to your mysql.sock file.
On line 15 you will find the actual line which makes the connection to your database.
You must first be a
registered member to view any code.
I think this line is self explanatory but if you commented out the db(socket) on line 10 you will have to remove this part from the line.
On line 20 is the the command trigger, change it to what you like, standard its !user
On line 31 is the query which will be run on your database you
will have to edit this line!! In the line I have my counters stored in the user table of the database with my own column names. Just make sure you edit this.
On line 35 to 44 you must change the variables to your column names.
On line 46 to 50 you also must change the variables and optionally the colors and layout.
Line 32 and line 45 are just partyline log files you can ignore those.
Think thats about all of the info you need to know to succesfully run this script.
Installation instruction
Upload the file vbuserstats.tcl to your bots scripts directory and add this line to the end of your bots config file: source scripts/vbuserstats.tcl
Telnet into your bot and do a .rehash
In iRC just type !user Ausernamehere and it will show you the info.
Enjoy
/Repec