Results 1 to 4 of 4

Thread: New at scripting, Read tuts and watched vids, but script wont click

  1. #1
    Join Date
    Mar 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default New at scripting, Read tuts and watched vids, but script wont click

    The title says it all. My script that I made will just keep on finding the rocks but it won't click.

    Code:
    Procedure DeclarePlayers;
    begin
       HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
    
      Players[0].Name :='';
      Players[0].Pass :='';
      Players[0].Nick :='';
      Players[0].Active:=True
      end;
    
    Procedure MineRock;
    var
      x, y: integer;
    begin
      repeat
      if FindObj(x, y, 'ine', 10000804, 5) then
        Mouse(x, y, 2, 2, false);
        ChooseOption('ine');
          repeat
            wait(1200+ random(250));
          Until not IsUpText('ocks') Or (InvFull);
        until (InvFull);
    
      end;
    
    
    
    
    begin
      SetupSRL;
      //ActivateClient;
      DeclarePlayers;
      //LoginPlayer;
      MineRock;
    
    
    end.

  2. #2
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    1. its not finding the colors you set forth

    2. the only thing that is affected by the if statement is your mouse click. so you have an endless loop that is being called afterwards. use begins/ends.

    3. almost got the standards down! just gotta fix the indentation of all lines from chooseOption(); downward.

  3. #3
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Default

    Mouse uses ClickMouse2

    Just felt like saying that...not really significant... herr herr herr

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
  •