View/Edit #3310:lock unlock open close secure unsecure

Switch to edit mode.

Name(s): lock unlock open close secure unsecure
1:  "Syntax:	lock/unlock/open/close/secure/unsecure/ - locks/unlocks the room"
2:  if (!this:check(player))
3:    return player:tell(E_PERM)
4:  endif
5:  if (verb == "lock" || verb == "close" || verb == "secure")
6:    if (this.lock != 1)
7:      this.lock = 1
8:      this.invites = {}
9:      player:sub_tell(this:msg_lock())
10:     this:sub_announce(this:msg_olock())
11:     return
12:   elseif (this.lock == 1)
13:     player:tell(this.name, " is already locked.")
14:     return
15:   endif
16: elseif (verb == "unlock" || verb == "open" || verb == "unsecure")
17:   if (this.lock != 0)
18:     this.invites = {}
19:     this.lock = 0
20:     player:sub_tell(this:msg_unlock())
21:     this:sub_announce(this:msg_ounlock())
22:     return
23:   elseif (this.lock == 0)
24:     player:tell(this.name, " is already unlocked.")
25:     return
26:   endif
27: endif

Verb arguments: none none none
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Jay (#8438)

You are not logged in.

[home | help | who | search | setup | code]