SRL Archive - OSR Help

Make script to ignore inventor when using bitmaps


valentinas25

2015-05-18 18:25:14

I'm making a script where the script has to buy things from a shop, 1 per 1.
My problem is that instead of clicking on a shop item, it clicks on my invetor item

woo hoo

2015-05-18 18:33:09

Use

FindBitmapIn(bitmap: integer; var x, y: Integer;  xs, ys, xe, ye: Integer)

Set the last 4 parameters for it to search a box that only encompasses the area you want it to search.

Citrus

2015-05-18 18:33:58

Maybe this?
function FindBitmapIn(bitmap: integer; var x, y: Integer;  xs, ys, xe, ye: Integer): Boolean;