No Object Locks
Mar 1, 2005 13:08:40 GMT -8
Post by Raija on Mar 1, 2005 13:08:40 GMT -8
Sick and tired of having to place objects in front of the doors when trying to lock a room? Viola! Here’s a DS script that will allow a furre to walk up to the door with an emitted message to declare whether it is locked. Also I included the room check, which allows all the rooms to unlock at a certain time to be reused.
-------------Lock Code---------------------
(0:7) When somebody moves into position (#,#),
(1:3) and they move into object type #,
(3:2) at position (#,#) on the map,
(5:6) swap object types #and #.
(0:7) When somebody moves into position (#,#),
(1:1013) and position (#,#) is object type #,
(5:18) move the triggering furre back where they came from.
(5:200) emit message {This room is currently in use.} to whoever set off the trigger.
(0:7) When somebody moves into position (#,#),
(1:1013) and position (#,#) is object type #,
(5:18) move the triggering furre back where they came from.
------------Unlock Code--------------------
(0:7) When somebody moves into position (#,#),
(1:3) and they move into object type #,
(3:2) at position (#,#) on the map,
(5:6) swap object types #and #.
**Room Check for all Rooms**
------------------------------------
(0:101) When the time is 99:00 FST
(5:5) change object type # to type #.
(5:204) emitloud message {A Room Check has now been activated. If your room is currently in use please feel free to relock your door} to everyone on the map.
@@@@@@@@@@@~~@@@@@@@@@@@@
[shadow=red,left,300]
::Understanding the Code::
[/shadow] -------------Lock Code---------------------
(0:7) When somebody moves into position (#,#), [In the room, where the place of the lock object is.]
(1:3) and they move into object type #, [The number of the lock object used]
(3:2) at position (#,#) on the map, [At the same position the lock object is located]
(5:6) swap object types #and #. [Switch the First lock object with one that will show the
Room is truly locked.]
(0:7) When somebody moves into position (#,#), [When somebody tries to walk into the room from the hall
(1:1013) and position (#,#) is object type #, [And within the room the lock object is on in its position]
(5:18) move the triggering furre back where they came from.
(5:200) emit message {This room is currently in use.} to whoever set off the trigger.
(0:7) When somebody moves into position (#,#), [when someone tries to walk out of their locked room]
(1:1013) and position (#,#) is object type #, [And the lock object is on]
(5:18) move the triggering furre back where they came from.
------------unlock code--------------------
(0:7) When somebody moves into position (#,#), [In the room, where the place of the lock object is.]
(1:3) and they move into object type #, [The number of the lock object used]
(3:2) at position (#,#) on the map, [At the same position the lock object is located]
(5:6) swap object types #and #. [Switch the First lock object with one that will show the
Room is unlocked.]
**Room Check for all Rooms**
------------------------------------
(0:101) When the time is 99:00 FST [At every hour]
(5:5) change object type # to type #. [The lock object with the unlocked object]
(5:204) emitloud message {A Room Check has now been activated. If your room is currently in use please feel free to relock your door} to everyone on the map.