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


Joined: 12 Jul 2004
Posts: 190
Location: Canada

PostPosted: Sat Dec 04, 2004 10:04 pm   

Command to disable all portals
 
I'm using zMUD 7.05, and I love the built-in portal support... I have, in fact, about 60 portals in the portal list to get to various areas. I manually enable/disable specific portals as I have the levels to use them. There are areas/circumstances in which I cannot use portals at all, and currently I open the Portals dialog and click the "Disable all Portals" checkbox to turn them off temporarily and then uncheck it to turn my portals back on.
I've looked through the Forum posts, and the helpfiles, and I haven't found a command (that I could put in a trigger or a Macro) that I can use to emulate that checkbox... I see where I can disable specific portals, but is there some way I'm missing to disable them all from the script, then re-enable them?

Any help would be appreciated.
Reply with quote
Kiasyn
Apprentice


Joined: 05 Dec 2004
Posts: 196
Location: New Zealand

PostPosted: Sun Dec 05, 2004 11:03 pm   
 
K since i've never actually used the zmud mapper this might not work... but give it a try

#alias updateportals {
#va level %1

#unportal portal1
#unportal portal2
#unportal portal3

#if (@level > 1) {
#portal {portal1} {destid}
#portal {portal3} {destid}}

#if (@level > 30) {
#portal {portal2} {destid}}

this is prolly a pain cuz it deletes and redoes all the portals as you can use them... shrug... you'll have to change it a lot to get it to work for you.
_________________
Kiasyn
Owner of Legends of Drazon
Coder on Dark Legacy
Check out Talon, an easy IMC connection.
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