24 lines
1.3 KiB
Plaintext
24 lines
1.3 KiB
Plaintext
void main()
|
|
{
|
|
object oPc = GetLastDamager(OBJECT_SELF);
|
|
if(GetLocalInt(OBJECT_SELF, "Hitted") == 0)
|
|
{
|
|
SpeakString("*Bronze Dragon calls lightning on you!*", TALKVOLUME_TALK);
|
|
effect eVisual = EffectVisualEffect(VFX_DUR_GLOW_BLUE, FALSE);
|
|
effect eVisual2 = EffectVisualEffect(VFX_IMP_LIGHTNING_M, FALSE);
|
|
effect eZat = EffectDamage(30, DAMAGE_TYPE_ELECTRICAL, DAMAGE_POWER_NORMAL);
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eVisual, oPc, 10.0f);
|
|
DelayCommand(1.0f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVisual2, oPc, 0.0f));
|
|
DelayCommand(1.0f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eZat, oPc, 0.0f));
|
|
DelayCommand(4.0f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVisual2, oPc, 0.0f));
|
|
DelayCommand(4.0f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eZat, oPc, 0.0f));
|
|
DelayCommand(7.0f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVisual2, oPc, 0.0f));
|
|
DelayCommand(7.0f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eZat, oPc, 0.0f));
|
|
DelayCommand(10.0f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVisual2, oPc, 0.0f));
|
|
DelayCommand(10.0f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eZat, oPc, 0.0f));
|
|
SetLocalInt(OBJECT_SELF, "Hitted", 1);
|
|
|
|
DelayCommand(20.0f, SetLocalInt(OBJECT_SELF, "Hitted", 0));
|
|
}
|
|
}
|