PDA

View Full Version : Curve Ball



EvilmanK
01-15-2012, 09:30 AM
Yay! First script time! This script is for: CURVE BALL! (http://www.addictinggames.com/sports-games/curveball.jsp)
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]
01-15-2012, 08:40 PM
Great Job, I love this game!

Mat
01-15-2012, 10:19 PM
Lol epic game nice script to play it aswell :)
Mat

EvilmanK
01-16-2012, 08:23 AM
Glad you guys liked it ^_^

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

loser69
01-16-2012, 09:04 AM
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
01-16-2012, 09:26 AM
Cool script! I love this game too haha, ill check it out later.

bg5
01-17-2012, 12:02 AM
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
01-17-2012, 01:00 AM
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
01-18-2012, 01:26 AM
Haha that was fun watching :) I went up to 8.
Good Job.

Spartan 117
01-20-2012, 09:17 PM
I love this game! great practice for first script!

DeiJaiVui
01-22-2012, 11:30 AM
Great game, level 7. :)

Damn
01-31-2012, 04:18 AM
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
05-26-2012, 07:03 AM
wow nice, absolutely flawless to level 9 then it died a few times with corner ball after few awfully long exchanges

Hadley
05-26-2012, 07:44 AM
my reflexes aren't fast enough for lvl 8 :whistling: