17 lines
480 B
Plaintext
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));
|
|
|
|
}
|
|
}
|