- Joined
- Jan 21, 2007
- Sythe Gold
- 0
- Messages
- 1,680
Question: It always clicks my lenderhosen hat instead of maple, sometimes click maple but only like half the time, how do I make it so it only goes to maples?
Code:
program ZetasMapleChop;
{.include SRL\SRL.scar}
{.include SRL\SRL\Skill\Woodcutting.SCAR}
const
Maple = 19058; //the color of the maple
Maple2 = 16760;
Maple3 = 9548;
Tol = 15;
RunDirection = 'S'; //the direction to run if in fight
LogsToChop = 50; //how many logs to chop)
procedure DeclarePlayers;
begin
HowManyPlayers := 1; //Number of players to use
NumberOfPlayers(HowManyPlayers); //Don't Touch
CurrentPlayer := 0; //Player to start with
Players[0].Name := 'Username'; //Players username
Players[0].Pass := 'Password'; //Players password
Players[0].Nick := 'Nickname'; //3-4 characters from players username(Lowercase and no spaces)
Players[0].Active := True; //Are you using this player?
end;
procedure ChopMaples;
var
ChopMark: Integer;
begin
repeat
if FindObjMulti('aple tree', Maple, Maple2, Maple3, Tol) then
begin
GetMousePos(X, Y);
Wait(500 + Random(102));
Mouse(X, Y, 1, 1, True);
MarkTime(ChopMark);
repeat
Wait(500 + Random(250));
FindNormalRandoms;
until(TimeFromMark(ChopMark) >= (10000 + Random(5000)));
end;
until(False);
end;
begin
ActivateClient;
SetUpSRL;
DeclarePlayers;
NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);
ChopMaples;
end.



