View Full Version : Method to detect if inv = full?
Majnoon
03-26-2012, 07:56 AM
Hi,
I was using Tehq's AutoHeater and it has a really annoying bug that sometimes will only withdraw iron and heat them, making you lose allot of money.
So i decided to make one myself, and i came across the same bugg.
I want to make a method that will check, if iron and coal have been withdrawn, or make something that will check if the inventory is full after iron has been withdrawn.
So how would i start to make something like that?
Thanks for the help!
Why not use the function InvFull already present in SRL?
It return true if the inventory is full, and false if it isn't.
while not InvFull do wait(10) ?
use control+spacebar to see inbuilt srl includes
Sirenia
03-26-2012, 08:17 AM
Make DTM's or bitmaps to detect items in ur bags
if FindDTM(Iron, X, Y, MIX1, MIY1, MIX2, MIY2) and FindDTM(Coal, X, Y, MIX1, MIY1, MIX2, MIY2) and (InvFull) then
begin
bla bla bla?
end;
m34tcode
03-26-2012, 08:40 AM
The inventory srl include has many usefull functions, including invbox, for finding stuff in specific slots, mouseItems, for lclicking inventory slots, and invfull, and invcount
cycrosism
03-26-2012, 09:11 AM
If InvFull then Writeln('Inventory is full');
Majnoon
03-26-2012, 10:11 AM
Il look in how to make dtm's
And try some of the responses, thanks
cause
03-26-2012, 10:25 PM
Just a note, I've found that InvFull will occasionally return false when it should return true (maybe 5% of the time), if I were you I'd definitely do as Sirenia has mentioned with doing an inv search for DTMs.
Sir Ducksworthy
03-26-2012, 10:44 PM
Theirs a DTM counter in my Super Heater, use that if you want
It allows you to count multiple item's in your inventory
Perfect for Accurate withdrawing etc counting how many coal and how many iron you have in the inventory before exiting the bank etc
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.