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
yeedoo
Beginner


Joined: 13 Dec 2007
Posts: 16

PostPosted: Thu Dec 27, 2007 6:45 am   

in mapper how to modify the Zoneid?
 
%zonenum only return the zoneid isn't?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
yeedoo
Beginner


Joined: 13 Dec 2007
Posts: 16

PostPosted: 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?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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?
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
yeedoo
Beginner


Joined: 13 Dec 2007
Posts: 16

PostPosted: 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
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