easyas4
2009-07-09 07:25:31
[PHP]program powerminer;
{.Include SRL\SRL.Scar}
const
Iron = 2371661
Loads = 2
Ironinv = 2239817
var
x, y
procedure LoadBmp;
begin
Drop := BitmapFromString(30, 16, 'beNpjYKApOLZjKjKiusmY7FGT' +
'sbIxBdEcgCum8JtMvEry2CPNZPyhijWy6JzXaFE+jJqMEwAAPWXui' +
'g==');
end;
procedure LocateOre;
begin
repeat
FindColorSpiral(x,y,Iron,3,3,514,337);
MoveMouseSmooth(x, y: Integer);
Wait(500+ random(250));
ClickMouse(X, Y, True);
until(false)
end;
procedure DropInv;
begin
Findcolors(x, y, Ironinv, 546, 206, 737, 466);
MoveMouseSmooth(x, y: Integer);
ClickMouse(x, y: Integer; Right: Boolean);
[/PHP]
So im making my first script and its going to be a power miner, and this is what i have so far, (if you see something wrong with it before where i stopped please tell me) i think i have figured it all out up until i need to get the mouse to find the bitmap i uploaded in the beginning. Also i dont know how to get the Procedure LocateOre to repeat until(false) so that it runs until the inv is full or give it a value of like 28 or 27 or w/e depending on if the pick is wielded.
{.Include SRL\SRL.Scar}
const
Iron = 2371661
Loads = 2
Ironinv = 2239817
var
x, y
procedure LoadBmp;
begin
Drop := BitmapFromString(30, 16, 'beNpjYKApOLZjKjKiusmY7FGT' +
'sbIxBdEcgCum8JtMvEry2CPNZPyhijWy6JzXaFE+jJqMEwAAPWXui' +
'g==');
end;
procedure LocateOre;
begin
repeat
FindColorSpiral(x,y,Iron,3,3,514,337);
MoveMouseSmooth(x, y: Integer);
Wait(500+ random(250));
ClickMouse(X, Y, True);
until(false)
end;
procedure DropInv;
begin
Findcolors(x, y, Ironinv, 546, 206, 737, 466);
MoveMouseSmooth(x, y: Integer);
ClickMouse(x, y: Integer; Right: Boolean);
[/PHP]
So im making my first script and its going to be a power miner, and this is what i have so far, (if you see something wrong with it before where i stopped please tell me) i think i have figured it all out up until i need to get the mouse to find the bitmap i uploaded in the beginning. Also i dont know how to get the Procedure LocateOre to repeat until(false) so that it runs until the inv is full or give it a value of like 28 or 27 or w/e depending on if the pick is wielded.