|
Post by jirenn on Mar 1, 2019 15:07:41 GMT
how to convert a health bar or sp bar to percent? this is the idea if my hp or sp is down to 10%, 20% or any percent i want ankulua to click the image. please help me thank you.
or if possible
once ankulua find the right image and after 1 second the image suddenly change i want ankulua to check it again. if the image has change i want ankulua to start looking for the right image again.
i think the better explanation is double check the image before clicking the image
|
|
|
Post by AnkuLua on Mar 1, 2019 23:41:59 GMT
|
|
|
Post by jirenn on Mar 2, 2019 1:02:39 GMT
sir this is the image its on gray scale iwant to convert the bar then once its down to 10% click the image below thank you
|
|
|
Post by jirenn on Mar 2, 2019 1:12:27 GMT
i tried to use the "Play Dead!!" message above the character but it keeps on changing position it depends where the character is facing. sometimes the image is pixelated so sometimes ankulua cant detect it. sometimes the Play Dead message is big or small so i decided what if i can convert the sp/hp bar to percent since its not changing position
|
|
|
Post by AnkuLua on Mar 2, 2019 5:26:13 GMT
First, create Region covers the hp(sp) bar. Then use getColor() through the bar to decide the percent.
|
|
|
Post by jirenn on Mar 4, 2019 12:47:03 GMT
thanks, i have the region.. can you please give me a sample command? i dont know how to use the getcolor.. i only know basic and i dont know what the PSMRL? seconds = wait time? thank you
|
|
|
Post by AnkuLua on Mar 4, 2019 14:58:58 GMT
getColor(Location(x, y)) -- (x,y) is the coordinate.
|
|
|
Post by jirenn on Mar 7, 2019 23:40:55 GMT
thank you will try this
|
|