SRL Archive - Help

Bitmap Problem


Deadly Serious

2012-01-10 20:32:01

This procedure isn't able to detect the normal essence and I don't know why. I've set up the bitmap properly, I'm pretty sure.
Any help would be greatly appreciated.


Procedure WithdrawEss;
var
ess, x, y:integer;

begin
if not loggedin then
begin
exit;
end;
FindNormalRandoms;
Antiban;
DidRedClick;
begin
SetAngle(True);
If (FindObjCustom(x,y,['Bank','nk','booth','oot'], [5662832, 5927290, 6323335, 6584191], 2)) Then
begin
MMouse(X, Y, 5, 5);
ClickMouse2(False);

Wait(300+random(250));
ChooseOption('Use-quickly');
Wait(2500+random(500));

Ess := BitmapFromString(32, 32, 'meJzVlm1LImEUhsWf0EJBEWtRRL' +
'FhWCFIixjSy0ZbIdVuhYiIuL0Xsb9/L7jrcPZ5Zsax+lDD/Un0urz' +
'PecaxUPgoVzHKezHb7W6n0+t2+73eoN+/HAyu/1zeXl3fv8WyWt/m' +
's2dn7YuLjviBQpab28dXWPSR45Pfp7/OvQK+FIoVubt7yq/gnQcHr' +
'aOjY/G9wheRyBQUeXj4m2cmP/Z+it9qnXqFLCYiwUY0q+xvvrW16/' +
'lSKLGI2FKGKvTlja9gMZG5vEguWSiCAkiptJIIr9c34e/s7KHY3z9' +
'UvCijlCymAJjIbza34StYYlFGKSxeEVzr61XxqaAEojylTKG7L+Y3' +
'Gk2CRckp8qVQsAtfQbMSX5HFRGmN4jrwGRQVOE4Bv1JZ29iok8CSs' +
'4sU4nNrMKKYX6t9T1TkLCI+W4DPHRHwy+UKfFMMLWIWX0QHibMKv/' +
'A/f3m5XK3WpBhaJHFcxteKA/7S0jf4SnaRxHEFfFYc8zlCxCsSRXG' +
'RmM8KgvtrYWFRfG9Jm1iigv1m8Eszs1TgFJE0S6yQxfj2kx7/PoyP' +
'T6Bgy1LElrS9e749NWI+r0xOTs3NzaPgrAaWjL0bX7cAirRHwNjYl' +
'+nprywCvpKm8EVUwVaMIo1ffJkSCrVIVPgiftdSDH1EoqAFg2LdsS' +
'KwxC0y8c8KBsUurIjtwsdPTIqR/qIERXz8AZAFxah/sXhGF18OFUU' +
'UXIRS3jIi+JNd/wBBFhhR');

if FindBitmapToleranceIn(Ess, X, Y, 35, 85, 480, 295, 20) then
begin
MMouse(X, Y, 5, 5);
ClickMouse2(False);

Wait(300+random(250));
ChooseOption('All');
Wait(500+random(250));

end;
FreeBitmap(Ess);
end;
end;
end;

Yanhua

2012-01-10 20:33:37

How are you making your bitmap?

Make sure you're not including the whole essence, or whatever object it is you're trying to find.

Just have the center of it.

If it doesn't work then try using DTM's, I usually prefer to use them over bitmaps for inventory items. :)

mormonman

2012-01-10 20:34:42

Your bitmap still has some inventory colors on it. Also I suggest only using a section of the actual item.

Deadly Serious

2012-01-10 20:40:17

Ahh, knew it my cropping sucks. I'll test out a new one, I swear I've tried multiple ones. Which I've only done the center of the item.
Okay, I've only changed this and it still doesn't work. This is the center of the ess.
 
Ess := BitmapFromString(30, 32, 'meJzVke0KgkAQRZ9KBDHEWMwUNR' +
'GzTCR8/4doYGEZZj8TphDO73Pg3qpuq7rtugHo+1EyDBMw3p/A9Hh' +
'h5nlVLMsbs64bpvqHGfsJthbO/cZMUCHSskVJ7ojmsqwB6W+am44j' +
'Z4yqELeZIEPhOeN6fOaiuOq4W4FRPnOeC0CIi4675c3xmbPsDEg/w' +
'VYJzB3XTLD5v7qAz5ymGeD175iI20zwVrwTAXzmJDkpvH7jRLYKnz' +
'mOEwD79cS+i49rNvrdLT1H/HzmKIoVuOLOhfg/hZgykg==');

bolshak25

2012-01-10 20:47:22

Bmp := BitmapFromString(14, 15, 'meJyNzm0KgzAQhOFDSSVUgiWorc' +
'YPgtrS+1+kAwPLshopvD+fHTbGeZoSW5aVpbSjdfuw/f1Fr35EMc7' +
'MXPGEV103IPqLE9Q0T0R/PNE+hBb94+s6EOe8YEimsXiNvX8gjc24' +
'fHKvvMZmXH8CKdiM608gnauIzfgRQ7IcpocsS4dymJ6yKG45LF7kK' +
'dbjnP0B+hipmw==');
can you try that one?