What is wrong in my script? Something wrong with Load/Free bitmaps?
What is wrong in my script? Something wrong with Load/Free bitmaps?

Well first, I reccomend you using DTM's instead of bitmaps.
They are SO simple, and take SO much less memory.
The Bitmaps take SO much memory and are harder to make, I TOTALLY reccomend DTM's b4 bitmaps.
SCAR Code:repeat
Chop;
LoadBitmaps;
repeat
Burn;
if IsBlackText('ou can', 8) then avoidfire;
until(not(FindBitmaptolerancein(log, x, y, MIX1, MIY1, MIX2, MIY2, 30)));
What i suggest you do is minimize the area it looks for the bitmap in...
heres some pseudocode for you
SCAR Code:function hasLogs : Boolean;
for i = 1 to 28 do
begin
if isEmpty(i) then break;
result := findbitmaptolerancein(InventoryBox(i))
end;
End;
because when you get a log it goes to the first spot in your inventory right? so once it finds an empty spot, you arn't full.
Edit: ooooh ur burning them... nvm. wait do this instead.
SCAR Code:function hasLogs : Boolean;
for i = 1 to 28 do
begin
if not isEmpty(i) then
result := findbitmaptolerancein(InventoryBox(i))
if result then break;
end;
End;
~ Metagen
ThankyouI fixed my script to use DTMs, and i think i add there your function too, metagen. Thanks alot!
There are currently 1 users browsing this thread. (0 members and 1 guests)