27 lines
477 B
Plaintext
27 lines
477 B
Plaintext
|
void main()
|
||
|
{
|
||
|
int nTarget=Random(40)+1;
|
||
|
int nRandom=Random(3);
|
||
|
|
||
|
|
||
|
object oTarget=GetNearestObjectByTag("jw_air_invis",OBJECT_SELF,nTarget);
|
||
|
|
||
|
|
||
|
if (nRandom==0)
|
||
|
{
|
||
|
ActionCastSpellAtLocation(SPELL_MASS_BLINDNESS_AND_DEAFNESS,GetLocation(oTarget),METAMAGIC_ANY,TRUE);
|
||
|
}
|
||
|
|
||
|
if (nRandom==1)
|
||
|
{
|
||
|
ActionCastSpellAtLocation(SPELL_ICE_STORM,GetLocation(oTarget),METAMAGIC_ANY,TRUE);
|
||
|
}
|
||
|
|
||
|
if (nRandom==2)
|
||
|
{
|
||
|
ActionCastSpellAtLocation(SPELL_ICE_STORM,GetLocation(oTarget),METAMAGIC_ANY,TRUE);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|