View/Edit #2221:safe unsafe

Switch to edit mode.

Name(s): safe unsafe
1:  "Copied from the generic duckable-throwable pie (#3127):safe by manta (#7165)Oct 18 18:34:26 1999"
2:  if (!$perm_utils:controls(player, this))
3:    return E_PERM
4:  elseif (!valid(iobj))
5:    return player:tell(iobjstr + " cannot be found.")
6:  endif
7:  ok = 0
8:  unsafe = !(iobj in this.safe)
9:  unsafe && verb == "safe" && (this.safe = setadd(this.safe, iobj)) != {} && (ok = 1) && iobj:tell("You are now safe from these pie attacks.")
10: !unsafe && verb == "unsafe" && (this.safe = setremove(this.safe, iobj)) != {} && (ok = 1) && iobj:tell("You are now vulnerable to pie attacks.")
11: ok || player:tell("You are already " + (unsafe ? "unsafe." | "safe."))

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

You are not logged in.

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