Page 1 of 1
Run script after user disconnection.
Posted: 13 Sep 2010, 17:38
by cpdavidd
Is there a possibility to run an script/extension after user disconnecting (clicking on "Exit" button/closing the game...)?
Posted: 13 Sep 2010, 21:45
by BigFIsh
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.
Posted: 14 Sep 2010, 12:37
by cpdavidd
Thanks alot
EDIT: And could I get a parameter, why the user was been disconnected (If its due to idle, or being kicked)
Posted: 14 Sep 2010, 20:07
by BigFIsh
I don't think so with this version of SFS. SFS2X possibly