15 lines
345 B
Plaintext
15 lines
345 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oArea = GetArea(OBJECT_SELF);
|
||
|
int iSong = GetLocalInt(OBJECT_SELF, "SONG");
|
||
|
if (iSong == 0)
|
||
|
{
|
||
|
MusicBackgroundStop(oArea);
|
||
|
return;
|
||
|
}
|
||
|
MusicBackgroundStop(oArea);
|
||
|
MusicBackgroundChangeDay(oArea, iSong);
|
||
|
MusicBackgroundChangeNight(oArea, iSong);
|
||
|
MusicBackgroundPlay(oArea);
|
||
|
}
|