Python Forum

Full Version: Can someone make me a code that does this?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Basically, there's a pubg bot, that idles. But there's a problem with the bot, it get's stuck on this screen[Image: xYv3QzH.png]. Now here's the default script the original developer made for 720p
""720":{
    "color_tolerance": 15,
    "colors":{
      "dark_play_color":{
        "r": 243,
        "g": 200,
        "b": 66
      },
      "play_color":{
        "r": 255,
        "g": 203,
        "b": 0
      },
      "super_white_button":{
        "r": 255,
        "g": 255,
        "b": 255
      },
      "matching_color":{
        "r": 239,
        "g": 198,
        "b": 30
      },
      "matching_tick_color":{
        "r": 150,
        "g": 150,
        "b": 152
      },
      "text_start_color":{
        "r": 118,
        "g": 94,
        "b": 6
      },
      "white_button":{
        "r": 129,
        "g": 129,
        "b": 129
      },
      "gray_button":{
        "r": 83,
        "g": 83,
        "b": 83
      },
      "golden_button":{
        "r": 255,
        "g": 182,
        "b": 0
      },
      "windows_background":{
        "r": 255,
        "g": 255,
        "b": 255
      },
      "exit_button_color":{
        "r": 219,
        "g": 219,
        "b": 219
      },
      "reconnect_button_color":{
        "r": 231,
        "g": 164,
        "b": 0
      }
    },
    "timers": {
      "refresh_rate": 0.5,
      "wait_after_killing_a_game": 10,
      "start_delay": 20,
      "animation_delay": 0.5,
      "wait_for_players": 60,
      "wait_for_plain": 300,
      "exit_animation_delay": 1,
      "loading_delay": 3
    },
    "play_button":{
      "x": 121,
      "y": 722
    },
    "play_state":{
      "x": 158,
      "y": 71
    },
    "text":{
      "x": 866,
      "y": 494
    },
    "exit_to_lobby":{
      "x": 581,
      "y": 422
    },
    "error_position":{
      "x": 960,
      "y": 540
    },
    "error_ok_position":{
      "x": 1113,
      "y": 450
    },
    "game_message_position":{
      "x": 988,
      "y": 558
    },
    "exit_button_position":{
      "x": 607,
      "y": 397
    },
    "reconnect_button_position":{
      "x":970,
      "y": 520
    },
    "servers":[
      {
        "title": "NA",
        "x": 72,
        "y": 207
      },
      {
        "title": "EU",
        "x": 72,
        "y": 246
      },
      {
        "title": "AS",
        "x": 72,
        "y":283
      },
      {
        "title": "OC",
        "x": 72,
        "y": 366
      },
      {
        "title": "SA",
        "x": 72,
        "y": 405
      },
      {
        "title": "SEA",
        "x": 72,
        "y": 445
      }
    ],
    "modes":[
      {
        "title": "Squad",
        "x": 71,
        "y": 565,
        "tick":{
          "x": 183,
          "y": 601
        }
      },
      {
        "title": "Squad FPP",
        "x": 71,
        "y": 565,
        "tick":{
          "x": 60,
          "y": 636
        }
      }
    ]
  },
  "w1440":{
    "color_tolerance": 15,
    "colors":{
      "dark_play_color":{
        "r": 247,
        "g": 198,
        "b": 20
      },
      "play_color":{
        "r": 255,
        "g": 203,
        "b": 0
      },
      "super_white_button":{
        "r": 255,
        "g": 255,
        "b": 255
      },
      "matching_color":{
        "r": 239,
        "g": 198,
        "b": 30
      },
      "matching_tick_color":{
        "r": 150,
        "g": 150,
        "b": 152
      },
      "text_start_color":{
        "r": 118,
        "g": 94,
        "b": 6
      },
      "white_button":{
        "r": 129,
        "g": 129,
        "b": 129
      },
      "gray_button":{
        "r": 83,
        "g": 83,
        "b": 83
      },
      "golden_button":{
        "r": 255,
        "g": 182,
        "b": 0
      },
      "windows_background":{
        "r": 255,
        "g": 255,
        "b": 255
      },
      "exit_button_color":{
        "r": 219,
        "g": 219,
        "b": 219
      },
      "reconnect_button_color":{
        "r": 231,
        "g": 164,
        "b": 0
      }
    },
    "timers": {
      "refresh_rate": 0.5,
      "wait_after_killing_a_game": 10,
      "start_delay": 30,
      "animation_delay": 0.5,
      "wait_for_players": 60,
      "wait_for_plain": 300,
      "exit_animation_delay": 1,
      "loading_delay": 3
    },
    "play_button":{
      "x": 172,
      "y": 991
    },
    "play_state":{
      "x": 199,
      "y": 99
    },
    "text":{
      "x": 866,
      "y": 494
    },
    "exit_to_lobby":{
      "x": 704,
      "y": 583
    },
    "error_position":{
      "x": 960,
      "y": 540
    },
    "error_ok_position":{
      "x": 1113,
      "y": 450
    },
    "game_message_position":{
      "x": 988,
      "y": 558
    },
    "exit_button_position":{
      "x": 632,
      "y": 483
    },
    "reconnect_button_position":{
      "x":970,
      "y": 520
    },
    "servers":[
      {
        "title": "NA",
        "x": 72,
        "y": 207
      },
      {
        "title": "EU",
        "x": 72,
        "y": 246
      },
      {
        "title": "AS",
        "x": 72,
        "y":283
      },
      {
        "title": "OC",
        "x": 72,
        "y": 366
      },
      {
        "title": "SA",
        "x": 72,
        "y": 405
      },
      {
        "title": "SEA",
        "x": 72,
        "y": 445
      }
    ],
    "modes":[
      {
        "title": "Squad",
        "x": 101,
        "y": 773,
        "tick":{
          "x": 83,
          "y": 839
        }
      },
      {
        "title": "Squad FPP",
        "x": 101,
        "y": 773,
        "tick":{
          "x": 79,
          "y": 875
        }
      }
    ]
  }
}
I tried adding something like "match_still_inprogresscancel" "x": 720 "y": 440" but it didn't work, because i never coded in my life before. I contacted the bot's dev but he has lost interest on the bot.

Mod: https://github.com/Cloxen/PUBG-Battlepoint-FarmBot
I think the config you want to try to change is "exit_to_lobby". It looks like it's doing everything it's supposed to do, except once it tries to actually leave the game, it doesn't. Which means it doesn't know where the exit button is (it says "continue").
Hi,

I can help.

You can reach me on Skype: cisin.arnold or Email: [email protected] so that we can discuss this further.

Arnold