Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-06-2009, 03:42 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Music on level with weapon

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);

__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.