Results 1 to 20 of 20

Thread: I'm very confused here.

  1. #1
    Join Date
    Mar 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default I'm very confused here.

    I want to hook up Simba to a RSPS but how do I know if it worked? I click the Cross and Drag it to the screen but idk if it worked...

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    post the code

  3. #3
    Join Date
    Mar 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Code:
    Program SmithingRune2h;
    {$i srl/srl.simba}
    Procedure ClickBank;
    var
      X,Y:Integer;
    begin
      if FindColorTolerance(X, Y, 1065811, 256, 155, 256, 155, 5) then
      begin
        mmouse(x, y,1,1);
        wait(250);
        ClickMouse(X, Y, mouse_Left)
      end;
    end;
    Begin
    MouseSpeed := 15;
    SetupSRL;
    end.

  4. #4
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    The area your searching in is the size of 1 pixel you need for it to search in a wider area, I'm going to bed if you need further refer to the help section

  5. #5
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    You havent called ClickBank; in your main loop

  6. #6
    Join Date
    Mar 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    You havent called ClickBank; in your main loop

    Yay that worked!

  7. #7
    Join Date
    Mar 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    You havent called ClickBank; in your main loop
    Ok so now what do I do the coordnates and color id of the rune bar is

    6971985, 1106, 176

  8. #8
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Those coordinates seem horribly wrong...
    You're going to want to drag the green crosshair on the simba icon onto the client before grabbing the coordinates.
    Once you have them, verify the bank screen is open via a simple color check, then run this:

    Simba Code:
    Mouse(x,y,rx,ry,Mouse_Right);
    Wait(50);

    x/y: coordinates of rune bar
    rx/ry: randomization (leave at 2,2)

    Then get the coordinates of the 'Withdraw All' option and do the same thing as above

  9. #9
    Join Date
    Mar 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Those coordinates seem horribly wrong...
    You're going to want to drag the green crosshair on the simba icon onto the client before grabbing the coordinates.
    Once you have them, verify the bank screen is open via a simple color check, then run this:

    Simba Code:
    Mouse(x,y,rx,ry,Mouse_Right);
    Wait(50);

    x/y: coordinates of rune bar
    rx/ry: randomization (leave at 2,2)

    Then get the coordinates of the 'Withdraw All' option and do the same thing as above
    any idea what's wrong with this? @Sin;

    Code:
    Program SmithingRune2h;
    {$i srl/srl.simba}
    Procedure ClickBank;
    var
      X,Y:Integer;
    begin
      if FindColorTolerance(X, Y, 6909549, 254, 137, 256, 155, 5) then
      begin
        mmouse(x, y,1,1);
        wait(250);
        ClickMouse(X, Y, mouse_Left)
        wait(1150);
        Mouse(268,142,2,2,Mouse_Right); //selects rune bar
        wait(1150);
        Mouse(260,250,2,2,Mouse_Left); //withdraw all
      end;
    end;
    Begin
    MouseSpeed := 15;
    ClickBank;
    SetupSRL;
    end.
    Last edited by Kozs; 03-04-2013 at 04:55 AM.

  10. #10
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Simba Code:
    Program SmithingRune2h;
    {$i srl/srl.simba}
    Procedure ClickBank;
    var
      X,Y:Integer;
    begin
      if FindColorTolerance(X, Y, 6909549, 254, 137, 256, 155, 5) then
      begin
        mouse(X, Y,0,0 mouse_Left)
        wait(1150);
        Mouse(268,142,2,2,Mouse_Right); //selects rune bar
        wait(1150);
        Mouse(260,250,2,2,Mouse_Left); //withdraw all
      end;
    end;
    Begin
    SetupSRL;
    MouseSpeed := 15;
    ClickBank;
    end.

  11. #11
    Join Date
    Mar 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    The Color keeps changing for the bank I put my color to low but if I move my screen a little bit I need to redo it

    Any suggestions? @Sin;

  12. #12
    Join Date
    Nov 2011
    Location
    United States
    Posts
    815
    Mentioned
    6 Post(s)
    Quoted
    284 Post(s)

    Default

    Up the color tolerance or pick a more unquie color

  13. #13
    Join Date
    Mar 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Itankbots View Post
    Up the color tolerance or pick a more unquie color
    Now how do I walk to the Anvil even with the camera at different angles?
    Last edited by Kozs; 03-04-2013 at 09:32 PM.

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

    Default

    Quote Originally Posted by Kozs View Post
    Now how do I walk to the Anvil even with the camera at different angles?
    Mouse(268,142,2,2,Mouse_Right); Because 2, 2 are the random pixels off-shift.

    If u want to precisely click the same pixel everytime change it to 0, 0 .
    But that makes it more detectable.

    Creds to DannyRS for this wonderful sig!

  15. #15
    Join Date
    Mar 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    Mouse(268,142,2,2,Mouse_Right); Because 2, 2 are the random pixels off-shift.

    If u want to precisely click the same pixel everytime change it to 0, 0 .
    But that makes it more detectable.
    that did not work heres what i'm using.
    .


    Code:
        Mouse(670,85,2,2,Mouse_Left); //Walk to Anvil
        wait(6150);

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

    Default

    Quote Originally Posted by Kozs View Post
    that did not work heres what i'm using.
    .


    Code:
        Mouse(670,85,2,2,Mouse_Left); //Walk to Anvil
        wait(6150);
    I wouldn't use Coordclicking for mapwalking.
    Try FindSymbol(x, y, 'furnace')

    EDIT: tutorial on methods of mapwalking http://villavu.com/forum/showthread.php?t=19162

    Creds to DannyRS for this wonderful sig!

  17. #17
    Join Date
    Mar 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    I wouldn't use Coordclicking for mapwalking.
    Try FindSymbol(x, y, 'furnace')

    EDIT: tutorial on methods of mapwalking http://villavu.com/forum/showthread.php?t=19162

    Looking for an anvil, and I just want to walk like 30 steps I should not need to learn map walking for that..

    Code:
    Program SmithingRune2h;
    {$i srl/srl.simba}
    Procedure ClickBank;
    var
      X,Y:Integer;
    begin
      if FindColorTolerance(X, Y, 6909549, 254, 137, 256, 155, 50) then
      begin
        mmouse(x, y,1,1);
        wait(250);
        ClickMouse(X, Y, mouse_Left)
        wait(2150);
        Mouse(268,142,2,2,Mouse_Right); //selects rune bar
        wait(2150);
        Mouse(260,250,2,2,Mouse_Left); //withdraw all
        wait(2150);
        FindSymbol(x, y, 'anvil')
      end
    end;
    Begin
    MouseSpeed := 15;
    ClickBank;
    SetupSRL;
    end.

    I compile that it says

    Error: Exception: Out of memory at line 7

    How do I fix that?

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

    Default

    Always call SetupSRL; at the beginning of yoru mainloop.

    sorry, didn't read it clearly. FindSymbol(x, y, 'anvil');

    Creds to DannyRS for this wonderful sig!

  19. #19
    Join Date
    Mar 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    Always call SetupSRL; at the beginning of yoru mainloop.

    sorry, didn't read it clearly. FindSymbol(x, y, 'anvil');
    Code:
    Program SmithingRune2h;
    {$i srl/srl.simba}
    Procedure ClickBank;
    var
      X,Y:Integer;
    begin
    SetupSRL;
      if FindColorTolerance(X, Y, 6909549, 254, 137, 256, 155, 50) then
      begin
    
        mmouse(x, y,1,1);
        wait(250);
        ClickMouse(X, Y, mouse_Left)
        wait(2150);
        Mouse(268,142,2,2,Mouse_Right); //selects rune bar
        wait(2150);
        Mouse(260,250,2,2,Mouse_Left); //withdraw all
        wait(2150);
        FindSymbol(x, y, 'anvil')
      end
    end;
    Begin
    MouseSpeed := 15;
    ClickBank;
    SetupSRL;
    end.
    Is there a way were it automatically makes the Camera angel that angel? I don't really care what angel I can make the coords work with it, the location i'm botting at no one goes to so its no problem

  20. #20
    Join Date
    Nov 2011
    Location
    United States
    Posts
    815
    Mentioned
    6 Post(s)
    Quoted
    284 Post(s)

    Default

    Check out the SRL include, in your simba folder. Simba>includes>srl>srl>core>mapwalk

    Has all the angle setting functions etc

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
  •