Battledale_PRC8/_module/nss/fr_lantern_tele1.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
1.6 KiB
Plaintext

//Teleports Lanters to the Stonehedge at Night and out at Day. Triggered by player entering or leaving the area.
void main()
{
object oLantern01=(GetObjectByTag("fr_lantern_t01"));
object oLantern02=(GetObjectByTag("fr_lantern_t02"));
object oLantern03=(GetObjectByTag("fr_lantern_t03"));
object oLantern04=(GetObjectByTag("fr_lantern_t04"));
object oLantern05=(GetObjectByTag("fr_lantern_t05"));
object oLantern06=(GetObjectByTag("fr_lantern_t06"));
object oLantern07=(GetObjectByTag("fr_lantern_t07"));
object oLantern08=(GetObjectByTag("fr_lantern_t08"));
object oLanternSND=(GetObjectByTag("fr_snd_chant01"));
object oLanternSPARK1=(GetObjectByTag("fr_light_green01"));
object oLanternSPARK2=(GetObjectByTag("fr_light_green02"));
if (GetLevelByClass(CLASS_TYPE_DRUID,GetLastUnlocked())>0)
{
if (GetIsNight())
{
AssignCommand(oLantern01,JumpToObject(GetWaypointByTag("fr_tele_lantern01b")));
AssignCommand(oLantern02,JumpToObject(GetWaypointByTag("fr_tele_lantern02b")));
AssignCommand(oLantern03,JumpToObject(GetWaypointByTag("fr_tele_lantern03b")));
AssignCommand(oLantern04,JumpToObject(GetWaypointByTag("fr_tele_lantern04b")));
AssignCommand(oLantern05,JumpToObject(GetWaypointByTag("fr_tele_lantern05b")));
AssignCommand(oLantern06,JumpToObject(GetWaypointByTag("fr_tele_lantern06b")));
AssignCommand(oLantern07,JumpToObject(GetWaypointByTag("fr_tele_lantern07b")));
AssignCommand(oLantern08,JumpToObject(GetWaypointByTag("fr_tele_lantern08b")));
AssignCommand(oLanternSPARK1,JumpToObject(GetWaypointByTag("fr_tele_sparks01b")));
AssignCommand(oLanternSPARK2,JumpToObject(GetWaypointByTag("fr_tele_sparks02b")));
SoundObjectPlay(oLanternSND);
}
}
}