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.
This commit is contained in:
28
_module/nss/prc_pwondeath.nss
Normal file
28
_module/nss/prc_pwondeath.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
/////////////////////////:/:///////////////////////
|
||||
//::
|
||||
//:: 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);
|
||||
}
|
||||
Reference in New Issue
Block a user