ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/schmorp-neko.ext
(Generate patch)

Comparing deliantra/maps/perl/schmorp-neko.ext (file contents):
Revision 1.17 by root, Mon Apr 10 08:34:07 2006 UTC vs.
Revision 1.18 by elmex, Wed Aug 2 16:59:48 2006 UTC

113 $who->{neko_attack} = 0; 113 $who->{neko_attack} = 0;
114 } 114 }
115 115
116 $who->{neko_last_attack} = time; 116 $who->{neko_last_attack} = time;
117 $who->{neko_attack}++ 117 $who->{neko_attack}++
118 or do {
118 or cf::LOG cf::llevDebug, sprintf "QBERT Neko-san was attacked by %s!\n", $who->name; 119 cf::LOG cf::llevDebug, my $n = sprintf "QBERT Neko-san was attacked by %s!\n", $who->name;
120 cf::ext::schmorp_irc::do_notice ($n);
121 };
119 122
120 $who->message ("Meoow! (Please do not hurt me)") 123 $who->message ("Meoow! (Please do not hurt me)")
121 if !($who->{neko_attack} & 15); 124 if !($who->{neko_attack} & 15);
122 125
123 if ($who->{neko_attack} > 512) { 126 if ($who->{neko_attack} > 512) {
133 136
134sub on_say { 137sub on_say {
135 my ($event, $ob, $who, $msg) = @_; 138 my ($event, $ob, $who, $msg) = @_;
136 139
137 cf::LOG cf::llevDebug, sprintf "QBERT [Neko-fon] %s: %s\n", $who->name, $msg; 140 cf::LOG cf::llevDebug, sprintf "QBERT [Neko-fon] %s: %s\n", $who->name, $msg;
141 cf::ext::schmorp_irc::do_notice (sprintf "[Neko-fon] %s: %s\n", $who->name, $msg);
138} 142}
139 143

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines