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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Sat Sep 05, 2009 8:58 pm   

why isn't this working?
 
#if (@//night/gauge/Soul = @//night/gauge/SoulMax) {%item(@botting,@i)} {Wait 60000;%item(@botting,@i)}

basically Soul is the magic spell points that priests have.

i am trying to see if night my priest is at full Soul points, so i am doing a comparision saying is Soul = SoulMax, if it is run my next bot script else wait 1 min. its not wiating when the soul is below max.

i can't seem to see why.
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sun Sep 06, 2009 3:31 am   
 
You need to use the command character before wait.

So it should be #wait 60000 instead of wait 60000
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Sun Sep 06, 2009 1:58 pm   oh golly
 
thanks ... that makes me laugh i spent probably an hour trying to figure it out. i run into alot of CMUD bugs so i figured it must be a CMUD issue. i didn't look hard enough.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Sep 06, 2009 4:33 pm   
 
Another thing is your usage of %item(@botting,@i).

It's not intended to start a CMUD line with functions, or to just list the function. You /really/ need to change that to:

#SEND %item(@botting,@i)

so that your script doesn't break any further. :P

Charneus
Reply with quote
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Thu Sep 17, 2009 12:43 am   
 
Charneus you are awsome, i put in #send in my bots and all the buggy crap went away. it was working most of the time without it, but i would get random weird errors.

Thanks for your input
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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