Battledale_PRC8/_module/nss/ty_closeportal.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

24 lines
1.5 KiB
Plaintext

void main()
{
object oArea = GetArea(GetLastClosedBy());
MusicBackgroundChangeDay(oArea, TRACK_HOTU_UNDERMOUNTAIN);
MusicBackgroundPlay(oArea);
DestroyObject(GetObjectByTag("ty_nysskarulportal"));
DestroyObject(GetNearestObjectByTag("FlameSmall",OBJECT_SELF));
DelayCommand(0.5, DestroyObject(GetNearestObjectByTag("FlameSmall",OBJECT_SELF)));
DelayCommand(0.5, DestroyObject(GetNearestObjectByTag("MagicSparksOrange",OBJECT_SELF)));
DelayCommand(0.7, DestroyObject(GetNearestObjectByTag("FlameSmall",OBJECT_SELF)));
DelayCommand(0.7, DestroyObject(GetNearestObjectByTag("MagicSparksRed",OBJECT_SELF)));
DelayCommand(0.9, DestroyObject(GetNearestObjectByTag("MagicSparksOrange",OBJECT_SELF)));
DelayCommand(0.9, DestroyObject(GetNearestObjectByTag("FlameSmall",OBJECT_SELF)));
DelayCommand(1.1, DestroyObject(GetNearestObjectByTag("FlameSmall",OBJECT_SELF)));
DelayCommand(1.1, DestroyObject(GetNearestObjectByTag("MagicSparksRed",OBJECT_SELF)));
DelayCommand(1.3, DestroyObject(GetNearestObjectByTag("X2_PLC_SCIRCLE",OBJECT_SELF)));
DelayCommand(1.3, DestroyObject(GetNearestObjectByTag("FlameSmall",OBJECT_SELF)));
DelayCommand(1.5, DestroyObject(GetNearestObjectByTag("FlameSmall",OBJECT_SELF)));
DelayCommand(1.7, DestroyObject(GetNearestObjectByTag("FlameSmall",OBJECT_SELF)));
DelayCommand(1.9, DestroyObject(GetNearestObjectByTag("FlameSmall",OBJECT_SELF)));
DelayCommand(2.1, DestroyObject(GetNearestObjectByTag("FlameLarge",OBJECT_SELF)));
}