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


Joined: 11 Dec 2003
Posts: 17
Location: Netherlands

PostPosted: Fri Jan 23, 2004 2:43 pm   

How2: pray multiple
 
Version 4.62 VME Valheru

Multi pray alias
The pray command is used to see if a mob is loaded.
If you pray 2.guard it will disregard the first guard and check if the second guard is loaded. Etc.. voor 3.guard, 4.guard..

What I want to do is to automatically pray 10 guards in one alias.

What I tried was the following:

ALIAS NAME: pray10
COMMAND: pray %1;pray 2.%1;pray 3.%1;pray 4.%1;pray 5.%1;pray 6.%1;pray 7.%1;pray 8.%1;pray 9.%1;pray 10%.1

But that just checked if 2,3,4,5,etc was loaded, not 2.guard, 3.guard,etc

Any help is most appreciated.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri Jan 23, 2004 3:41 pm   
 
#alias pray {#loop %2 {~pray %i~.%1}}

to use just type pray guard 10 or pray dog 5 etc
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jan 23, 2004 5:50 pm   
 
How strange. Your alias worked for me, except that the last command came out as
pray 10%.1
because of a typo in your script (the . is in the wrong place).

Your alias works fine. nexela's will also work. If either of these don't work, you have something else wrong.

EDIT: Corrected typo, missing space.
Reply with quote
yared
Beginner


Joined: 11 Dec 2003
Posts: 17
Location: Netherlands

PostPosted: Fri Feb 13, 2004 10:16 pm   
 
Is it possible to pray only to mob 5-10?

Some muds hav mobs like rabbits for example, that exist 50 times, I know some targets that I look for are in the 30-40 range so I would love to pray rabbit 30-40.

Is that possible?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri Feb 13, 2004 10:58 pm   
 
If your using my example from my previous reply its just a matter of doing

pray dog 5,10

to loop pray to 5.-------10.
Reply with quote
yared
Beginner


Joined: 11 Dec 2003
Posts: 17
Location: Netherlands

PostPosted: Sat Feb 14, 2004 12:38 am   
 
Brilliant, never realised it, thanks
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