generated from Jaysyn/ModuleTemplate
30 lines
586 B
Plaintext
30 lines
586 B
Plaintext
#include "nw_i0_tool"
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 1.3
|
|
|
|
For download info, please visit:
|
|
http://www.lilacsoul.revility.com */
|
|
|
|
//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;
|
|
|
|
/* RewardPartyXP(35, oPC, FALSE); */
|
|
|
|
RewardPartyGP(15, oPC, FALSE);
|
|
|
|
}
|