Knowledgebase
Storm Palace Hosting
>
Storm Hosting Help Desk
>
Knowledgebase
Ask a question:
Loading knowledgebase suggestions...
Auto dimmer on timer
Solution
ON ENTER { ptime GLOBAL hr GLOBAL 10 ME SETALARM
{
{ DATETIME 86400 % ti = ti 3600 / 5 - hr = }
{ DATETIME 2147483647 + 86400 % 11647 + 86400 % ti = ti 3600 / hr = }
DATETIME 0 >= IFELSE
{ 24 hr -= } hr 24 > IF
{ 24 hr += } hr 0 < IF
}
ptime DEF }
ON ALARM { ptime GLOBAL hr GLOBAL ptime EXEC
[ 50 50 50 50 60 70 80 90 0 0 0 0 0 0 0 0 0 90 90 80 70 60 50 50 ]
hr_arr = hr_arr hr GET tm = tm DIMROOM
12000 ME SETALARM
}
Was this article helpful?
yes
/
no
Article details
Article ID:
326
Category:
Room Scripts
Date added:
01-02-2014 00:49:59
Views:
507
Rating (Votes):
(0)
<<
Go back
Powered by
Help Desk Software
HESK™