|
daarklord Beginner
Joined: 22 Mar 2011 Posts: 12 Location: nilgiri.mythril.com
|
Posted: Thu Mar 31, 2011 7:44 am
Alarm fires multiple times |
I'm trying to make alarms that go off periodically.
This is the alarm:
And what happens is when the clock turns hh:00:00 or hh:20:00, etc. the client will send
Code: |
score
who
save //from another alarm
score
who |
at the same time. Sometimes it would just send one set as expected, but sometimes it sends double like that.
Previously I made this other alarm:
Which on its own also did
Most of the times when the hh:m5:00 or hh:m0:00 comes, it just sends one "save" but sometimes it sends two. I haven't seen it send 2 since the 20 minute alarm above was made. Edit: today, the save alarm occasionally fires twice but the 20 minute score alarm hasn't fired twice as far as I've seen.
Any idea why it's doing that? |
|
Last edited by daarklord on Sat Apr 02, 2011 6:34 am; edited 1 time in total |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Thu Mar 31, 2011 12:27 pm |
Are you certain that you have the alarm running only once? If you have accidentally started multiple identical alarms, it would produce the effect you are seeing. How is this alarm being initiated?
|
|
|
|
daarklord Beginner
Joined: 22 Mar 2011 Posts: 12 Location: nilgiri.mythril.com
|
Posted: Fri Apr 01, 2011 7:29 pm |
Well I checked and those are the only two alarms I have. I don't know what you mean by running once. They will keep running periodically. They get initiated by that part that is an asterix and a time. *5:00 starts every 5 minutes. At least that's what's supposed to happen.
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Fri Apr 01, 2011 8:17 pm |
What I meant was, is there something creating this alarm? Or is this something you created once, manually, and are letting run permanently? I was wondering whether multiple copies of the alarm were running at the same time.
|
|
|
|
daarklord Beginner
Joined: 22 Mar 2011 Posts: 12 Location: nilgiri.mythril.com
|
Posted: Sat Apr 02, 2011 6:19 am |
Oh sorry now I see what you're asking. It is only created once. But I have aliases to enable and disable those two triggers. Here they are.
Aliases:
1)
Code: |
isIdle = 1
#ECHO "isIdle set to: " @isIdle
#CR
#T+ idleSave
#T+ idleInfo |
2)
Code: |
isIdle = 0
#ECHO "isIdle set to: " @isIdle
#CR
#T- idleSave
#T- idleInfo |
Edit: today, the save alarm occasionally fires twice but the 20 minute score alarm hasn't fired twice as far as I've seen. |
|
|
|
|
|