The bonfire random:
Simba Code:
function DetectSpirit: String;
var
SpiritColors: TPointArray;
SpiritColorsSplit: T2DPointArray;
P: TPoint;
begin
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.16, 0.30);
if CountColorTolerance(4219032, MSX1, MSY1, MSX2, MSY2, 12) > 75 then
begin
WriteLn('Spirit detected');
if FindColorsTolerance(SpiritColors, 4219032, MSX1, MSY1, MSX2, MSY2, 12) then
begin
SortTPAFrom(SpiritColors, Point(MSCX, MSCY));
SpiritColorsSplit := SplitTPAEx(SpiritColors, 10, 20);
SortATPASize(SpiritColorsSplit, True);
P := MiddleTPA(SpiritColorsSplit[0]);
MMouse(P.X, P.Y, 2, 2);
if WaitUpTextMulti(['ollec', 'eward', 'ire s', 'irit'], 250) then
begin
ClickMouse2(1);
Result := 'Yes';
Wait(3000 + Random(3000));
end;
end;
end;
end;
You can use that, I made it :P
This is the loop I use while waiting until all logs have been used.
Simba Code:
repeat
Wait(200 + Random(400));
Antiban;
if DetectSpirit = 'Yes' then
begin
AddLogs;
end;
until not(FindDTM(Logs, X, Y, MIX1, MIY1, MIX2, MIY2)) or (TimeFromMark(e) > RandomRange(95000, 97500));
Basicly, if it will check if there is a spirit. If there is, it will click on it and loot. After that it will add logs again.
EDIT: after reading posts below.
Simba Code:
{ Failsafe when standing on a fire }
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.15, 1.20);
if CountColorTolerance(2067940, 244, 159, 276, 193, 16) > 30 then
{ Standing in a fire, moving }
begin;
MouseBox(211, 99, 318, 161, 1);
Wait(1200 + Random(800));
end;