View Single Post
  #4  
Old 07-01-2009, 01:45 AM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

One more update, this one for the default-npcs.pl (aka default.pl).

EVENT_SLAY should be followed by EVENT_NPC_SLAY, which would call the same function:

File: quests\default.pl
Code:
sub EVENT_SLAY
{
  plugin::defaultSlay();
}

sub EVENT_NPC_SLAY
{
  plugin::defaultSlay();
}
I forgot that EVENT_SLAY is only called when an NPC kills a player. EVENT_NPC_SLAY is what's called when an NPC kills another NPC.
Reply With Quote