Thread: Jukebox help
View Single Post
  #1  
Old 07-09-2007, 11:32 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Exclamation Jukebox help

I'm by no means a scripter, but I did make this NPC. It's your basic jukebox. Only plays one song at a time, simple commands, and all that stuff.

The problem I'm having is that I expected everybody to be able to hear the music being played, but so far, only the person who started the music can hear it. How would I go about making it so EVERYONE can hear the music?

PHP Code:
if (playertouchsme) {
  
toweapons Jukebox;
}

if (
weaponfired) {
  
say2 "/play url" to play#b
  
"/stop" to stop#b
  
url must end in mp3/wav/midi;
}

if (
playerchats){
  if(
startswith(/play,#c)) {
    
tokenize #c;
    
play #t(1);
    
setplayerprop #c,;
  
}
}

if (
playerchats){
  if(
strequals(#c,/stop)){
    
stopmidi;
    
setplayerprop #c,;
  
}

PS:
I know. GS1 = ew (in the words of Inverness)

Last edited by LoneAngelIbesu; 07-10-2007 at 12:09 AM..
Reply With Quote