Spawn is a script similar to the ZeCreeps lastpostodb script. I tried to make sure to save SQL queries and do something optimized and flexible at the configuration file.
The script is also (normally) compatible with all databases (MySQL). You will need to enter the name of your
lastPos column in your database in the
server/config.lua file. It will also treat your
lastPos field to use it (be it an array, a string, a null value, etc …).
The basic configuration performs a backup of all players every 10 minutes. Other backups are mainly handled when the player logs off or when the
save command is launched in the console (useful for restarting its server, for example). You can change the configuration as you wish.
The script will automatically look for the latest version and notify you when a new update is available (option to disable this option).
Overview of the configuration file
Download the script. (4.6 KB)
start spawn to your
- Set the configuration in the
- Have fun !
If you encounter problems with the script, please keep me informed.