View Single Post
  #1  
Old 06-03-2009, 06:20 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default sub EVENT_DEATH?

I have question on sub EVENT_DEATH

I like to make it so when NPC dies the player who killed him gets an item.

Scriptwise its seems simple

sub EVENT_DEATH
{
quest::summonitem(11242);
}


but what bothers me, what if player in a group? who will get the item? who ever was top on agro list at time of death? player who delt kiling blow? entire group?

thanks!
Reply With Quote