So I'm creating my first little bot, and I decided to use the easiest skill. Firemaking
So I'm using just using bitmaps to click the logs, then move on to the tinderbox. That works fine. Then I use a repeat to check if the text "he fire" appears in the chatbox coords, which works fine, up until I already light one. Then it'll find it again the next go around, and keep using the tinderbox with the logs, because it see's the firemaking text from the last log it burned.
I tried thinking of a way to circumvent, but I don't have any foolproof ideas unless I use a counter of how many times it's in the chatbox. And I don't know how to do that D:
Here's the repeat portion of the procedure,
Simba Code:repeat
if(FindBitmap(Logs, x, y)) then
Mouse(x, y, 4, 4, true);
wait(Random(500));
if(FindBitmap(Tindy, x, y)) then
Mouse(x, y, 3, 3, true);
repeat
begin
if(FindText(xi, yi, 'he fire', SmallChars, MCX1, MCY1, MCX2, MCY2))then
begin
break;
end else
begin
Wait(Random(1000));
end;
end;
until
i > 1000;
until
InvCount = 2;




Reply With Quote






Goodluck to you sir!








