Log in

View Full Version : how to find the number in a bit map tolerance string



The Cat
06-10-2012, 01:53 AM
Procedure Wcoins;

Begin

if Not FindBitMapTolerancein(coins, X, Y, MSX1, MSY1, MSX2, MSY2, random number that i need)

(need help finding the number that would go after MSY2 the method would be much appreciated)

then
Begin
WriteLn('your Broke , Terminating Script'); Logout;
TerminateScript();
End;

If FindBitMapTolerancein(coins, X, Y, MSX1, MSY1, MSX2, MSY2, random number that i need)


then
Begin
MMouse(X, Y, 4, 4);
ClickMouse2(False);
ChooseOption('Withdraw-2.7b');
End;
End;

Runaway
06-10-2012, 01:59 AM
Tolerance is a number you choose. The higher it is, the more will be accepted by the function. For example, a tolerance of 0 means that the bitmap must match something on the screen exactly as it is, or FindBitmapToleranceIn will not find it. If you have a tolerance of 10, the on-screen image you're trying to find can have some discrepancies compared to the bitmap, but FindBitmapToleranceIn can still find it. If you set the tolerance too high, you could risk finding images you don't intend to find, so be careful. Toy with it, test different tolerances out. I suggest you start with 5 or somewhere around there.

The Cat
06-10-2012, 02:24 AM
ha ha i've got you now. lets say that i know how to make a bit map and i've got the tolerance set well

is there some kind of co-ord table for bank slots and rows inventory slots ect cause id realy hate the daunting prospect of it

The Cat
06-10-2012, 02:27 AM
currently reading Naum's tut but i think lots of it is out dated but im picking up a nice amount of info from it (theory )

riwu
06-10-2012, 02:33 AM
Explore the srl includes.
Are u referring to MouseBankSlot and InvBox?
But if u r using bitmap, u shd probably search the whole bank interference/inv so that the items can be anywhere. Use MIX1,MIY1,MIX2,MIY2 for the inventory and MBX1 and so go for the bank.

The Cat
06-10-2012, 03:32 AM
thank you both for taking the time to try and help

if not for both of you telling me your ideas i would have struggled with it cheers and know that i will be making 99 crafting within the month!