006786
2009-01-28 20:43:56
Hey, it's my first script.
Comment, suggestions, etc.
Comment, suggestions, etc.
{By: 006786
Thanks to CamoKyle for his Antiban/random procedures.
Enjoy, as this is my first script!}
Program Powerminer;
{.include srl/srl.scar}
Var x,y,LoadsDone : Integer;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := 'blankity';
Players[0].Pass := 'blankity';
Players[0].Nick := 'blank';
Players[0].Active := True;
{
Players[1].Name := 'blankity';
Players[1].Pass := 'blankity';
Players[1].Nick := 'blank';
Players[1].Active := True;
Players[2].Name := 'blankity';
Players[2].Pass := 'blankity';
Players[2].Nick := 'blank';
Players[2].Active := True;}
end;
procedure IfFight;
var Fight: integer;
begin
If (FindFight) Then
begin
RunAway('N', False, 1, 1000 + Random(500));
Inc(Fight);
end;
end;
procedure AntiRandoms;
begin
LampSkill := 'Mining';
FindNormalRandoms;
IfFight;
if FindDead then
NextPlayer(false);
end;
procedure AntiBan;
begin
case random(7) of
0 : MMouse(0, 0, 700, 500);
1 : Hoverskill('Mining', false);
2 : BoredHuman;
3 : RandomMovement;
4 : GameTab(RandomRange(1,8));
5 : PickupMouse;
end;
end;
procedure GetRidOf;
begin
if InvFull then
begin
DropAll;
Inc(LoadsDone);
WriteLN('/\/\/\Loads Done: ' + InttoStr(LoadsDone) +' /\/\/\');
end;
end;
Procedure MiningIron;
Begin
FindColorSpiralTolerance(x,y,1976644,0,0,517,339,20);
AntiBan;
Wait(2000+random(1000));
AntiRandoms;
MMouse(x,y,5,5);
if IsUpText('ine') then
Mouse(x,y,5,5,true);
if InvFull then
GetRidOf;
if (LoadsDone=10) then
NextPlayer(false);
end;
begin
SetupSRL;
ActivateClient;
DeclarePlayers;
LoginPlayer;
repeat
MiningIron;
until(AllPlayersInactive);
end.