SCAR Code:
{So here my first script it runs pretty well
only bugs so far is that sometimes it clicks somewhere else and doesn't drop all the ore
(ong thts not to bad)
ty tickyy I looked on to your miner for proggy help and antibans and more
____________________setup__________________________
1. set up declareplayers
2. set ore type in line 38
3. setup player by rock you want to mine
3. save
4. run
5. post proggies and any bugs
btw it posts proggies all the way though so only post them at the end ty
and enjoy :0
______________________________________________________}
program SimplePowerMiner;
{.Include SRL\SRL\Misc\SMART.SCAR}
{.include SRL\SRL.scar}
{.include SRL\SRL\skill\Mining.scar}
{agenda
0. fix DTMs
3. anti randoms
4. multi ores???
5. release it}
var
o, u, l, j, x, y, g, i, y, z, f, OreDTM, Drops, Mines, GemDrops, GemDTM: Integer;
const
NumOfPlayers = 1;
StartPlayer = 0;
WhichOre = rimmington_Iron;
WhichOre2 = rimmington_tin;//if only mining 1 ore then have the same ore for which ore and which ore2
procedure DeclarePlayers;//add more if needed
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True; // Use this account?
Players[0].Integers[1] := 1000; // How many Loads
{Players[1].Name := '';
Players[1].Pass := '';
Players[1].Nick := '';
Players[1].Active := True; // Use this account?
Players[1].Integers[1] := 1000; // How many Loads}
end;
procedure AntiBanz;//ty tickyy
begin
if(not LoggedIn)then Exit;
case Random(12) of
0: MMouse(Random(MSX2), Random(MSY2), 0, 0);
1: HoverSkill('random',false);
2: PickupMouse;
3: GameTab(1+Random(12));
4: SleepAndMoveMouse(400+Random(1500));
5: if Random(2) = 1 then MMouse(1, 338, 515, 165);
6: if Random(2) = 1 then MMouse(515, 1, 250, 503);
7: RandomMovement;
8..11: begin
case Random(3) of
0: begin
KeyDown(VK_RIGHT);
Wait(500+Random(2000));
KeyUp(VK_RIGHT);
end;
1: begin
KeyDown(VK_Left);
Wait(500+Random(2000));
KeyUp(VK_Left);
end;
2: begin
case Random(2) of
0: begin
KeyDown(VK_RIGHT);
Wait(500+Random(1400));
KeyUp(VK_RIGHT);
end;
1: begin
KeyDown(VK_Left);
Wait(500+Random(1400));
KeyUp(VK_Left);
Inc(z);
end;
end;
end;
end;
end;
end;
end;
procedure Setup;
begin
Disguise('TY for using jps powerminer');
ClearDebug;
SMARTSetupEx(149, False, True, False);
Wait(5000);
SetTargetDC(SmartGetDC);
repeat
Wait(100);
until(SmartGetColor(253, 233)<>1118604);
SetupSRL;
SetupMining;
end;
procedure Minethestuff;
begin
repeat
if FindObjRock(x, y, WhichOre)then
begin
Inc(u);
Disguise('Found primary rock... mining');
case Random(3) of
0, 2: begin
Mouse(x, y, 2, 2, False);
Wait(Random(100));
ChooseOption('Mine');//otherwise it may Examine
end;
1: Mouse(x, y, 2, 2, True);
end;
Wait(5000 + random(300));
end else
if(not(FindObjRock(x, y, WhichOre)))then
begin
if(FindObjRock(x, y, WhichOre2))then
begin
Inc(l);
Disguise('Found secondary rock... mining');
case Random(3) of
0, 2: begin
Mouse(x, y, 2, 2, False);
Wait(Random(100));
ChooseOption('Mine');//otherwise it may Examine
end;
1: Mouse(x, y, 2, 2, True);
end;
Wait(5000 + random(300));
Inc(Mines);
end;
end else
AntiBanz;
until(invfull)or(Mines = 30);
end;
procedure OreDropping;
begin
repeat
Disguise('dropping ores');
OreDTM := DTMFromString('78DA637463626078C28002FC0C54181E02694' +
'620FE0F048CEE40353718D000231209A403816AEE1350E30D54F3' +
'86801A7BA09A4F04D49800D53C26C29CEBF8D5000045B70DB0');
if(FindDTM(OreDTM, x, y, MIX1, MIY1, MIX2, MIY2))then
begin
Mouse(x, y, 2, 2, False);
Wait(random(200));
ChooseOption('Drop');
Wait(500 + Random(100))
Inc(Drops);
end;
until(not(FindDTM(OreDTM, x, y, MIX1, MIY1, MIX2, MIY2))or(Drops = 29));
end;
procedure GemDroping;
begin
repeat
Disguise('dropping gems');
GemDTM := DTMFromString('78DA8DD2510E82300C06E06E814C144C500E0' +
'3461F603199E869B83127C17F3324F3616BFBB026DB97656BAB46' +
'4D6414C5715E2EB422FBDD0DA15E30EADFFC4EF71579862918F38' +
'6A904C630E603734A9BC2670BD3A54DE9F324307DFE5FC10C304D' +
'DA1CF67B8E02A31933E47B11CC4347D54A182B30BE3E1BE58D13B' +
'C87998D60EE3057C6DC605A410D6BC68CF9BE7782F909E629308E' +
'375FE5310F20');
if(findDTM(GemDTM, x, y, MIX1, MIY1, MIX2, MIY2))then
begin
Mouse(x, y, 2, 2, False);
Wait(random(200));
ChooseOption('Drop');
Wait(500 + random(100));
Inc(GemDrops);
Inc(f);
end;
until(not(FindDTM(GemDTM, x, y, MIX1, MIY1, MIX2, MIY2))or(GemDrops = 5));//dont think your gonna get more than 1 a tie but just incase
end;
procedure Proggy;
begin
WriteLn(' _____ ______');
WriteLn(' | || \');
WriteLn(' | || |');
WriteLn(' | || ___/');
WriteLn('/_____/ |__ | ');
WriteLn('Player '+ Players[CurrentPlayer].Name);
WriteLn('loads done '+ IntToStr(g));
WriteLn('primary ores mined ' + IntToStr(u));
WriteLn('secondary ores mined ' + IntToStr(l));
WriteLn('gems dropped ' + IntToStr(f));
WriteLn('post the proggy or no more updates!!!!!!!!!!!!!!');
end;
procedure SkillCheck;
begin
Disguise('checking stats')
HoverSkill('mining', False);
Wait(500+Random(300));
end;
procedure Freeeverything;
begin
FreeDTM(OreDTM);
FreeDTM(GemDTM);
end;
begin
Setup;
DeclarePlayers;
GraphicsSet := true;
LoginPlayer;
repeat
Drops:=0;
Mines:=0;
GemDrops:=0;
ClearDebug;
Proggy;
SkillCheck;
MineTheStuff;
OreDropping;
Gemdroping;
Inc(g);
until(g = (Players[CurrentPlayer].Integers[1]))or(not LoggedIn);
NextPlayer(Players[CurrentPlayer].Active);
FreeEverything;
end.
{rimmington_Clay
rimmington_Copper
rimmington_Tin
rimmington_Iron
rimmington_Gold
old_Clay
old_Copper
old_Tin
old_Iron
old_Coal
old_Mithril
old_Adamant
varrock_Clay
varrock_Copper
varrock_Tin
varrock_Iron
varrock_Silver
lumbridge_Copper
lumbridge_Tin
lumbridge_Coal
lumbridge_Mithril
lumbridge_Adamant
falador_Clay
falador_Copper
falador_Tin
falador_Iron
falador_Coal
falador_Mithril
falador_Adamant}