|  | 
	
	
		| yeedoo Beginner
 
 
 Joined: 13 Dec 2007
 Posts: 16
 
 
 | 
			
			  |  Posted: Thu Dec 13, 2007 8:18 am 
 how to tell ZMUD that the command "#walk @room_num" has finished ?
 
 |  
				| in using mapper,i want to do something after the #walk finished,i don't konw how to tell ZMUD that the "#walk @room_num" has finished. for exemple
 if i want to show a message after i enter the room
 simply i write
 #walk 16;#show entered the room
 but the #show command always work before i enter the room
 
 so if i want to make a trigger using the message after enter the room,it always works at a wrong time.
 |  | 
	
	  |  | 
	
		|  | 
	
		| Vijilante SubAdmin
 
  
 Joined: 18 Nov 2001
 Posts: 5187
 
 
 | 
			
			  |  Posted: Thu Dec 13, 2007 1:36 pm 
 |  
				| You are looking for the special alias onwalkend.  The mapper call this alias when it completes the speed walk. 
 |  | 
	
	  | 
		    
			  | _________________ The only good questions are the ones we have never answered before.
 Search the Forums
 |   |  | 
	
		|  | 
	
		| yeedoo Beginner
 
 
 Joined: 13 Dec 2007
 Posts: 16
 
 
 | 
			
			  |  Posted: Fri Dec 14, 2007 2:49 am 
 |  
				| if i am in #1 room #walk 20;#show i have entered  20th room
 The command #show works  indeed after   #walk 20.
 in fact i need sever seconds to through the path.but the #show command  display the message before i realy arrive the room.
 
 maybe like this?
 #walk 20;#wa 1000;#show i have entered  20th room
 but if there are so many rooms i want to check ,it will cost a long time to wait
 
 
 
 
	  | Quote: |  
	  | You are looking for the special alias onwalkend. The mapper call this alias when it completes the speed walk. 
 |  
 what about the special alias? and how could do that? could you show more ditails?
 |  | 
	
	  |  | 
	
		|  | 
	
		| Vijilante SubAdmin
 
  
 Joined: 18 Nov 2001
 Posts: 5187
 
 
 | 
			
			  |  Posted: Fri Dec 14, 2007 3:07 am 
 |  
				| Enter this at at the command line 
Now your example walks become 
	  | Code: |  
	  | #CLASS {System|AutoMapperAll} #ALIAS onwalkend {#EXEC {@WalkEnd};WalkEnd=""}
 #VAR WalkEnd {} {}
 #CLASS 0
 |  #walk 16;WalkEnd="#SHOW entered the room"
 #walk 20;WalkEnd="#SHOW i have entered 20th room"
 
 I made it slightly more complex to give an additional protection against doing the commands a second time.
 |  | 
	
	  | 
		    
			  | _________________ The only good questions are the ones we have never answered before.
 Search the Forums
 |   |  | 
	
		|  | 
	
		| yeedoo Beginner
 
 
 Joined: 13 Dec 2007
 Posts: 16
 
 
 | 
			
			  |  Posted: Fri Dec 14, 2007 3:46 am 
 |  
				| 
 
	  | Quote: |  
	  | Code:
 #CLASS {System|AutoMapperAll}
 #ALIAS onwalkend {#EXEC {@WalkEnd};WalkEnd=""}
 #VAR WalkEnd {} {}
 #CLASS 0
 
 |  one question ,in zmud 5.55 The mapper  could call this alias  automatically after enter the room?
 
 
 
	  | Quote: |  
	  | #walk 16;WalkEnd="#SHOW entered the room"
 
 |  so shall i add this
 
 
 
	  | Code: |  
	  | #walk 16;WalkEnd="#SHOW entered the room" ;onwalkend |  
 but the message is still display beforce i really entered the room[/code]
 |  | 
	
	  |  | 
	
		|  | 
	
		| Vijilante SubAdmin
 
  
 Joined: 18 Nov 2001
 Posts: 5187
 
 
 | 
			
			  |  Posted: Fri Dec 14, 2007 3:55 am 
 |  
				| Oh!  You have to mention a version right off the bat if you are not using the current version, otherwise we are all likely will suggest things that didn't get added to zMud until 2 years after the version you are using. 
 Since you are using 5.55 I can't really help you solve this problem short of an extremely complex script.  I would suggest upgrading at least to the current 7.21 which has the feature I have been suggesting.  7.21 is still supported in these forums, but the zMud product will not be developed and further.  It may be in your best interests to move straight to the latest public version of CMud.
 |  | 
	
	  | 
		    
			  | _________________ The only good questions are the ones we have never answered before.
 Search the Forums
 |   |  | 
	
		|  | 
	
		| yeedoo Beginner
 
 
 Joined: 13 Dec 2007
 Posts: 16
 
 
 | 
			
			  |  Posted: Fri Dec 14, 2007 4:51 am 
 |  
				| sorry for not mention the version no. thank you for your help.
 by the way where could i find a reference about these problem? if i still want to use zmud 5.55
 |  | 
	
	  |  | 
	
		|  | 
	
		| Fang Xianfu GURU
 
  
 Joined: 26 Jan 2004
 Posts: 5155
 Location: United Kingdom
 
 | 
			
			  |  Posted: Fri Dec 14, 2007 2:25 pm 
 |  
				| The short answer is nowhere. The help files have all been long updated and forum threads are hard to come by. You really should upgrade to the latest version, or to CMUD. 
 |  | 
	
	  |  | 
	
		|  | 
	
		| yeedoo Beginner
 
 
 Joined: 13 Dec 2007
 Posts: 16
 
 
 | 
			
			  |  Posted: Sat Dec 15, 2007 12:43 am 
 |  
				| oh.it seemed like i went back from the mars   as you told me,i should update my vision now to 7.21 .since i was  more familiar with ZMUD than CMUD
 |  | 
	
	  |  | 
	
		|  | 
	
		| Leyline Wanderer
 
 
 Joined: 03 Feb 2007
 Posts: 64
 
 
 | 
			
			  |  Posted: Mon Dec 17, 2007 11:21 pm 
 |  
				| Yeah, just upgrade to zmud 7.21 be sure to keep a backup of your old 5.55
 I had some character import problems going to 7.21 without goign thru 6.x first.
 
 But once I ironed it all out, 7.21 has been good, new functions and features you will appreciate, the mapper auto config works better too.
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |