15 lines
359 B
Plaintext
15 lines
359 B
Plaintext
|
//:://////////////////////////////////////////////////
|
||
|
//:: prc_pwondeath.nss
|
||
|
/*
|
||
|
Catch-all OnDeath event handler for NPCs.
|
||
|
|
||
|
Tracks player kills.
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////////
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetLastKiller();
|
||
|
int oKil = GetLocalInt(oPC, "iKilled");
|
||
|
oKil = oKil +1;
|
||
|
SetLocalInt(oPC, "iKilled", oKil);
|
||
|
}
|