The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Force Logout?
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
Force Logout?
can you force a logout via script?

Dragons of Time 2000-2020
http://dragonsoftime.com
10-02-2016 07:15 AM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #2
RE: Force Logout?
DISCONNECT is the command you need

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
10-02-2016 07:50 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #3
RE: Force Logout?
been down that road in a previous post and it still creates more problems thats its worth...
a proper logout, just like hitting the logout button would be nice

Dragons of Time 2000-2020
http://dragonsoftime.com
10-02-2016 01:45 PM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #4
RE: Force Logout?
And people womder why we get frustrated...
You: "I want a chocolate bar!"
Me: "here is a chocolate bar"
You: "No! I said I want a chocolate bar!"

Figure it out yourself

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
10-02-2016 11:42 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #5
RE: Force Logout?
i want a LOGOUT, not a chocolate bar... and especially not a dirty chocolate bar


Code:
[FUNCTION f_disconnectx]
SRC.SENDPACKET 0D1 01

SRC.SYSMESSAGE @0033 Saving your information...
SRC.SYSMESSAGE @0033 You will be disconnected in 10 seconds, Please log back in!
SRC.TIMERF 5, f_disconnectx

a logout and a disconnect crash are not the same =)

SRC.DISCONNECT doesnt work via script
why isnt there a SRC.LOGOUT ?

https://forum.spherecommunity.net/Thread...disconnect

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 10-03-2016 02:24 AM by x77x.)
10-03-2016 01:30 AM
Find all posts by this user Like Post Quote this message in a reply
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #6
RE: Force Logout?
Disconnect is the logout.

If you get disconnect you are logged off. I dont understand what else do you want lol.
10-03-2016 02:14 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #7
RE: Force Logout?
this does NOT work with a disconnect...

Code:
[EVENTS e_players]
ON=@LOGIN
IF (<SRC.LEVEL>>0)
SRC.NAME=<FINDLAYER(29).NAME> [<eval <SRC.LEVEL>>]
GUILD.ALLMEMBERS -1,SYSMESSAGE @003f <SRC.NAME> - <SRC.TITLE> is online
DIALOGCLOSE 1
RETURN 0
ENDIF

ON=@LOGOUT
IF (<SRC.LEVEL>>0)
SRC.NAME=<FINDLAYER(29).NAME>
RETURN 0
ENDIF

so its not the same

Dragons of Time 2000-2020
http://dragonsoftime.com
10-03-2016 02:23 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #8
RE: Force Logout?
(10-03-2016 01:30 AM)x77x Wrote:  i want a LOGOUT, not a chocolate bar... and especially not a dirty chocolate bar

Omg... Delete Sphere and go play Lego.

Grandmaster Localhost Admin
10-03-2016 03:12 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #9
RE: Force Logout?
Then create your own logout command.

[function logout]
Trigger @logout
Disconnect

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
10-03-2016 03:24 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
n1ghtwish
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 28 in 8 posts
Joined: Jan 2016
Reputation: 0



Post: #10
RE: Force Logout?
Code:
[FUNCTION goodbye]
sysmessage DISCONNECTING... GOODBYE!
timerf 3,fGoodbye

[FUNCTION fgoodbye]
trigger @logout
disconnect

This works for me, AND even fires the LOGOUT trigger!
10-03-2016 03:49 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)