It's really weird, because this just wont work...
PHP Code:
//#CLIENTSIDE
function onCreated() {
temp.saljiut = {
"roak_bd03.nw"
};
temp.swampofrumug = {
"roak_bb08.nw", "roak_bb09.nw"
};
temp.southwestforest = {
"roak_ap06.nw", "roak_ap07.nw"
};
temp.onlinestart = "armageddon-onlinestart.nw";
}
function onPlayerEnters() {
if (player.level.name in temp.saljiut) {
playlooped("roak-abyss.mid");
}
else if (player.level.name in temp.lystra) {
playlooped("roak-towntheme2.mid");
}
else if (player.level.name == temp.onlinestart){
playlooped("armageddon-onlinestart.mid");
}
else if (player.level.name in temp.southwestforest){
playlooped("roak1.mid");
}
else if (player.level.name in temp.swampofrumug){
playlooped("roak1.mid");
}
}
I've always done music this way. This also used to work before but now it just doesn't play anything.