generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
18
_module/nss/jukebox_mus02.nss
Normal file
18
_module/nss/jukebox_mus02.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
// Rural 2 day
|
||||
|
||||
#include "jukebox_include"
|
||||
|
||||
void main()
|
||||
{
|
||||
MusicBackgroundStop(GetArea(OBJECT_SELF));
|
||||
MusicBackgroundChangeDay(GetArea(OBJECT_SELF), 2);
|
||||
MusicBackgroundChangeNight(GetArea(OBJECT_SELF), 2);
|
||||
MusicBackgroundPlay(GetArea(OBJECT_SELF));
|
||||
if (ANTI_FLOOD_ACTIVATED != "")
|
||||
SpeakString(ANTI_FLOOD_ACTIVATED);
|
||||
SetLocalInt(OBJECT_SELF, "NOCHANGE", TRUE);
|
||||
if (ANTI_FLOOD_DELAY < 60.0) ANTI_FLOOD_DELAY = 60.0;
|
||||
DelayCommand(ANTI_FLOOD_DELAY, DeleteLocalInt(OBJECT_SELF, "NOCHANGE"));
|
||||
if (ANTI_FLOOD_DEACTIVATED != "")
|
||||
DelayCommand(ANTI_FLOOD_DELAY, SpeakString(ANTI_FLOOD_DEACTIVATED));
|
||||
}
|
||||
Reference in New Issue
Block a user