Results 1 to 9 of 9

Thread: [Code] Adding "Winning" Sound To Your Bot

  1. #1
    Administrator Gameloader's Avatar
    Join Date
    May 2011
    Location
    Bottingforce.com DUH!
    Posts
    1,155
    Bots Posted
    97
    Post Thanks / Like
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    [Code] Adding "Winning" Sound To Your Bot

    This tutorial will show you how to more or less add a sound once your bot detects a win. The sound file must be in .wav format

    Step 1:
    Download the attached .cs (class) file from this post and drag it into your application



    Step 2:
    Drag your .wav file into your application



    Step 3:
    Right click on your .wav file and click "Properties". Once the properties appear find "Build Action" and set it as "Embedded Resource"



    Step 3:
    Place the following code wherever in your bot you want to trigger the wav to play (of course change the "your-file-name.wav" to the name of your wav file)

    Code:
    WindowsFormsApplication1.Winmm.PlayWavResource("your-file-name.wav");
    enjoy! any questions feel free to send me a pm or post them here
    Attached Files

  2. Than/ks radtad, R1CHY thanked for this post
    Likes radtad, R1CHY liked this post
  3. #2
    Banned
    Join Date
    May 2011
    Posts
    294
    Bots Posted
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I actually figured how to play .mp3 and everything else. Uses alot more resources though.

  4. #3
    Super Moderator
    Join Date
    Jun 2011
    Location
    GA or FL
    Posts
    303
    Bots Posted
    24
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    will try this out thanks!

  5. #4
    Senior Member interwebsz's Avatar
    Join Date
    Sep 2011
    Location
    in the tubes
    Posts
    337
    Bots Posted
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you Update the Dreyers Bot for this class?

  6. #5
    Super Moderator scoobysnack40's Avatar
    Join Date
    May 2011
    Posts
    240
    Bots Posted
    2
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by interwebsz View Post
    Can you Update the Dreyers Bot for this class?
    The dreyers (farmville) bot does have a winning sound .. so it doesn't need updating

  7. #6
    Senior Member interwebsz's Avatar
    Join Date
    Sep 2011
    Location
    in the tubes
    Posts
    337
    Bots Posted
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by scoobysnack40 View Post
    The dreyers (farmville) bot does have a winning sound .. so it doesn't need updating
    Was it updated to actually play the sound before you claim? lol otherwise it's pointless br0o!
    Last edited by interwebsz; 10-06-2011 at 09:53 PM.

  8. #7
    Senior Member interwebsz's Avatar
    Join Date
    Sep 2011
    Location
    in the tubes
    Posts
    337
    Bots Posted
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No response? I'm sad.

  9. #8
    Super Moderator scoobysnack40's Avatar
    Join Date
    May 2011
    Posts
    240
    Bots Posted
    2
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    no it wasn't updated broOOoOOo...

  10. #9
    l33tp4n3g3
    Guest
    Good tutorial. If yall find that this makes your program slow, another way is to shell an exe file with sound. An example of a a exe with sound is a keygen.

Posting Permissions

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