Battledale_PRC8/_module/nss/px_spawncave_exi.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

37 lines
3.2 KiB
Plaintext

void main()
{
object oPC = GetLastUsedBy();
if(GetLocalInt(OBJECT_SELF,"UnderPortal") == 0)
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_FIRE,GetObjectByTag("px_GateSpot"),BODY_NODE_MONSTER_5),GetObjectByTag("px_beamemitter1"),4.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_FIRE,GetObjectByTag("px_beamemitter2"),BODY_NODE_MONSTER_5),GetObjectByTag("px_GateSpot"),4.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_FIRE,GetObjectByTag("px_beamemitter3"),BODY_NODE_MONSTER_5),GetObjectByTag("px_GateSpot"),4.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_FIRE,GetObjectByTag("px_beamemitter4"),BODY_NODE_MONSTER_5),GetObjectByTag("px_GateSpot"),4.0);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_1),GetLocation(GetWaypointByTag("px_spawncave_exi")),1.0);
DelayCommand(4.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_UNSUMMON),GetLocation(GetObjectByTag("px_GateSpot")),1.0));
PlaySound("al_mg_pillrlght1");
CreateObject(OBJECT_TYPE_PLACEABLE,"px_portal_elfcave",GetLocation(GetWaypointByTag("px_spawncave_exi")),FALSE);
DelayCommand(15.0,DestroyObject(GetObjectByTag("px_portal_elfcave")));
}
if(GetLocalInt(OBJECT_SELF,"UnderPortal") == 1)
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_EVIL,GetObjectByTag("px_statue2_cave"),BODY_NODE_MONSTER_5),GetObjectByTag("px_GateSpot"),4.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_EVIL,GetObjectByTag("px_statue1_cave"),BODY_NODE_MONSTER_5),GetObjectByTag("px_GateSpot"),4.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_EVIL,GetObjectByTag("px_statue3_cave"),BODY_NODE_MONSTER_5),GetObjectByTag("px_GateSpot"),4.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_EVIL,GetObjectByTag("px_statue4_cave"),BODY_NODE_MONSTER_5),GetObjectByTag("px_GateSpot"),4.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_SILENT_MIND,GetObjectByTag("px_GateSpot"),BODY_NODE_MONSTER_5),GetObjectByTag("px_beamemitter1"),4.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_SILENT_MIND,GetObjectByTag("px_beamemitter2"),BODY_NODE_MONSTER_5),GetObjectByTag("px_GateSpot"),4.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_SILENT_MIND,GetObjectByTag("px_beamemitter3"),BODY_NODE_MONSTER_5),GetObjectByTag("px_GateSpot"),4.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectBeam(VFX_BEAM_SILENT_MIND,GetObjectByTag("px_beamemitter4"),BODY_NODE_MONSTER_5),GetObjectByTag("px_GateSpot"),4.0);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_PWKILL),GetLocation(GetWaypointByTag("px_spawncave_exi")),1.0);
DelayCommand(4.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_TIME_STOP),GetLocation(GetObjectByTag("px_GateSpot")),1.0));
DelayCommand(4.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_WAIL_O_BANSHEES),GetLocation(GetObjectByTag("px_GateSpot")),1.0));
PlaySound("al_mg_pillrlght1");
CreateObject(OBJECT_TYPE_PLACEABLE,"px_px_UnderdarkDung_Ent_port",GetLocation(GetWaypointByTag("px_spawncave_exi")),FALSE);
DelayCommand(15.0,DestroyObject(GetObjectByTag("px_px_UnderdarkDung_Ent_port")));
}
}