Battledale_PRC8/_module/nss/prc_pwondeath.nss

28 lines
701 B
Plaintext
Raw Permalink Normal View History

/////////////////////////:/:///////////////////////
//::
//:: 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);
}