funnyman9292
2015-04-01 11:44:40
Hey all,
With the generous help of you folks and resources I made a simple powerminer. I had it run for an hour last night no problem, probably because the script is really simple. There's a few things I'm looking to add to it but I'm not sure how to go about it.
Want to add: Banking, Proggie, Walking (How do you identify tiles?, Antiban, Compass movement, and worldhop when it gets too busy.
Now you guys don't have to show me how to do all these things, but if you could kindly link me a few OSRS reflectrion scripts that could help me (so I can learn), would be appreciated.
Feedback is always appreciated, feel free to use it. Cheers!
With the generous help of you folks and resources I made a simple powerminer. I had it run for an hour last night no problem, probably because the script is really simple. There's a few things I'm looking to add to it but I'm not sure how to go about it.
Want to add: Banking, Proggie, Walking (How do you identify tiles?, Antiban, Compass movement, and worldhop when it gets too busy.
Now you guys don't have to show me how to do all these things, but if you could kindly link me a few OSRS reflectrion scripts that could help me (so I can learn), would be appreciated.
Feedback is always appreciated, feel free to use it. Cheers!
program LetsTryToMine;
{$DEFINE SMART}
{$DEFINE WALKER}
{$i AeroLib/AeroLib.Simba}
{$i Reflection/Reflection.simba}
var MyPlayer: TReflectLocalPlayer;
Oremined: Integer;
NumOfLoops: Integer;
procedure DeclarePlayers;
begin
MyPlayer.Username := 'Zezima';
MyPlayer.Password := 'WRATH OF THE GODS';
MyPlayer.Pin := '';
MyPlayer.Active := True;
MyPlayer.Login;
end;
procedure DropMyOre;
var
tempInt : Integer;
coppa : tstringArray;
//Want to add antiban and compass movement here
begin
coppa := ['Copper ore']; //Can't figure out how to only drop copper, ex. I get gems
Oremined+= reflect.Inv.Count();
reflect.Inv.DropAll();
Writeln('You have mined ' + IntToStr(Oremined) + ' Copper');
NumOfLoops+=1;
//reflect.KeyBoard.TypeSend('Mining is so boring',True);
end;
procedure FindCopperOre;
var
AllObjects: TReflectObjectArray;
OurObject: TReflectObject;
CoreLoc: Tpoint;
begin
AllObjects.GetAll(objGame, 20); //Loads all game objects within 20 tiles
AllObjects.Get(objGame, 'Rocks', 20);// Loads all 'Rock's within 20 tiles
while Reflect.Inv.IsFull() = false do
begin
if(OurObject.Find(objGame, random(14884,14886), 10)) then //Picks nearest copper ore randomly, this can be done because they all practically have same rock ID
begin
CoreLoc :=OurObject.GetMSPoint();
reflect.Mouse.Move(CoreLoc,5,5);
wait (random(100,300));
Reflect.Mouse.Click(1);
Myplayer.WaitForAnimation(100,2000);
if Myplayer.IsAnimating() then
Myplayer.WaitWhileAnimating(100,random(10000,20000)) //Put in b/c script was being impatient
end;
Writeln(reflect.Inv.Count());
end;
DropMyOre;
end;
begin
initAL();
Reflect.Setup;
DeclarePlayers;
repeat FindCopperOre;
until NumofLoops > 5; //Adjust # of loads
Myplayer.Logout();
end.