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
mo24
Wanderer


Joined: 31 Jan 2006
Posts: 55

PostPosted: Thu Mar 09, 2006 1:05 pm   

Mapper speedwalks
 
There is an area with many rooms on my MUD that require some steps to get into the 2nd part of the area. I must go to various rooms, buy some things, give them to mobs, and do a few 'enter' commands to get there.

Is there any way to get the mapper to handle this, with %walk and map speedwalks? I thought maybe put the buy and enter commands etc in room script.. but I don't know how I would get mapper to walk to the individual rooms automatically. It would also not be as efficient since i would buy everytime I enter the rooms even when i wasn't speedwalking to the 2nd part of the area.

Like this is an example of directions to a room in 2nd part of that area that I would want %walk to return:
n;n;w;n;buy papers;s;w;n;give papers mob;e;e;s;buy map;e;n;n;say enter;n;e;w;w;w

Can I do this in the mapper somehow?
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Fri Mar 10, 2006 10:14 pm   
 
put in the room script something like #if (@roomcommands = 1) {do stuff} so only when you are trying to perform these commands will it fire(by controlling what the @roomcommands variable is. to walk to an indivual room automatically, just use #walk roomnum
Reply with quote
mo24
Wanderer


Joined: 31 Jan 2006
Posts: 55

PostPosted: Sat Mar 11, 2006 1:45 am   
 
well, what I want to do is make it automatic, so that the mapper will walk there automatically there if it sees that the room it is trying to get to is in the 2nd part of the area that requires a lots of buying etc. to get to.

Like I have an alias go, if I put:
go roomnum
And the roomnum is in 2nd part of the area which requires lots of buys and all, I want it to do it all automatically. Like how the mapper does if you enter a separate 'doorway' as a command.. it will enter it. I could do this, but I also need the mapper to walk to those shop rooms automatically.

I found a partial work around for this just now.. I can gather all room ids in the 2nd area, then check if roomid entered matches them.. if so, it replaces some of the speedwalk text (like n;n;w;n) with my custom text, to go do all the buying etc. I then perform the commands and it works.. But this has problems , because first it is time consuming.. and second, if %walk returns a different path to the area than the one i put in, it still does not do all the buying etc. it only works if there is one path to it... and I have many areas that are like this that I would like to get it to buy stuff and walk to automatically etc when I enter roomid in.

Is there any better and easier way to get mapper to do this?
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