View Single Post
  #17  
Old 02-21-2012, 06:44 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Tim_Rocks View Post
I'll do some quick tests in a few minutes, but I'm pretty sure I'll have to alter the scripts one by one.

Edit: Yeah, so If you guys wanted this done, I'd have to go through the 100+ ganis and edit every single one.
If you're too lazy to do what fp4 suggested, add something like this to a 0.05 loop in some weapon NPC.

PHP Code:
  // Is instruments disabled?
  
if (client.instrumentsDisabled) {
    
// List of instrument sound effects
    
temp.instrumentSoundList = {
      
"steps2.wav",
    };
    
    
// Let's loop through the instrument sounds and stop them if they are played
    
for (temp.soundNametemp.instrumentSoundList) {
      
// Stops sound if it's played
      
if (isSoundPlaying(temp.soundName))
        
stopSound(temp.soundName);
    }
  } 
EDIT: I strongly encourage you to do what he said though.
__________________
Follow my work on social media post-Graal:Updated august 2025.