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


Joined: 19 Sep 2002
Posts: 8
Location: St. Louis

PostPosted: Mon Sep 08, 2003 6:11 am   

Help with timer and Triggers
 
In the MUD that I play, theres a mob that gives TONS of gold, and is decently east to kill. I want my character to kill him, recall, sleep until his moves are regained, then go back at it again. Any clue on how this is accomplished? Any websites that anyone knows of that will help me out?

I'd like to make a timer so that once I've done it once, I rest for two minutes, then go back at it.

My prompt looks like this, if it's any help:

<1671|1671Hp 1803|1803M 1512|1512Mv><4147944TNL>

Mv is obviously moves.

Thanks in advance.
Reply with quote
PrestoPimp
Apprentice


Joined: 18 Sep 2001
Posts: 175
Location: USA

PostPosted: Tue Sep 16, 2003 1:21 am   
 
OoOoO lotsa gold! K this isnt too tricky.. I think this should do precisely what you want.. just cut&paste and voila!

#TRIGGER {*monster guy death message*} {*command for recalling*;sleep;#ALARM +120 {*command to go back to the location where the monster is*;#UNTRIGGER +120;*command to kill the monster*}}

You must replace all the text within the *'s with the designated information... after that you should be set! If you wanted something to rest until the movements were ALL the way back to normal even if it took more than 2 minutes... use this instead.

#TRIGGER {(%n)|(%n)Mv} {#VAR currentmv %1;#VAR maxmv %2}
#TRIGGER {*monster guy death message*} {*command for recalling*;sleep;#ALARM +60 {l;#IF @currentmv<@maxmv {} {#UNTRIGGER +60;*command to go back to the location where the monster is*;*command to kill the monster*}}

Hope this helps ya!
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