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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Atreides_096
Wanderer


Joined: 21 Jan 2005
Posts: 99
Location: Solvang, CA

PostPosted: Wed Nov 01, 2006 10:23 am   

#alarm not firing
 
Some time back I had a problem with an alarm trigger set to go hourly not firing. At the time, I deleted the trigger and re-created it, and it worked fine. The problem has just come up again, but this time re-creating the trigger did not work. It seems to fire randomly; some hours it fires, some hours it doesn't... the alarm is:

Code:
#alarm *:00:00 {
#addkey TrackersEarned_DB ReportTypeOld %db( @TrackersEarned_DB, ReportType)
#if %time( hh)="04" {
  #addkey TrackersEarned_DB ReportType Today
  ReportS
  ReportReset Daily
  }
#if {%time( hh)="04" and %time( aaaa)="Monday"} {
  #addkey TrackersEarned_DB ReportType Weekly
  ReportS
  ReportReset Weekly
  }
#if {%time( hh)="04" and %time( d)="1"} {
  #addkey TrackersEarned_DB ReportType Monthly
  ReportS
  ReportReset Monthly
  }
#addkey TrackersEarned_DB ReportType %db( @TrackersEarned_DB, ReportTypeOld)
#delkey TrackersEarned_DB ReportTypeOld
#addkey TrackersEarned_DB SaveTime %ctime
#alarm HourlyCheck +5 {
  #if %db( @TrackersEarned_DB, SaveTime)!=%ctime {
    exphour
    #alarm +3 {#if @ingquest=1 {#save}}
    }
  }

Anyone have any idea what would cause it not to execute?
Reply with quote
darkspot
Apprentice


Joined: 29 Jul 2002
Posts: 105

PostPosted: Thu Nov 02, 2006 3:36 am   
 
unless I'm wrong... set it to #alarm *1:00:00 instead of *:00:00
Reply with quote
Atreides_096
Wanderer


Joined: 21 Jan 2005
Posts: 99
Location: Solvang, CA

PostPosted: Thu Nov 02, 2006 6:59 am   
 
*1:00:00 would just set it to only fire at 1a, 1pm, 11am and 11pm wouldn't it?
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Thu Nov 02, 2006 10:12 am   
 
It sounds like you might have a corrupted settings file, for now try *:59:59 instead.
_________________
Taz :)
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Fri Nov 03, 2006 2:09 pm   
 
Unless there was a mis-copy&paste, looks like there is a missing }

These are complete brackets:

Code:
#if %time( hh)="04" {
  #addkey TrackersEarned_DB ReportType Today
  ReportS
  ReportReset Daily
  }
#if {%time( hh)="04" and %time( aaaa)="Monday"} {
  #addkey TrackersEarned_DB ReportType Weekly
  ReportS
  ReportReset Weekly
  }
#if {%time( hh)="04" and %time( d)="1"} {
  #addkey TrackersEarned_DB ReportType Monthly
  ReportS
  ReportReset Monthly
  }

#alarm HourlyCheck +5 {
  #if %db( @TrackersEarned_DB, SaveTime)!=%ctime {
    exphour
    #alarm +3 {#if @ingquest=1 {#save}}
    }
  }


but #alarm *:00:00 { has no closing bracket after the 2 singles ones at the end

Code:
#alarm *:00:00 {
#addkey TrackersEarned_DB ReportTypeOld %db( @TrackersEarned_DB, ReportType)
#if %time( hh)="04" {
  #addkey TrackersEarned_DB ReportType Today
  ReportS
  ReportReset Daily
  }
#if {%time( hh)="04" and %time( aaaa)="Monday"} {
  #addkey TrackersEarned_DB ReportType Weekly
  ReportS
  ReportReset Weekly
  }
#if {%time( hh)="04" and %time( d)="1"} {
  #addkey TrackersEarned_DB ReportType Monthly
  ReportS
  ReportReset Monthly
  }
#addkey TrackersEarned_DB ReportType %db( @TrackersEarned_DB, ReportTypeOld)
#delkey TrackersEarned_DB ReportTypeOld
#addkey TrackersEarned_DB SaveTime %ctime
#alarm HourlyCheck +5 {
  #if %db( @TrackersEarned_DB, SaveTime)!=%ctime {
    exphour
    #alarm +3 {#if @ingquest=1 {#save}}
    }
  }
 }


Only thinking that because a copy and paste of your code screwed up and made 2 triggers and one of them just had {#if in it
_________________
http://www.Aardwolf.com
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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