J J
2012-02-08 17:00:39
Hello everyone,
I've recently followed a couple videos of Yohojo and made my first two scripts by following the video for beginners. I wasn't quite ready for RuneScape scripts yet so I decided to make another flash game script.
I remembered this old game and decided to make a script for this. After reading some guides on Villavu I also figured out how bitmap works which comes in handy for RuneScape I guess.
The script is made for this Flash Game "Bloody Penguin Baseball"
http://www.methodshop.com/games/play/yeti/yeti1-blood.shtml
The script
Any suggestions for me to improve it, or is there any unnecessary code?
Greetz,
JJ.
I've recently followed a couple videos of Yohojo and made my first two scripts by following the video for beginners. I wasn't quite ready for RuneScape scripts yet so I decided to make another flash game script.
I remembered this old game and decided to make a script for this. After reading some guides on Villavu I also figured out how bitmap works which comes in handy for RuneScape I guess.
The script is made for this Flash Game "Bloody Penguin Baseball"
http://www.methodshop.com/games/play/yeti/yeti1-blood.shtml
The script
program BloodyPenguin;
procedure HitPenguin;
begin
MoveMouse(633, 374);
ClickMouse(633, 374, 1);
Wait(RandomRange(1240, 1280));
ClickMouse(633, 374, 1);
end;
procedure ClickOnOK;
var
okbox, x, y:Integer;
begin
okbox := BitmapFromString(16, 8, 'meJyNUMERwCAIy0QO4BgO4QJdRCf' +
'x5xRs0GFsTrhK73q2HA8MIQQhA8xQoJEARRrBCDntibxaJB/R6tQN' +
'93ySa37X0a70hXsys4616F7XivEREfBQ2/BJZuHd/vGjg97S5730w' +
'KCIH9n/J3XmIRfMTqGJ');
if (FindBitmapToleranceIn(okbox, X, Y, 0, 300, 720, 460, 15)) then
MoveMouse(x, y);
ClickMouse(x, y, 1);
FreeBitMap(okbox);
wait(2000);
end;
begin
ActivateClient;
HitPenguin;
Repeat
ClickOnOK;
HitPenguin;
until(false);
end.Any suggestions for me to improve it, or is there any unnecessary code?
Greetz,
JJ.