View/Edit #5335:@addhook @rmhook

Switch to edit mode.

Name(s): @addhook @rmhook
1:  target = $code_utils:parse_verbref(dobjstr)
2:  target[1] = player:my_match_object(target[1], player.location)
3:  if (verb[2..4] == "add")
4:    this.hooks = {@this.hooks, target}
5:    player:tell("Added hook ", tostr(target[1]), ":", target[2], "().")
6:  else
7:    r = this.hooks
8:    this.hooks = setremove(this.hooks, target)
9:    if (r != this.hooks)
10:     player:tell("Removed hook ", tostr(target[1]), ":", target[2], "().")
11:   else
12:     player:tell("Could not find hook ", tostr(target[1]), ":", target[2], "().")
13:   endif
14: endif

Verb arguments: any at/to this
Verb perms: Readable NOT-Debug
Verb owned by: Hacker (#60)

You are not logged in.

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