Skip to content

Instantly share code, notes, and snippets.

/find_all.lua Secret

Created January 15, 2016 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/21fb4bfb60e5689d79c0 to your computer and use it in GitHub Desktop.
Save anonymous/21fb4bfb60e5689d79c0 to your computer and use it in GitHub Desktop.
function hire_dark_mages(count)
local hired = 0
local any_existed = false
while count > hired do
any_existed = false
if existsClick("dark_mage.png") or existsClick("dark_mage_mirrored.png") then
click("hire.png")
hired = hired + 1
any_existed = true
end
if not any_existed then
break
end
end
return hired
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment