Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Jaiven
Wanderer


Joined: 03 Oct 2007
Posts: 66

PostPosted: Sun Sep 16, 2012 8:25 pm   

Specifying What Folder An Alarm Goes into
 
Hello, I have a script that creates an alarm and recently it started putting it in a zone folder which is disabled unless I am running it. How would I specify for it to go into a different folder or fix this solution if that isn't possible?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Sun Sep 16, 2012 9:04 pm   
 
Syntax: #ALA id {timepattern} {commands} class

folders are classes
_________________
Discord: Shalimarwildcat
Reply with quote
Jaiven
Wanderer


Joined: 03 Oct 2007
Posts: 66

PostPosted: Mon Sep 17, 2012 11:46 pm   
 
shalimar wrote:
Syntax: #ALA id {timepattern} {commands} class

folders are classes


Hmmm, I still can't get it to work based on just putting a word for the folder at the end of it. Example

#alarm Activetimer 160 {#if (@afkbutton=0) {clear;halt;say resetting}} afkfolder
Doesn't work. It still goes into the wrong folder.
Reply with quote
Jaiven
Wanderer


Joined: 03 Oct 2007
Posts: 66

PostPosted: Tue Sep 18, 2012 1:22 am   
 
any suggestions?
Reply with quote
Jaiven
Wanderer


Joined: 03 Oct 2007
Posts: 66

PostPosted: Tue Sep 18, 2012 1:31 am   
 
I dun figured it out #class goes at the start ty
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Tue Sep 18, 2012 1:50 am   
 
#alarm "Activetimer" -160 {#if (@afkbutton=0) {clear;halt;say resetting}} afkfolder
_________________
Discord: Shalimarwildcat
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Sep 18, 2012 1:12 pm   
 
Did you just say you used the #CLASS command? You should be aware that after you execute #CLASS, it will automatically create
everything in that class until you execute "#CLASS 0".
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Fri Oct 19, 2012 10:24 am   
 
You could also just create a permanent timer and enable it within your script by placing the line #T+ ActiveTimer.

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger name="ActiveTimer" type="Alarm" priority="10" newline="false" enabled="false" copy="yes">
    <pattern>*160</pattern>
    <value>#T- ActiveTimer
#if (!@afkbutton) {
  #sendraw "clear"
  #sendraw "halt"
  #sendraw "say resetting"
  }</value>
  </trigger>
</cmud>
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net