PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Dropping PokeBalls?

Open Smir opened this issue 10 years ago • 9 comments

I have the drop item feature on, but surely it would drop everything else first before dropping Pokeball's especially great ones?

anyone else get this or do I have something setup wrong?

Dropped 3x ITEM_POKE_BALL

Smir avatar Jul 22 '16 15:07 Smir

working as intended. its set to only keep 20 of them. you can make the change yourself or wait till its changed(someone is working on it).

leadboots5 avatar Jul 22 '16 15:07 leadboots5

In the code you can declare how much of each item you would like to keep. I agree however that it would be nice to be able to modify this from the config file. Ill get started on that.

val uselessItems = mapOf(
            Pair(ItemId.ITEM_REVIVE, 20),
            Pair(ItemId.ITEM_MAX_REVIVE, 10),
            Pair(ItemId.ITEM_POTION, 0),
            Pair(ItemId.ITEM_SUPER_POTION, 20),
            Pair(ItemId.ITEM_HYPER_POTION, 50),
            Pair(ItemId.ITEM_MAX_POTION, 50),
            Pair(ItemId.ITEM_POKE_BALL, 100),
            Pair(ItemId.ITEM_GREAT_BALL, 100),
            Pair(ItemId.ITEM_ULTRA_BALL, 100),
            Pair(ItemId.ITEM_MASTER_BALL, 10),
            Pair(ItemId.ITEM_RAZZ_BERRY, 30)
    )

This is how mine is set up currently. Drop all potions, and try to keep at least 100 of each ball.

Marrcroger avatar Jul 22 '16 16:07 Marrcroger

Config.properties

# Amount of useless items to keep
ITEM_REVIVE=20
ITEM_MAX_REVIVE=0
ITEM_POTION=0
ITEM_SUPER_POTION=20
ITEM_HYPER_POTION=20
ITEM_MAX_POTION=20
ITEM_POKE_BALL=100
ITEM_GREAT_BALL=100
ITEM_ULTRA_BALL=100
ITEM_MASTER_BALL=100
ITEM_RAZZ_BERRY=30

Settings.kt

val uselessItems = mapOf(
            Pair(ItemId.ITEM_REVIVE, getPropertyIfSet("Amount of useless items to keep", "ITEM_REVIVE", 20, String::toInt)),
            Pair(ItemId.ITEM_MAX_REVIVE, getPropertyIfSet("Amount of useless items to keep", "ITEM_MAX_REVIVE", 10, String::toInt)),
            Pair(ItemId.ITEM_POTION, getPropertyIfSet("Amount of useless items to keep", "ITEM_POTION", 0, String::toInt)),
            Pair(ItemId.ITEM_SUPER_POTION, getPropertyIfSet("Amount of useless items to keep", "ITEM_SUPER_POTION", 30, String::toInt)),
            Pair(ItemId.ITEM_HYPER_POTION, getPropertyIfSet("Amount of useless items to keep", "ITEM_HYPER_POTION", 50, String::toInt)),
            Pair(ItemId.ITEM_MAX_POTION, getPropertyIfSet("Amount of useless items to keep", "ITEM_MAX_POTION", 50, String::toInt)),
            Pair(ItemId.ITEM_POKE_BALL, getPropertyIfSet("Amount of useless items to keep", "ITEM_POKE_BALL", 50, String::toInt)),
            Pair(ItemId.ITEM_GREAT_BALL, getPropertyIfSet("Amount of useless items to keep", "ITEM_GREAT_BALL", 50, String::toInt)),
            Pair(ItemId.ITEM_ULTRA_BALL, getPropertyIfSet("Amount of useless items to keep", "ITEM_ULTRA_BALL", 50, String::toInt)),
            Pair(ItemId.ITEM_MASTER_BALL, getPropertyIfSet("Amount of useless items to keep", "ITEM_MASTER_BALL", 10, String::toInt)),
            Pair(ItemId.ITEM_RAZZ_BERRY, getPropertyIfSet("Amount of useless items to keep", "ITEM_RAZZ_BERRY", 50, String::toInt))
    )

Marrcroger avatar Jul 22 '16 16:07 Marrcroger

Has this been implemented/merged with the main branch?

KyleBoyer avatar Jul 22 '16 18:07 KyleBoyer

Not yet, waiting for @jabbink approval.

CosmoRing avatar Jul 22 '16 18:07 CosmoRing

It would be nice if we could adjust those settings in the config.properties file.

kasagon avatar Jul 22 '16 19:07 kasagon

it's just waiting for approval kasagon :)

Smir avatar Jul 22 '16 19:07 Smir

same idea with mine. try it on.

elliottfeng avatar Jul 22 '16 22:07 elliottfeng

implemented on master

jabbink avatar Jul 22 '16 23:07 jabbink