/* Script generated by Lilac Soul's NWN Script Generator, v. 2.2 For download info, please visit: http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */ void main() { object oPC = GetModuleItemAcquiredBy(); object oItem; oItem = GetModuleItemAcquired(); if (!GetIsPC(oPC)) return; if (GetLocalInt(GetModule(), "ac_"+GetTag(oItem))) return; SetLocalInt(GetModule(), "ac_"+GetTag(oItem), TRUE); object oTarget; oTarget = GetObjectByTag("bansheedoor"); //Visual effects can't be applied to waypoints, so if it is a WP //the VFX will be applied to the WP's location instead int nInt; nInt = GetObjectType(oTarget); if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_HOWL_WAR_CRY_FEMALE), oTarget); else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_HOWL_WAR_CRY_FEMALE), GetLocation(oTarget)); DestroyObject(oTarget, 3.0); oTarget = oPC; //Visual effects can't be applied to waypoints, so if it is a WP //the VFX will be applied to the WP's location instead nInt = GetObjectType(oTarget); if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_AURA_NEGATIVE_ENERGY), oTarget); else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_AURA_NEGATIVE_ENERGY), GetLocation(oTarget)); //Visual effects can't be applied to waypoints, so if it is a WP //the VFX will be applied to the WP's location instead nInt = GetObjectType(oTarget); if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_AURA_UNEARTHLY), oTarget); else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_AURA_UNEARTHLY), GetLocation(oTarget)); AssignCommand(GetObjectByTag("ZEP_ALTAREVIL1"), ActionSpeakString("*As you pick up the dark tome, a wave of pure malevolence washes over you - shaking it off, you can see a loud explosion of magical energy from across the hall...")); }