Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = "Capturar Shellos"
- author = "Pinguim"
- description = [[Captura Shellos Relaxed w/ False Swipe]]
- function onStart()
- pcVisits = 0
- shinyCounter = 0
- wildCounter = 0
- log("O Bot foi ligado.")
- end
- function onPause()
- log("Shinies capturados: " .. shinyCounter)
- log("Pokemons encontrados: " .. wildCounter)
- log("Você visitou o PokeCenter ".. pcVisits .." vezes.")
- log("*********************************************************************************************")
- end
- function onPathAction()
- if isPokemonUsable(1)
- and (getRemainingPowerPoints(2, "False Swipe") == 0) -- you can change "Hypnosis" to "Sleep Powder"
- then
- if getMapName() == "Granite Cave 1F" then
- moveToMap("Route 106")
- elseif getMapName() == "Route 106" then
- moveToMap("Dewford Town")
- elseif getMapName() == "Dewford Town" then
- moveToMap("Pokecenter Dewford Town")
- elseif getMapName() == "Pokecenter Dewford Town" then
- usePokecenter()
- end
- elseif isPokemonUsable(1) then
- if getPokemonNature(1) == "Adamant" then
- if getMapName() == "Pokecenter Dewford Town" then
- moveToMap("Dewford Town")
- elseif getMapName() == "Dewford Town" then
- moveToMap("Route 106")
- elseif getMapName() == "Route 106" then
- moveToMap("Granite Cave 1F")
- elseif getMapName() == "Granite Cave B1F1F" then
- moveToRectangle(7, 16, 8, 17)
- end
- end
- end
- end
- function onBattleAction()
- if isWildBattle() and (isOpponentShiny() or getOpponentName() == "Axew") then
- if getActivePokemonNumber() == 1 then
- if sendPokemon(2) then return end
- end
- if getActivePokemonNumber() == 2 and getOpponentHealth() > 1 then
- if weakAttack() then return end
- end
- if useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") then return end
- end
- return run() or sendUsablePokemon() or sendAnyPokemon()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement