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.
28 lines
701 B
Plaintext
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);
|
|
} |