AOC_PRC8/_module/nss/prc_pwondeath.nss

15 lines
359 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:24:16 -04:00
//:://////////////////////////////////////////////////
//:: 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);
}