24 lines
578 B
Plaintext
24 lines
578 B
Plaintext
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));
|
|
}
|
|
}
|