Run script after user disconnection.
Run script after user disconnection.
Is there a possibility to run an script/extension after user disconnecting (clicking on "Exit" button/closing the game...)?
Yes,
A user disconnection internal event will be triggered in your zone extension. The internal event is called "userLost" - from there, you can perform the script you need. Note: If a logOut had occured, userLost won't occur. Only one of those two will be fired, not both.
A user disconnection internal event will be triggered in your zone extension. The internal event is called "userLost" - from there, you can perform the script you need. Note: If a logOut had occured, userLost won't occur. Only one of those two will be fired, not both.
Smartfox's forum is my daily newspaper.