Results 1 to 4 of 4

Thread: Quick Question Please help

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

    Default Quick Question Please help

    Is it possible to make it so when I walk near the object, it detects and clicks it... For my Script I just want it to smith Rune2h's I spent like 3 days on it so far its very frustrating

    Code:
    Program SmithingRune2h;
    {$i srl/srl.simba}
    Procedure ClickBank;
    var
      X,Y:Integer;
    begin
      if FindColorTolerance(X, Y, 5264475, 718, 193, 718, 193, 5000) then
      begin
        mmouse(x, y,1,1);
        wait(250);
        ClickMouse(X, Y, mouse_Left)
        wait(3150);
        Mouse(475,133,0,0,Mouse_Right); //selects rune bar
        wait(3150);
        Mouse(486,244,0,0,Mouse_Left); //withdraw all
        wait(3150);
        end;
    end;
    Begin
    MouseSpeed := 15;
    ClickBank;
    SetupSRL;
    end.

  2. #2
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Have you seen Ashaman88's Varrock West Bank Smither? If you're on normal RS, this would probably be ideal for the short description you asked. Aside from me suggesting tutorials, if you would like to give some more information to your snippet, I could try to help you out from there.

    Cheers,
    Lj

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

    Default

    Try using AutoColorAid for color picking and use FindObject since it will check for the correct uptext too.
    Guide on AutoColorAid http://villavu.com/forum/showthread.php?t=71074

    Also put SetupSRL; at the beginning of your main loop.
    Simba Code:
    Begin
    SetupSRL;
    MouseSpeed := 15;
    ClickBank;
    end.

    Creds to DannyRS for this wonderful sig!

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

    Default

    @Le Jingle;

    I'm playin on a RSPS I ONLY need the Rune 2h's

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
  •