View/Edit #12:moveable

Switch to edit mode.

Name(s): moveable
1:  "Moveable if target is a room, perms controls the location of here, we're doing some variety of a snarf, or else we control the object (pass)."
2:  {target} = args
3:  set_task_perms(caller_perms())
4:  if (!`target:isa($room) ! E_INVIND => 0')
5:    "#-XXXX is not a room. Suprised?"
6:    return 0
7:  elseif (caller_perms():controls(this.location))
8:    return 1
9:  elseif (target.location == this.location && player == this)
10:   return 1
11: endif
12: return pass(@args)
13: "Last modified by Lao-Tzu (#8084) on Sun Aug 16 22:15:42 1998 EDT."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Lao-Tzu (#8084)

You are not logged in.

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