2025-04-03 10:29:41 -04:00
|
|
|
#include "nw_i0_tool"
|
|
|
|
//Put this OnDeath
|
|
|
|
void main()
|
|
|
|
{
|
2025-09-16 07:32:56 -04:00
|
|
|
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
|
|
|
ExecuteScript("prc_pwondeath", OBJECT_SELF);
|
|
|
|
|
|
|
|
object oKiller = GetLastKiller();
|
|
|
|
if (!GetIsObjectValid(oKiller)) return;
|
|
|
|
|
|
|
|
object oPC;
|
|
|
|
if (GetIsPC(oKiller))
|
|
|
|
oPC = oKiller;
|
|
|
|
else
|
|
|
|
oPC = GetMaster(oKiller);
|
|
|
|
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
|
|
|
|
RewardPartyGP(5, oPC, TRUE);
|
|
|
|
RewardPartyGP(50, oPC, FALSE);
|
|
|
|
//RewardPartyXP(50, oPC, FALSE);
|
|
|
|
}
|