Is there a way to remove a certain item on player death? I want to check and see if players have a specific item and then delete it when they die.
Code:
sub EVENT_DEATH {
if(plugin::check_hasitem($client, 86009)){
quest::level(1);
quest::setallskill(0);
$client->NukeItem(86009);}
}
NukeItem seems to disrupt the death cycle.
Is there a way to use DeleteItemInInventory without knowing the exact slot the item will be in?
I can use qglobals, but I like the idea of players having to have an item.
Thanks as usual!