|
Post by barkingunicorn on Sept 17, 2019 3:35:24 GMT
I'm trying to write a script that only has one function; check a certain region for a png and report back once successful.
So far it runs but only returns back an empty dialog box
function start()
local lookhere = Region(1027, 534, 304, 304)
if lookhere.exists("target.png") then
print("Shield dropped")
else
print("Still shielded")
end
end
|
|
|
Post by Exilereven on Sept 17, 2019 4:57:30 GMT
I'm trying to write a script that only has one function; check a certain region for a png and report back once successful. So far it runs but only returns back an empty dialog box function start() local lookhere = Region(1027, 534, 304, 304) if lookhere.exists("target.png") then print("Shield dropped") else print("Still shielded") end end lookhere.exists Needs to be lookhere:exists
|
|
|
Post by barkingunicorn on Sept 17, 2019 5:47:22 GMT
I appreciate the help, thank you!
Unfortunately there must be something else I am doing wrong as it still results in a blank dialogue box and no text to indicate if it did or did not find the image.
Back to the drawing board lol.
|
|
|
Post by AnkuLua on Sept 19, 2019 11:38:41 GMT
You need to call the function. Add following to your script start ()
And if you already post the whole script, you may need to set the dimensions in your script.
|
|