Note: Using SWR 1.0
I was working on my mud today and one of my builders asked me how he could make a button that someone would push and a door would open, and if the pulled the button it would close. Now, I have in now way ever used mpopenpassage, but it seemed like the ideal thing to use for making a temporary passage between rooms. So I folloed the syntax:
mpopenpassage <origin> <destination> <direction>
Right now I'm assuming that origin and destination mean using the vnums, however I'm not sure if that is entirely correct since it keeps giving me errors when I execute the program. So this is what I had (entire prog):
>push_prog 100
mpopenpassage 9600 9599 n
mpecho The door slides open.
However, this didn't work, so I tried differen't things, such as flipping the vnums around and chaning n to north and such, but it still gives me the error. Btw, this is the error:
Log: [*****] BUG: MpOpenPassage - Bad syntax, Object #9400
So I guess my question is what is the right syntax exactly? Do I not use vnums? What else do I use?
As always, thanks for any and all help.
I was working on my mud today and one of my builders asked me how he could make a button that someone would push and a door would open, and if the pulled the button it would close. Now, I have in now way ever used mpopenpassage, but it seemed like the ideal thing to use for making a temporary passage between rooms. So I folloed the syntax:
mpopenpassage <origin> <destination> <direction>
Right now I'm assuming that origin and destination mean using the vnums, however I'm not sure if that is entirely correct since it keeps giving me errors when I execute the program. So this is what I had (entire prog):
>push_prog 100
mpopenpassage 9600 9599 n
mpecho The door slides open.
However, this didn't work, so I tried differen't things, such as flipping the vnums around and chaning n to north and such, but it still gives me the error. Btw, this is the error:
Log: [*****] BUG: MpOpenPassage - Bad syntax, Object #9400
So I guess my question is what is the right syntax exactly? Do I not use vnums? What else do I use?
As always, thanks for any and all help.