Results 1 to 6 of 6

Thread: need some help :s

  1. #1
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default need some help :s

    here it says acces violation

    SCAR Code:
    Program New;
    {.include srl/srl.scar}
    Var
      x, y, wall :integer;

    procedure FindWall;
    begin
      repeat
      mmouse(146, 181,2,2);
      wait(100+random(50));
      if isuptext('all')then
      begin
        x:=146;
        Y:=291;
        wait(100);
        exit;
      end else
      mmouse(343, 175,2,2);
      wait(100+random(50));
      if isuptext('all')then
      begin
      x:=343;
      Y:=175;
      exit;
      wait(100+random(50));
      end;
      until(False)
      freedtm(Wall);
    end;
    {===================]
          MainLoop
    [===================}


    Begin
      SetUpSrl;
      repeat
        FindWall;
        wait(100+random(50));
        Mouse(x,y,0,0,true);
        wait(5000+random(1000));
        x:=0;
        y:=0;
      until (false)
    End.

    thanks!

    btw, this is for the agility arena if you can read it (its not standardized) then it will click 2 diff things so i get 8 xp ecrytime hejumps over a wall and the wal is on that coord or the other coord

  2. #2
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Successfully compiled

    on my computer it does compile...

  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ehm wierd

    it worked for me to few times
    after that ''few'' times i gained that error
    and drag the croshair to.. i think its somthing with the x and y are...

    EDIT:
    it worked 1 time again but after that it moves to the place then it looks for the up text and the up text was right but then it moves to down and says succesfully executed :s

  4. #4
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oke, you get is after a few times. thats weird.

  5. #5
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    freedtm(Wall);

    I cant see the Wall DTM there..? So maybe it's because it tries to free a DTM that's not loaded?

  6. #6
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh, lol! thanks! i think that thats it.. gonna check..

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
  •