Hello, I made a simple script that reloads the cash shop automatically at 9:00 pm, however, sometimes the server freezes for about 5 to 10 seconds, where some players are disconnected in the process.
I thought it was the script's fault or something like that, however, I noticed the same behavior when using a simple "@ii" command within the game on a GM account, so I did a test with a normal account and the server didn't froze.
apparently the server or client freezes when a GM or a script executes a command.
In the server logs, it doesn't show anything, it only shows the log of players who disconnected.
Somewhere on this forum, I saw a similar problem, where someone said it was a problem inserting into the command log table, however, looking at the table, I see the logs without problems and inserted at a high speed.
My script:
- script cashshop#updat -1,{
OnClock2100:
atcommand "@reloaditemdb";
end;
}