xDutch
2012-07-10 12:50:15
I was lil' bored so I tought about make a Squeel Of Fortune script, But I dont know how to stop for # amount of Spins ?
That the User have to type in the const.
Took me about 5 mins.. HF with this :D
Non tested but with loads :
That the User have to type in the const.
Took me about 5 mins.. HF with this :D
program SqueelOfFortune;
//{$define SMART}
{$i srl/srl.simba}
{$DEFINE SRL5}
var x, y, SquealDTM, Spins, SpinsDone :integer;
const
Member = False; // CHANGE THIS ELSE IT WILL FAIL!!@@@@@@@@@@@@@@@@
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Pin := ''; // Bank Pin. Leave it if you don't have one.
Players[0].Active := True;
end;
Procedure FindSqueel;
begin
SquealDTM := DTMFromString('mbQAAAHicY2VgYNjOzMCwEIirgLgSiBuB2JiRgUELiGWB2BCIrYH4/1kXhku1MQyLrxcyfPz0iSHA2Z2BH6gfHTNiwWAAAHx8DXE=');
//If FindDTM(SquealDTM,X,Y,MSX1,MSY1,MSX2,MSY2) Then
repeat
MMouse(538, 473, 6, 6);
DebugLn('Find tha button.');
ClickMouse2(Mouse_Left);
wait(500);
MMouse(639, 316, 6, 6);
ClickMouse2(Mouse_Left);
wait(1500);
MMouse(658, 360, 6, 6);
ClickMouse2(Mouse_Left);
Wait(10000);
MMouse(532, 222, 6, 6);
ClickMouse2(Mouse_Left);
Wait(5000);
if Not Member = True then
begin
MMouse(535, 327, 6, 6);
ClickMouse2(Mouse_Left);
Spins := Spins + 1;
end;
if Member = True then
begin
MMouse(512, 298, 6, 6);
ClickMouse2(Mouse_Left);
Spins := Spins + 1;
end;
FreeDTM(SquealDTM);
Until SpinsDone = Spins
end;
Procedure Progress;
begin
Writeln('*Spins Preformed: ' + IntToStr(Spins));
end;
begin
Smart_Server := 16;
Smart_Members := False;
Smart_Signed := False;
Smart_SuperDetail := False;
SetUpSRL;
if Not LoggedIn then
LogInPlayer;
If LoggedIn then
repeat
FindSqueel;
Progress;
until(AllPlayersInactive);
end.Non tested but with loads :
program SqueelOfFortune;
//{$define SMART}
{$i srl/srl.simba}
{$DEFINE SRL5}
var x, y, SquealDTM, Spins, SpinsDone :integer;
const
Member = False;
SpinsToDo = 2;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Pin := ''; // Bank Pin. Leave it if you don't have one.
Players[0].Active := True;
end;
Procedure FindSqueel;
begin
SquealDTM := DTMFromString('mbQAAAHicY2VgYNjOzMCwEIirgLgSiBuB2JiRgUELiGWB2BCIrYH4/1kXhku1MQyLrxcyfPz0iSHA2Z2BH6gfHTNiwWAAAHx8DXE=');
//If FindDTM(SquealDTM,X,Y,MSX1,MSY1,MSX2,MSY2) Then
repeat
MMouse(538, 473, 6, 6);
DebugLn('Find tha button.');
ClickMouse2(Mouse_Left);
wait(500);
MMouse(639, 316, 6, 6);
ClickMouse2(Mouse_Left);
wait(1500);
MMouse(658, 360, 6, 6);
ClickMouse2(Mouse_Left);
Wait(10000);
MMouse(532, 222, 6, 6);
ClickMouse2(Mouse_Left);
Wait(5000);
if Not Member = True then
begin
MMouse(535, 327, 6, 6);
ClickMouse2(Mouse_Left);
Spins := Spins + 1;
end;
if Member = True then
begin
MMouse(512, 298, 6, 6);
ClickMouse2(Mouse_Left);
Spins := Spins + 1;
end;
FreeDTM(SquealDTM);
until (Spins = SpinsToDo)
end;
Procedure Progress;
begin
Writeln('*Spins Preformed: ' + IntToStr(Spins));
end;
begin
Smart_Server := 16;
Smart_Members := False;
Smart_Signed := False;
Smart_SuperDetail := False;
SetUpSRL;
If LoggedIn then
repeat
FindSqueel;
Progress;
until(AllPlayersInactive);
end.