PoA_PRC8/module/nss/ogredeath.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

21 lines
682 B
Plaintext

#include "NW_I0_GENERIC"
void main()
{
switch (d4()) {
case 1: SpeakString("Me die now!"); break;
case 2: SpeakString("MY LEG!"); break;
case 3: SpeakString("I no want to die!"); break;
case 4: SpeakString("NOOOOOOOO!");
}
object oKiller = GetLastKiller();
int noleech = 0;
int nClass = GetLevelByClass(CLASS_TYPE_COMMONER);
int nAlign = GetAlignmentGoodEvil(OBJECT_SELF);
if(nClass > 0 && (nAlign == ALIGNMENT_GOOD || nAlign == ALIGNMENT_NEUTRAL))
{
AdjustAlignment(oKiller, ALIGNMENT_EVIL, 5);
}
ExecuteScript("sf_xp", OBJECT_SELF);
}