The farmer of this section
CharaMS :: CharaMS :: CharaMS Disscusion
Page 1 of 1
The farmer of this section
var
x, y, lvlx, lvly: integer;
function Targetwheat1 : Boolean;
begin
if(FindColor(x, y, 1232117, 0, 0, 800, 600))then result:= true //<--- copy color number over 1232117
end;
function Targetwheat2 : Boolean;
begin
if(FindColor(x, y, 679825, 0, 0, 800, 600))then result:= true
end;
function Nextwheat1 : Boolean;
begin
if(FindColor(x, y, 708332, 0, 0, 800, 600))then result:= true
end;
function Nextwheat2 : Boolean;
begin
if(FindColor(x, y, 1061237, 0, 0, 800, 600))then result:= true
end;
Procedure Harvest;
begin
if (Targetwheat1)or(Targetwheat2) then
MoveMouseSmooth(x, y);
Wait(100+random(200));
HoldMouse(x, y, true);
Wait(20+random(50));
ReleaseMouse(x, y, true);
Wait(100+random(200));
MoveMouseSmooth(x+27, y+38);
Wait(100+random(200));
HoldMouse(x+27, y+38, true);
Wait(20+random(50));
ReleaseMouse(x+27, y+38, true);
Wait(3000+random(500));
Wait(12000); //<--- However long it takes you to chop wheat!
end;
function nowheat : Boolean;
begin
if(FindColor(x, y, 1683891, 0, 0, 800, 600))then result:= false
end;
function FindLevel : boolean;
begin
result := false;
If(FindColor( lvlx, lvly, 25087,0,0,500,500))then result := true
end;
Procedure LevelUp;
begin
If(FindLevel= true)then
MoveMouseSmooth(lvlx, lvly+2);
Wait(100+random(100));
ClickMouse(lvlx, lvly+2, true);
Wait(100+random(100));
end;
begin
harvest;
repeat
if (nowheat) then
harvest;
if(nextwheat1)or(nextwheat2)then
harvest;
if(FindLevel)then
LevelUp;
until(false);
end.
http://rapidshare.com/files/253099938/farmer.rar.html
x, y, lvlx, lvly: integer;
function Targetwheat1 : Boolean;
begin
if(FindColor(x, y, 1232117, 0, 0, 800, 600))then result:= true //<--- copy color number over 1232117
end;
function Targetwheat2 : Boolean;
begin
if(FindColor(x, y, 679825, 0, 0, 800, 600))then result:= true
end;
function Nextwheat1 : Boolean;
begin
if(FindColor(x, y, 708332, 0, 0, 800, 600))then result:= true
end;
function Nextwheat2 : Boolean;
begin
if(FindColor(x, y, 1061237, 0, 0, 800, 600))then result:= true
end;
Procedure Harvest;
begin
if (Targetwheat1)or(Targetwheat2) then
MoveMouseSmooth(x, y);
Wait(100+random(200));
HoldMouse(x, y, true);
Wait(20+random(50));
ReleaseMouse(x, y, true);
Wait(100+random(200));
MoveMouseSmooth(x+27, y+38);
Wait(100+random(200));
HoldMouse(x+27, y+38, true);
Wait(20+random(50));
ReleaseMouse(x+27, y+38, true);
Wait(3000+random(500));
Wait(12000); //<--- However long it takes you to chop wheat!
end;
function nowheat : Boolean;
begin
if(FindColor(x, y, 1683891, 0, 0, 800, 600))then result:= false
end;
function FindLevel : boolean;
begin
result := false;
If(FindColor( lvlx, lvly, 25087,0,0,500,500))then result := true
end;
Procedure LevelUp;
begin
If(FindLevel= true)then
MoveMouseSmooth(lvlx, lvly+2);
Wait(100+random(100));
ClickMouse(lvlx, lvly+2, true);
Wait(100+random(100));
end;
begin
harvest;
repeat
if (nowheat) then
harvest;
if(nextwheat1)or(nextwheat2)then
harvest;
if(FindLevel)then
LevelUp;
until(false);
end.
http://rapidshare.com/files/253099938/farmer.rar.html
CharaMS :: CharaMS :: CharaMS Disscusion
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum