Switch to edit mode.
Name(s): safe unsafe1: 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."