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
tobei
Newbie


Joined: 19 Mar 2004
Posts: 9
Location: Canada

PostPosted: Tue Apr 06, 2004 1:01 pm   

#WAIT command problems...
 
I have an alias that checks certain variables, then steps through commands depending on the settings of those variables... After each command is issued it issues a #WAIT %trim(%1)

It used to work perfectly. Now, i've re-installed zMud (had a problem in which all my .mud files got corrupted and such, it was pretty) and now... #WAIT doesn't work at all.. no matter what argument i use with it..

I've tried to make my alias work with #ALARM +x but it isn't the same... Lets say three or four variable checks down the line, it doesn't decide to issue the commands, it still waits just as long before it checks the next one, resulting in a static wait time for the entire alias.

Here is a sample of the alias:
The resetinholevars resets all of the @inhole_ variables
when i look in pack it sets them all to their respected number.
then it steps through the types, and for any that are in the pack
it does a #WAIT %1, get all.x pack, then sells them.

This used to work PERFECT, now #WAIT won't work... any suggestions?

#ALIAS autoqphilts {resetinholevars;l in pack;#wait 3000;qpshop 0;qpshop 3;#if {@inhole_ivoryhilt>0} {#wait %1;get all.ivory pack;#loop 1,%if(@inhole_ivoryhilt<16,@inhole_ivoryhilt,15) {qp 1 sell};#var inhole_ivoryhilt 0};#if {@inhole_ebonyhilt>0} {#wait %1;get all.ebony pack;#loop 1,%if(@inhole_ebonyhilt<16,@inhole_ebonyhilt,15) {qp 2 sell};#var inhole_ebonyhilt 0};#if {@inhole_crystalhilt>0} {#wait %1;get all.crystal pack;#loop 1,%if(@inhole_crystalhilt<16,@inhole_crystalhilt,15) {qp 3 sell};#var inhole_crystalhilt 0};#if {@inhole_marblehilt>0} {#wait %1;get all.marble pack;#loop 1,%if(@inhole_marblehilt<16,@inhole_marblehilt,15) {qp 4 sell};#var inhole_marblehilt 0};#if {@inhole_bonehilt>0} {#wait %1;get all.bone pack;#loop 1,%if(@inhole_bonehilt<16,@inhole_bonehilt,15) {qp 5 sell};#var inhole_bonehilt 0};#if {@inhole_bronzehilt>0} {#wait %1;get all.bronze pack;#loop 1,%if(@inhole_bronzehilt<16,@inhole_bronzehilt,15) {qp 6 sell};#var inhole_bronzehilt 0};#if {@inhole_sandstonehilt>0} {#wait %1;get all.sandstone pack;#loop 1,%if(@inhole_sandstonehilt<16,@inhole_sandstonehilt,15) {qp 7 sell};#var inhole_sandstonehilt 0};#if {@inhole_limestonehilt>0} {#wait %1;get all.limestone pack;#loop 1,%if(@inhole_limestonehilt<16,@inhole_limestonehilt,15) {qp 8 sell};#var inhole_limestonehilt 0};qpshop 0}



Thanks for your input.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Apr 06, 2004 4:16 pm   
 
The alias works as designed. Are you sure you're using a large enough number for %1? I started by trying numbers like 2 and 5, and I couldn't see any delay. But once I realized those were milliseconds, and used 2000 and 5000, the delay was quite evident.

Based on the long aliasname, I'd guess that you're calling this alias from a trigger rather than using it at the command line. This might not work well, because the entire alias (including the reset alias) becomes part of the trigger script and #WAIT isn't compatible with #TRIGGER. I can't explain why myself, however Zugg has posted an explanation in the Support Library, which you can find from the Support link.
Reply with quote
tobei
Newbie


Joined: 19 Mar 2004
Posts: 9
Location: Canada

PostPosted: Tue Apr 06, 2004 6:05 pm   
 
No, i'm saying that #WAIT <number> no matter how big the number doesn't wait. I do call this alias from the command line, its not called upon by an triggers. I'm currently using #ALARM +x in the alias which gives me a static waittime for the entire thing, which is not the desired effect...
Reply with quote
tobei
Newbie


Joined: 19 Mar 2004
Posts: 9
Location: Canada

PostPosted: Tue Apr 06, 2004 6:06 pm   
 
prime example:
say test;#WAIT 99999999999999;say test

this should lag indefinitely... but... i get:
You say 'test'.
You say 'test'.

instantly.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Apr 06, 2004 7:03 pm   
 
Sorry, I can't help you then. #WAIT works in version 7.05 (and in all previous versions to the best of my knowledge) and your alias also works in version 7.05.

You appear to have a serious problem in your copy of zMUD, but more likely is that you've changed some Preference setting without understanding the consequences.
Reply with quote
tobei
Newbie


Joined: 19 Mar 2004
Posts: 9
Location: Canada

PostPosted: Tue Apr 06, 2004 9:39 pm   
 
yea i don't understand it, #WAIT seems to be the only thing that doesn't work... I've checked and rechecked the preferences and settings, but nothing explains why...
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