PokeBot Standard Library Documentation
pokebot_init()
Called at the start of every script, handles the initiation of the bot.
sleep_rand(rand1,rand2)
Causes the thread to sleep for a random time between rand1 and rand2
walk_right(tiles)/ walk_right_fast(tiles)
Walks to the right, with tiles being the number of tiles the player should walk. The second function lowers the delay between every step.
walk_left(tiles)/ walk_left_fast(tiles)
Walks to the left, with tiles being the number of tiles the player should walk. The second function lowers the delay between every step.
walk_up(tiles)/ walk_up_fast(tiles)
Walks up, with tiles being the number of tiles the player should walk. The second function lowers the delay between every step.
walk_down(tiles)/ walk_down_fast(tiles)
Walks down, with tiles being the number of tiles the player should walk. The second function lowers the delay between every step.
detect_battle()
Checks if there is a battle, returns 1 if there is. Otherwise it returns 0. For example:
if detect_battle()=1 ;-----If there is a battle
{
;Code here
}
detect_fight_but()
Checks if the fight button has shown up yet. Returns 1 if it has, otherwise returns 0.
detect_pp()
Checks if PP is low (3 or lower). Returns 1 if it is, otherwise returns 0.
detect_catch()
Checks if there is a Pokemon we should catch, using catch.png. Also checks for shinies. Returns 1 if there is a Pokemon we should catch. Otherwise returns 0.
detect_shiny()
The same as above, but it only checks for shinies. Returns 1 if there is a Pokemon we should catch. Otherwise returns 0.
detect_run_default()
Checks if there is a Pokemon we want to avoid, using run_1.png, run_2.png, and run_3.png. Returns 1 if we should run away, otherwise returns 0.
send_yes()
Sends the key "Z"
send_no()
Sends the key "X"
send_right()
Sends the right arrow key
send_left()
Sends the left arrow key
send_up()
Sends the up arrow key
send_down()
Sends the down arrow key
send_run()
(Can only be used in battle). Chooses the option to run away rather than fight
send_catch()
(Can only be used in battle). Attempts to catch the Pokemon with the first PokeBall. Keep in mind that if you have a Master Ball, it'll end up using it!
send_catch_ultra()
(Can only be used in battle). Attempts to catch the Pokemon with the strongest PokeBall.
send_fish()
Activates the fishing sequence
send_card()
Toggles the trainer card
send_bag_open()
Opens the bag
send_bag_close()
Closes the bag, only works when bag is already open.
Functions added to PokeBot 3.1+ Library
toggle_bike()
Toggles the bike, uses F1 as quickbar key.
toggle_map()
Toggles the map, uses F3 as quickbar key.
Called at the start of every script, handles the initiation of the bot.
sleep_rand(rand1,rand2)
Causes the thread to sleep for a random time between rand1 and rand2
walk_right(tiles)/ walk_right_fast(tiles)
Walks to the right, with tiles being the number of tiles the player should walk. The second function lowers the delay between every step.
walk_left(tiles)/ walk_left_fast(tiles)
Walks to the left, with tiles being the number of tiles the player should walk. The second function lowers the delay between every step.
walk_up(tiles)/ walk_up_fast(tiles)
Walks up, with tiles being the number of tiles the player should walk. The second function lowers the delay between every step.
walk_down(tiles)/ walk_down_fast(tiles)
Walks down, with tiles being the number of tiles the player should walk. The second function lowers the delay between every step.
detect_battle()
Checks if there is a battle, returns 1 if there is. Otherwise it returns 0. For example:
if detect_battle()=1 ;-----If there is a battle
{
;Code here
}
detect_fight_but()
Checks if the fight button has shown up yet. Returns 1 if it has, otherwise returns 0.
detect_pp()
Checks if PP is low (3 or lower). Returns 1 if it is, otherwise returns 0.
detect_catch()
Checks if there is a Pokemon we should catch, using catch.png. Also checks for shinies. Returns 1 if there is a Pokemon we should catch. Otherwise returns 0.
detect_shiny()
The same as above, but it only checks for shinies. Returns 1 if there is a Pokemon we should catch. Otherwise returns 0.
detect_run_default()
Checks if there is a Pokemon we want to avoid, using run_1.png, run_2.png, and run_3.png. Returns 1 if we should run away, otherwise returns 0.
send_yes()
Sends the key "Z"
send_no()
Sends the key "X"
send_right()
Sends the right arrow key
send_left()
Sends the left arrow key
send_up()
Sends the up arrow key
send_down()
Sends the down arrow key
send_run()
(Can only be used in battle). Chooses the option to run away rather than fight
send_catch()
(Can only be used in battle). Attempts to catch the Pokemon with the first PokeBall. Keep in mind that if you have a Master Ball, it'll end up using it!
send_catch_ultra()
(Can only be used in battle). Attempts to catch the Pokemon with the strongest PokeBall.
send_fish()
Activates the fishing sequence
send_card()
Toggles the trainer card
send_bag_open()
Opens the bag
send_bag_close()
Closes the bag, only works when bag is already open.
Functions added to PokeBot 3.1+ Library
toggle_bike()
Toggles the bike, uses F1 as quickbar key.
toggle_map()
Toggles the map, uses F3 as quickbar key.
Functions added to PokeBot 3.3+ Library
toggle_repel()
Toggles the repel hotkey, uses F4 as quickbar key
detect_safari_caught()
Checks if a Chansey was c