Hello There, Guest! Login Register


Help me Fix This!
#1
name = "Catch Poliwag route 4"
author = "Shinrei"
description = [[Catch Poliwag with Synch and False Swipe]]

function onStart()
    pcVisits = 0
    shinyCounter = 0
    wildCounter = 0
    log("Start botting.")
end

function onPause()
    log("Shinies Caught: " .. shinyCounter)
    log("Pokemons encountered: " .. wildCounter)
    log("You have visited the PokeCenter ".. pcVisits .." times.")
    log("*********************************************************************************************")
end

function onResume()
    log("SESSION RESUMED")
end

function onPathAction()
    if isPrivateMessageEnabled() then log("Private messages disabled.") return disablePrivateMessage() end
    if isPokemonUsable(1) 
    and (getRemainingPowerPoints(2, "False Swipe") == 0) -- you can change "Hypnosis" to "Sleep Powder"
    then
        if getMapName() == "Route 7"  then    
            moveToMap("Route 7 Stop House")
elseif getMapName () == "Route 7 Stop House" then
moveToMap ("Saffron City")
            elseif getMapName() == "Saffron City" then
                    if not isMounted() then
                        useItem("S Ninetales Mount") -- can be changed into a mount >> e.g useItem("Glaceon Mount")
                            elseif isMounted() then
                    moveToMap("Pokecenter Saffron")
                end
        elseif getMapName() == "Pokecenter Saffron" then
            usePokecenter()
    end
    elseif isPokemonUsable(1) then
        if getPokemonNature(1) == "Adamant" then
            if getMapName() == "Pokecenter Saffron" then
                moveToMap("Saffron City")
            elseif getMapName() == "Saffron City" then
                if not isMounted() then
                        useItem("S Ninetales Mount") -- can be changed into a mount >> e.g useItem("Glaceon Mount")
                            elseif isMounted() then
                    moveToMap("Route 7 Stop House")
elseif getMapName() == "Route 7 Stop House" then
moveToMap("Route 7")
                end
            elseif getMapName() == "Route 4" then
                moveToGrass()
            end
        end
    end
end
function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "Growlithe" or getOpponentName() == "Murkrow") then
        if getActivePokemonNumber() == 1 then
            return sendPokemon(2) or run() or sendAnyPokemon()
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
            return weakAttack() or sendAnyPokemon() or run()
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() == 1 ) then

            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()
        
        end
    end
    
    return run() or sendUsablePokemon() or attack() or senAnyPokemon()

end


The bot Stops!!!
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)