RATDOG/_module/nss/fbondeath.nss
Jaysyn904 9e1780d1bc Journal & quest persistence
Journal & quest persistence
2022-06-18 01:53:20 -04:00

32 lines
621 B
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.1
For download info, please visit:
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
//Put this OnDeath
void main()
{
object oPC = GetLastKiller();
while (GetIsObjectValid(GetMaster(oPC)))
{
oPC=GetMaster(oPC);
}
if (!GetIsPC(oPC)) return;
object oCaster;
oCaster = OBJECT_SELF;
object oTarget;
oTarget = oPC;
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_FIREBALL, oTarget, METAMAGIC_ANY, TRUE, 6, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
//:: Grants Experiance to Killer
ExecuteScript("pwfxp", OBJECT_SELF);
}