|  | 
	
	
		| tbone235 Apprentice
 
 
 Joined: 02 Nov 2002
 Posts: 107
 Location: Australia
 
 | 
			
			  |  Posted: Wed Jul 09, 2003 3:04 am 
 alias question
 
 |  
				| Ok, here is what i want to do, but I've tried so many different ways and it just doesn't work so i'm beginning to think you just can't do it. 
 Ok, I have a few hundred aliases to speedwalk me to different areas. What I would like to do is be able to use the #prompt command so that i can update the speedwalk associated with an alias. I dunno if that explains it but...let me give an example
 
 say i have an alias
 #alias temple {run 2su}
 what i would like to do is then have a command where i can go
 #prompt temple
 and whatever is put in the prompt goes into the temple alias so that if i typed in run 2sd the alias temple would look like
 #alias temple {run 2sd}
 
 
 so is this possible or not?
 Thanks
 
 also can we have the option back to be emailed when there is a reply to a topic :P
 |  | 
	
	  |  | 
	
		|  | 
	
		| Jah Wanderer
 
 
 Joined: 11 Oct 2000
 Posts: 52
 Location: Sweden
 
 | 
			
			  |  Posted: Wed Jul 09, 2003 3:11 am 
 |  
				| Well if you remake all aliases to like #alias temple {run [@temple]} and use #prompt temple
 Youd be set :)
 |  | 
	
	  |  | 
	
		|  | 
	
		| Carabas GURU
 
  
 Joined: 28 Sep 2000
 Posts: 434
 Location: USA
 
 | 
			
			  |  Posted: Wed Jul 09, 2003 4:01 am 
 |  
				| This should work. 
 #PROMPT updatealias "Which speedwalk path do you wish to update at this time?"
 #PROMPT updatecommand "What is the speedwalk path to the destination?"
 #EXEC {#ALIAS @updatealias {run @updatecommand}}
 
 This will prompt you for two strings. The first being the the actual alias that you use (temple). The second being the path (without the run, just "2sd"). It will then execute the alias command, overwriting the existing alias (in theory).
 
 Fortunately, this can also be used as an easy way to add new speedwalks
  |  | 
	
	  |  | 
	
		|  | 
	
		| Carabas GURU
 
  
 Joined: 28 Sep 2000
 Posts: 434
 Location: USA
 
 | 
			
			  |  Posted: Wed Jul 09, 2003 4:14 am 
 |  
				| Actually, if you make this an alias (update?), you could do it like this. 
 #PROMPT updatecommand "What is the new speedwalk path to the destination: %1"
 #EXEC {#ALIAS %1 {run @updatecommand}}
 
 update temple
 2sd
 |  | 
	
	  |  | 
	
		|  | 
	
		| tbone235 Apprentice
 
 
 Joined: 02 Nov 2002
 Posts: 107
 Location: Australia
 
 | 
			
			  |  Posted: Wed Jul 09, 2003 6:37 am 
 |  
				| thanks very much :) much better then the way i was doing it :) 
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |