Thread: Official Music And Sound system for 317 by jagex

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Official Music And Sound system for 317 by jagex 
    Reverse engineering enthousiast
    peterbjornx's Avatar
    Join Date
    Feb 2008
    Age
    26
    Posts
    1,910
    Thanks given
    88
    Thanks received
    538
    Rep Power
    1307
    Make the name attribute of your applet tag app like <APPLET name="app" id="app"

    Add this to your html:

    Code:
    bgsound id=midibox loop=0 volume=0 autostart=yes>
    <bgsound id=wavebox loop=0 volume=0 autostart=yes>
    
    <script language="javascript">
    var fadestop=null;
    var fade=50;
    var fademidi;
    var fadevol=0;
    
    function dofade() {
    	fade=fade+1;
    	midibox.volume = -(fade*100);
    	if (fade>=36) {
    		clearInterval(fadestop);
    		clearInterval(fadestop);
    		midibox.src=fademidi; midibox.volume=fadevol; fade=-(fadevol/100);
    		clearInterval(fadestop);
    		clearInterval(fadestop);
    	}
    }
    
    function givetrue() {return true;}
    
    function musicloop() {
    	var midi=document.app.getmidi();
    	if (midi!="none") {
    		if (fadestop!=null) clearInterval(fadestop);
    		var midivol=document.app.getmidivol();
    		var midifade=document.app.getmidifade();
    		if (midi=="stop") {midibox.src="c:\silence.mid"; fade=50; return;}
    		if (midi=="voladjust") {midibox.volume=midivol; if (midifade==1) fade=-(midivol/100); else fade=50; return;}
    		if (midifade==1) {
    			fademidi=midi; fadevol=midivol;
    			if (fadestop!=null) clearInterval(fadestop);
    			fadestop=setInterval("dofade()",200);
    		}
    		else {
    			midibox.src=midi; midibox.volume=midivol; fade=50;
    		}
    		
    	}
    	var wave=document.app.getwave();
    	if (wave!="none") {
    		var wavevol=document.app.getwavevol();
    		wavebox.src=wave; wavebox.volume=wavevol;
    	}
    }
    
    function startloop() {
    	onerror=givetrue;
    	setInterval("musicloop()",50);
    }
    </script>
    Credits: JAGeX for making, Peterbjornx for looking up, archive.org for there backups
    [Only registered and activated users can see links. ]
    EX SERVER DEV

    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Oct 2007
    Posts
    1,406
    Thanks given
    37
    Thanks received
    79
    Rep Power
    0
    so thats how those fags made the sounds work on the 317 client.
    Reply With Quote  
     

  3. #3  
    Sate
    Guest
    Um, so they used this system to get the music playing, when you load the webclient?
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Mar 2009
    Posts
    430
    Thanks given
    5
    Thanks received
    6
    Rep Power
    89
    i cant get it... doesnt work... maybe make full code there?
    Reply With Quote  
     

  5. #5  
    Reverse engineering enthousiast
    peterbjornx's Avatar
    Join Date
    Feb 2008
    Age
    26
    Posts
    1,910
    Thanks given
    88
    Thanks received
    538
    Rep Power
    1307
    yea its for webclient (ORIG 1)
    [Only registered and activated users can see links. ]
    EX SERVER DEV

    Reply With Quote  
     

  6. #6  
    Tom
    Tom is offline
    Registered Member
    Tom's Avatar
    Join Date
    Jul 2006
    Age
    27
    Posts
    1,148
    Thanks given
    8
    Thanks received
    86
    Rep Power
    902
    Isnt this already built into the rs loader? Is this how jagex did it?
    uh
    Reply With Quote  
     

  7. #7  
    Reverse engineering enthousiast
    peterbjornx's Avatar
    Join Date
    Feb 2008
    Age
    26
    Posts
    1,910
    Thanks given
    88
    Thanks received
    538
    Rep Power
    1307
    yea.
    [Only registered and activated users can see links. ]
    EX SERVER DEV

    Reply With Quote  
     

  8. #8  
    Rune-Server Affiliate
    3lou 55's Avatar
    Join Date
    Jan 2009
    Posts
    398
    Thanks given
    176
    Thanks received
    79
    Rep Power
    185
    arent webclients illegal?
    Reply With Quote  
     

  9. #9  
    35518
    Guest
    nah web clients aren't illegal the actual client is.
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Dec 2009
    Posts
    833
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    so I upload the .mp3 file, and it will auto-loop the song all the time?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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