Thread: adding music to specific areas!

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 adding music to specific areas! 
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    26
    Posts
    1,228
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    Purpose: we are gonna add music to areas!

    Difficulty: 2/10 really not hard

    Assumed Knowledge: before doing this tut do this tut!!!!! :[Only registered and activated users can see links. ]

    Server Base: probally most servers.

    Classes Modified: client.java

    Procedure
    Step 1: first search for
    Code:
     public void writePlayers() {


    Step 2: under that boolean you will see something like this :
    Code:
    if(isInBarrows()) {


    Step 3: under that ifisninbarrows code add
    Code:
    if(isInVarrock()) {
      outStream.createFrame(74);//this sends the frame
      outStream.writeWordBigEndian(125);//this is the music id (varrock)
    }
    }
    this will make it send the sound . but now we must make the isInVarrock boolean

    step 4lets make the isinvarrock boolean. and add it right under the isInArea boolean
    first we start off with the base that looks like this :
    Code:
       public boolean isInVarrock()
    	{
    step 5now we need to tell when you are in varrock so under the last { add :
    Code:
    if (isInArea(3158,3469, 3258, 3258)) return true;
    step 6and where a return true is is a return false too. so under
    Code:
    return true;
    add
    Code:
    return false;
    step 7now we close the boolean by adding this under it :
    Code:
    }
    step 8 now we have something like this :
    Code:
      public boolean isInVarrock()
    	{
    		if (isInArea(3158,3469, 3258, 3258)) return true;
    		return false;
    	}
    step 9: compile and run. now if you done my other tut and walk into varrock the music will start
    Credits: 40% for llama with explaining me the isninarea stuff.
    60% me for making the tut
    Reply With Quote  
     

  2. #2  
    Registered Member
    Yamaha's Avatar
    Join Date
    Nov 2007
    Age
    28
    Posts
    597
    Thanks given
    0
    Thanks received
    0
    Rep Power
    141
    Thanks for this, good job. Repp++
    Reply With Quote  
     

  3. #3  
    ManMuncher
    Guest
    ty mate repu for this found very easy and good
    Reply With Quote  
     

  4. #4  
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    26
    Posts
    1,228
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    no problem =P
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    May 2007
    Posts
    2,690
    Thanks given
    115
    Thanks received
    45
    Rep Power
    0
    good job mate!
    Reply With Quote  
     

  6. #6  
    1337Coder
    Guest
    Nice Im gonna try it out now
    Reply With Quote  
     

  7. #7  
    $ kajakas $
    Guest
    Very nice,im sure to use it .rep+.
    Reply With Quote  
     

  8. #8  
    Community Veteran

    WH:II:DOW's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    2,022
    Thanks given
    145
    Thanks received
    871
    Rep Power
    4275
    where is the sound id list? but rep++ fo sho
    hella titties
    Reply With Quote  
     

  9. #9  
    Total Pwner

    Join Date
    Dec 2006
    Posts
    227
    Thanks given
    1
    Thanks received
    0
    Rep Power
    68
    Nice tutorial!
    Reply With Quote  
     

  10. #10  
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    26
    Posts
    1,228
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    thanks ....
    Monads are just Monoids in the category of Endofunctors. What is the problem?
    Costate Comonad Coalgebra is equivalent of Java's member variable update technology for haskell. Problem?
    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
  •