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-nmm6 (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-nmm6 (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-nmm6 (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
LogOut timer
Author Message
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #1
LogOut timer
I want to teleport player who logout more than 1 minute to specific place
So if i add logout timer with timer 60 it's not work, but if timer 15 its work fine.
Why?

Code:
ON=@LOGOUT
SERV.NEWITEM i_logout_timer
SRC.EQUIP <NEW>

[itemdef i_logout_timer]
ID=i_memory
TYPE=t_eq_script
name=logout timer
ON=@CREATE
TIMER=60
ON=@TIMER
CONT.GO Britain
REMOVE
RETURN 1
05-05-2012 04:57 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: LogOut timer
timers can stop on offline characters i suggest you to use timerf.
Code:
[function logout_timer]
if !(<isonline>)
    go britain
endif

[function example]
timerf 60,logout_timer
(This post was last modified: 05-05-2012 05:07 AM by Shaklaban.)
05-05-2012 05:06 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #3
RE: LogOut timer
hmm then you can try something like this:

http://forum.spherecommunity.net/showthr...82#pid1882

just place your logout timer which linked to player to 11,11
(This post was last modified: 05-05-2012 02:37 PM by Shaklaban.)
05-05-2012 02:37 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #4
RE: LogOut timer
Hey, all methods works! Just need to use P=<coords> instead GO or TELE 0_o
Thanks for help
(This post was last modified: 05-05-2012 04:55 PM by WRWR.)
05-05-2012 04:44 PM
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)