void main() { object oPC=GetEnteringObject(); object oMod=GetModule(); int nAW=GetLocalInt(oMod,"nAgernisWard"); object oS1=GetNearestObjectByTag("StatueS",oPC,1); object oS2=GetNearestObjectByTag("StatueC",oPC,1); object oS3=GetNearestObjectByTag("StatueN",oPC,1); effect eVis1=EffectBeam(VFX_BEAM_HOLY,oS1,BODY_NODE_CHEST); effect eVis2=EffectBeam(VFX_BEAM_HOLY,oS2,BODY_NODE_CHEST); effect eVis3=EffectBeam(VFX_BEAM_HOLY,oS3,BODY_NODE_CHEST); object oDest=GetWaypointByTag("WARD_EXPELL"); if (nAW==0) { // AgernisWard ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eVis1,oPC,5.0); ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eVis2,oPC,5.0); ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eVis3,oPC,5.0); DelayCommand(1.5,AssignCommand(oPC,ClearAllActions())); DelayCommand(1.6,AssignCommand(oPC,JumpToObject(oDest))); } // AgernisWard }