… | |
… | |
37 | |
37 | |
38 | $data->{activator}->message ("Meoow! (You are hurting me)") |
38 | $data->{activator}->message ("Meoow! (You are hurting me)") |
39 | if !($data->{activator}{neko_attack} & 15); |
39 | if !($data->{activator}{neko_attack} & 15); |
40 | |
40 | |
41 | if ($data->{activator}{neko_attack} > 256) { |
41 | if ($data->{activator}{neko_attack} > 256) { |
|
|
42 | $data->{activator}{neko_attack} -= 128; |
42 | $data->{activator}->message ("Neko-san is suddenly gone!"); |
43 | $data->{activator}->message ("Neko-san is suddenly gone!"); |
43 | teleport $data->{activator}, "/scorn/misc/scorn_illusions", 15, 7; |
44 | teleport $data->{activator}, "/scorn/misc/scorn_illusions", 15, 7; |
44 | $data->{activator}->message ("You hear strange noises all around you..."); |
45 | $data->{activator}->message ("You hear strange noises all around you..."); |
45 | $data->{activator}->message ("You feel dumb."); |
46 | $data->{activator}->message ("You feel dumb."); |
46 | } |
47 | } |
… | |
… | |
49 | } |
50 | } |
50 | |
51 | |
51 | sub on_say { |
52 | sub on_say { |
52 | my ($data) = @_; |
53 | my ($data) = @_; |
53 | |
54 | |
54 | cf::LOG cf::llevDebug, "QBERT [Neko-fon] $data->{message}\n"; |
55 | cf::LOG cf::llevDebug, sprintf "QBERT [Neko-fon] %s: %s\n", $data->{activator}->name, $data->{message}; |
55 | |
56 | |
56 | 0 |
57 | 0 |
57 | } |
58 | } |
58 | |
59 | |