void main() { object oStore = GetNearestObjectByTag("bt_xqm40s"); if (GetObjectType(oStore) == OBJECT_TYPE_STORE) { OpenStore(oStore, GetPCSpeaker()); if(!GetLocalInt(OBJECT_SELF, "OpenStore")) { SetLocalInt(OBJECT_SELF, "OpenStore", 1); object oPilar1 = GetObjectByTag("b4_oncolr1"); object oPilar2 = GetObjectByTag("b4_oncolr2"); object oPilar3 = GetObjectByTag("b4_oncolr3"); object oPilar4 = GetObjectByTag("b4_oncolr4"); object oPilar5 = GetObjectByTag("b4_oncolr5"); effect eBeam1 = EffectBeam(VFX_BEAM_COLD, oPilar1, FALSE); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam1, oPilar2, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam1, oPilar3, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam1, oPilar4, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam1, oPilar5, 10.0f); effect eBeam2 = EffectBeam(VFX_BEAM_COLD, oPilar2, FALSE); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam2, oPilar1, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam2, oPilar3, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam2, oPilar4, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam2, oPilar5, 10.0f); effect eBeam3 = EffectBeam(VFX_BEAM_COLD, oPilar3, FALSE); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam3, oPilar1, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam3, oPilar2, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam3, oPilar4, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam3, oPilar5, 10.0f); effect eBeam4 = EffectBeam(VFX_BEAM_COLD, oPilar4, FALSE); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam4, oPilar1, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam4, oPilar2, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam4, oPilar3, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam4, oPilar5, 10.0f); effect eBeam5 = EffectBeam(VFX_BEAM_COLD, oPilar5, FALSE); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam5, oPilar1, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam5, oPilar2, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam5, oPilar3, 10.0f); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam5, oPilar4, 10.0f); DelayCommand(30.0f, SetLocalInt(OBJECT_SELF, "OpenStore", FALSE)); } } else { ActionSpeakStringByStrRef(53090, TALKVOLUME_TALK); } }