Page 1 of 2 12 LastLast
Results 1 to 25 of 47

Thread: Help me autocolor this

  1. #1
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default Help me autocolor this

    1m pounds to who ever can get a decent color of this wall safe

    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  2. #2
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    1m pounds to who ever can get a decent color of this wall safe

    Simba Code:
    procedure FindColorz;
    var
      TPA:TPointArray;
      ATPA:T2DPointArray;
      bmp:String;
      i,p:integer;
    begin
      SetColorToleranceSpeed(3);
      SetToleranceSpeed3Modifier(0.01);
      if(FindColorsSpiralTolerance(MSCX,MSCY,TPA,726038,80,256,334,343,529)) then
      begin
        SplitTPAWrap(TPA,1,ATPA);
        p := length(ATPA);
        for i := 0 to p-1 do
        begin
        writeln(p);
          if(length(ATPA[i])<25) then
          begin
            DeleteValueInATPA(ATPA,i);
            i := i-1;
            p := p -1;
          end;
        end;
        SortATPASize(ATPA,true);
        Mouse(MiddleTPA(ATPA[0]).x,MiddleTPA(ATPA[0]).y,4,4,3);
      end;
    end;

    All I could do with that screen shot and my limited time.

    Try it out for me pls.

  3. #3
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    I was using dtms but they kept playing up..

    Simba Code:
    procedure CrackSafe;
    var
     Safe, x, y: Integer;
    begin


     Safe:= DTMFromString('mggAAAHicY2NgYGBnZGDgAWJGIOYGYhYoOwkoFwXEWVAMYicCsaWuNIOoqBCDqBAUA9nSopwMuAAjDgwBAFtlBCY=');
      if FindDTM(Safe, x, y, MSX1, MSY1, MSX2, MSY2) then
       begin
        Writeln('Found safe!');
        MMouse(x,y,2,2);
        If IsUpText('safe') then
        ClickMouse(x, y, 1);



       end;

       FreeDTM(Safe);
    end;
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  4. #4
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    I was using dtms but they kept playing up..

    Simba Code:
    procedure CrackSafe;
    var
     Safe, x, y: Integer;
    begin


     Safe:= DTMFromString('mggAAAHicY2NgYGBnZGDgAWJGIOYGYhYoOwkoFwXEWVAMYicCsaWuNIOoqBCDqBAUA9nSopwMuAAjDgwBAFtlBCY=');
      if FindDTM(Safe, x, y, MSX1, MSY1, MSX2, MSY2) then
       begin
        Writeln('Found safe!');
        MMouse(x,y,2,2);
        If IsUpText('safe') then
        ClickMouse(x, y, 1);



       end;

       FreeDTM(Safe);
    end;
    Swap out the coords for my code, and lemme know if it works.

    If it doesn't I'll logon and look.

  5. #5
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  6. #6
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    nope dint work maybe im doing something wrong

    I need a smoke but I quit
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  7. #7
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    Tested on that image, and it worked also.

    What's the issue..?

    And you changing the cords where the color finding is looking for it?

    I have it searching a small area (Where the picture was)

  8. #8
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Could you post your code?
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  9. #9
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    Could you post your code?
    I did... my first post.

    Simba Code:
    if(FindColorsSpiralTolerance(MSCX,MSCY,TPA,726038,80,256,334,343,529)) then

    Change the cords in that line to like, MSX1,MSY1,MSX2,MSY2 (80,256,334,343)

  10. #10
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Oh my bad 2am ...
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  11. #11
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    I changed it to this:

    Simba Code:
    if(FindColorsSpiralTolerance(MSX1,MSY1,MSX2,MSY2(80,256,334,343)) then

    but then I get this



    [Error] C:\Simba\Scripts\crack2.simba(68:51): Type mismatch at line 67 which is on that line
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  12. #12
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    Oh my bad 2am ...
    No problem.

    Glad I could get that million pounds.

  13. #13
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by NKN View Post
    No problem.

    Glad I could get that million pounds.

    not just yet!

    Wait do u mean I should put my own cords ie a rough box shape round safe?

    because ,I changed it to this:



    Simba Code:



    if(FindColorsSpiralTolerance(MSX1,MSY1,MSX2,MSY2(8 0,256,334,343)) then

    but then I get this



    [Error] C:\Simba\Scripts\crack2.simba(68:51): Type mismatch at line 67 which is on that line
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  14. #14
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    not just yet!

    Wait do u mean I should put my own cords ie a rough box shape round safe?

    because ,I changed it to this:



    Simba Code:



    if(FindColorsSpiralTolerance(MSX1,MSY1,MSX2,MSY2(8 0,256,334,343)) then

    but then I get this



    [Error] C:\Simba\Scripts\crack2.simba(68:51): Type mismatch at line 67 which is on that line
    Delete (8 0,256,334,343), I was just telling you what numbers to change.

  15. #15
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Simba Code:
    if(FindColorsSpiralTolerance(MSX1,MSY1,MSX2,MSY2)) then


    changed it to that, I now get this:



    [Error] C:\Simba\Scripts\crack2.simba(66:46): Variable Expected at line 65
    (which is on that line)


    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  16. #16
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    Simba Code:
    if(FindColorsSpiralTolerance(MSX1,MSY1,MSX2,MSY2)) then


    changed it to that, I now get this:



    [Error] C:\Simba\Scripts\crack2.simba(66:46): Variable Expected at line 65
    (which is on that line)

    Keep the rest of the stuff in there... only change the cords.

  17. #17
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  18. #18
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    learn to parameters

    Creds to DannyRS for this wonderful sig!

  19. #19
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    We all have that moment.

  20. #20
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  21. #21
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Sjoe View Post
    learn to parameters
    Im getting annoyed with your snobbish comments I have been learning
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  22. #22
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    Im getting annoyed with your snobbish comments I have been learning
    You're getting frustrated

    And I've been helping you previously so stfu

    Creds to DannyRS for this wonderful sig!

  23. #23
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by NKN View Post
    Keep the rest of the stuff in there... only change the cords.

    Ok as soon as I think iv got it fixed this comes up


    Error: Out Of Range at line 80:

    Simba Code:
    Mouse(MiddleTPA(ATPA[0]).x,MiddleTPA(ATPA[0]).y,4,4,3);
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  24. #24
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    Ok as soon as I think iv got it fixed this comes up


    Error: Out Of Range at line 80:

    Simba Code:
    Mouse(MiddleTPA(ATPA[0]).x,MiddleTPA(ATPA[0]).y,4,4,3);
    Not finding the colors.

    You sure you got the code right?

    Post it all.

  25. #25
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Simba Code:
    procedure FindColorz;
    var
      TPA:TPointArray;
      ATPA:T2DPointArray;
      bmp:String;
      i,p:integer;
    begin
      SetColorToleranceSpeed(3);
      SetToleranceSpeed3Modifier(0.01);
      if(FindColorsSpiralTolerance(MSCX,MSCY,TPA,726038,80,256,334,343,529)) then
      begin
        SplitTPAWrap(TPA,1,ATPA);
        p := length(ATPA);
        for i := 0 to p-1 do
        begin
        writeln(p);
          if(length(ATPA[i])<25) then
          begin
            DeleteValueInATPA(ATPA,i);
            i := i-1;
            p := p -1;
          end;
        end;
        SortATPASize(ATPA,true);
        Mouse(MiddleTPA(ATPA[0]).x,MiddleTPA(ATPA[0]).y,4,4,3);
      end;
    end;
    #NKN
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

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)

Posting Permissions

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