SRL Archive - Non-RuneScape Scripts

Curve Ball


EvilmanK

2012-01-15 04:30:11

Yay! First script time! This script is for: CURVE BALL!
Here's the code:

program CurveBall;



procedure PlayPong;
var
x,y: integer;
begin
if
FindColorSpiralTolerance(x, y, 15728626, 47, 52, 612, 428, 0)
then
//above finds the color of the ball to find coords to move mouse to
begin
MoveMouse(x, y);
ClickMouse(x, y, 1);
end;
end;

begin
MoveMouse(333, 223); //move mouse to the "start game" button
ClickMouse(333, 223, 1); //click "start game"
wait(2000); //waits 2 seconds to account for "level one"
repeat
PlayPong;
until(IsKeyDown(VK_DOWN));
end.
Or, you can find it in the .simba attached below!

Press the down arrow on your keyboard to stop the script. Thanks to Kyle Undefined for that :)

[XoL]

2012-01-15 15:40:54

Great Job, I love this game!

Mat

2012-01-15 17:19:15

Lol epic game nice script to play it aswell :)
Mat

EvilmanK

2012-01-16 03:23:36

Glad you guys liked it ^_^

What level did you guys get up to? I kind of stalled out at level 10.

loser69

2012-01-16 04:04:50

Awesome used to play this game all the time only managed up to level 9 though eyes were getting so dizzy no way I could have kept up lol.

Korbin

2012-01-16 04:26:12

Cool script! I love this game too haha, ill check it out later.

bg5

2012-01-16 19:02:39

Haha cool idea ,I like this game. It failed first time at lvl 8 and died on lvl 9.

edit: I added line MouseSpeed:= 1; I can't pass lvl 9 i think opponent is cheating.

EvilmanK

2012-01-16 20:00:02

Hahahaha. So I was experimenting with tolerance levels to try and get more curves in there. I picked a tolerance of 10 but I ended up losing at level 9.

P1nky

2012-01-17 20:26:29

Haha that was fun watching :) I went up to 8.
Good Job.

Spartan 117

2012-01-20 16:17:36

I love this game! great practice for first script!

DeiJaiVui

2012-01-22 06:30:29

Great game, level 7. :)

Damn

2012-01-30 23:18:18

I love this game! I get the most enjoyment out of these kinds of scripts. Took me a few minutes to set up (I played it at a different site, different sized applet, also I use my mouse left-handed) but once I did I lol'd at how long it stays alive on level 9.

zmon

2012-05-26 03:03:05

wow nice, absolutely flawless to level 9 then it died a few times with corner ball after few awfully long exchanges

Hadley

2012-05-26 03:44:13

my reflexes aren't fast enough for lvl 8 :whistling: