Idle disconnect
Idle disconnect
I was wondering if anyone has a idle disconnect script they might be willing to share. I.e. something that dc's you from the mud when you haven't entered a command for x minutes.
Re: Idle disconnect
Not sure how to make a script like that, but you could make a timer for x minutes and have it send "quit" to the commandline when it goes off.
Re: Idle disconnect
Could just make a small script, hooking onto the sysDataSendRequest event.
If your game has a "proper" way to log out, i.e. in the IRE games, we type QQ, simply change to:
Just add that event handler to the script and give the script the name of logoutTimer.
Should do the trick.
Code: Select all
function logoutTimer()
killTimer(logout)
local timeout = 600 -- Timeout in seconds
logout = tempTimer(timeout, [[disconnect()]])
end
Code: Select all
logout = tempTimer(timeout, [[send("qq")]])
Should do the trick.