|
benjunmun Beginner
Joined: 23 Feb 2002 Posts: 23
|
Posted: 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?
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
|
|