36 lines
732 B
Plaintext
36 lines
732 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Name x2_def_ondeath
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Default OnDeath script
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Keith Warner
|
|
//:: Created On: June 11/03
|
|
//:://////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
ExecuteScript("nw_c2_default7", OBJECT_SELF);
|
|
|
|
object oPC = GetLastKiller();
|
|
|
|
while (GetIsObjectValid(GetMaster(oPC)))
|
|
{
|
|
oPC=GetMaster(oPC);
|
|
}
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
object oTarget;
|
|
oTarget = OBJECT_SELF;
|
|
|
|
AdjustReputation(oPC, oTarget, -5);
|
|
|
|
oTarget = GetObjectByTag("SilverbladeofXymoria_female");
|
|
|
|
AdjustReputation(oPC, oTarget, 1);
|
|
|
|
}
|