WoR_PRC8/_module/nss/glacial_src_ded.nss

27 lines
849 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
#include "NW_I0_GENERIC"
#include "nw_i0_tool"
void main()
{
ExecuteScript("glac_sorc", OBJECT_SELF);
int nClass = GetLevelByClass(CLASS_TYPE_COMMONER);
int nAlign = GetAlignmentGoodEvil(OBJECT_SELF);
if(nClass > 0 && (nAlign == ALIGNMENT_GOOD || nAlign == ALIGNMENT_NEUTRAL))
{
object oKiller = GetLastKiller();
AdjustAlignment(oKiller, ALIGNMENT_EVIL, 5);
}
SpeakString("NW_I_AM_DEAD", TALKVOLUME_SILENT_TALK);
//Shout Attack my target, only works with the On Spawn In setup
SpeakString("NW_ATTACK_MY_TARGET", TALKVOLUME_SILENT_TALK);
if(GetSpawnInCondition(NW_FLAG_DEATH_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(1007));
}
//ExecuteScript("sha_xpsystem", OBJECT_SELF); //:: Replaced by PWFXP
DelayCommand(0.0f, ExecuteScript("pwfxp", OBJECT_SELF));
}