AOC_PRC8/_module/nss/darkstarr_death.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

56 lines
1.6 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name x2_def_ondeath
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Default OnDeath script
*/
//:://////////////////////////////////////////////
//:: Created By: Keith Warner
//:: Created On: June 11/03
//:://////////////////////////////////// Lucifers mistress / Gate Keeper
#include "spawner"
#include "x0_i0_petrify"
#include "loot"
#include "rank"
void main()
{
object oPC = GetLastKiller();
object oMod = GetModule();
int oExploit = GetLocalInt(oMod, "xcheck");
int iMode = GetLocalInt(oMod, "gamemode");
SetLocalInt(oMod, "gr_xx", 0);
SetLocalInt(oMod, "sw_lm", 0);
SetLocalInt(oMod, "ch_lm", 0);
int iKilled = GetLocalInt(oPC, "iKilled");
int nInt;
if (oExploit!=1)
{
LastHit();
DeathStats(oPC);
AssignCommand(oPC, ClearAllActions());
DelayCommand(1.5, AssignCommand(oPC, ActionPlayAnimation
(ANIMATION_FIREFORGET_VICTORY2)));
iKilled=iKilled+1;
SetLocalInt(oPC, "iKilled", iKilled);
GetRank(oPC);
DeathStats(oPC);
FloatingTextStringOnCreature("Victory", oPC);
SetLocalInt(oPC, "bossdead", 1);
}
object oTarget= OBJECT_SELF;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT)
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DEATH), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT,
EffectVisualEffect(VFX_IMP_DEATH), GetLocation(oTarget));
ExecuteScript("nw_c2_default7", OBJECT_SELF);
}