56 lines
1.6 KiB
Plaintext
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);
|
|
}
|