Ok, welcome guys.. this is more like my 5th 1st script. Lol. Anyways, my script is very bad, and I was looking for some feedback, and help on it =D. I won't even make you download cause it's so bad. Here it is... I don't understand how to implement the function that checks if the inventory is full(InvFull: boolean). Any way, here it is. I will add on to it as I learn more.
###########DON'T USE ON MAINS OR ANY ACCS OF IMPORTANCE##############
###########WILL GET BANNED################
SCAR Code:
program New;
{.include SRL/SRL.scar}
//I will soon be adding a dtm of a regular, oak, and willow log =D. Antiban also coming after that.
//I have been reading some good tuts =D
//Credits: skilld u,
var
x,y: Integer;
const
TreeColor = 3760253;//Array coming soon
procedure LookForTree;
begin
if(FindColor(x,y,TreeColor,MSX1,MSY1,MSX2,MSY2))then
begin
MMouse(x,y,3,3);
Wait(565+random(521));
if IsUpText('hop') then
begin
Mouse(x,y,3,3,true);
Writeln('Did find tree');
end;
end else
Writeln('Did not find tree');
end;
procedure EmptyLoad;
begin
if(InvFull)then//Thats all you need
begin
DropAll; // you could make a dtm of the log
end else // if FindDTM(Log, x, y, MIX1, MIY1, MIX2, MIY2) then
end; //Mouse(x,y,3,3,false
//ChooseOption('rop');
procedure MainLoop;
begin
SetupSRL;
LookForTree;
EmptyLoad;
end;
begin
repeat
MainLoop;
until(false);
end.
******Updated thanks to :skilld u . I will be adding dtms for the willow logs, and make the woodcutting more accurate =D*******
Remember, I would like a lot of feedback. I'm going to bed, and I will read up some tuts on how to add fail safes, antiban procedures, player arrays, and WALKING!! Maybe some day this script will be able to get me to become a SRL Member... =D You never know... Remember, please no flamin, I'm a scripting noob, but I'm gonna change that real quick, all negative feedback is feedback so yea, also, when you recommend the changes, explain why.