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
Ziah
Novice


Joined: 11 Mar 2005
Posts: 40

PostPosted: Mon Jul 25, 2005 11:23 pm   

stop all alias thingies command?
 
sorry to keep asking questions on here, i just cant find it in the helpfiles...
ive got an alias that has the #WAIT command in it, and i was wondering if there was something else that i could put into an alias to stop all the #WAIT commands to come...
for example, the alias has me saying something every 9 seconds, but sometimes i have to stop or else ill die, so i need something to cut it off....any suggestions?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Jul 26, 2005 12:08 am   
 
Simple DON'T Use #WAIT unless you know and understand how it works.

http://www.zuggsoft.com/page.php?file=zmud/timers.htm

use #ALARMs instead they are MUCH more flexible.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Ziah
Novice


Joined: 11 Mar 2005
Posts: 40

PostPosted: Tue Jul 26, 2005 12:47 am   
 
oooh thanks... but still, is there a way to make it stop when i have to? i read the #ALARM stuff but i didn't see anything like that
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Tue Jul 26, 2005 1:36 am   
 
give the alarm an name (id) and then use

#T- alarmid
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Tue Jul 26, 2005 1:37 am   
 
Or if you want the time counted down to be kept, #SUSPEND alarmid works too
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
Ziah
Novice


Joined: 11 Mar 2005
Posts: 40

PostPosted: Tue Jul 26, 2005 3:41 am   
 
thanks!
Reply with quote
StonedMOFO
Beginner


Joined: 22 Sep 2004
Posts: 28

PostPosted: Tue Jul 26, 2005 1:17 pm   Is there any way to accomplish this
 
Ok, I've change one part of my script to use alarm, but the problem I have is this
How do I make it so it will not create another alarm if one already exist?
so there will never be two of the same alarm exist at one time, I need to somehow prevent my trigger from ever having two at the same time (this flood the server and gets me kicked out).
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Tue Jul 26, 2005 2:44 pm   
 
Refering to the alarm by Name (ID), and including path/classname when creating an alarm should work. zMud will not create two alarms with the same name in the same class
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Jul 26, 2005 8:20 pm   
 
You can safely use #WAIT in aliases, the problems arise when you put them in triggers since a #WAIT in a trigger stops all processing for the duration of the wait (and anything that's happened in the meantime is then dumped on you all at one time). However, #WAIT is still not a good idea; it's like trying to code in object-oriented VB using the ancient, linear setup of ANSI-BASIC using GOTOs and line numbers.
_________________
EDIT: I didn't like my old signature
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