--- deliantra/server/ext/map_lib.ext 2006/12/17 22:02:55 1.1 +++ deliantra/server/ext/map_lib.ext 2006/12/21 22:41:34 1.3 @@ -51,7 +51,7 @@ =cut -cf::register_attachment check_inventory_on_apply => +cf::object::attachment check_inventory_on_apply => on_apply => sub { my ($self, $pl) = @_; my $cfg = $self->{check_inventory_on_apply}; @@ -62,9 +62,9 @@ }); if ($match) { $match->decrease_ob_nr ($cfg->{decrease_by_cnt}) if $cfg->{decrease_by_cnt}; - $pl->message ($cfg->{message_on_match}) if defined $cfg->{message_on_match}; + $pl->message ($cfg->{message_on_match}, cf::NDI_UNIQUE) if defined $cfg->{message_on_match}; } else { - $pl->message ($cfg->{message_on_nomatch}) if defined $cfg->{message_on_nomatch}; + $pl->message ($cfg->{message_on_nomatch}, cf::NDI_RED | cf::NDI_UNIQUE) if defined $cfg->{message_on_nomatch}; cf::override; } };