Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


Inactivity Script

Solution ;Alan's inactivity timer script
;Moves a user to a special room if he/she has not spoken in X minutes.
ON ENTER
{
inactivecount GLOBAL
0 inactivecount =
3600 ME SETALARM
}
ON OUTCHAT
{
inactivecount GLOBAL
0 inactivecount =
}
ON ALARM
{
inactivecount GLOBAL
;-----------------------------------------------------
;Set delay time and room to be sent to.
15 minutes =
157 inactiveroom =
;-----------------------------------------------------
inactivecount ++
{ "You were moved because you had not spoken in " minutes ITOA & " minutes." & LOGMSG
inactiveroom GOTOROOM
} inactivecount minutes >= IF
3600 ME SETALARM
}
 
Was this article helpful? yes / no
Article details
Article ID: 19
Category: Room Scripts
Date added: 04-01-2011 15:57:13
Views: 664
Rating (Votes): Article rated 5.0/5.0 (1)

 
<< Go back

Powered by Help Desk Software HESK™