Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2022-10-07 14:20:31 -04:00
parent 0bbbd2678a
commit 128e7e59a4
7060 changed files with 4955665 additions and 0 deletions

15
module/nss/hp.nss Normal file
View File

@@ -0,0 +1,15 @@
void main()
{
object oPlayer = GetEnteringObject();
int nMaxHP = GetMaxHitPoints(oPlayer);
string sVarName = "s"+GetTag(oPlayer);
object oModule = GetModule();
int nHPOnExit = GetLocalInt (oModule, sVarName);
//Check to see if we have a new char or a reload
if(nHPOnExit == 0)
{
return;
}
effect dmg = EffectDamage(nMaxHP - nHPOnExit);
ApplyEffectToObject(DURATION_TYPE_INSTANT, dmg, oPlayer);
}