SphereCommunity
LogOut timer - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: LogOut timer (/Thread-LogOut-timer)



LogOut timer - WRWR - 05-05-2012 04:57 AM

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



RE: LogOut timer - Shaklaban - 05-05-2012 05:06 AM

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



RE: LogOut timer - Shaklaban - 05-05-2012 02:37 PM

hmm then you can try something like this:

http://forum.spherecommunity.net/showthread.php?tid=1149&pid=1882#pid1882

just place your logout timer which linked to player to 11,11


RE: LogOut timer - WRWR - 05-05-2012 04:44 PM

Hey, all methods works! Just need to use P=<coords> instead GO or TELE 0_o
Thanks for help