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
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Mon Dec 12, 2005 1:09 pm   

Renumber room working?
 
Hi I found this script to renumber my rooms, however nothing seems to move when I execute it. Is this script still working?

----------
#loop 1,%numrooms() {#noop %roomnum(%mapvnum(%i),%numrooms())}
#loop 1,%numrooms()-1 {#noop %roomnum(%numrooms(),%i)}
----------
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Dec 13, 2005 1:12 am   
 
What mode is your map in?
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Tue Dec 13, 2005 1:37 am   
 
will running this script cause all my favorites i have marked off on my map to be inaccurate?
Reply with quote
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Tue Dec 13, 2005 3:21 am   
 
I'm in edit mode.

I realize something is actually moving, but it doesn't stop at all.

it just keeps going. and if I stop it and restart map..

The objid is not changed but the refnumber is all set to the same number "4515".

Is there a mistake in the script?

#loop 1,%numrooms() {#noop %roomnum(%mapvnum(%i),%numrooms())}

Thank you.
Reply with quote
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Tue Dec 13, 2005 3:55 am   
 
This is the correct one... I don't know why the one i cut from the 2002 forum was wrong.

#LOOP 1,%numrooms() {#NOOP %roomnum(%mapvnum(%i), %i - 1)}
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Tue Dec 13, 2005 5:56 am   
 
as i thought renumbering rooms totally screws up your favorites list, anyway to renumber and keep favorites?
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Tue Dec 13, 2005 4:41 pm   
 
Been trying, but cant get this is even run.
Can i get the script to do this?
_________________
http://www.Aardwolf.com
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Tue Dec 13, 2005 7:09 pm   
 
#loop 1,%numrooms() {#noop %roomnum(%mapvnum(%i),%i)}

i did it in map mode
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Tue Dec 13, 2005 8:44 pm   
 
kewl, checking it now.
Tho now that I think of it, running it on a 500 room area on a P2 333mhz computer isn't the smartest thing....been running for an hour...least i THINK it's been running...
Did a find for all rooms in the area and the scrollbar keeps jumping up and down...
Thank god this is a test map database :-)

EDIT: Well, nope, not a change. Am i supposed to do that call mapfilter thing 1st? (that's the reason I asked for a script and not a command)

EDIT#2: K, ran it with the call mapfilter on a 48 room area and it worked perfectly. Are there REASONS why it might not work on an area? like if a room is called Vitae's it wont work but would on Vitaes ?
_________________
http://www.Aardwolf.com
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