View/Edit #3873:announce*_all_but

Switch to edit mode.

Name(s): announce*_all_but
1:  if (verb == "announce")
2:    exclude = {player}
3:  elseif (verb == "announce_all_but")
4:    exclude = args[1]
5:    args = listdelete(args, 1)
6:  else
7:    exclude = {}
8:  endif
9:  astr = tostr(@args)
10: who = astr[1..s = index(astr, " ") - 1]
11: if ("anti_spoof" in this.flags)
12:   if (who != player.name)
13:     astr = astr[1..s] + " (" + player.name + ") " + astr[s + 1..$]
14:   endif
15: endif
16: sub = $madness:player_get_sub(player)
17: astr = $madness:player_sub(player, sub, astr)
18: c = this:contents()
19: for o in (c)
20:   if (!(o in exclude))
21:     nstr = $madness:portal_dyslexia(o, astr)[1]
22:     nstr = $dealer:portal_acid(o, nstr)
23:     o:tell(this.silent ? argstr | nstr)
24:   endif
25: endfor
26: return 0
27: "Last modified by Eve (#2633) on Tue Oct  3 06:45:30 2000 MDT."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Samson (#9131)

You are not logged in.

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