Hello There, Guest! Login Register


EV trainer with Max Leveller
#1
INFORMATION:

EV Training and Levelling 1st Pokemon at Route 6 and Cerulean Cave

Speed EV Trainer Big Grin
Special Attack EV Trainer Big Grin
Levelling to 99 when EV training done Big Grin
Catching Shinies Big Grin
Pokedollar Counter Big Grin
Effort Values Counter Big Grin
Level Counter Big Grin
Bot Session Counter Big Grin

*You can start at Cerulean City to Vermilion City


BUG: When encountering Bellsprout and it failed to run away then Bellsprout used Wrap, the bot just stop.


name = "Timid"
author = "redskhie"
description = [[EV Trainer and Max Leveller]]

function onStart()
    startime = os.time()
        startMoney = getMoney()
        levelOfTheFirst = getPokemonLevel(1)
end

function onPause()
    log(" ")
    log("Pokedollars earned: "..tostring(getMoney() - startMoney))
        log("Your ".. getPokemonName(1) .." gained " .. (getPokemonLevel(1) - levelOfTheFirst) .. " level during the bot time.")
    log(" ")
    log("***"..getPokemonName(1).." EV STATS***")
    log("Attack: "..getPokemonEffortValue(1, "Attack"))
    log("Defense: "..getPokemonEffortValue(1, "Defense"))
    log("Speed: "..getPokemonEffortValue(1, "Speed"))
    log("Special Attack: "..getPokemonEffortValue(1, "Spattack"))
    log("Special Defense: "..getPokemonEffortValue(1, "Spdefense"))
    log("Health Points: "..getPokemonEffortValue(1, "HP"))
    log(" ")
    endtime = os.time()
    log(string.format("Bot running time: %.2f", os.difftime(endtime,startime)/3600 ).. " hours")
    log("or")
    log(string.format("Bot running time: %.2f", os.difftime(endtime,startime)/60 ).. " minutes")
    log(" ")
        
end

function onStop()
    log(" ")
    log("Pokedollars earned: "..tostring(getMoney() - startMoney))
        log("Your ".. getPokemonName(1) .." gained " .. (getPokemonLevel(1) - levelOfTheFirst) .. " level during the bot time.")
    log(" ")
    log("***"..getPokemonName(1).." STATS***")
    log("Attack: "..getPokemonEffortValue(1, "Attack"))
    log("Defense: "..getPokemonEffortValue(1, "Defense"))
    log("Speed: "..getPokemonEffortValue(1, "Speed"))
    log("Special Attack: "..getPokemonEffortValue(1, "Spattack"))
    log("Special Defense: "..getPokemonEffortValue(1, "Spdefense"))
    log("Health Points: "..getPokemonEffortValue(1, "HP"))
    log(" ")
    
    endtime = os.time()
    log(string.format("Bot running time: %.2f", os.difftime(endtime,startime)/3600 ).. " hours")
    log("or")
    log(string.format("Bot running time: %.2f", os.difftime(endtime,startime)/60 ).. " minutes")
    log(" ")

end

function onPathAction()
    
    if getPokemonEffortValue(1, "Spattack") == 252 and getPokemonEffortValue(1, "Speed") == 252 then
        if getPokemonHeldItem(1) == "Macho Brace" then takeItemFromPokemon(1) end
    end
    
    
    

    if isPokemonUsable(1) and getPokemonEffortValue(1, "Speed") < 252 then
        if getMapName() == "Pokecenter Cerulean" then
            moveToMap("Cerulean City")
        elseif getMapName() == "Cerulean Cave 1F" then
            moveToMap("Cerulean City")
        elseif ( getPlayerX() == 1 and getPlayerY() == 20 ) or ( getPlayerX() == 1 and getPlayerY() == 21 ) or ( getPlayerX() == 1 and getPlayerY() == 19 ) then
            return moveToCell(14,50)
        elseif getMapName() == "Cerulean City" then
        
            return moveToMap("Route 4")
            
        elseif getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 4" then
            moveToGrass()
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 6")
            end
        elseif getMapName() == "Route 5" then
            moveToMap("Route 5 Stop House")
        elseif getMapName() == "Route 5 Stop House" then
            
            moveToMap("Saffron City")
            
        elseif getMapName() == "Saffron City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 6 Stop House")
            end
        elseif getMapName() == "Route 6 Stop House" then
            moveToMap("Route 6")
        elseif getMapName() == "Route 6" then
            moveToGrass()
            end
    elseif isPokemonUsable(1) and getPokemonEffortValue(1, "Spattack") < 252 then
        if getMapName() == "Pokecenter Cerulean" then
            moveToMap("Cerulean City")
        elseif getMapName() == "Cerulean Cave 1F" then
            moveToMap("Cerulean City")
        elseif ( getPlayerX() == 1 and getPlayerY() == 20 ) or ( getPlayerX() == 1 and getPlayerY() == 21 ) or ( getPlayerX() == 1 and getPlayerY() == 19 ) then
            return moveToCell(14,50)
        elseif getMapName() == "Cerulean City" then
        
            return moveToMap("Route 4")
            
        elseif getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 4" then
            moveToCell(96, 21)
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 6")
            end
        elseif getMapName() == "Route 5" then
            moveToMap("Route 5 Stop House")
        elseif getMapName() == "Route 5 Stop House" then
            
            moveToMap("Saffron City")
            
        elseif getMapName() == "Saffron City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 6 Stop House")
            end
        elseif getMapName() == "Route 6 Stop House" then
            moveToMap("Route 6")
        elseif getMapName() == "Route 6" then
            moveToGrass()
            end
    
    elseif (getPokemonLevel(1) < 100 and getPokemonLevel(1) > 35) and getPokemonEffortValue(1, "Spattack") == 252 and getPokemonEffortValue(1, "Speed") == 252 and isPokemonUsable(1) then
        
        if getMapName() == "Pokecenter Lavender" then
            moveToMap("Lavender Town")
        elseif getMapName() == "Lavender Town" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 12")
            end
        elseif getMapName() == "Route 12" then
            moveToMap("Route 11 Stop House")
        elseif getMapName() == "Route 11 Stop House" then
            moveToMap("Route 11")
        elseif getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 11" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToCell(0, 13)
            end
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            else
                moveToMap("Route 6")
            end
        elseif getMapName() == "Pokemon Tower 1F" then
            moveToMap("Lavender Town")
        elseif getMapName() == "Pokemon Tower 2F" then
            moveToMap("Pokemon Tower 1F")
        elseif getMapName() == "Pokecenter Cerulean" then
            moveToMap("Cerulean City")
        elseif (getPlayerX() == 26 and getPlayerY() == 31) or ( getPlayerX() == 1 and getPlayerY() == 20 ) or ( getPlayerX() == 1 and getPlayerY() == 19 ) or (getPlayerX() == 9 and getPlayerY() == 49) then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 4")
            end
        elseif getMapName() == "Route 6" then    
            return moveToMap("Route 6 Stop House")
        elseif getMapName() == "Pokecenter Vermilion" then    
            return moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then    
            return moveToMap("Route 6")
        elseif getMapName() == "Route 6 Stop House" then    
            return moveToMap("Saffron City")
        elseif getMapName() == "Saffron City" then    
            return moveToMap("Route 5 Stop House")
        elseif getMapName() == "Route 5 Stop House" then    
            return moveToMap("Route 5")
        elseif getMapName() == "Route 5" then    
            return moveToCell(14, 0)
        elseif getMapName() == "Cerulean City" or getMapName() == "Route 4" then
            return  moveToMap("Cerulean Cave 1F") or moveToCell(96, 14)    
        elseif getMapName() == "Cerulean Cave 1F"  then    
            return moveNearExit("Cerulean City")
        end

    else
        if getMapName() == "Route 5" then    
            moveToCell(14,0)
    
            elseif getMapName() == "Pokecenter Cerulean" then
            usePokecenter()
        elseif getMapName() == "Cerulean Cave 1F" then
            moveToMap("Cerulean City")
        elseif ( getPlayerX() == 1 and getPlayerY() == 20 ) or ( getPlayerX() == 1 and getPlayerY() == 21 ) or ( getPlayerX() == 1 and getPlayerY() == 19 ) then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                return moveToCell(26, 30)
            end
        elseif getMapName() == "Cerulean City" then    
            return moveToMap("Route 4")
        elseif getMapName() == "Route 4"  then    
            moveToCell(96, 21)
        elseif getMapName() == "Pokecenter Cerulean"  then    
                usePokecenter()
        
        elseif getMapName() == "Route 6" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 6 Stop House" then    
            moveToMap("Saffron City")
        elseif getMapName() == "Saffron City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then    
                moveToMap("Pokecenter Saffron")
                end
            elseif getMapName() == "Pokecenter Saffron" then
            usePokecenter()    
        elseif getMapName() == "Route 11" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 8" then    
            moveToMap("Lavender Town")
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then    
                moveToMap("Pokecenter Vermilion")
            end
        elseif getMapName() == "Lavender Town" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then    
                moveToMap("Pokecenter Lavender")
            end
           elseif getMapName() == "Pokecenter Vermilion" or getMapName() == "Pokecenter Lavender" then
            usePokecenter()
        end
        
    end
end

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() ) then
        return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()
    elseif getActivePokemonNumber() == 1 and isOpponentEffortValue("Spattack") and getPokemonEffortValue(1,"Spattack") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1,"Spattack").. " Spatk EVs.")
        return attack() or sendPokemon(2) or sendPokemon(6) or run() or sendAnyPokemon()
    elseif getActivePokemonNumber() == 1 and isOpponentEffortValue("Speed") and getPokemonEffortValue(1,"Speed") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1,"Speed").. " SPe EVs.")
        return attack() or sendPokemon(2) or sendPokemon(6) or run() or sendAnyPokemon()
    elseif getPokemonEffortValue(1,"Speed") == 252 and getPokemonEffortValue(1,"Spattack") == 252 then
        return attack() or sendPokemon(2) or sendPokemon(6) or sendAnyPokemon() or run()
    
    end

    
    return run() or sendUsablePokemon() or sendAnyPokemon()
    
end



function onBattleMessage(error)
    if stringContains(error, "You can not") then
        fatal("Ev training destroyed")
    end
end



Try this if you can't survive at Cerulean Cave.

name = "Timid"
author = "redskhie"
description = [[EV Trainer and Max Leveller]]

function onStart()

    startime = os.time()
    
end

function onPause()
    log(" ")
    log("***"..getPokemonName(1).." EV STATS***")
    log("Attack: "..getPokemonEffortValue(1, "Attack"))
    log("Defense: "..getPokemonEffortValue(1, "Defense"))
    log("Speed: "..getPokemonEffortValue(1, "Speed"))
    log("Special Attack: "..getPokemonEffortValue(1, "Spattack"))
    log("Special Defense: "..getPokemonEffortValue(1, "Spdefense"))
    log("Health Points: "..getPokemonEffortValue(1, "HP"))
    log(" ")
    endtime = os.time()
    log(string.format("Bot running time: %.2f", os.difftime(endtime,startime)/3600 ).. " hours")
    log("or")
    log(string.format("Bot running time: %.2f", os.difftime(endtime,startime)/60 ).. " minutes")
    log(" ")
        
end

function onStop()
    log(" ")
    log("***"..getPokemonName(1).." STATS***")
    log("Attack: "..getPokemonEffortValue(1, "Attack"))
    log("Defense: "..getPokemonEffortValue(1, "Defense"))
    log("Speed: "..getPokemonEffortValue(1, "Speed"))
    log("Special Attack: "..getPokemonEffortValue(1, "Spattack"))
    log("Special Defense: "..getPokemonEffortValue(1, "Spdefense"))
    log("Health Points: "..getPokemonEffortValue(1, "HP"))
    log(" ")
    
    endtime = os.time()
    log(string.format("Bot running time: %.2f", os.difftime(endtime,startime)/3600 ).. " hours")
    log("or")
    log(string.format("Bot running time: %.2f", os.difftime(endtime,startime)/60 ).. " minutes")
    log(" ")

end

function onPathAction()
    
    if getPokemonEffortValue(1, "Spattack") == 252 and getPokemonEffortValue(1, "Speed") == 252 then
        if getPokemonHeldItem(1) == "Macho Brace" then takeItemFromPokemon(1) end
    end
    
    

    if isPokemonUsable(1) and getPokemonEffortValue(1, "Speed") < 252 then
        if getMapName() == "Pokecenter Cerulean" then
            moveToMap("Cerulean City")
        elseif getMapName() == "Cerulean Cave 1F" then
            moveToMap("Cerulean City")
        elseif ( getPlayerX() == 1 and getPlayerY() == 20 ) or ( getPlayerX() == 1 and getPlayerY() == 21 ) or ( getPlayerX() == 1 and getPlayerY() == 19 ) then
            return moveToCell(14,50)
        elseif getMapName() == "Cerulean City" then
        
            return moveToMap("Route 4")
            
        elseif getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 4" then
            moveToGrass()
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 6")
            end
        elseif getMapName() == "Route 5" then
            moveToMap("Route 5 Stop House")
        elseif getMapName() == "Route 5 Stop House" then
            
            moveToMap("Saffron City")
            
        elseif getMapName() == "Saffron City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 6 Stop House")
            end
        elseif getMapName() == "Route 6 Stop House" then
            moveToMap("Route 6")
        elseif getMapName() == "Route 6" then
            moveToGrass()
            end
    elseif isPokemonUsable(1) and getPokemonEffortValue(1, "Spattack") < 252 then
        if getMapName() == "Pokecenter Cerulean" then
            moveToMap("Cerulean City")
        elseif getMapName() == "Cerulean Cave 1F" then
            moveToMap("Cerulean City")
        elseif ( getPlayerX() == 1 and getPlayerY() == 20 ) or ( getPlayerX() == 1 and getPlayerY() == 21 ) or ( getPlayerX() == 1 and getPlayerY() == 19 ) then
            return moveToCell(14,50)
        elseif getMapName() == "Cerulean City" then
        
            return moveToMap("Route 4")
            
        elseif getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 4" then
            moveToCell(96, 21)
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 6")
            end
        elseif getMapName() == "Route 5" then
            moveToMap("Route 5 Stop House")
        elseif getMapName() == "Route 5 Stop House" then
            
            moveToMap("Saffron City")
            
        elseif getMapName() == "Saffron City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 6 Stop House")
            end
        elseif getMapName() == "Route 6 Stop House" then
            moveToMap("Route 6")
        elseif getMapName() == "Route 6" then
            moveToGrass()
            end
    
    elseif (getPokemonLevel(1) < 100 and getPokemonLevel(1) >= 60) and getPokemonEffortValue(1, "Spattack") == 252 and getPokemonEffortValue(1, "Speed") == 252 and isPokemonUsable(2) then
        
        if getMapName() == "Pokecenter Lavender" then
            moveToMap("Lavender Town")
        elseif getMapName() == "Lavender Town" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 12")
            end
        elseif getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 11" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToCell(0, 13)
            end
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            else
                moveToMap("Route 6")
            end
        elseif getMapName() == "Pokemon Tower 1F" then
            moveToMap("Lavender Town")
        elseif getMapName() == "Pokemon Tower 2F" then
            moveToMap("Pokemon Tower 1F")
        elseif getMapName() == "Pokecenter Cerulean" then
            moveToMap("Cerulean City")
        elseif (getPlayerX() == 26 and getPlayerY() == 31) or ( getPlayerX() == 1 and getPlayerY() == 20 ) or ( getPlayerX() == 1 and getPlayerY() == 19 ) or (getPlayerX() == 9 and getPlayerY() == 49) then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 4")
            end
        elseif getMapName() == "Route 6" then    
            return moveToMap("Route 6 Stop House")
        elseif getMapName() == "Pokecenter Vermilion" then    
            return moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then    
            return moveToMap("Route 6")
        elseif getMapName() == "Route 6 Stop House" then    
            return moveToMap("Saffron City")
        elseif getMapName() == "Saffron City" then    
            return moveToMap("Route 5 Stop House")
        elseif getMapName() == "Route 5 Stop House" then    
            return moveToMap("Route 5")
        elseif getMapName() == "Route 5" then    
            return moveToCell(14, 0)
        elseif getMapName() == "Seafoam B4F" then    
            moveToCell(9, 6)
        elseif getMapName() == "Seafoam B3F" then    
            moveToMap("Seafoam B2F")
        elseif getMapName() == "Seafoam B2F" then    
            moveToMap("Seafoam B1F")
        elseif getMapName() == "Seafoam B1F" then    
            moveToMap("Seafoam 1F")
        elseif getMapName() == "Seafoam 1F" then    
            moveToCell(13, 16)
        elseif getMapName() == "Route 20" then    
            moveToMap("Route 19")
        elseif getMapName() == "Route 19" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Fuchsia City Stop House")
                end
            elseif isSurfing() then
                moveToMap("Fuchsia City Stop House")
            end    
        elseif getMapName() == "Fuchsia City Stop House" then    
            moveToMap("Fuchsia City")
        elseif getMapName() == "Fuchsia City" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Route 15 Stop House")
                end
            elseif isSurfing() then
                moveToMap("Route 15 Stop House")
            end
        elseif getMapName() == "Route 15 Stop House" then    
            moveToMap("Route 15")
        elseif getMapName() == "Route 15" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Route 14")
                end
            elseif isSurfing() then
                moveToMap("Route 14")
            end
        elseif getMapName() == "Route 14" then    
            moveToMap("Route 13")
        elseif getMapName() == "Route 13" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Route 12")
                end
            elseif isSurfing() then
                moveToMap("Route 12")
            end
        elseif getMapName() == "Route 12" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Route 11 Stop House")
                end
            elseif isSurfing() then
                moveToMap("Route 11 Stop House")
            end
        elseif getMapName() == "Route 11 Stop House" then    
            moveToMap("Route 11")
        elseif getMapName() == "Cerulean City" or getMapName() == "Route 4" then
            return  moveToMap("Cerulean Cave 1F") or moveToCell(96, 14)    
        elseif getMapName() == "Cerulean Cave 1F"  then    
            return moveNearExit("Cerulean City")
        end
    elseif getPokemonLevel(1) < 60 and isPokemonUsable(1) and getPokemonEffortValue(1, "Spattack") == 252 and getPokemonEffortValue(1, "Speed") == 252 then
        if getMapName() == "Pokecenter Vermilion" or getMapName() == "Route 6" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Vermilion City")
                end
            elseif isSurfing() then
                moveToMap("Vermilion City")
            end
        elseif getMapName() == "Vermilion City" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Route 11")
                end
            elseif isSurfing() then
                moveToMap("Route 11")
            end
        elseif getMapName() == "Cerulean City" then
            moveToMap("Route 5")
        elseif getMapName() == "Route 5" then
                moveToMap("Route 5 Stop House")
        elseif getMapName() == "Route 4" then
                moveToCell(96,21)
        elseif getMapName() == "Route 5 Stop House" then
                moveToMap("Saffron City")
        elseif getMapName() == "Saffron City" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Route 6 Stop House")
                end
            elseif isSurfing() then
                moveToMap("Route 6 Stop House")
            end
        elseif getMapName() == "Route 6 Stop House" then
                moveToMap("Route 6")
        elseif getMapName() == "Route 11" then
                moveToMap("Route 11 Stop House")
        elseif getMapName() == "Route 11 Stop House" then
                moveToMap("Route 12")
        elseif getMapName() == "Route 12" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToCell(24, 92)
                end
            elseif isSurfing() then
                moveToCell(24, 92)
            end
        elseif getMapName() == "Route 13" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Route 14")
                end
            elseif isSurfing() then
                moveToMap("Route 14")
            end
        elseif getMapName() == "Route 14" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Route 15")
                end
            elseif isSurfing() then
                moveToMap("Route 15")
            end
        elseif getMapName() == "Route 15" then
            moveToMap("Route 15 Stop House")
        elseif getMapName() == "Route 15 Stop House" then
            moveToMap("Fuchsia City")
        elseif getMapName() == "Pokecenter Fuchsia" then
            moveToMap("Fuchsia City")
        elseif getMapName() == "Fuchsia City" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Fuchsia City Stop House")
                end
            elseif isSurfing() then
                moveToMap("Fuchsia City Stop House")
            end
        elseif getMapName() == "Fuchsia City Stop House" then
            moveToMap("Route 19")
        elseif getMapName() == "Route 19" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Route 20")
                end
            elseif isSurfing() then
                moveToMap("Route 20")
            end
        elseif getMapName() == "Route 20" then    
            moveToCell(60, 32)
        elseif getMapName() == "Seafoam 1F" then    
            moveToMap("Seafoam B1F")
        elseif getMapName() == "Seafoam B1F" then    
            moveToMap("Seafoam B2F")
        elseif getMapName() == "Seafoam B2F" then    
            moveToMap("Seafoam B3F")
        elseif getMapName() == "Seafoam B3F" then    
            moveToCell(12, 8)
        elseif getMapName() == "Seafoam B4F" then
            moveToRectangle(9,15,13,20)
        end
    else
        if getMapName() == "Route 5" then    
            moveToCell(14,0)
    
            elseif getMapName() == "Pokecenter Cerulean" then
            usePokecenter()
        elseif getMapName() == "Cerulean Cave 1F" then
            moveToMap("Cerulean City")
        elseif ( getPlayerX() == 1 and getPlayerY() == 20 ) or ( getPlayerX() == 1 and getPlayerY() == 21 ) or ( getPlayerX() == 1 and getPlayerY() == 19 ) then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                return moveToCell(26, 30)
            end
        elseif getMapName() == "Cerulean City" then    
            return moveToMap("Route 4")
        elseif getMapName() == "Route 4"  then    
            moveToCell(96, 21)
        elseif getMapName() == "Pokecenter Cerulean"  then    
                usePokecenter()
        
        elseif getMapName() == "Route 6" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 6 Stop House" then    
            moveToMap("Saffron City")
        elseif getMapName() == "Saffron City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then    
                moveToMap("Pokecenter Saffron")
                end
            elseif getMapName() == "Pokecenter Saffron" then
            usePokecenter()    
        elseif getMapName() == "Route 11" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 8" then    
            moveToMap("Lavender Town")
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then    
                moveToMap("Pokecenter Vermilion")
            end
        elseif getMapName() == "Lavender Town" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then    
                moveToMap("Pokecenter Lavender")
            end
           elseif getMapName() == "Pokecenter Vermilion" or getMapName() == "Pokecenter Lavender" then
            usePokecenter()
        elseif getMapName() == "Seafoam B4F" then    
            moveToCell(9, 6)
        elseif getMapName() == "Seafoam B3F" then    
            moveToMap("Seafoam B2F")
        elseif getMapName() == "Seafoam B2F" then    
            moveToMap("Seafoam B1F")
        elseif getMapName() == "Seafoam B1F" then    
            moveToMap("Seafoam 1F")
        elseif getMapName() == "Seafoam 1F" then    
            moveToCell(13, 16)
        elseif getMapName() == "Route 20" then    
            moveToMap("Route 19")
        elseif getMapName() == "Route 19" then
            if not isSurfing() then
                if not isMounted() then
                    useItem("Arcanine Mount")
                elseif isMounted() then
                    moveToMap("Fuchsia City Stop House")
                end
            elseif isSurfing() then
                moveToMap("Fuchsia City Stop House")
            end    
        elseif getMapName() == "Fuchsia City Stop House" then    
            moveToMap("Fuchsia City")
        elseif getMapName() == "Fuchsia City" then    
            moveToMap("Pokecenter Fuchsia")
            elseif getMapName() == "Pokecenter Fuchsia" then
            usePokecenter()
        
        end
        
    end
end

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() ) then
        return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()
    elseif getActivePokemonNumber() == 1 and isOpponentEffortValue("Spattack") and getPokemonEffortValue(1,"Spattack") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1,"Spattack").. " Spatk EVs.")
        return attack() or sendPokemon(2) or sendPokemon(6) or run() or sendAnyPokemon()
    elseif getActivePokemonNumber() == 1 and isOpponentEffortValue("Speed") and getPokemonEffortValue(1,"Speed") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1,"Speed").. " SPe EVs.")
        return attack() or sendPokemon(2) or sendPokemon(6) or run() or sendAnyPokemon()
    elseif getPokemonEffortValue(1,"Speed") == 252 and getPokemonEffortValue(1,"Spattack") == 252 then
        return attack() or sendPokemon(2) or sendPokemon(6) or sendAnyPokemon() or run()
    
    end

    
    return run() or sendUsablePokemon() or sendAnyPokemon()
    
end



function onBattleMessage(error)
    if stringContains(error, "You can not") then
        fatal("Ev training destroyed")
    end
end

Credits: Some templates that i used


UPDATED
God Karp Trainer loading... *splash*splash Huh

 
Reply
#2
my bot don't work https://gyazo.com/2a6e4abd17c9427185db309be3b0ad0f
 
Reply
#3
Updated
God Karp Trainer loading... *splash*splash Huh

 
Reply
#4
why?
https://gyazo.com/2f61a1513d4a5e8c15ef36ce1dd75aba
 
Reply
#5
whem i go to vermilion city or Cerulean City the bot stop
 
Reply
#6
I don't know whats wrong on you, I'm using this now and it works perfectly fine.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#7
Updated and tested. Re-copy the script
God Karp Trainer loading... *splash*splash Huh

 
Reply
#8
I think it's messing up for me when it needs to go back to a pokemon centre. It keeps trying to switch to other pokemon, even though the one in slot 1 is still healthy, but without PP. And it will just be in a loop of encountering Pokemon, switching, then running away. Eventually it will just stop.
 
Reply
#9
SpidaMon I think it's messing up for me when it needs to go back to a pokemon centre. It keeps trying to switch to other pokemon, even though the one in slot 1 is still healthy, but without PP. And it will just be in a loop of encountering Pokemon, switching, then running away. Eventually it will just stop.

What script did you use? And please post a screenshot of the bot.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#10
redskhie What script did you use? And please post a screenshot of the bot.

Sorry I should've added that. It's the first script, using it at route 6. I'm currently trying it out again and will post the bot if/when it happens

EDIT: I found that it works perfectly when I start it while in Vermillion. I was starting it while already on Route 6 before. It's working amazingly right now! Hope you keep working on more EV scripts! Many good locations are talked about in this thread if you were interested! https://pokemon-revolution-online.net/Fo...php?t=3275
 
Reply
#11
SpidaMon
redskhie What script did you use? And please post a screenshot of the bot.

Sorry I should've added that. It's the first script, using it at route 6. I'm currently trying it out again and will post the bot if/when it happens

EDIT: I found that it works perfectly when I start it while in Vermillion. I was starting it while already on Route 6 before. It's working amazingly right now! Hope you keep working on more EV scripts! Many good locations are talked about in this thread if you were interested! https://pokemon-revolution-online.net/Fo...php?t=3275


Thanks. Planning to create a new list.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#12
Here is for Kanto Region. https://proshine-bot.com/viewtopic.php?pid=5515#p5515
God Karp Trainer loading... *splash*splash Huh

 
Reply
#13
How to get the code help me how to add it as script help
 
Reply
#14
Nuhash How to get the code help me how to add it as script help
Copy and paste the entire code into a new text file using the notepad.
Save this text file.
Load the text file using PROShine.
 
Reply
#15
Script doesn't work or Im stupid. Bot stay at Route 4 and all time swap my 1st pokemon with 2nd then run. 1Hour and 0 Speed EV earned.

@EDIT:
I have this problem with second code without Cerulean Cave
 
Reply
#16
xYahiko Script doesn't work or Im stupid. Bot stay at Route 4 and all time swap my 1st pokemon with 2nd then run. 1Hour and 0 Speed EV earned.

@EDIT:
I have this problem with second code without Cerulean Cave


You to be in Vermilion City to train for EV's not on Route 4.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#17
First time i started in Cerulean City and then bot went at Route 4.

Now i start in Vermilion City and i stay now in Route 6 but problem is same. Script only swap to my second pokemon and run ;/
 
Reply
#18
xYahiko First time i started in Cerulean City and then bot went at Route 4.

Now i start in Vermilion City and i stay now in Route 6 but problem is same. Script only swap to my second pokemon and run ;/


I can't understand what your talking about. I tried and tested it , and didn't found your problem.

Answer all of this

What Pokemon is in first slot of your team?

What is the Moveset of the Pokemon in first slot?

What is the EV Status of the Pokemon in first slot?

Copy and Reply here the script that you're using

and Post the log of Bot...
God Karp Trainer loading... *splash*splash Huh

 
Reply
#19
OK nvm, I changed attack() to useMove() and now all work great.
 
Reply
#20
for what pokemon does the script work?
 
Reply
#21
@dius all pokemon
Great script keep up the awesome work.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)