Results 1 to 5 of 5

Thread: Need a bit of help with my Tutorial Island Runner

  1. #1
    Join Date
    Sep 2007
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need a bit of help with my Tutorial Island Runner

    Okay, so I decided to creat a tutorial runner, and I have run into one problem, which I can't solve:
    These stupid arrows in the tutorial are flshing on and off, and this really hinders my script, becuase now there is a random chance if it finds the arrow or not. I have tried to do somehting like this:

    SCAR Code:
    begin
               HighestAngle;
               MakeCompass('N');
               wait(1000+random(500))
               if FindDTM(MapArrow, x, y, 0, 0, 765, 500) then
                 begin
                   MoveMouseSmoothEx(x, y +random(0),20,40,45,25,20);
                   wait(100 + random(50))
                   ClickMouse(x, y, true)
                 end;
               if not FindDTM(MapArrow, x, y, 0, 0, 765, 500) then
                 begin
                   wait(200)
                     if FindDTM(MapArrow, x, y, 0, 0, 765, 500) then
                       begin
                         MoveMouseSmoothEx(x, y +random(0),20,40,45,25,20);
                         wait(100 + random(50))
                         ClickMouse(x, y, true)
                       end;
                 end;

    This onviously is a lot of stuff to write for each and every arrow, and also, i figured out: IT DOESN"T WORK .
    Is there anyone who has an idea for a different way to find the arrow (maybe there is a function which waits for a certain ammount of time while looking for the arrow, remembering it's co-ords?)

    BTW: I wold also be looking for a person who I could reffer to for future problems of this tutorial island runner, so I don't have to post all of them. Of course he/she will be given credit in my script once it is finished.

  2. #2
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    1) Use MMouse and Mouse instead of standard SCAR-MouseMoving procedures.
    2) I would use a loop. If it doesn't find the arrow, it will wait, say 50 ms, and then try again. If it finds it, use "Break;" in your script. That will break the loop and continue.

    -Knives

  3. #3
    Join Date
    May 2006
    Location
    Helsinki, Finland (capital)
    Posts
    269
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    begin
               HighestAngle;
               MakeCompass('N');
               wait(1000+random(500));
               if FindDTM(MapArrow, x, y, 0, 0, 765, 500) then
                 begin
                   MoveMouseSmoothEx(x, y +random(0),20,40,45,25,20);
                   wait(100 + random(50));
                   ClickMouse(x, y, true);
                 end;
               if not FindDTM(MapArrow, x, y, 0, 0, 765, 500) then
                 begin
                   wait(200);
                     if FindDTM(MapArrow, x, y, 0, 0, 765, 500) then
                       begin
                         MoveMouseSmoothEx(x, y +random(0),20,40,45,25,20);
                         wait(100 + random(50));
                         ClickMouse(x, y, true);
                       end;
                 end;
    Now it should work, if doesn't, tell me what error does it give.

    -Eicca

  4. #4
    Join Date
    Sep 2007
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright, I will try it with a loop for I think it is more "safe" than what I had. Thanks to both of you for your replies.

  5. #5
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This your first script?

    If so, thats a big script to create, as a registered user you can't even have a look at other peoples code to see how they have done it.

    Not trying to put you down or anything, but you should prob try a less difficult script.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Nielsie95's Tutorial Island Runner
    By nielsie95 in forum RS3 Outdated / Broken Scripts
    Replies: 1228
    Last Post: 04-22-2009, 09:53 PM
  2. (not mine) Tutorial Island Runner!
    By Hugolord in forum RS3 Outdated / Broken Scripts
    Replies: 27
    Last Post: 10-31-2007, 06:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •