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


Joined: 01 May 2002
Posts: 5

PostPosted: Sat May 11, 2002 4:55 am   

Ok I am an idiot but I can't get this to work
 
I am working on my first good wizard and wanted to sit and prac spells. So I need to
have a way to sleep when mana gets low and
resume casting when its back up.

first I just got my mana from the prompt and said
#if((%1)<55)
but this spams the screen
so put it in a variable. ok
now I got the mana in a variable (mana)
is there a way to say mana < 50 sleep
and when mana > 550 wake and
resume whatever?


I am sure that a lot of people do this but I get confused LOL

thank you for any help with this

Etrin


p.s. what I need is a bot ROFL

cast spells, eat when hungry, c spring, drink
cast spells, sleep and all that...go to bed
get pk while I sleep RL

thanks again
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat May 11, 2002 5:33 am   
 
To prevent spam, you just need some form of control to turn off the trigger once you go to sleep and turn it back on after you wake up. You can use variables, but for this example I've chosen to use classes.

#TR {your prompt with (%d) mana here} {#IF (%1 < 55) {#T- awake;#T+ sleeping;sleep} {awake}
#TR {your prompt with (%d) mana here} {#IF (%1 > 550) {#T- sleeping;#T+ awake;wake} {sleeping}


LightBulb
Vague questions get vague answers
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