SphereCommunity
force disconnect? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: force disconnect? (/Thread-force-disconnect)

Pages: 1 2 3 4 5


RE: force disconnect? - x77x - 10-18-2015 01:30 AM

a proper disconnect, would still let you read the system messages at the bottom of the screen

telling you, your beening disconnected on purpose

a crash or the packet kicks you back out to the main login window

theres an idea!

a timer then your packet bomb!
.
.
.
SRC.SYSMESSAGE @0033 You will be disconnected in 10 seconds, Please log back in!
SRC.TIMERF 10, f_disconnectx

[FUNCTION f_disconnectx]
SRC.SENDPACKET 0D1 01


RE: force disconnect? - pointhz - 10-18-2015 02:23 AM

[FUNCTION f_disconnectx]
SRC.SYSMESSAGE @0033 You will be disconnected in 10 seconds, Please log back in!
SRC.TIMERF 10, f_disconnecty

[FUNCTION f_disconnecty]
IF (<SRC.ISONLINE>)
SRC.SENDPACKET 0D1 01
ENDIF


What if you logout and log back in after f_disconnectx but before f_disconnecty? Will the timerf still work and disconnect you at the right time? I think so