|  | 
	
	
		| yeedoo Beginner
 
 
 Joined: 13 Dec 2007
 Posts: 16
 
 
 |  | 
	
	  |  | 
	
		|  | 
	
		| Fang Xianfu GURU
 
  
 Joined: 26 Jan 2004
 Posts: 5155
 Location: United Kingdom
 
 | 
			
			  |  Posted: Thu Dec 27, 2007 1:13 pm 
 |  
				| %zonenum returns a unique number for that zone, which can be used with other functions, such as %roomzone. 
 |  | 
	
	  |  | 
	
		|  | 
	
		| yeedoo Beginner
 
 
 Joined: 13 Dec 2007
 Posts: 16
 
 
 | 
			
			  |  Posted: Fri Dec 28, 2007 3:10 am 
 |  
				| %roomzone() remove the room to the specifed zone doesn't it? 
 but if i only want to modify the zoneid of a zone to another id,(maybe the id does not exit).
 
 shall i do this?
 
 
 
	  | Code: |  
	  | #call %mapfilter("") #call %mapfilter(%concat("zoneid=",%zonenum()))
 #loop %numrooms {#call %roomzone(%mapvnum(%i),N)}  //N is the num i want to modify
 #call %mapfilter("")
 |  but the code could not work
 how could i do?
 is there a simply  function like %roomnum() to modify zoneid?
 |  | 
	
	  |  | 
	
		|  | 
	
		| Fang Xianfu GURU
 
  
 Joined: 26 Jan 2004
 Posts: 5155
 Location: United Kingdom
 
 | 
			
			  |  Posted: Fri Dec 28, 2007 3:23 am 
 |  
				| You're not really meant to change the zoneid of a zone, just like you're not meant to change the vnum of a room. The only reason I can think of for doing this is to loop over every zone, and you can do that like so: 
 #loop %numzones {#say %concat("Zone id for zone number ",%i," is: ",%zonevnum(%i))}
 
 Are you doing something else with zoneids?
 |  | 
	
	  |  | 
	
		|  | 
	
		| yeedoo Beginner
 
 
 Joined: 13 Dec 2007
 Posts: 16
 
 
 | 
			
			  |  Posted: Fri Dec 28, 2007 4:04 am 
 |  
				| i just want to modify a zonescript but there  always exit a pointer error
 
 for example :
 i want modify a zonescript in ZONE 1 map preferences
 but in fact  sometimes the zone 2 script  was modified.
 i don't know what's wrong,
 so i think the problem maybe  solved  by  changing the zoneid
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |