Battledale_PRC8/_module/nss/prc_pwondeath.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

28 lines
701 B
Plaintext

/////////////////////////:/:///////////////////////
//::
//:: PRC:On Death
//:: prc_pwondeath
//::
//::///////////////////////////////////////////////
/*
Handles custom death stuff
*/
//::///////////////////////////////////////////////
#include "jw_exp_giver"
void main()
{
object oMob=GetLastKiller();
if (oMob==OBJECT_SELF)
{
return;
}
givexp(OBJECT_SELF,GetLastKiller());
//KillAndReplaceLootable(OBJECT_SELF, TRUE);
// Remove double xp effect
int MAXHP = 90000;
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectResurrection(), OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(MAXHP,DAMAGE_TYPE_MAGICAL,DAMAGE_POWER_PLUS_TWENTY), OBJECT_SELF);
}