PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Running out of pokeballs.

Open nealqu opened this issue 10 years ago • 6 comments

Is there a way to tell the bot to gather pokeballs first at a set minimum before trying to catch any pokemons?

Expected Behavior

Should gather pokeballs at a set minimum.

Actual Behavior

Gathers 3-6 pokeballs and try to catch pokemons even though no pokeballs in inventory.

Steps to Reproduce

It's doing it all the time no need to follow any steps to reproduce.

Other Information

OS: Windows Python Version: (2.7)

Thanks in advance.

nealqu avatar Aug 02 '16 05:08 nealqu

having the same issue. You can put the bot in Farming Mode in the config file but the bot is not collecting items at the reached destinations. I don't know exactly what is going on

supershanesta avatar Aug 02 '16 06:08 supershanesta

Same issue here

ycczkl avatar Aug 02 '16 06:08 ycczkl

Can you post your config file?

iruy avatar Aug 02 '16 07:08 iruy

{
  "auth_service": "google",
  "username": "",
  "password": "",
  "location": "37.795523, -122.393796",
    "gmapkey": "GOOGLE_MAPS_API_KEY",
    "tasks": [
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "CollectLevelUpReward"
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "TransferPokemon"
      },
      {
        "type": "EvolveAll",
        "config": {
          "evolve_all": "NONE",
          "evolve_cp_min": 300,
          "evolve_speed": 20,
          "use_lucky_egg": false
        }
      },
      {
        "type": "RecycleItems",
        "config": {
          "item_filter": {
            "Pokeball":       { "keep" : 300 },
            "Potion":         { "keep" : 10 },
            "Super Potion":   { "keep" : 20 },
            "Hyper Potion":   { "keep" : 30 },
            "Revive":         { "keep" : 30 },
            "Razz Berry":     { "keep" : 100 }
          }
        }
      },
      {
        "type": "CatchVisiblePokemon"
      },
      {
        "type": "CatchLuredPokemon"
      },
      {
        "type": "SpinFort"
      },
      {
        "type": "MoveToFort",
        "config": {
            "lure_attraction": true,
            "lure_max_distance": 2000
        }
      },
      {
        "type": "FollowSpiral"
      }
    ],
    "map_object_cache_time": 5,
    "max_steps": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 50
    },
    "websocket_server": false,
    "walk": 4.16,
    "action_wait_min": 1,
    "action_wait_max": 4,
    "debug": false,
    "test": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "evolve_captured": "NONE",
    "catch_randomize_reticle_factor": 1.0,
    "catch_randomize_spin_factor": 1.0,
    "catch": {
      "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
      "// Example of always catching Rattata:": {},
      "// Rattata": { "always_catch" : true }
    },
    "release": {
      "any": {"release_below_cp": 800, "release_below_iv": 0.9, "logic": "or"},
      "// Example of always releasing Rattata:": {},
      "// Rattata": {"always_release": true},
      "// Example of keeping 3 stronger (based on CP) Pidgey:": {},
      "// Pidgey": {"keep_best_cp": 3},
      "// Example of keeping 2 stronger (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_iv": 2},
      "// Also, it is working with any": {},
      "// any": {"keep_best_iv": 3},
      "// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_cp": 2, "keep_best_iv": 3}
    },
    "vips" : {
         "Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!": {},
        "any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
        "Lapras": {},
        "Moltres": {},
        "Zapdos": {},
        "Articuno": {},

        "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
        "Mewtwo": {},
        "Dragonite": {},
        "Snorlax": {},
        "// Mew evolves to Mewtwo": {},
        "Mew": {},
        "Arcanine": {},
        "Vaporeon": {},
        "Gyarados": {},
        "Exeggutor": {},
        "Muk": {},
        "Weezing": {},
        "Flareon": {}

    }
}

ycczkl avatar Aug 02 '16 07:08 ycczkl

Using this array, set "keep" as you want. Probably missing filter will make the bot keep those items

            "Pokeball":         { "keep" : 50 },
            "Greatball":        { "keep" : 50 },
            "Ultraball":        { "keep" : 50 },
            "Masterball":       { "keep" : 50 },
            "Potion":           { "keep" : 0 },
            "Super Potion":     { "keep" : 0 },
            "Hyper Potion":     { "keep" : 0 },
            "Max Potion":       { "keep" : 0 },
            "Revive":           { "keep" : 0 },
            "Max Revive":       { "keep" : 0 },
            "Lucky Egg":        { },
            "Incense":          { },
            "Spicy Incense":    { },
            "Cool Incense":     { },
            "Floral Incense":   { },
            "Troy Disk":        { },
            "X Attack":         { "keep" : 0 },
            "X Defense":        { "keep" : 0 },
            "X Miracle":        { "keep" : 0 },
            "Razz Berry":       { "keep" : 50 },
            "Bluk Berry":       { "keep" : 50 },
            "Nanab Berry":      { "keep" : 0 },
            "Wepar Berry":      { "keep" : 0 },
            "Pinap Berry":      { "keep" : 0 },
            "Special Camera":   { "keep" : 0 }

iruy avatar Aug 02 '16 08:08 iruy

seems working now. Give me more time for testing

ycczkl avatar Aug 02 '16 17:08 ycczkl