Thread: Remove Item
View Single Post
  #7  
Old 08-02-2008, 02:41 AM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

Okay, I can't seem to get this concept to work. The following script is on an npc that kills a player who has an item (the player script causes the npc to add the player with the item to his hate list):
Quote:
sub Event_Slay
{
if(plugin::check_hasitem($client, 13732)
{
$client->NukeItem(13732);
}
}
Is the Event_Slay able to trigger the client losing an item after the character is dead? I replaced NukeItem with RemoveItem and client with corpse, but to no avail. Can't figure out why this isn't working. Should I be using a different event?
Reply With Quote