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


Joined: 20 Jan 2003
Posts: 7

PostPosted: Fri Jan 24, 2003 3:41 pm   

Moving the map to a specific zone
 
Hi, the mud i play has several ways to teleport within it. The place that i teleport to is fixed, the place that i teleport from is NOT. SO i cannot use special exits on the map to link to the teleport room.

Is there a way to move the map to say room no 449 in zone xxx so that i dont have to keep moving to the correct room on my map manually
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Fri Jan 24, 2003 6:14 pm   
 
From help file:
Teleport
Syntax: #TE room [zone]
Related: #WALK

Changes your location on the map to a specific location -- your MUD position is unchanged. You can specify either a room name (the short name of a room), or room number, and you can specify either a zone name or a zone number. If the zone is omitted, the current zone is assumed.

TELEPORT example

#TE temple Midgaard

Sends you to the room marked as the temple in the Midgaard zone

#TE 0 "New Thalos"

Sends you to room zero in the zone of "New Thalos"

Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.50
Zmapper Version 1.14
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jan 24, 2003 6:48 pm   
 
Sounds like your MUD is using "teleport" the way most MUDs use "recall". Unless you also have a different location that you "recall" to, just mark that room as your recall location. Then write an alias for teleport, similar to the default "recall" alias.
#AL teleport {#RECALL;~teleport}

If you do have a different recall spot, you'll have to use the #TELEPORT command, with the appropriate room and zone.
#AL teleport {#TE 449 xxx;~teleport}

LightBulb
Senior Member
Reply with quote
threepwood
Newbie


Joined: 20 Jan 2003
Posts: 7

PostPosted: Fri Jan 24, 2003 8:01 pm   
 
excellent, problem solved v nicely :)
Reply with quote
threepwood
Newbie


Joined: 20 Jan 2003
Posts: 7

PostPosted: Fri Jan 24, 2003 9:10 pm   
 
ok, i dont want to sound greedy but......
there are two other commands on my mud. Home and return.

Home i can do with the teleport command (thanks)

Return takes you back to the room that you just "homed" from, how can i capture the room info from where i have just homed from so that i can return to it with my map :)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jan 24, 2003 11:24 pm   
 
Just save the current roomnumber and zonenumber to variables before doing the "home", then use those as the #TELEPORT destination when you "return".
#AL home {#VAR ReturnRoom %roomnum();#VAR ReturnZone %zonenum();~home;#TE homeroom homezone}
#AL return {~return;#TE @ReturnRoom @ReturnZone}

LightBulb
Senior Member
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