generated from Jaysyn/ModuleTemplate
23 lines
471 B
Plaintext
23 lines
471 B
Plaintext
#include "nw_i0_tool"
|
|
//Put this OnDeath
|
|
void main()
|
|
{
|
|
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(40, oPC, TRUE);
|
|
RewardPartyGP(400, oPC, FALSE);
|
|
//RewardPartyXP(400, oPC, FALSE);
|
|
}
|