Only the person that lands the killing blow will get anything from EVENT_DEATH. If you want the group to get it, you can use EVENT_KILLED_MERIT.
I think EVENT_DEATH isn't a very good way to give rewards, because someone from outside the group can come in and get the last hit and get the reward. At least with EVENT_KILLED_MERIT, you ensure that the group who got the exp will get the reward. If you only want 1 character to get the reward, you could probably do some kind of random to give a random chance for someone to get it, but it wouldn't be easy to ensure that only 1 person gets the reward each time.
You might be better off using the quest::addloot() command to add loot to the corpse during the fight. I don't think you can add loot upon death, but, it might be worth trying just to see if you can.
|