AOC_PRC8/_module/nss/prc_pwondeath.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

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);
}