Results 1 to 14 of 14

Thread: Music(off : boolean);

  1. #1
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default Music(off : boolean);

    here you go!!!
    this will turn the music on/off at the login screen !
    SCAR Code:
    function Music(off : boolean) : boolean;
    var
      MusicOff, MusicOn : integer;
    begin
      if LoggedIn then EXIT;
      MusicOn := BitmapFromString(19, 3, 'beNqzt2dgYOzo6AUiIMPR3r6s' +
                   'rAaIgGwgioxODQmJACJ9fWMgd9bM2RAEZENE4BohCMgGmgBUD+FC9GLVCLcFy' +
                   'IWIwLUDEbKBQATR6AgAPe8r6g==');
      MusicOff := BitmapFromString(13, 2, 'beNpLyiwrq2FgYNTXN46MT' +
                    'gUy2kREkBFQBIg6OnrhyrCqCQmJcLS3TwIAnB0QaA==');
      if off then
      begin
        if FindBitmap(MusicOn, x, y) then
        begin
          Mouse(x, y, 8, 8, True);
          wait(500 + random(1000));
          Result := FindBitmap(MusicOff, x, y);
        end else Result := FindBitmap(MusicOff, x, y);
      end else
      begin
        if FindBitmap(MusicOff, x, y) then
        begin
          Mouse(x, y, 8, 8, True);
          wait(500 + random(1000));
          Result := FindBitmap(MusicOn, x, y);
        end else Result := FindBitmap(MusicOn, x, y);
      end;
      FreeBitmap(MusicOn);
      FreeBitmap(MusicOff);
    end;
    <--i hope you like it

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    procedure SetMusic(SetOn: Boolean);
    begin
      if(SetOn and (GetColor(738, 484) = 1315974)) or ((SetOn = False) and (GetColor(738, 484) = 4144961))then
        Mouse(730, 469, 25, 25, True);
    end;
    Sorry, I just HAD to
    GetColor is very useful when dealing with the interface.

  3. #3
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    you are the meanest ! well, bitmap still beats that

  4. #4
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    not really. If they both work the same why not use the shorter one?

  5. #5
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    sweeeeeeeett!

    thanks h8 that song

  6. #6
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    heh, np p1nky

  7. #7
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    I hate the song too, not that this would be used for the legit player's comfort.

    Gj, though bullzeye kinda pwnt

  8. #8
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    SCAR Code:
    procedure SetMusic(SetOn: Boolean);
    begin
      if(SetOn and (GetColor(738, 484) = 1315974)) or ((SetOn = False) and (GetColor(738, 484) = 4144961))then
        Mouse(730, 469, 25, 25, True);
    end;
    Sorry, I just HAD to
    GetColor is very useful when dealing with the interface.
    SCAR Code:
    procedure SetMusic(SetOn: Boolean);
    begin
     if SetOn xor (GetColor(738, 484) = 4144961) then
        Mouse(730, 469, 25, 25, True);
    end;

    Pwned?


    Still dizzy about how you got pwned?

    Take this one!

    SCAR Code:
    procedure SetMusic(SetOn: Boolean);
    begin
     if (SetOn=(GetColor(738, 484) = 1315974)) then
        Mouse(730, 469, 25, 25, True);
    end;
    Verrekte Koekwous

  9. #9
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hah, Raymond just had to...

    Haha lol'ed at this

    Football, actually, the 1 reason why bullzeye's/mastaraymond's functions are better, is that bitmaps finding is slow, and makes lag.
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  10. #10
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Actually finding with that small bitmaps doesn't cause lagg, but Bullzeye's and Raymond's functions are still much faster...

  11. #11
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by mastaraymond View Post
    SCAR Code:
    procedure SetMusic(SetOn: Boolean);
    begin
     if SetOn xor (GetColor(738, 484) = 4144961) then
        Mouse(730, 469, 25, 25, True);
    end;

    Pwned?


    Still dizzy about how you got pwned?

    Take this one!

    SCAR Code:
    procedure SetMusic(SetOn: Boolean);
    begin
     if (SetOn=(GetColor(738, 484) = 1315974)) then
        Mouse(730, 469, 25, 25, True);
    end;
    You owned me.

    I thought I pwnt him enough. I would've eventually figured out the second one, but you absolutely pwnz0rd me with the first one.

    Hacker.

    EDIT: You don't have to xor it BTW.
    SCAR Code:
    procedure SetMusic(SetOn: Boolean);
    begin
     if SetOn <> (GetColor(738, 484) = 4144961) then
        Mouse(730, 469, 25, 25, True);
    end;
    Just a <> would work.

  12. #12
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Raymond, does xor tell whether or not the statements are "the same"?

    I managed to figure out that False Xor False is False, True Xor True is False, False Xor True is True and True Xor False is True. Correct?

  13. #13
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    You owned me.

    I thought I pwnt him enough. I would've eventually figured out the second one, but you absolutely pwnz0rd me with the first one.

    Hacker.
    CSS Gives me the power


    Quote Originally Posted by n3ss3s View Post
    Raymond, does xor tell whether or not the statements are "the same"?

    I managed to figure out that False Xor False is False, True Xor True is False, False Xor True is True and True Xor False is True. Correct?
    Xor returns True when the values differ from eachother...
    True xor false = true;
    False Xor True = True;
    False xor False = False;
    True Xor True = False;
    Verrekte Koekwous

  14. #14
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    *crys for 10 days* well at least me doing this sparked someone to make a better one

    still you didn't have to make em that small *Thinks about the pathetic procedure and crys again for 10 days* ha ha!

Thread Information

Users Browsing this Thread

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

Posting Permissions

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