View/Edit #3127:safe unsafe

Switch to edit mode.

Name(s): safe unsafe
1:  if (!$perm_utils:controls(player, this))
2:    return player:tell(E_PERM)
3:  elseif (!valid(iobj))
4:    return player:tell(iobjstr + " cannot be found.")
5:  endif
6:  ok = 0
7:  unsafe = !(iobj in this.safe)
8:  unsafe && verb == "safe" && (this.safe = setadd(this.safe, iobj)) != {} && (ok = 1) && iobj:tell("You are now safe from these pie attacks.")
9:  !unsafe && verb == "unsafe" && (this.safe = setremove(this.safe, iobj)) != {} && (ok = 1) && iobj:tell("You are now vulnerable to pie attacks.")
10: ok || player:tell("You are already " + (unsafe ? "unsafe." | "safe."))
11: "Last modified by Dax (#789) on Mon Dec 10 21:30:06 2001 MST."

Verb arguments: this for/about any
Verb perms: Readable NOT-Debug
Verb owned by: manta (#7165)

You are not logged in.

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