#include "NW_I0_GENERIC" #include "nw_i0_tool" #include "NW_O2_CONINCLUDE" void main() { object oKiller = GetLastKiller(); object oAlter = GetObjectByTag("kreger_coffin"); object oItem = OBJECT_INVALID; object oPortal = GetObjectByTag("TRELICHPTL1"); ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_IMP_LIGHTNING_M), GetLocation(oPortal)); CreateObject(OBJECT_TYPE_PLACEABLE, "underport", GetLocation(oPortal), TRUE); 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)); } string sText; sText = "I will return for your soul, if Larad doesn't deal with you first!"; ActionSpeakString (sText, TALKVOLUME_TALK); //ExecuteScript("sha_xpsystem", OBJECT_SELF); //:: Replaced by PWFXP DelayCommand(0.0f, ExecuteScript("pwfxp", OBJECT_SELF)); }