Results 1 to 7 of 7

Thread: Why doesnt this script work right

  1. #1
    Join Date
    Feb 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Why doesnt this script work right

    I made this script for a private server, It is meant to locate color 1414418, then if it finds the color click on it. every .25 seconds. It just clicks every .25 seconds no matter what.. Please help. Im trying to get it to click in client, but it clicks everywhere even outside client.


    Simba Code:
    program LastResort;
    {$I SRL/SRL.simba}
    procedure ClickStall;
      begin
        ActivateClient;
        SetupSRL;
      end;
      var x,y: integer;
    begin
      repeat
      if (FindColor(x,y, 1414418, MMX1, MMY1, MMX2, MMY2))
      then ClickMouse(x,y, mouse_Left);
      Wait(250);
      until (InvFull);
    end.

  2. #2
    Join Date
    Dec 2011
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    1. Put in MMouse(x, y, 0, 0); before the clicking part.
    2. Make sure you are getting colours that are only on that object.
    3. Drag cross hair on the screen you want and then press play.
    Last edited by Drax; 02-12-2012 at 06:44 AM.

  3. #3
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    add mmouse(x, y, 0, 0)

    Don't know if this was a problem for you (unclear?) but your wait is 250, so your click will be .25.
    ex -
    For one second :
    wait(1000);

    Edit: ninja'd by Surfing...


    When you are done with the script, would you like me to test?
    http://villavu.com/forum/showthread.php?t=70808
    Last edited by Rezozo; 02-12-2012 at 06:51 AM. Reason: ninj... cant say the whole thing...

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  4. #4
    Join Date
    Dec 2011
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    He's not using smart It's for a private server.

  5. #5
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by Surfing View Post
    He's not using smart It's for a private server.
    Lol, read it to late, so I edited it.

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  6. #6
    Join Date
    May 2008
    Location
    the world 0_o
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    program LastResort;
    {$I SRL/SRL.simba}

    var
    x,y: integer;      //since you are using these variables in the whole script just declare them at top

    begin
    ActivateClient;         //moved these two(ActivateCLient and SetupSRL) here to clean up the script
    SetupSRL;
      repeat                 //this repeat will only repeat what is inside, not the two lines above
      if (FindColor(x,y, 1414418, MMX1, MMY1, MMX2, MMY2)) then
      MMouse(x,y,0,0);       //this moves the mouse to the x and y coor where simba found the color you were looking for
      ClickMouse(x,y, mouse_Left); //this then clicks the x, y coor that it just moved to
      Wait(250);
      until (InvFull);
    end.

    Enjoy and good luck!
    Last edited by Paradoxium; 02-16-2012 at 11:50 AM.

  7. #7
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You could try this

    procedure ClickStall;

    var
    x, y:Integer;
    begin
    if FindColorSpiralTolerance(x, y, Color , 1 , 1 , 1 , 1 , 10) then

    begin
    MoveMouse(x, y);
    ClickMouse(x, y, 1);
    Wait(250);
    end;
    end;

    Just change the 1's to the locations coordinates you wan to click in.

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
  •