How do I make my client play music?

Results 1 to 6 of 6
  1. #1
    Apprentice ztschutt is offline
    MemberRank
    Apr 2009 Join Date
    13Posts

    Question How do I make my client play music?

    I am currently making a server and client and I want my client to play a song at the login screen. can someone tell me how to do that or give me the code?
    I don't know what version my game is so I will put a screenshot in. I used the Phonescape source to get started.

    EDITED: The server is a 317!

    Last edited by ztschutt; 26-04-09 at 06:44 PM. Reason: Found out server version


  2. #2
    Venture Adventure Tyler is offline
    LegendRank
    Nov 2008 Join Date
    United KingdomLocation
    4,441Posts

    Re: How do I make my client play music?

    Doesn't the client play the runescape music by default?

  3. #3
    Apprentice ztschutt is offline
    MemberRank
    Apr 2009 Join Date
    13Posts

    Re: How do I make my client play music?

    No. I have been trying to find the code that allows it to play music but all i have found was these three codes in my servers client.java file. Im not even sure if they are music related; they just have music in the comment next to them. The only other thing I found was the music list but that didn't help. There is nothing that I can find in my clients files that have to do with music.

    Code:
    public void frame74(int i1) // MUSIC!
    {
    outStream.createFrame(74);
    outStream.writeWordBigEndian(i1);
    sendMessage("Frame 74 tested");
    }
    Code:
    public void frame121(int i1, int i2) // MUSIC! this one used alot less often though :D
    {
    outStream.createFrame(121);
    outStream.writeWord(i1);
    outStream.writeByteS(i2);
    sendMessage("Frame 121 tested");
    }
    Code:
    public void frame174(int i1, int i2, int i3) // another thing, tested doesn't logout, looks like something to do with music
    {
    outStream.createFrame(174);
    outStream.writeWord(i1);
    outStream.writeByte(i2);
    outStream.writeWord(i3);
    sendMessage("Frame 174 tested");
    updateRequired = true;
    appearanceUpdateRequired = true;
    }

  4. #4
    Account Upgraded | Title Enabled! viydude is offline
    MemberRank
    Jun 2008 Join Date
    235Posts

    Re: How do I make my client play music?

    Eh, yea , I always thought it played by default.

  5. #5
    PSN - TheBreath Charcol is offline
    MemberRank
    Jul 2007 Join Date
    THE GHETTO.Location
    397Posts

    Re: How do I make my client play music?

    It all depends on what server / source you are using.
    Most play it on default, like Tyler and viydude said.

    - Charcol.

  6. #6
    Apprentice ztschutt is offline
    MemberRank
    Apr 2009 Join Date
    13Posts

    Re: How do I make my client play music?

    nvm. I found a client with a built in music player.
    Last edited by ztschutt; 29-04-09 at 12:24 AM.



Advertisement