SCAR Code:
//////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
// THE NOOBIEST //
// POWERMINER //
// BY RKROXPUNK //
// //
////////////////////////////////////////////////////
///////////////////////////////////////////////////
program PowerMiner;
{.include SRL/SRL.scar}
{.include srl\srl\skill\Mining.scar}
////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
// LOGIN AND SETUP //
/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
const StartPlayer = 0;
VersionNumber = '2';
OreeColor = 4484245;//put the colour of the ore you want to mine here
WaitTime = 7000;//how long before it clicks again
Procedure DeclarePlayers;
begin
HowManyPlayers :=1; // Set Number of Players here.
NumberOfPlayers(HowManyPlayers); // Sets the Players Array Length;
CurrentPlayer:=StartPlayer;
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Loc :='Loc1';
Players[0].Skill:='Mining';
Players[0].Active:=True;
writeln(inttostr(HowManyPlayers)+' Players');
end;
////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
// RANDOMS AND ANTIBAN //
/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
// MINEING AND DROPPING //
/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
Function FindOre: Boolean;
begin
if FindColorSpiral(x, y, OreeColor, 0, 0, 515, 336)then
begin
Result := True;
Status('Found Ore :D');
end else
Status('Did not find Ore :(');
wait(5+random(5));
end;
Function MouseToOre: Boolean;
begin
repeat
if (FindOre) then
begin
MMouse(x, y, 0, 0);
Result := True;
Wait(20+random(150));
Exit;
end;
until(false)
end;
procedure ClickRock;
begin
if (MouseToOre = true) then
begin
Mouse(x, y, 0, 0, True)
Wait(WaitTime+random(100));
end;
end;
procedure Drop;
begin
if(InvFull)then
DropTo(2,28);
end;
////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
// MAIN LOOP //
/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
begin
SetupSRL;
SetupSRLMining;
begin
LoadMiningBitMaps;
PickUpItems := False;
end;
DeclarePlayers;
LoginPlayer;
repeat
FindOre;
MouseToOre;
ClickRock;
GasColors(x,y);
GasFound(x,y);
Drop;
until(false);
end.