SphereCommunity
TIMER=1 - Printable Version

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



TIMER=1 - Llirik - 10-09-2015 12:54 PM

[itemdef i_account_d]
defname=i_account_d
id=i_guildstone
TYPE=t_normal

ON=@CREATE
ATTR=0c090
timer=1

ON=@Timer
TAG0.T_TEST += 1
SERV.LOG <EVAL <TAG0.T_TEST>>
timer=1
RETURN 1

After 600 seconds he STOP! Sad


RE: TIMER=1 - Extreme - 10-10-2015 12:06 AM

Check the sectorsleep...
You can place this stone on 1,1 map position, this sector never sleep Big Grin


RE: TIMER=1 - Llirik - 10-10-2015 03:07 AM

This sector sleep too. How I can check the sectorsleep? And set my sector to No Sleep!


RE: TIMER=1 - pointhz - 10-10-2015 05:55 AM

I don't think you can force any sector to Not Sleep. Using timerf should solve TIMER issues in sectors sleeping.

[ITEMDEF i_account_d]
NAME=Stone
ID=i_guildstone
TYPE=t_script

ON=@CREATE
ATTR=0c090
TIMERF 1, f_test_function_timer

[FUNCTION f_test_function_timer]
TAG0.T_TEST += 1
SERV.LOG <EVAL <TAG0.T_TEST>>
TIMERF 1, f_test_function_timer


RE: TIMER=1 - Llirik - 10-10-2015 06:36 AM

Thank you!