Voici un petit script pour le son dite s-on pour ouvrir le son et s-off pour le fermer.
Installer votre musique.wav ici entre les ["fire""fire""fire"] voici un exemple , changer les 3 mots fire par votre titre de votre musique comme ceci
["oiseau.wav""oiseau.wav""oiseau.wav"] et votre son se répétera toujours.
ON ENTER { 100 ME SETALARM "@-7 72 Ditent s-off pour fermer le son ambiant,
et s-on pour le remettre" LOCALMSG }
ON ALARM { 0 RANDOM howlong = 5 howlong +=
; This will play the sounds with timed intervals of no less that 500 ticks and
; no more that 2000 ticks apart. Changing the values above will alter the timing
["fire""fire""fire"] list = list LENGTH cnt =
{ list cnt RANDOM GET SOUND howlong ME SETALARM } 0 ME GETSPOTSTATE == IF}
ON OUTCHAT {{ 1 ME SETSPOTSTATELOCAL "Son ambiant Off" LOGMSG "" CHATSTR = }
CHATSTR "s-off" == IF
{ 0 ME SETSPOTSTATELOCAL 10 ME SETALARM "Son ambiant On" LOGMSG "" CHATSTR = }
CHATSTR "s-on" == IF}