| View previous topic :: View next topic |
| Author |
Message |
Statium Voice
Joined: 04 Nov 2011 Posts: 6
|
Posted: Fri Nov 04, 2011 2:35 am Post subject: Save stats in script |
|
|
Hello! Please help with the script at the link
The problem is: After you restart bot stats reset. Thank you!
http://www.egghelp.ru/download.php?id=646 |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Nov 04, 2011 6:11 am Post subject: |
|
|
| Code: |
bind evnt - prerestart ::statistics::prerestart
proc statistics::prerestart {type} {
::statistics::save
}
|
add this before "# Quits." and it should save your statistics just before a restart. _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
Statium Voice
Joined: 04 Nov 2011 Posts: 6
|
Posted: Fri Nov 04, 2011 12:32 pm Post subject: |
|
|
| Hasn't helped ;( |
|
| Back to top |
|
 |
Statium Voice
Joined: 04 Nov 2011 Posts: 6
|
Posted: Sat Nov 05, 2011 1:53 pm Post subject: |
|
|
| Nobody can help? |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sun Nov 06, 2011 9:48 am Post subject: |
|
|
I've just noticed there's a 'load' function. Since the bot will loose the IRC connection, we will rely on that to call the load function.
| Code: |
bind evnt - init-server ::statistics:connect
proc statistics:connect init-server {
::statistics::load
}
|
Add this code after the one posted above, and then .rehash the bot. _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
Statium Voice
Joined: 04 Nov 2011 Posts: 6
|
Posted: Sun Nov 06, 2011 12:34 pm Post subject: |
|
|
All doesn't help  |
|
| Back to top |
|
 |
|