Results 1 to 4 of 4

Thread: Some reason the script doesn't click properly

  1. #1
    Join Date
    Aug 2014
    Posts
    172
    Mentioned
    2 Post(s)
    Quoted
    77 Post(s)

    Default Some reason the script doesn't click properly

    So I got this bit of simba script and for some reason when it clicks the altar and then presses the offer bones, it just clicks ground for some reason. Not sure why. Anyone know the reason for this.



    Simba Code:
    procedure ClickAltar();
    var
      Burner: Tbox;
    begin
      wait(gaussRangeInt(3000,3400));
      burner := intTobox(200, 157, 245, 183);
      mouseBox(burner, MOUSE_RIGHT);
      wait(1000);
      if chooseOption.select(['ffer Altar']) then
       fastClick(MOUSE_LEFT)
      else begin
        writeLn('Script messed up');
        terminateScript();
      end;
    end;

  2. #2
    Join Date
    Sep 2014
    Posts
    447
    Mentioned
    10 Post(s)
    Quoted
    203 Post(s)

    Default

    Hm... I'm not really sure why you have
    Simba Code:
    if chooseOption.select(['ffer Altar']) then
       fastClick(MOUSE_LEFT)

    chooseOption.select should select the option already. Clicking another time is likely what is making the mistake.

  3. #3
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Yup, chooseOption.select() will click the option, so fastClick() will click again.

    Another thing to consider: that 1 second wait isn't doing you any good. You can do
    Simba Code:
    chooseOption.select(['ffer Altar'], 1000)
    and save yourself some time.

  4. #4
    Join Date
    Aug 2014
    Posts
    172
    Mentioned
    2 Post(s)
    Quoted
    77 Post(s)

    Default

    Quote Originally Posted by yourule97 View Post
    Hm... I'm not really sure why you have
    Simba Code:
    if chooseOption.select(['ffer Altar']) then
       fastClick(MOUSE_LEFT)

    chooseOption.select should select the option already. Clicking another time is likely what is making the mistake.
    lol, and so your correct xD Thanks lol. I'm an idiot

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
  •