LoD_PRC8/_module/nss/ba2_gedbipod.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

26 lines
1.4 KiB
Plaintext

void main()
{
if(!GetLocalInt(OBJECT_SELF, "Activated"))
{
if(GetTag(OBJECT_SELF) == "ba2_genpadage")
{
object oPlace = GetObjectByTag("ba2_podecfie");
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
SetLocalInt(OBJECT_SELF, "Activated", TRUE);
DelayCommand(200.0, SetLocalInt(OBJECT_SELF, "Activated", FALSE));
}
else
{
int iPlace = Random(5);
object oPlace = GetNearestObjectByTag("ba2_podecfi", OBJECT_SELF, iPlace);
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
SetLocalInt(OBJECT_SELF, "Activated", TRUE);
DelayCommand(200.0, SetLocalInt(OBJECT_SELF, "Activated", FALSE));
}
}
}