HoS_PRC8/_mod/_module/nss/oe_agernisward.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

22 lines
898 B
Plaintext

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
}