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
benjunmun
Beginner


Joined: 23 Feb 2002
Posts: 23

PostPosted: Mon Mar 18, 2002 9:28 pm   

#additem problem
 
I use the #additem command to make a list of spells I want to cast. The script I wrote first waits for the conditions for a spell, then casts it. Sometimes however, I need to send two seperate commands at one time, and want to add them into the #additem command. How do I do this?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Mar 20, 2002 7:30 pm   
 
Two thoughts come to mind.

1) If this 2+ step thing you do is something
that you will do very often create an alias
for it so you can #ADDITEM that alias.

2) If you are using a queue system then you
could check for the stacking. ie:
#ADDITEM test "info;stats"
[%item(@test,1)]
info;stats

Would be sent to the mud and not parsed locally.
However if that went into a queue then you
could check for the ; and add multiple commands
into the queue.


TonDiening
Beta Upgrading to 6.26
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Mar 21, 2002 8:43 pm   
 
Troubadour refreshed my mind a bit:

#EXEC %item(@test,1)
info
stats


TonDiening
Beta Upgrading to 6.26
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