Initial Commit
Initial Commit
This commit is contained in:
16
_module/nss/fmregen.nss
Normal file
16
_module/nss/fmregen.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
void Regen(int x);
|
||||
|
||||
void main()
|
||||
{
|
||||
int x = GetLocalInt(OBJECT_SELF, "regen");
|
||||
if (x > 0) Regen(x);
|
||||
}
|
||||
|
||||
void Regen(int x)
|
||||
{
|
||||
if (GetIsObjectValid(OBJECT_SELF) && (!GetIsDead(OBJECT_SELF)))
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectHeal(x), OBJECT_SELF);
|
||||
DelayCommand(6.0, Regen(x));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user