ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: declo on January 06, 2017, 08:38:04 AM

Title: Client status
Post by: declo on January 06, 2017, 08:38:04 AM
Has anyone created a script or know how one would create a script to monitor if the client is connected or disconnected from the server?  And if disconnected, would reconnect?

I know there are scripts that will login and logout and guessing that is a great source to use for most of the script, but how do you monitor if your currently connected?
Title: Re: Client status
Post by: TrailMyx on January 06, 2017, 08:52:55 AM
I think C2 had a script for this.  Just do a search for it.

http://www.scriptuo.com/index.php?topic=803.0;highlight=c2+login
Title: Re: Client status
Post by: The Ghost on January 06, 2017, 12:55:22 PM
#CLILOGGED = 1    mean you are log in

#CLILOGGED = 0  mean you are death

Look at the vcalue when you are ofline
Title: Re: Client status
Post by: declo on January 06, 2017, 06:57:51 PM
ty
Title: Re: Client status
Post by: BobOzarius on January 07, 2017, 09:40:51 AM
#clilogged = 0 means you are logged out. Not dead. A small but important distinction.  ;)
Title: Re: Client status
Post by: The Ghost on January 07, 2017, 10:17:50 AM
Thx for the clarification.  I use it to  pause my PvM  build when I log off to save my pet.  I got carry away :)