ahmish
Contributors
Posts: 193
|
Post by ahmish on Apr 7, 2024 7:48:12 GMT
Well I've used LDPlayer and everything just works. Thanks for all the help. PS: the script does not build troops? I've played today with anku to automate gathering process and that was a lot of fun I must say! Great work Hi! It's great to hear that it's working for you now. Unfortunately i have not have any time to add building troops yet
|
|
zezz0
New Member
Posts: 7
|
Post by zezz0 on Apr 7, 2024 17:02:02 GMT
Thanks again - this is amazing work
PS: there is a problem when I do hunt terror and I only have two 2 lvl monsters available it gets stuck on trying to click on greyed out plus sign, saying the same in the log (clicking on a plus), it works well for normal monsters - maybe the logic of the plus button is different?
|
|
ahmish
Contributors
Posts: 193
|
Post by ahmish on Apr 7, 2024 17:47:33 GMT
Thanks again - this is amazing work PS: there is a problem when I do hunt terror and I only have two 2 lvl monsters available it gets stuck on trying to click on greyed out plus sign, saying the same in the log (clicking on a plus), it works well for normal monsters - maybe the logic of the plus button is different? make sure that when hunting you have to write the level of required monster. so if it's 2 then you have to set it to 2 instead of 6 or 30. Polar terror is 6 and beasts is 30. on your case set it to 2
|
|
zezz0
New Member
Posts: 7
|
Post by zezz0 on Apr 8, 2024 17:58:04 GMT
Hey, would this script work on a mobile device with different resolution? As in, are you using anythink like autoresize() or setCompareDimension() etc? PS: When I enable fighting and gathering and run out of stamina, the script gets stuck hanging on stamina replenish and does not seem to be doing any other action?
|
|
ahmish
Contributors
Posts: 193
|
Post by ahmish on Apr 9, 2024 4:49:59 GMT
Hey, would this script work on a mobile device with different resolution? As in, are you using anythink like autoresize() or setCompareDimension() etc? PS: When I enable fighting and gathering and run out of stamina, the script gets stuck hanging on stamina replenish and does not seem to be doing any other action? setCompareDimension is in the script but for some reason image recognition is not working properly on different resolution PS: When I enable fighting and gathering and run out of stamina, the script gets stuck hanging on stamina replenish and does not seem to be doing any other action? can you share screenshots for the screen and screenshots for your auto attack settings
|
|
|
Post by Exilereven on Apr 9, 2024 16:41:31 GMT
Hey, would this script work on a mobile device with different resolution? As in, are you using anythink like autoresize() or setCompareDimension() etc? PS: When I enable fighting and gathering and run out of stamina, the script gets stuck hanging on stamina replenish and does not seem to be doing any other action? setCompareDimension is in the script but for some reason image recognition is not working properly on different resolution PS: When I enable fighting and gathering and run out of stamina, the script gets stuck hanging on stamina replenish and does not seem to be doing any other action? can you share screenshots for the screen and screenshots for your auto attack settings This is how i do it. Im sure others may have a better approach for you, but they are not present . So I will do my best to explain atleast what I do for different games and how they work. There are a few ways to go about it. It depends on how your game works on an actual mobile device compared to emulator. But generally, im always working off of 1080, most all phones have this reso as an option. Things will always line up different on a device because of top cut out (some users show info with bar and some without making the screen different size) and then also if the user has on screen buttons, some games will use immersive and the game will stretch to the edge of the screen. some will not and even if it has option to be dull screen it will still for buttons on screen while in game. So instead of messing with auto resize and cutting out notches and all that, i like to make sure my users have 1080 reso option. Then i can just devide by 2,3 to get 540, and 360 IF i can get away with it. Ill start of using 1080, if everything i need for the script is fast enough for the need ill just make it in 1080 so i can get more precise matching. but using 540 yields faster script, and 360 faster etc. but if you use 540 all other locations and regions change as well. so i setup my script to change everything based on percentage so it looks the same on most all devices using 1080. example, you write your script in 1080 but then decide to switch, you would have to manuall go and change everything, so i make them all adjust to my reso being used. and as you go down in reso the more blurry the images you cut will be, you will have to adjust your match variance to make sure you dont get false positives. example: using 1080, i might get away with using .70 for matching, and get no false positives but if i keep everything the same in the script, and use 540, it would work but all hard locations and regions will not because they were setup for 1080 and i would most likely get a few false positives, so i would have to check it and raise it up prob like .80 just example but you get it. -- ----------------------------------------------------------------------------- -- - BOT CONSTANTS -- -----------------------------------------------------------------------------
DIR_ROOT = scriptPath() DIR_IMAGES = table_concat({ scriptPath(), "images/" }) DIR_TEMP = table_concat({ DIR_ROOT, "temp/" }) --DIR_MAPS = table_concat({ DIR_ROOT, "maps/" }) --DIR_CONFIGS = table_concat({ DIR_ROOT, "configs/" }) --DIR_ALARMS = table_concat({ DIR_ROOT, "music/" })
--SCRIPT_WIDTH = 2400 this is hard setting to 2400 --SCRIPT_HEIGHT = 1080
SCRIPT_WIDTH = getRealScreenSize():getX() / 2 --this allows me to still use any5hing from 1920-2440+ and still get half SCRIPT_HEIGHT = getRealScreenSize():getY() / 2
IMG_TIMEOUT = 3 IMG_SIMILAR = 0.70
-- ----------------------------------------------------------------------------- -- - BOT DEFAULT VALUES -- ----------------------------------------------------------------------------- Settings:setCompareDimension(true, SCRIPT_WIDTH) --we get and use the actual phones reso Settings:setScriptDimension(true, SCRIPT_WIDTH) Settings:set('AutoWaitTimeout', IMG_TIMEOUT) Settings:set('MinSimilarity', IMG_SIMILAR) -- setImagePath(DIR_IMAGES) setHttpTimeout(30) math.randomseed(os.time())
-- ----------------------------------------------------------------------------- local screen_width = getRealScreenSize():getX() local screen_height = getRealScreenSize():getY() local app_screen_width = getAppUsableScreenSize():getX() local app_screen_height = getAppUsableScreenSize():getY()
setImmersiveMode(true) --i force everyone to use immersive, i do this so i can always adjust easier below for the different resos, --so if everyone is using 1080 its your constant, but they can have 1920-2400+ reso and it will still work so long as the in game graphics dont change, which is the case with most all games
--LOAD LIBS HERE AFTER WE SET GLOBALS FROM CONFIG
--load data -- ----------------------------------------------------------------------------- -- - DATA -- -----------------------------------------------------------------------------
--as you see below my regions are based off percent so they adjust to different resos REG = { screen_full = Region(0, 0, SCRIPT_WIDTH, SCRIPT_HEIGHT), screen_left = Region(0, 0, SCRIPT_WIDTH / 2, SCRIPT_HEIGHT), screen_left_25 = Region(0, 0, SCRIPT_WIDTH * .25, SCRIPT_HEIGHT), screen_right = Region(SCRIPT_WIDTH / 2, 0, SCRIPT_WIDTH / 2, SCRIPT_HEIGHT), screen_right_25 = Region(SCRIPT_WIDTH * .75, 0, 9999, 9999), screen_top = Region(0, 0, SCRIPT_WIDTH, SCRIPT_HEIGHT / 2), screen_top_right = Region(SCRIPT_WIDTH / 2, 0, 9999, SCRIPT_HEIGHT / 2), screen_bottom = Region(0, SCRIPT_HEIGHT / 2, SCRIPT_WIDTH, SCRIPT_HEIGHT / 2), screen_bottom_right = Region(SCRIPT_WIDTH / 2, SCRIPT_HEIGHT / 2, 9999, 9999), --needs double checked screen_mid = Region(0, SCRIPT_HEIGHT * .25, SCRIPT_WIDTH, SCRIPT_HEIGHT * .50),
console = Region(SCRIPT_WIDTH * 0.3, 0, SCRIPT_WIDTH * 0.5, 32), console_step = Region(SCRIPT_WIDTH * 0.10, 0, SCRIPT_WIDTH * 0.2, 32), -- captcha = Region(0, 0, 0, 0),
}
LOC = {
center = Location(SCRIPT_WIDTH / 2, SCRIPT_HEIGHT / 2),
}
OBJ = { purple = { location = Location(0, 0), color = { 67, 56, 202 }, diff = { 20, 20, 35 }, }, purple_clicked = { location = Location(0, 0), color = { 79, 70, 229 }, diff = { 20, 20, 20 }, }
}
--and then i adjust my script dimension to different reso, so it will still get same matches and shouldn't have to change anything else. sometimes have to adjust regions s little but i can help you --this runctions adjusts for sifferent phone resos
--if your us8ng portrait like in your game you dont need this, you have your 1080 constant
--but if your game is landscape you can use this to adjust script dimension to work with alot more resolutions
function setupDimension(height) --Credit: Ankulua for his code snippet local deviceWidth = getRealScreenSize():getX() local deviceHeight = getRealScreenSize():getY() local widthOverHeight = deviceWidth / deviceHeight
local newDimension = widthOverHeight * height Settings:setCompareDimension(true, newDimension) --print("new dimension = " .. newDimension)
end
setupDimension(1080) --run this right after to set it for 1080, or 540 whichever you are using
And if you dont mind, i dont play that game, have no interest in your script other than to help, if you sent some source code i could look and see what i can help adjust .
|
|
|
Post by AnkuLua on Apr 11, 2024 7:58:06 GMT
Hey, would this script work on a mobile device with different resolution? As in, are you using anythink like autoresize() or setCompareDimension() etc? PS: When I enable fighting and gathering and run out of stamina, the script gets stuck hanging on stamina replenish and does not seem to be doing any other action? setCompareDimension is in the script but for some reason image recognition is not working properly on different resolution PS: When I enable fighting and gathering and run out of stamina, the script gets stuck hanging on stamina replenish and does not seem to be doing any other action? can you share screenshots for the screen and screenshots for your auto attack settings You don't need to change the value of setCompareDimension. Here are two screenshots with different height but with the same width. You can see that the two image icons and words are the same. All you have to handle are the regions. We set up many relative regions according the screen height. Here we assume the script dimension is 1080. Then we use the relative regions in the script. function setupRegions() local width = 1080 Settings:setScriptDimension(true, width)
local deviceWidth = getRealScreenSize():getX()
local deviceHeight = getRealScreenSize():getY()
local height = deviceHeight * width / deviceWidth
allRegion = Region(0, 0, width, height) upRegion = Region(0, 0, width, height/2) upperRegion = Region(0, 0, width, height/3) uppestRegion = Region(0, 0, width, height/4) uppestQRegion = Region(0, 0, width, height/8)
uppestQLeftRegion = Region(0, 0, width/2, height/8 ) uppestQLefterRegion = Region(0, 0, width/3, height/8 ) uppestQLeftestRegion = Region(0, 0, width/4, height/8 ) uppestQCenterRegion = Region( width/3, 0, width/3, height/8 ) uppestQRightRegion = Region( width/2, 0, width/2, height/8 ) uppestQRighterRegion = Region(width*2/3, 0, width/3, height/8 ) uppestQRightestRegion = Region(width*3/4, 0, width/4, height/8 )
allLeftRegion = Region(0, 0, width/2, height) allLefterRegion = Region(0, 0, width/3, height) allLeftestRegion = Region(0, 0, width/4, height) allCenterRegion = Region(width/3, 0, width/3, height) allRightRegion = Region(width/2, 0, width/2, height) allRighterRegion = Region(width*2/3, 0, width/3, height) allRightestRegion = Region(width*3/4, 0, width/4, height)
upLeftRegion = Region(0, 0, width/2, height/2) upLefterRegion = Region(0, 0, width/3, height/2) upLeftestRegion = Region(0, 0, width/4, height/2) upCenterRegion = Region(width/3, 0, width/3, height/2) upRightRegion = Region(width/2, 0, width/2, height/2) upRighterRegion = Region(width*2/3, 0, width/3, height/2) upRightestRegion = Region(width*3/4, 0, width/4, height/2)
upperLeftRegion = Region(0, 0, width/2, height/3) upperLefterRegion = Region(0, 0, width/3, height/3) upperLeftestRegion = Region(0, 0, width/4, height/3) upperCenterRegion = Region(width/3, 0, width/3, height/3) upperRightRegion = Region(width/2, 0, width/2, height/3) upperRighterRegion = Region(width*2/3, 0, width/3, height/3) upperRightestRegion = Region(width*3/4, 0, width/4, height/3)
uppestLeftRegion = Region(0, 0, width/2, height/4) uppestLefterRegion = Region(0, 0, width/3, height/4) uppestLeftestRegion = Region(0, 0, width/4, height/4) uppestCenterRegion = Region(width/3, 0, width/3, height/4) uppestRightRegion = Region(width/2, 0, width/2, height/4) uppestRighterRegion = Region(width*2/3, 0, width/3, height/4) uppestRightestRegion = Region(width*3/4, 0, width/4, height/4)
uppestQLeftRegion = Region(0, 0, width/2, height/8) uppestQLefterRegion = Region(0, 0, width/3, height/8) uppestQLeftestRegion = Region(0, 0, width/4, height/8) uppestQCenterRegion = Region( width/3, 0, width/3, height/8) uppestQRightRegion = Region( width/2, 0, width/2, height/8) uppestQRighterRegion = Region(width*2/3, 0, width/3, height/8) uppestQRightestRegion = Region(width*3/4, 0, width/4, height/8)
centerLeftRegion = Region(0, height/3, width/2, height/3) centerLefterRegion = Region(0, height/3, width/3, height/3) centerLeftestRegion = Region(0, height/3, width/4, height/3) centerCenterRegion = Region(width/3, height/3, width/3, height/3) centerRightRegion = Region(width/2, height/3, width/2, height/3) centerRighterRegion = Region(width*2/3, height/3, width/3, height/3) centerRightestRegion = Region(width*3/4, height/3, width/4, height/3)
lowLeftRegion = Region(0, height/2, width/2, height/2) lowLefterRegion = Region(0, height/2, width/3, height/2) lowLeftestRegion = Region(0, height/2, width/4, height/2) lowCenterRegion = Region( width/3, height/2, width/3, height/2) lowRightRegion = Region( width/2, height/2, width/2, height/2) lowRighterRegion = Region(width*2/3, height/2, width/3, height/2) lowRightestRegion = Region(width*3/4, height/2, width/4, height/2)
lowerLeftRegion = Region(0, height*2/3, width/2, height/3) lowerLefterRegion = Region(0, height*2/3, width/3, height/3) lowerLeftestRegion = Region(0, height*2/3, width/4, height/3) lowerCenterRegion = Region(width/3, height*2/3, width/3, height/3) lowerRightRegion = Region(width/2, height*2/3, width/2, height/3) lowerRighterRegion = Region(width*2/3, height*2/3, width/3, height/3) lowerRightestRegion = Region(width*3/4, height*2/3, width/4, height/3)
lowestLeftRegion = Region(0, height*3/4, width/2, height/4) lowestLefterRegion = Region(0, height*3/4, width/3, height/4) lowestLeftestRegion = Region(0, height*3/4, width/4, height/4) lowestCenterRegion = Region( width/3, height*3/4, width/3, height/4) lowestRightRegion = Region( width/2, height*3/4, width/2, height/4) lowestRighterRegion = Region(width*2/3, height*3/4, width/3, height/4) lowestRightestRegion = Region(width*3/4, height*3/4, width/4, height/4)
lowestQLeftRegion = Region(0, height*7/8, width/2, height/8) lowestQLefterRegion = Region(0, height*7/8, width/3, height/8) lowestQLeftestRegion = Region(0, height*7/8, width/4, height/8) lowestQCenterRegion = Region( width/3, height*7/8, width/3, height/8) lowestQRightRegion = Region( width/2, height*7/8, width/2, height/8) lowestQRighterRegion = Region(width*2/3, height*7/8, width/3, height/8) lowestQRightestRegion = Region(width*3/4, height*7/8, width/4, height/8)
lowRegion = Region(0, height/2, width, height/2) lowerRegion = Region(0, height*2/3, width, height/3) lowestRegion = Region(0, height*3/4, width, height/4) lowestQRegion = Region(0, height*7/8, width, height/8)
centerRegion = Region(0, height / 3, width, height / 3) verticalCenterRegion = Region(width/3, 0, width / 3, height)
leftRegion = Region(0, 0, width / 2, height) lefterRegion = Region(0, 0, width / 3, height) leftestRegion = Region(0, 0, width / 4, height)
rightRegion = Region(width / 2, 0, width / 2, height) righterRegion = Region(width *2/3, 0, width / 3, height) rightestRegion = Region(width * 3 / 4, 0, width / 4, height)
statusCenterRegion = Region(width/3, 0, width/3, height/6)
end
|
|
|
Post by Exilereven on Apr 11, 2024 12:27:19 GMT
setCompareDimension is in the script but for some reason image recognition is not working properly on different resolution PS: When I enable fighting and gathering and run out of stamina, the script gets stuck hanging on stamina replenish and does not seem to be doing any other action? can you share screenshots for the screen and screenshots for your auto attack settings You don't need to change the value of setCompareDimension. Here are two screenshots with different height but with the same width. You can see that the two image icons and words are the same. All you have to handle are the regions. We set up many relative regions according the screen height. Here we assume the script dimension is 1080. Then we use the relative regions in the script. function setupRegions() local width = 1080 Settings:setScriptDimension(true, width)
local deviceWidth = getRealScreenSize():getX()
local deviceHeight = getRealScreenSize():getY()
local height = deviceHeight * width/ deviceWidth
allRegion = Region(0, 0, width, height) upRegion = Region(0, 0, width, height/2) upperRegion = Region(0, 0, width, height/3) uppestRegion = Region(0, 0, width, height/4) uppestQRegion = Region(0, 0, width, height/8)
uppestQLeftRegion = Region(0, 0, width/2, height/8 ) uppestQLefterRegion = Region(0, 0, width/3, height/8 ) uppestQLeftestRegion = Region(0, 0, width/4, height/8 ) uppestQCenterRegion = Region( width/3, 0, width/3, height/8 ) uppestQRightRegion = Region( width/2, 0, width/2, height/8 ) uppestQRighterRegion = Region(width*2/3, 0, width/3, height/8 ) uppestQRightestRegion = Region(width*3/4, 0, width/4, height/8 )
allLeftRegion = Region(0, 0, width/2, height) allLefterRegion = Region(0, 0, width/3, height) allLeftestRegion = Region(0, 0, width/4, height) allCenterRegion = Region(width/3, 0, width/3, height) allRightRegion = Region(width/2, 0, width/2, height) allRighterRegion = Region(width*2/3, 0, width/3, height) allRightestRegion = Region(width*3/4, 0, width/4, height)
upLeftRegion = Region(0, 0, width/2, height/2) upLefterRegion = Region(0, 0, width/3, height/2) upLeftestRegion = Region(0, 0, width/4, height/2) upCenterRegion = Region(width/3, 0, width/3, height/2) upRightRegion = Region(width/2, 0, width/2, height/2) upRighterRegion = Region(width*2/3, 0, width/3, height/2) upRightestRegion = Region(width*3/4, 0, width/4, height/2)
upperLeftRegion = Region(0, 0, width/2, height/3) upperLefterRegion = Region(0, 0, width/3, height/3) upperLeftestRegion = Region(0, 0, width/4, height/3) upperCenterRegion = Region(width/3, 0, width/3, height/3) upperRightRegion = Region(width/2, 0, width/2, height/3) upperRighterRegion = Region(width*2/3, 0, width/3, height/3) upperRightestRegion = Region(width*3/4, 0, width/4, height/3)
uppestLeftRegion = Region(0, 0, width/2, height/4) uppestLefterRegion = Region(0, 0, width/3, height/4) uppestLeftestRegion = Region(0, 0, width/4, height/4) uppestCenterRegion = Region(width/3, 0, width/3, height/4) uppestRightRegion = Region(width/2, 0, width/2, height/4) uppestRighterRegion = Region(width*2/3, 0, width/3, height/4) uppestRightestRegion = Region(width*3/4, 0, width/4, height/4)
uppestQLeftRegion = Region(0, 0, width/2, height/8) uppestQLefterRegion = Region(0, 0, width/3, height/8) uppestQLeftestRegion = Region(0, 0, width/4, height/8) uppestQCenterRegion = Region( width/3, 0, width/3, height/8) uppestQRightRegion = Region( width/2, 0, width/2, height/8) uppestQRighterRegion = Region(width*2/3, 0, width/3, height/8) uppestQRightestRegion = Region(width*3/4, 0, width/4, height/8)
centerLeftRegion = Region(0, height/3, width/2, height/3) centerLefterRegion = Region(0, height/3, width/3, height/3) centerLeftestRegion = Region(0, height/3, width/4, height/3) centerCenterRegion = Region(width/3, height/3, width/3, height/3) centerRightRegion = Region(width/2, height/3, width/2, height/3) centerRighterRegion = Region(width*2/3, height/3, width/3, height/3) centerRightestRegion = Region(width*3/4, height/3, width/4, height/3)
lowLeftRegion = Region(0, height/2, width/2, height/2) lowLefterRegion = Region(0, height/2, width/3, height/2) lowLeftestRegion = Region(0, height/2, width/4, height/2) lowCenterRegion = Region( width/3, height/2, width/3, height/2) lowRightRegion = Region( width/2, height/2, width/2, height/2) lowRighterRegion = Region(width*2/3, height/2, width/3, height/2) lowRightestRegion = Region(width*3/4, height/2, width/4, height/2)
lowerLeftRegion = Region(0, height*2/3, width/2, height/3) lowerLefterRegion = Region(0, height*2/3, width/3, height/3) lowerLeftestRegion = Region(0, height*2/3, width/4, height/3) lowerCenterRegion = Region(width/3, height*2/3, width/3, height/3) lowerRightRegion = Region(width/2, height*2/3, width/2, height/3) lowerRighterRegion = Region(width*2/3, height*2/3, width/3, height/3) lowerRightestRegion = Region(width*3/4, height*2/3, width/4, height/3)
lowestLeftRegion = Region(0, height*3/4, width/2, height/4) lowestLefterRegion = Region(0, height*3/4, width/3, height/4) lowestLeftestRegion = Region(0, height*3/4, width/4, height/4) lowestCenterRegion = Region( width/3, height*3/4, width/3, height/4) lowestRightRegion = Region( width/2, height*3/4, width/2, height/4) lowestRighterRegion = Region(width*2/3, height*3/4, width/3, height/4) lowestRightestRegion = Region(width*3/4, height*3/4, width/4, height/4)
lowestQLeftRegion = Region(0, height*7/8, width/2, height/8) lowestQLefterRegion = Region(0, height*7/8, width/3, height/8) lowestQLeftestRegion = Region(0, height*7/8, width/4, height/8) lowestQCenterRegion = Region( width/3, height*7/8, width/3, height/8) lowestQRightRegion = Region( width/2, height*7/8, width/2, height/8) lowestQRighterRegion = Region(width*2/3, height*7/8, width/3, height/8) lowestQRightestRegion = Region(width*3/4, height*7/8, width/4, height/8)
lowRegion = Region(0, height/2, width, height/2) lowerRegion = Region(0, height*2/3, width, height/3) lowestRegion = Region(0, height*3/4, width, height/4) lowestQRegion = Region(0, height*7/8, width, height/8)
centerRegion = Region(0, height / 3, width, height / 3) verticalCenterRegion = Region(width/3, 0, width / 3, height)
leftRegion = Region(0, 0, width / 2, height) lefterRegion = Region(0, 0, width / 3, height) leftestRegion = Region(0, 0, width / 4, height)
rightRegion = Region(width / 2, 0, width / 2, height) righterRegion = Region(width *2/3, 0, width / 3, height) rightestRegion = Region(width * 3 / 4, 0, width / 4, height)
statusCenterRegion = Region(width/3, 0, width/3, height/6)
end
where are you retrieving pixels from on this line local height = deviceHeight * pixels / deviceWidth
|
|
|
Post by AnkuLua on Apr 11, 2024 12:30:16 GMT
setCompareDimension is in the script but for some reason image recognition is not working properly on different resolution PS: When I enable fighting and gathering and run out of stamina, the script gets stuck hanging on stamina replenish and does not seem to be doing any other action? can you share screenshots for the screen and screenshots for your auto attack settings You don't need to change the value of setCompareDimension. Here are two screenshots with different height but with the same width. You can see that the two image icons and words are the same. All you have to handle are the regions. We set up many relative regions according the screen height. Here we assume the script dimension is 1080. Then we use the relative regions in the script. function setupRegions() local width = 1080 Settings:setScriptDimension(true, width)
local deviceWidth = getRealScreenSize():getX()
local deviceHeight = getRealScreenSize():getY()
local height = deviceHeight * pixels / deviceWidth
allRegion = Region(0, 0, width, height) upRegion = Region(0, 0, width, height/2) upperRegion = Region(0, 0, width, height/3) uppestRegion = Region(0, 0, width, height/4) uppestQRegion = Region(0, 0, width, height/8)
uppestQLeftRegion = Region(0, 0, width/2, height/8 ) uppestQLefterRegion = Region(0, 0, width/3, height/8 ) uppestQLeftestRegion = Region(0, 0, width/4, height/8 ) uppestQCenterRegion = Region( width/3, 0, width/3, height/8 ) uppestQRightRegion = Region( width/2, 0, width/2, height/8 ) uppestQRighterRegion = Region(width*2/3, 0, width/3, height/8 ) uppestQRightestRegion = Region(width*3/4, 0, width/4, height/8 )
allLeftRegion = Region(0, 0, width/2, height) allLefterRegion = Region(0, 0, width/3, height) allLeftestRegion = Region(0, 0, width/4, height) allCenterRegion = Region(width/3, 0, width/3, height) allRightRegion = Region(width/2, 0, width/2, height) allRighterRegion = Region(width*2/3, 0, width/3, height) allRightestRegion = Region(width*3/4, 0, width/4, height)
upLeftRegion = Region(0, 0, width/2, height/2) upLefterRegion = Region(0, 0, width/3, height/2) upLeftestRegion = Region(0, 0, width/4, height/2) upCenterRegion = Region(width/3, 0, width/3, height/2) upRightRegion = Region(width/2, 0, width/2, height/2) upRighterRegion = Region(width*2/3, 0, width/3, height/2) upRightestRegion = Region(width*3/4, 0, width/4, height/2)
upperLeftRegion = Region(0, 0, width/2, height/3) upperLefterRegion = Region(0, 0, width/3, height/3) upperLeftestRegion = Region(0, 0, width/4, height/3) upperCenterRegion = Region(width/3, 0, width/3, height/3) upperRightRegion = Region(width/2, 0, width/2, height/3) upperRighterRegion = Region(width*2/3, 0, width/3, height/3) upperRightestRegion = Region(width*3/4, 0, width/4, height/3)
uppestLeftRegion = Region(0, 0, width/2, height/4) uppestLefterRegion = Region(0, 0, width/3, height/4) uppestLeftestRegion = Region(0, 0, width/4, height/4) uppestCenterRegion = Region(width/3, 0, width/3, height/4) uppestRightRegion = Region(width/2, 0, width/2, height/4) uppestRighterRegion = Region(width*2/3, 0, width/3, height/4) uppestRightestRegion = Region(width*3/4, 0, width/4, height/4)
uppestQLeftRegion = Region(0, 0, width/2, height/8) uppestQLefterRegion = Region(0, 0, width/3, height/8) uppestQLeftestRegion = Region(0, 0, width/4, height/8) uppestQCenterRegion = Region( width/3, 0, width/3, height/8) uppestQRightRegion = Region( width/2, 0, width/2, height/8) uppestQRighterRegion = Region(width*2/3, 0, width/3, height/8) uppestQRightestRegion = Region(width*3/4, 0, width/4, height/8)
centerLeftRegion = Region(0, height/3, width/2, height/3) centerLefterRegion = Region(0, height/3, width/3, height/3) centerLeftestRegion = Region(0, height/3, width/4, height/3) centerCenterRegion = Region(width/3, height/3, width/3, height/3) centerRightRegion = Region(width/2, height/3, width/2, height/3) centerRighterRegion = Region(width*2/3, height/3, width/3, height/3) centerRightestRegion = Region(width*3/4, height/3, width/4, height/3)
lowLeftRegion = Region(0, height/2, width/2, height/2) lowLefterRegion = Region(0, height/2, width/3, height/2) lowLeftestRegion = Region(0, height/2, width/4, height/2) lowCenterRegion = Region( width/3, height/2, width/3, height/2) lowRightRegion = Region( width/2, height/2, width/2, height/2) lowRighterRegion = Region(width*2/3, height/2, width/3, height/2) lowRightestRegion = Region(width*3/4, height/2, width/4, height/2)
lowerLeftRegion = Region(0, height*2/3, width/2, height/3) lowerLefterRegion = Region(0, height*2/3, width/3, height/3) lowerLeftestRegion = Region(0, height*2/3, width/4, height/3) lowerCenterRegion = Region(width/3, height*2/3, width/3, height/3) lowerRightRegion = Region(width/2, height*2/3, width/2, height/3) lowerRighterRegion = Region(width*2/3, height*2/3, width/3, height/3) lowerRightestRegion = Region(width*3/4, height*2/3, width/4, height/3)
lowestLeftRegion = Region(0, height*3/4, width/2, height/4) lowestLefterRegion = Region(0, height*3/4, width/3, height/4) lowestLeftestRegion = Region(0, height*3/4, width/4, height/4) lowestCenterRegion = Region( width/3, height*3/4, width/3, height/4) lowestRightRegion = Region( width/2, height*3/4, width/2, height/4) lowestRighterRegion = Region(width*2/3, height*3/4, width/3, height/4) lowestRightestRegion = Region(width*3/4, height*3/4, width/4, height/4)
lowestQLeftRegion = Region(0, height*7/8, width/2, height/8) lowestQLefterRegion = Region(0, height*7/8, width/3, height/8) lowestQLeftestRegion = Region(0, height*7/8, width/4, height/8) lowestQCenterRegion = Region( width/3, height*7/8, width/3, height/8) lowestQRightRegion = Region( width/2, height*7/8, width/2, height/8) lowestQRighterRegion = Region(width*2/3, height*7/8, width/3, height/8) lowestQRightestRegion = Region(width*3/4, height*7/8, width/4, height/8)
lowRegion = Region(0, height/2, width, height/2) lowerRegion = Region(0, height*2/3, width, height/3) lowestRegion = Region(0, height*3/4, width, height/4) lowestQRegion = Region(0, height*7/8, width, height/8)
centerRegion = Region(0, height / 3, width, height / 3) verticalCenterRegion = Region(width/3, 0, width / 3, height)
leftRegion = Region(0, 0, width / 2, height) lefterRegion = Region(0, 0, width / 3, height) leftestRegion = Region(0, 0, width / 4, height)
rightRegion = Region(width / 2, 0, width / 2, height) righterRegion = Region(width *2/3, 0, width / 3, height) rightestRegion = Region(width * 3 / 4, 0, width / 4, height)
statusCenterRegion = Region(width/3, 0, width/3, height/6)
end
Sorry. Should be width.
|
|
|
Post by AnkuLua on Apr 18, 2024 23:53:18 GMT
|
|
ahmish
Contributors
Posts: 193
|
Post by ahmish on Apr 20, 2024 6:58:50 GMT
Thanks for this!, The way you guys write your script is way different to how i write mine.
|
|
chmul
New Member
Posts: 2
|
Post by chmul on Apr 28, 2024 13:15:36 GMT
Hey, we talked shortly on Reddit. Awesome work, nice script thank you very much. I have feedback and a feature request: 1. Auto Reconnect The function seems to work in general. But currently the game displays me a full screen discount for a package upon connecting. This happens from time to time if events are ongoing or you hit a milestone. This breaks the script, as the popup is not closed. The shape of the popup should be identifiable by its shape. Please keep in mind that the prices and the currency will vary. Also the background pictures of the popup. 2. Feature Request: Claim Alliance Chests Can we get an auto claim for the alliance chests?
|
|
ahmish
Contributors
Posts: 193
|
Post by ahmish on Apr 29, 2024 3:41:06 GMT
Hi, if you encounter that again can you take a screenshot and share it to me i will do some image checking to make sure it's also included. I will add the Claim Alliance chest soon.
|
|
chmul
New Member
Posts: 2
|
Post by chmul on Apr 29, 2024 11:02:28 GMT
Another feature that could be added: Claim the given chief stamina that appear on the storehouse (where you get the online rewards). For this the sequence for the online rewards could be adjusted. 1. Open Slider to check for online rewards 2. If online rewards are present, go to city 3. Open Slider again, click online rewards. The view will switch to the store house. 4. Tap the online rewards icon above the storehouse 5. (missing in video) A new icon appears. Looks like the icon before but with the chief stamina symbol inside. 6. If this symbol does not appear within 5 seconds, go back
A video of the necessary automation - it misses the last icon that needs to be clicked... imgur.com/a/l6UYqPa
|
|
ahmish
Contributors
Posts: 193
|
Post by ahmish on Apr 29, 2024 18:07:44 GMT
I'm adjusting my stamina usage by ensuring I have enough before starting Intel quests. I've modified the script to that, and afterward, there's an option to march or rally enemies.
So Stamina Claim is part of Intel
|
|