… | |
… | |
168 | |
168 | |
169 | if ($q->{match}->[0] eq 'marker') { |
169 | if ($q->{match}->[0] eq 'marker') { |
170 | my $force; |
170 | my $force; |
171 | ext::map_lib::rec_inv_by_slaying ($who, $q->{match}->[1], sub { $force = $_[0] }); |
171 | ext::map_lib::rec_inv_by_slaying ($who, $q->{match}->[1], sub { $force = $_[0] }); |
172 | if ($force) { |
172 | if ($force) { |
173 | $force->remove; |
|
|
174 | $force->destroy (1); |
173 | $force->destroy; |
175 | $who->reply ($npc, "Successfully erased quest marker '$q->{name}' from you!"); |
174 | $who->reply ($npc, "Successfully erased quest marker '$q->{name}' from you!"); |
176 | |
175 | |
177 | } else { |
176 | } else { |
178 | $who->reply ($npc, "I'm sorry, but you never had a quest marker for the '$q->{name}' quest!"); |
177 | $who->reply ($npc, "I'm sorry, but you never had a quest marker for the '$q->{name}' quest!"); |
179 | } |
178 | } |