Skip to content

Redwall MUCK Site

Sections
Personal tools
You are here: Home » Programming Area » Programs Archive » 48 Hour Lock
« November 2008 »
Su Mo Tu We Th Fr Sa
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
 

48 Hour Lock

This script will unlock an exit for 48 hours, then re-lock it.

This script was created fopr a player named "Million" on RW. I created it and it worked, however it soon met with chaos since the version I put out had one error in the code that I have not noticed until recently. This script will unlock an exit for 48 hours, then re-lock it. There are some important instructions (and notes) that sould be followed when installing this code if you would like it to work. Here is the code:

@action request;r;re;req;requ;reque;reques=here
@link r=$nothing
@su request={if:{eq:{&arg},0},That is not a room!B,{if:{isnum:{&arg}},{if:{le:{&arg},{prop:_/#,requ}},{if:{prop:tooken,{&arg}},{if:{gt:{subt:{prop:timer,{&arg}},{secs}},0},That room is tooken!,{null:{store:0,tooken,{&arg}}}Can you please request room "{&arg}" again?},{null:{store:{add:{secs},172800},timer,{&arg}}{store:1,tooken,{&arg}}}Room "{&arg}" is open for 48 hours starting now.},That is not a Room!A},You must pick a number!}}

Attention:

For each exit you must do this:

@set exit-name=timeexp:{gt:{subt:{prop:timer,1},{secs}},1} @lock exit-name=timeexp:1

Your exits must have a number for the name. ie.Room [1];1

And finaly you must input how many rooms there are:

@set r=_/#:Number-of-rooms-you-have

Created by DZeil
Last modified 2003-10-26 05:43 AM
 
 

Powered by Plone

This site conforms to the following standards: