View/Edit #2731:@afk @busy @away @back

Switch to edit mode.

Name(s): @afk @busy @away @back
1:  if (verb == "@afk" || verb == "@away")
2:    if (this.status == 0 || this.status == 2)
3:      this:tell(tostr("You are now away."))
4:      this.location:announce_all_but({this}, tostr(this:title(), " has gone away."))
5:      this.status = 1
6:    else
7:      this:tell("You are no longer away.")
8:      this.location:announce_all_but({this}, tostr(this:title(), " has returned."))
9:      this.status = 0
10:   endif
11: elseif (verb == "@busy")
12:   if (!this.status || this.status == 1)
13:     this:tell("You are now busy.")
14:     this.location:announce_all_but({this}, tostr(this:title(), " is now busy."))
15:     this.status = 2
16:   else
17:     this:tell("You are no longer busy.")
18:     this.location:announce_all_but({this}, tostr(this:title(), " has returned."))
19:     this.busy = 0
20:   endif
21: elseif (verb == "@back")
22:   if (this.status == 1 || this.status == 2)
23:     this:tell("You have returned.")
24:     this.location:announce_all_but({this}, tostr(this:title(), " has returned."))
25:     this.status = 0
26:   else
27:     this:tell("You can not return when you are not away or busy.")
28:   endif
29: endif

Verb arguments: none none none
Verb perms: Readable NOT-Debug
Verb owned by: Q (#2731)

You are not logged in.

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