… | |
… | |
244 | _set_mode "usekeys", $ob, $arg, usekeys => qw(inventory keyrings containers); |
244 | _set_mode "usekeys", $ob, $arg, usekeys => qw(inventory keyrings containers); |
245 | |
245 | |
246 | 1 |
246 | 1 |
247 | }; |
247 | }; |
248 | |
248 | |
|
|
249 | cf::register_command hintmode => sub { |
|
|
250 | my ($ob, $arg) = @_; |
|
|
251 | |
|
|
252 | _set_mode "hintmode", $ob, $arg, hintmode => qw(show mark hide); |
|
|
253 | |
|
|
254 | 1 |
|
|
255 | }; |
|
|
256 | |
249 | cf::register_command afk => sub { |
257 | cf::register_command afk => sub { |
250 | my ($ob, $arg) = @_; |
258 | my ($ob, $arg) = @_; |
251 | |
259 | |
252 | $ob->contr->ns->afk ($ob->contr->ns->afk ? 0 : 1); |
260 | $ob->contr->ns->afk ($ob->contr->ns->afk ? 0 : 1); |
253 | $ob->reply (undef, $ob->contr->ns->afk ? "You are now AFK" : "You are no longer AFK"); |
261 | $ob->reply (undef, $ob->contr->ns->afk ? "You are now AFK" : "You are no longer AFK"); |