once again i need help...
PLZ dont tell me to use something els like DTM's or radialwalking
cause i tried to learn both of them and DTM's isnt working for me and i can work a bit with radialwalking...but now im trying to learn/understand them one by one...and im strarting with BITMAPS
and YES i ive read TUT's
like:
http://www.villavu.com/forum/showthread.php?t=4625
http://www.villavu.com/forum/showthr...son+RadialWalk <<<<isnt telling much about bitmaps
http://www.villavu.com/forum/showthr...?t=1116?t=1283
oke here is my problem
ive made a script just to 'play' with bitmaps till i fully understand how to use/work it
it suppose to find the questsign in the minimap and move the mouse and click on it BUT IT WONT FIND IT!!!!! then
i made a screeny with a quest sign in it pasted it in paint and made scar look for it and it found it i know rs colors changes all the time but i got colorTolerance so it should find it right ?
srry for my standards if its a mass
SCAR Code:
program test;
{.include SRL\SRL.scar}
var
questsign: integer;
procedure LoadBitmap;
begin
questsign := BitmapFromString2(False, 'a9270278DA95945B0EC3' +
'200C04AF64C2339F86C2FD8F54369622B7D449CAC7C8E231AC808' +
'4889C73345B1B1369EB604A93B180293018CB59C78A399137F450' +
'98DC0A186303C7B10A83940BCCB945F45430B3076B38EB3476F09' +
'5D11360F6AE821B3CDFCDD13EF73C58B995162CEA993F2C8BD3F2' +
'A4BA536F37BB1839AD552531F52E66A9FFF02F6631686AB3D0E37' +
'26CB39176756AB338A5DE990B9BE77FEDD4B5766A5E9B75368BBE' +
'A7D187C5E7993F4E550C4766A9F5A89C89F0FADD9A66E55F9D4FE' +
'ED132AF6FC3745EBE1059B59A75CE1BF383EF45CCABEDC6F9F8BF' +
'F123A1E17C03242');
end;
procedure FBitmap;
var
x, y :integer;
begin
if FindBitmapToleranceIn(questsign, x, y, 520, 0, 734, 170, 25) then
begin
MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
Wait(1000+random(100))
ClickMouse(x,y,true) end;
begin
if FindBitmapToleranceIn(questsign, x, y, 520, 0, 734, 170, 25) then
begin
writeln(found quest sign);
end;
end;
end;
procedure freeBmps;
begin
freebitmap(questsign);
end;
begin
setupsrl;
ActivateClient;
loadbitmap;
fbitmap;
freebmps;
end.