Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Thu Aug 23, 2001 2:48 am   

Hernan's automapper and fleeing script.
 
Heh, this one is based on the where command in mud that Hernan plays.

#var mychar Char1|Char2|Char3|...
#ALIAS blindfi {#T+ blindfindloc;~where}

#TRIGGER {{$@mychar}%s-%s(*)} {#VARIABLE found 0;#LOOP %numrooms() {#IF (%roomname(%mapvnum(%i))="%1") {#VARIABLE found_dir %mapvnum(%i);#ADD found 1;#IF (@found>1) {#ECHO Too many matches!;#T- blindfindloc;#ABORT 1}}};#IF (@found=1) {#TELEPORT @found_dir;#T- blindfindloc} {#ECHO No match!;#T- blindfindloc}} "blindfindloc"

Here is the original thread: http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=3106&FORUM_ID=7&CAT_ID=1&Topic_Title=Help+request%3A+find+location+on+map&Forum_Title=zMUD+General+Discussion

Iljhar
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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