SRL Archive - Other Scripts

Help with looping


ttocszed

2008-12-10 03:26:01

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

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.

Widget

2008-12-10 03:39:42

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.

ttocszed

2008-12-10 13:04:41

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 :)

Widget

2008-12-10 18:19:19

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

fORCE_wORKS

2009-05-19 00:35:45

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.

ShowerThoughts

2009-05-19 00:37:20

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

Torrent of Flame

2009-05-19 00:40:43

From: Hermen
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.

ShowerThoughts

2009-05-19 00:44:31

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

Tniffoc

2009-05-19 07:17:04

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.