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


Joined: 15 Dec 2001
Posts: 19
Location: USA

PostPosted: Fri Jan 04, 2002 3:43 pm   

Auto-loot trigger help
 
Hi, how do I make an autoloot trigger for this mud. Here is the text. You receive 5304 experience points. Thanks in advance :)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jan 04, 2002 4:02 pm   
 
Pick out a distinctive trigger phrase that will indicate that it's a good time to loot, such as "you receive %d experience". Use that as the trigger phrase. Decide what commands are needed for the action(s) you want to perform, such as "get gold corpse". Use that as the trigger value. You could do simple triggers like this for yourself with less effort than it takes to post a note here asking someone else to write it.

LightBulb
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Fri Jan 04, 2002 4:02 pm   
 
You can enter the following via the command line:

#TRIGGER {^You receive %d experience points.$} {get all corpse}

or if you just want the cash:

#TRIGGER {^You receive %d experience points.$} {get coins corpse; exam corpse}

In each of these the matching symbol %d is used to represent any number. The ^ and $ anchor the pattern to the start and end of line. You can add any number of commands as long as you separate them with a semi-colon.

Troubadour
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