maybe you can use
function getamount(itemx, itemy: Integer): Integer
?
But then, yes, you've got to work with coords and i never used that to.
I wanne ask someone for more info about this, it searches for the amount at coords, but what's the width of the pixels to search for?:confused: > it says: //font is identical except 2 pixels shorter, isn't that a little to small?
I know that this function can only be used in trade :( but maybe you can edit it or use
function Amount(area: String; i: Integer): Integer;
What's the area? well here are valid argruments:
inv, shop, bank and trade.
EDIT: or maybe you can use:
function ItemCoordsColor(area: String; color, tol: Integer): TPointArray;
and change the finding color part in finding bitmap? Btw, NO DTM's aren't the DTM's from all the runes the same? :) lol ;)
>> NVM, there already excists something like that ;) I posted to quikly :):
function ItemCoordsBmp(area: String; bmp, tol: Integer): TPointArray;
LAST EDIT: omfg it seems to be that i
really post to quikly!! This one is the ultimate function you can use!:
function RuneAmount(area, runetype: String): Integer;area: inv (inventory), shop, bank and trade
runetype: valid argruments: air, blood, body, chaos, cosmic, death, earth, fire, law, mind, nature, soul and water :) lol ;)