Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Sat Nov 24, 2007 4:25 am   

Something to be added to the new zMapper.
 
At the present time there is no way to remove room flags once they are set. So some function such as %delroomflags(vNum,stringlist), where "stringlist" would be the flag(s) to be removed (or left out indicating all flags), would be nice. Also, as I've stated before, there should be a way to disable all portals at once programmatically, and of course a way to re-enable them. %portaldisable(1) and %portaldisable(0) would work just fine. These would check and uncheck the "Disable all Portals" checkbox.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Nov 26, 2007 4:58 pm   
 
Using the existing zMapper API, there is already a "UserInt" and "UserStr" field for each room where you can set/retrieve any sort of room flags that you need.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Fri Nov 30, 2007 11:37 am   
 
My complaint is that %roomflags(vNum,"") does not delete the stringlist that is already stored in the record. AFAIK, this can only be done manually.

As for disabling all portals at once, the only way I know how to do it is manually. I keep track of my portals in a db, and I've written a script that does enable and disable all portals in the db, but even with a high speed processor this code is noticeably slow. A native function that does this would be much faster and quite useful IMO. If you wonder why this would be needed, imagine entering a room which is a prison, this type fo room does not allow the use of portals. So putting a small routine that would set or reset the disable flag onroomenter, would be the way to handle this, very quickly and very efficiently. If the portal(s) are disabled %walk() will generate a speedwalk that does not include portal invocation.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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