I have this script, that should be playing the music.
When it was in the level scripts, the mp3 file just needed to be in the base part of the main graal folder, e.g. C:/Graal. I put the mp3 in the music folder and the main folder, and nothing plays. It does say in F3 options that it has the right name to play, and changes as I go to the levels needed, but no sound comes out. One of the mp3's is the same that used to work fine on a level npc.
PHP Code:
//#CLIENTSIDE
function onCreated()
{
setTimer(0.05);
}
// Music
function onTimeout(){
if (player.level.name == "crosscastle_1c10.nw"){
playlooped("armageddon-saljiut.mp3");
}
if (player.level.name == "crosscastle_1d10.nw"){
playlooped("armageddon-saljiut.mp3");
}
if (player.level.name == "crosscastle_1b05.nw"){
playlooped("armageddon-lystra.mp3");
}
if (player.level.name == "crosscastle_1b04.nw"){
playlooped("armageddon-lystra.mp3");
}
if (player.level.name == "crosscastle_1c05.nw"){
playlooped("armageddon-lystra.mp3");
}
if (player.level.name == "crosscastle_1c04.nw"){
playlooped("armageddon-lystra.mp3");
}
setTimer(0.05);
}