SRL Archive - RS3 Script Requests

Tree banker


Molgadan

2012-02-08 11:51:53

The price of logs are atm 300 each! thats the price yews used to be!

I'm thinking of a script that chops around varrock bank and banks the logs if needed i got a start to the script (it finds the trees / cuts them), but i don't know how to bank them only know how to drop :(.

program TreeChopper;

{$i srl\srl.simba}




procedure statsguise(wat:string);
begin
Status(wat);
Disguise(wat);
End;

function Chopdown:Boolean;
Var
X, Y, Plusone, Treecounter: Integer;
begin
Plusone:= InvCount + 1;
X:=MSCX;
Y:=MSCY;
if FindObjTPA(X, Y, 2899791, 10, 1, 15, 60, 450, ['Cho']) then

begin
Writeln ('Hooray, We found a tree');
GetMousePos(X, Y);

Case Random(2) Of
0: Mouse(X, Y, 5, 5, True);
1: Begin
Mouse(X, Y, 2, 2, False);
WaitOption('Chop', 500);
end;
end;

flag;

Repeat
Marktime(TreeCounter);
wait(100);
if InvCount=Plusone Then
Writeln('We got one');
until (Invcount=Plusone) Or (TimeFromMark(TreeCounter) > 5000)

end;
end;


Made it through Yohojo's turtorial but getting strange errors if it is getting to the dropping part.

Anyone knows a guide to banking?

Thx

drawboy11

2012-02-08 12:02:57

You would be better off using ObjDTM for walking back to the bank as there is a lot of points possible. Also just use the invfull command to look for a full inventory, then if its full have it walk to the bank, then use the bank function, press control+ while typing to see the possible commands. Hope this helps :p

RyGuy

2012-02-08 12:29:00

Use Simba tags when posting code

Molgadan

2012-02-08 13:33:39

i'll give it a shot thx for the heads up

Striken

2012-02-08 19:41:35

This script is too easy. Would just bring gold farmers back……..