|
Post by kalkulon on Dec 11, 2017 15:56:26 GMT
Hi,
I'm having issues getting my script working. To make it pretty easy I'm going to check for a certain image which contains the first digit of the character health. The images I used for that are namen 5khealth and 6khealth.
I want the script to scan for either of those for a timespan of about a minute with an interval of 1second (more or less). After the above criteria has been met it should go on with the script.
I tried it this way but it wont work:
if (exists("6khealth.png", 1) or exists("5khealth.png", 1)) then
loop = 1
else
wait(1)
end Help is appreciated.
|
|
|
Post by Exilereven on Dec 13, 2017 23:42:57 GMT
Hi, I'm having issues getting my script working. To make it pretty easy I'm going to check for a certain image which contains the first digit of the character health. The images I used for that are namen 5khealth and 6khealth. I want the script to scan for either of those for a timespan of about a minute with an interval of 1second (more or less). After the above criteria has been met it should go on with the script. I tried it this way but it wont work: if (exists("6khealth.png", 1) or exists("5khealth.png", 1)) then
loop = 1
else
wait(1)
end Help is appreciated. function health6k() if exists("6khealth.png",1) then return true end end function health5k() if exists("5khealth.png",1) then return true end end while true do --where you start loop if health5k() then --do something here elseif health6k() then --do something else here end end Untested but may help get you in the right direction.
|
|