Author |
Message |
ZoAnimus Newbie
Joined: Apr 22 2005 Posts: 11 Offline
|
Posted: Tue Apr 26, 2005 2:18 pm Post subject: ?time and *timer |
 |
|
|
|
Does anyone know what event is passed when the timer runs out that is set by *timer? I want to use MervBot to do some processing anytime the *timer runs down to 0. I'm hoping that there is already a function to handle this event in the MervBot code. I can then just add my processing to that function. Any thoughts will be appreciated
Thanks,
ZoA |
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Tue Apr 26, 2005 2:20 pm Post subject: |
 |
|
|
|
I think it might just be *arena %103, which isn't a very good thing to use to assume the timer expired. _________________ 4,691 irradiated haggis! |
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
|
Back to top |
|
 |
ZoAnimus Newbie
Joined: Apr 22 2005 Posts: 11 Offline
|
Posted: Tue Apr 26, 2005 4:15 pm Post subject: |
 |
|
|
|
I tried adding the line
sendPublic("Event happened");
to both the EVENT_TimedGameOver and MSG_Arena areas of the code. However, when the timed game ends. The Bot nevers says Event happened. I thought that just having the bot say something would be a good test as to whether or not the bot is registering the event.
Any ideas??
Edit:
I changed the line of code to
sendPublic("*arena Event Happened");
and it worked. Go figure??? |
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: Tue Apr 26, 2005 4:24 pm Post subject: |
 |
|
|
|
Yeah I couldnt get the EVENT_TimedGameOver to work either, I just assumed I was doing somethign wrong heh.
But I would not use that anyways, as having a timer in the bot to set and check with bot commands will allow using seconds, and allow events at intervals before it ends. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Tue Apr 26, 2005 8:03 pm Post subject: |
 |
|
|
|
Quote: | sendPublic("Event happened");
to both the EVENT_TimedGameOver and MSG_Arena |
Because you sent a Public message, it didn't register for your check for Arena Messages. If you had put stuff in MSG_Public, it would have worked. _________________
 |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Thu Apr 28, 2005 3:59 am Post subject: |
 |
|
|
|
I think EVENT_TimedGameOver is for Misc:TimedGame, which by the way cannot by overided with *timer. |
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: Thu Apr 28, 2005 2:44 pm Post subject: |
 |
|
|
|
cool, thanks |
|
Back to top |
|
 |
|