Initial Commit
Initial Commit
This commit is contained in:
23
_module/nss/fmsumvrocklowhp.nss
Normal file
23
_module/nss/fmsumvrocklowhp.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
void main()
|
||||
{
|
||||
if (GetPlotFlag(OBJECT_SELF))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ExecuteScript("nw_ch_ac6", OBJECT_SELF);
|
||||
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_UNSUMMON);
|
||||
|
||||
if (GetLocalInt(OBJECT_SELF, "lowhp"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
else if ( GetCurrentHitPoints( OBJECT_SELF ) <= 5 )
|
||||
{
|
||||
SpeakString("My service is concluded.", TALKVOLUME_TALK);
|
||||
SetLocalInt(OBJECT_SELF, "lowhp", 1);
|
||||
DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, OBJECT_SELF));
|
||||
DelayCommand(2.5, DestroyObject(OBJECT_SELF));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user