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!
|