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


Joined: 07 Dec 2002
Posts: 11

PostPosted: Sat Dec 07, 2002 5:55 pm   

Complicated question
 
I want to set up a system that searches every room on a map, checks if there is an npc there, if so attacks, if not, moves on to the next room, Any idea how I would start such a thing?
Reply with quote
Castaway
GURU


Joined: 10 Oct 2000
Posts: 793
Location: Swindon, England

PostPosted: Sat Dec 07, 2002 6:59 pm   
 
Any idea how we're supposed to know which Mud you play, and what the text looks like you want tp capture, which version you are using, and if you have configured the Mapper?

Sorry, we're not Seer.

As for the theory.. You can loop through all the rooms in the mapper using something like:

#LOOP %numrooms
{ #EXEC %walk %i}

So now you have to find out if there are NPCs there...

Lady C.
Reply with quote
Morfaroth
Beginner


Joined: 07 Dec 2002
Posts: 11

PostPosted: Sat Dec 07, 2002 7:07 pm   
 
That could already solve what I'm trying to do, Heh, Sorry for the lack of information before
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