|
Post by jirenn on Jun 17, 2019 3:57:06 GMT
found this here
local skills = findAll("mp.png")
for i, image in ipairs(skills) do image:highlight(2) local target = image:getTarget() local region = Region(target:getX(), target:getY(), "pic width", "pic height"):highlight(2) --Here use ocr function + Region click(image) end
what i understand is it will highlight all the image and click it?
|
|
|
Post by jirenn on Jun 18, 2019 10:28:48 GMT
please help me with ocr... thanks
|
|
|
Post by jirenn on Jun 18, 2019 17:54:12 GMT
monsterEntireRegion = Region(13, 433, 876, 122) ---fodder monster fodderThreeStar = Pattern("3StarFodder.png"):similar(0.7)
if fullMonSlot:exists("monSlot.png", 0) then local allMons = regionFindAllNoFindException(monsterEntireRegion, fodderThreeStar) for i, monsterEntireRegion in ipairs(allMons) do click(monsterEntireRegion);sleep(1.0) end else swipe(Location(825, 495), Location(65, 495), 0);sleep(1.0) end
with these code it will click the 3 Star Monster.. but does not confirm if it is level 1.. how to add an options to confirm that the monster is level 1? please help me.. thanks
|
|
|
Post by AnkuLua on Jun 18, 2019 23:29:31 GMT
|
|
|
Post by jirenn on Jun 20, 2019 9:50:08 GMT
|
|