18 lines
737 B
Plaintext
18 lines
737 B
Plaintext
void main()
|
|
{
|
|
object oPc = GetLastDamager(OBJECT_SELF);
|
|
if(GetLocalInt(OBJECT_SELF, "Hitted") == 0)
|
|
{
|
|
SpeakString("*Something splashes in to your face behind scales!*", TALKVOLUME_TALK);
|
|
effect eVisual = EffectVisualEffect(VFX_DUR_GLOW_GREEN, FALSE);
|
|
effect eVisual2 = EffectVisualEffect(VFX_IMP_ACID_S, FALSE);
|
|
effect eBlind = EffectBlindness();
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eVisual, oPc, 10.0f);
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVisual2, oPc, 0.0f);
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBlind, oPc, 10.0f);
|
|
SetLocalInt(OBJECT_SELF, "Hitted", 1);
|
|
|
|
DelayCommand(20.0f, SetLocalInt(OBJECT_SELF, "Hitted", 0));
|
|
}
|
|
}
|