Results 1 to 9 of 9

Thread: Help with looping

  1. #1
    Join Date
    Mar 2007
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help with looping

    i've written a little script for eve online and i cant get it to loop this is what i got so far but it says:

    Line 54: [Error] (54:1): Invalid number of parameters in script

    Code:
    program eveminer;
    
    procedure Miner1;
    begin
      MoveMouseSmooth(20,759)
      ClickMouse(20,759, True)
      wait(120000+Random(100))
      MoveMouseSmooth(266,470)
      ClickMouse(266,470, False)
      wait(1000+random(100))
      MoveMouseSmooth(352,607)
      wait(500)
      MoveMouseSmooth(562,624)
      wait(500)
      MoveMouseSmooth(726,641)
      wait(1000)
      ClickMouse(726,641, True)
      wait(120000 + Random(100))
      MoveMouseSmooth(833,190)
      ClickMouse(833,190, True)
      Wait(random(1000))
      MoveMouseSmooth(911,96)
      ClickMouse(911,96, True)
      wait(4000 + Random(100))
      MoveMouseSmooth(615,648)
      ClickMouse(615,648, True)
      Wait(Random(200))
      MoveMouseSmooth(666,647)
      ClickMouse(666,647, True)
      wait(Random(200))
      MoveMouseSmooth(716,646)
      ClickMouse(716,646, True)
      wait(Random(200))
      MoveMouseSmooth(642,691)
      ClickMouse(642,691, True)
      MoveMouseSmooth(699,699)
      ClickMouse(699,699, True)
      wait(2580000 + Random(200))
      MoveMouseSmooth(287,237)
      ClickMouse(287,237, False)
      wait(random(300))
      MoveMouseSmooth(388,325)
      wait(random(100))
      MoveMouseSmooth(643,327)
      wait(random(100))
      MoveMouseSmooth(863,376)
      ClickMouse(863,376, True)
      Wait(120000 + Random(100))
      MoveMouseSmooth(121,693)
      HoldMouse(123,691, True)
      MovemouseSmooth(119,512)
      wait(random(100))
      releasemouse(119,512)
    End;
    
    begin
     repeat
       Miner1;
     Until(false)
    end.

  2. #2
    Join Date
    Mar 2007
    Location
    Players[-1].Loc
    Posts
    962
    Mentioned
    4 Post(s)
    Quoted
    5 Post(s)

    Default

    releasemouse(119,512, true);

    Also, add semicolons to all the lines except for begins and repeats (in this case). I'd also recommend looking up a couple standards tutorials


    Edit: This should probably go in here.

  3. #3
    Join Date
    Mar 2007
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    this is a non-srl script for a game called eve online, i broke down all those mouse movements into separate procedures and it seems to work. i guess it was too many commands for 1 procedure. ty for the help

  4. #4
    Join Date
    Mar 2007
    Location
    Players[-1].Loc
    Posts
    962
    Mentioned
    4 Post(s)
    Quoted
    5 Post(s)

    Default

    No it's not that, you literally just forgot a parameter (and thus had an invalid amount of them)

  5. #5
    Join Date
    Jan 2007
    Location
    BC, Canada
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Post

    Ive wrote a Eve Miner as well i havent used it in a while but you might find some of the procedures useful.

    ps. when i wrote it i used no standard settings so the bitmaps arent going to work unless you use the same settings i had which im not even going to try and remember.

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

    Default

    Nice work, although, you should really read some tuts on
    Mouse and MMouse they are they only safe mouse moving procedures for beginners.
    ~Hermen

  7. #7
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by Hermen View Post
    Nice work, although, you should really read some tuts on
    Mouse and MMouse they are they only safe mouse moving procedures for beginners.
    Not For RS, therefore 'safe' procedures arent needed. These procedures can be used, just not for Runescape.
    Jus' Lurkin'

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

    Default

    Yes. But at his level he can't be spammed with everything and what I posted was all he needed to know.
    ~Hermen

  9. #9
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    He could also write his own Mouse and MMouse. I think that there's a tutorial out on that somewhere. Maybe I should read it and try my hand at it.

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. TPA looping and error - help :S
    By Lance in forum OSR Help
    Replies: 13
    Last Post: 02-18-2009, 09:08 PM
  2. looping problems
    By sink998 in forum OSR Help
    Replies: 6
    Last Post: 09-14-2008, 01:52 AM
  3. Looping for overnight run?
    By Petabanana in forum OSR Help
    Replies: 1
    Last Post: 03-03-2008, 03:21 AM
  4. Why does the response keep on looping?
    By Psychor in forum OSR Help
    Replies: 0
    Last Post: 11-12-2007, 05:10 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
  •