Код
for image_number = 1, #images do
local result = findimage(startX, startY, endX, endY,{images[imager_number]}, 2, 80, -1, 2)
if result then
for trash_in_inventory = 1, #result do
-- idk how remove items in this game,
-- but it must be here
-- like example:
-- click on item
left(result[trash_in_inventory][1],result[trash_in_inventory][2])
-- pres delete
send217("{Delete}")
end
end
end
i have a qustion about this rows so startX, startY is the left top point of the square of the slot and endX, endY is the bottom right point of the square ?
Also what this row do ?
Код
Is that how you call a second function or what? I mean i need to have a delete function to delete the file and just call it like that ?