View Single Post
  #1  
Old 05-15-2017, 03:30 PM
Aquaojo
Sarnak
 
Join Date: Feb 2012
Location: GA
Posts: 34
Default Delete Item on Player Death?

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!
Reply With Quote