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

17 lines
480 B
Plaintext

void main()
{
if(GetGold(OBJECT_SELF) > 0)
{
object oDoor = GetObjectByTag("ba2_desdoor");
effect eBeam = EffectBeam(VFX_BEAM_ODD, OBJECT_SELF, FALSE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_HOLY_AID, FALSE), OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam, oDoor, 2.0);
DestroyObject(GetInventoryDisturbItem(), 0.0);
DelayCommand(1.0, DestroyObject(oDoor, 0.0));
}
}