SRL Archive - Other Scripts

King of Buttons V2


Hobbit

2006-12-28 01:32:58

Works perfect..more features..and more organized:D

Edit: At start of script give it time to begin sometimes it takes a few seconds

wickedboy141

2006-12-29 12:43:11

nice script

botmaster

2006-12-29 17:34:05

Line 27: [Error] (17837:1): Duplicate identifier '' in script …\King of buttons V2.scar
Err0r. I think u use a duplicate identifier from the SRL include.

EDIT: Removed my button script. It sucked anyways.

Hobbit

2006-12-29 21:27:50

Fine RUIN MY FUN!!! I like substituting const…makes scripting funner…it works perfectly fine for me…but jsut for you I re-wrote the script.

And for the record the highscores name typer works fine…its the game that doesn't work :D

//Made by Hobbit
//Thnx to Wool his version gave me a lil' help for v2
//==Set-up==
//Go to [url]http://www.addictinggames.com/kingofbuttons.html[/url]
//Then click the endurance option
//Begin at the play screen...Do NOT press play the script does that for you
//Silent Mouse MUST be OFF!
//Set line 38 and 77 (If you See a * it means don't touch)
//MAKE SURE TO READ REPORT AT END
//******************************************************************************
//*****************************COMING SOON**************************************
//**************Soon I will make a Script for King of Buttons 2*****************
//**The guy thought he was smart by making you press SpaceBar instead of click**
//*******************Lucky for me SCAR can press SpcaceBar...*******************
//******************************************************************************
program KingOfButtonsV2;
{.include SRL/SRL.scar}

//----------------------------------------------------------------------------//
var //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||//
click : integer; //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||//
//----------------------------------------------------------------------------//
const //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||//
//----------------------------------------------------------------------------//
// Time*
//----------------------------------------------------------------------------//
wait_time=1;//in milliseconds
//----------------------------------------------------------------------------//
// Amount of clicks
//----------------------------------------------------------------------------//
amount=400; //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||//

//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\Begin/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

procedure Gametype;
begin
HoldMouse(123,217,true);
Wait(wait_time);
ReleaseMouse(123,217,true);
end;

//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

procedure Play;
begin
HoldMouse(173,201,true);
Wait(wait_time);
ReleaseMouse(173,201,true);
end;

//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

procedure Clicking;
begin
HoldMouse(275,247,true);
Wait(wait_time);
ReleaseMouse(275,247,true);
click:= click + 1
end;

//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

procedure Typing;
begin
HoldMouse(309,370,true);
Wait(300);
ReleaseMouse(309,370,true);
Wait(150)
SendKeys('Name');//The name you want for Highscores
Wait(100)
end;

//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

procedure Submit;
begin
HoldMouse(477,370,true);
Wait(500);
ReleaseMouse(477,370,true);
end;

//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

procedure Report;
begin
Writeln('Thank You for useing Hobbit''s King of Buttons V2 Script');
Writeln('You have clicked the Button '+IntToStr(click)+' times');
Writeln('If Highscores worked you would have entered yours...');
Writeln('I guess I wasted my time making it type it in...');
Writeln('...Since the highscores on the game don''t even work');
Writeln('Oh well..it works in the second game');
Writeln('These pointless comments are fun...');
end;

//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

begin
setupsrl;
Gametype;
Play;
Typing;
repeat
Clicking;
until(click=amount)
Wait(500)
Submit;
Report;
end.

botmaster

2006-12-30 10:44:08

Soz… I'll take my script off then :)

BTW, your script works great now! This thing is awesome!!!

Hobbit

2006-12-30 20:40:24

lol I was only joking…but it does make it funner for me…takes longer but its funner…anyway thanks I thought it was kinda dumb….but im proud of it