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


Joined: 26 Dec 2001
Posts: 3
Location: USA

PostPosted: Wed Dec 26, 2001 2:59 am   

Realms of Despair
 
ok I'm not too computer savvy. Been working a coupla days now at Zmud. I got the easy part down, triggers. Here's what I want to do (Realms of Despair)

every 3 ticks (60 sec each I believe) I want to wake up, cast "continual light" "detect invisible" "detect magic" "armor" "faerie fire" and then go to sleep.
I modified some txt I got from zistrosk, but ended up with a lot of syntax errors in lines I didn't mess with. Any help would be appreciated...
MUD on.

" A man without enemies is a man without character. . ." Charlton Heston
Pres. N.R.A.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Dec 26, 2001 3:12 am   
 
#BUTTON AutoCastSwitcher {AutoCasting: %if(%trigger(AutoCasts),On,Off)} {#IF (%trigger(AutoCasts)) {#T- AutoCasts} {#T+ AutoCasts}}
#CLASS AutoCasts
#ALIAS AutoCastStuff {stand;cast "continual light" "detect invisible" "detect magic" "armor" "faerie fire";sleep;#CLASS AutoCasts;#ALARM {+180} {AutoCastStuff};#CLASS 0}
#CLASS 0

This creates a button allowing you to turn the whole thing off and on, the alias does all the work. It creates an alarm which calls itself. The point of the class commands within the alias are so that the alarm will be created in that class and hence can be turned off quickly with the button. I really dont think you want it to automatically put you to sleep in the middle of a fight or some such.
Reply with quote
Sandolfin
Newbie


Joined: 26 Dec 2001
Posts: 3
Location: USA

PostPosted: Wed Dec 26, 2001 3:53 am   
 
Thanks so much for your help. Just another quick question:
When I pasted those lines to teh command line, I got no error messages but the class was active and nothing ever happened. I think it's due to one of two possibilities:
1. I have not yet registered Zmud, as I wanted to try and figure this all out first - maybe it won't work without a registered copy.
2. I don't know this code well at all, but the line I would enter to cast a spell in the game is "cast 'detect magic'" and in the code you provided quotation marks were used instead of apostrophys. Thanks kindly.
Happy New Year

" A man without enemies is a man without character. . ." Charlton Heston
Pres. N.R.A.
Reply with quote
einar
Wanderer


Joined: 06 Nov 2000
Posts: 80
Location: USA

PostPosted: Wed Dec 26, 2001 4:44 am   
 
1: The only difference between the registered and unregistered zMUD is that unregistered will stop working until you buy your liscense. The trial version of zMUD is not limited in any way.
2: That is almost certainly your problem, just go into the trigger, and change the " around your spells into a '
So cast "continual light" would now be cast 'continual light'

And while I'm already posting... how do I get my signature to work?
<IMG SRC="http://www.ahira.f2s.com/signature.jpg">
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Wed Dec 26, 2001 2:19 pm   
 
Just FYI, the ticks on Realms of Despair are a little random. It's certainly not 60 seconds every time.

quote:

And while I'm already posting... how do I get my signature to work?
<IMG SRC="http://www.ahira.f2s.com/signature.jpg">



HTML tags like IMG are disabled by the forum, but reply (don't post it, just view the text in the box when you reply) and view my sig to see how I did it.



zMUD 6 Online Help: All the power you'll ever need.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Dec 26, 2001 8:14 pm   
 
quote:
the class was active and nothing ever happened


The Alarm is created by the Alias and the Alias is only called by the Alarm, so since the Alarm doesn't exist the Alias is never called and the Alarm is never created so the Alias....you just need to add a command to the button to call the Alias.

#BUTTON AutoCastSwitcher {AutoCasting: %if(%trigger(AutoCasts),On,Off)} {#IF (%trigger(AutoCasts)) {#T- AutoCasts} {#T+ AutoCasts;AutoCastStuff}}


Actually, I'd just create a permanent Alarm in the Autocast class, instead of making a temporary one every 3 minutes. Here's the whole script for that:

#BUTTON AutoCastSwitcher {AutoCasting: %if(%trigger(AutoCasts),On,Off)} {#IF (%trigger(AutoCasts)) {#T- AutoCasts} {#T+ AutoCasts}}

#CLASS AutoCasts
#ALARM *3:00 {stand;cast 'continual light';cast 'detect invisible';cast 'detect magic';cast armor;cast 'faerie fire';sleep}
#CLASS 0


LightBulb
Reply with quote
Sandolfin
Newbie


Joined: 26 Dec 2001
Posts: 3
Location: USA

PostPosted: Thu Dec 27, 2001 10:35 pm   
 
Hey, thanks all!

" A man without enemies is a man without character. . ." Charlton Heston
Pres. N.R.A.
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