Hello There, Guest! Login Register


EV Trainer (Kanto)
#1
Heart 
[Image: LdAIzj7.png]
[Image: Y9wNr6X.png]


REQUIREMENTS to make my scripts work!


1. FIRST POKEMON THAT HELD MACHO BRACE
2. Make SURE that the FIRST POKEMON has Damaging MOVES!
3. Make SURE you are on the correct area before starting the script!
4. ARCANINE MOUNT
5. POKEMON with CUT
6. POKEMON with SURF

If all the requirements met,and you encountered an error PLEASE post a clear details of the error.



SCRIPTS:

[Image: nA86x9i.png]
Pokemon Tower (Lavender Town)

name = "Atk"
author = "redskhie"
description = [[EV Trainer]]
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 isPokemonUsable(1) and getPokemonEffortValue(1, "Attack") < 252 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("Pokemon Tower 1F")
            end
        elseif getMapName() == "Pokemon Tower 1F" then
            moveToMap("Pokemon Tower 2F")
        elseif getMapName() == "Pokemon Tower 2F" then
            moveNearExit("Pokemon Tower 1F")
           
        end
    else
        if getMapName() == "Pokemon Tower 2F" then    
            moveToMap("Pokemon Tower 1F")
        elseif getMapName() == "Pokemon Tower 1F" then    
            moveToMap("Lavender Town")
        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("Attack") and getPokemonEffortValue(1,"Attack") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1,"Attack").. " Atk EVs.")
        return attack() or sendPokemon(5) or sendPokemon(6) or run()
    end

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

[Image: YGQQHXB.png]
Viridian Forest/Mt. Moon


name = "Zero"
author = "redskhie"
description = [[EV Trainer]]

function onStart()

    startime = os.time()
    
end

function onPause()
    log("***"..getPokemonName(1).." EV STATS***")
    log("-"..getPokemonNature(1).." Nature-")
    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 isPokemonUsable(1) and getPokemonEffortValue(1, "DEF") < 252 then
        if getMapName() == "Pokecenter Viridian" then
            moveToMap("Viridian City")
        elseif getMapName() == "Pokecenter Pewter" then
            moveToMap("Pewter City")
        elseif getMapName() == "Viridian City" or getMapName() == "Pewter City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 2")
            end
        elseif getMapName() == "Route 2" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                return moveToMap("Route 2 Stop2") or moveToMap("Route 2 Stop")
            end
        elseif getMapName() == "Route 2 Stop" or getMapName() == "Route 2 Stop2" then
            moveToMap("Viridian Forest")
        elseif getMapName() == "Viridian Forest" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToGrass()
            end
        elseif getMapName() == "Pokecenter Route 3" then
            moveToMap("Route 3")
        elseif getMapName() == "Route 3" then
            moveToMap("Mt. Moon 1F")
        elseif getMapName() == "Mt. Moon 1F" then
            moveToRectangle(37, 51, 39, 57)

        end
    else
        if getMapName() == "Cerulean Cave 1F" then
            moveToMap("Cerulean City")
        elseif getMapName() == "Mt. Moon 1F" then
            moveToMap("Route 3")
        elseif getMapName() == "Route 3" then
            moveToMap("Pokecenter Route 3")
        elseif getMapName() == "Pokecenter Route 3" then
            usePokecenter()
        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() == "Viridian Forest" then    
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 2 Stop2")
            end    
        elseif getMapName() == "Route 2 Stop2" then    
            moveToMap("Route 2")
        elseif getMapName() == "Digletts Cave" then    
            moveToMap("Digletts Cave Entrance 2")
        elseif getMapName() == "Digletts Cave Entrance 2" then    
            moveToMap("Route 11")
        elseif getMapName() == "Route 11" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 2" then    
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Pewter City")
            end
        elseif getMapName() == "Pewter City" then
            moveToMap("Pokecenter Pewter")
           elseif getMapName() == "Pokecenter Pewter" 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("DEF") and getPokemonEffortValue(1,"DEF") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1, "DEF").. " DEF EVs.")
        return attack() or sendPokemon(5) or sendPokemon(6) or run()
    end

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


[Image: HaYLVXW.png]
Route 6 (Many Starting Map)


name = "Timid"
author = "redskhie"
description = [[EV Trainer]]

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 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 5")
            
        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

    else

        if getMapName() == "Route 6" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then    
                moveToMap("Pokecenter Vermilion")
            end
        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("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()
    end

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

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



[Image: Trs3JXf.png]
      Route 6


name = "Timid"
author = "redskhie"
description = [[EV Trainer]]

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 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
            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

    else

        if getMapName() == "Route 6" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then    
                moveToMap("Pokecenter Vermilion")
            end
        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").. " SPA EVs.")
        return attack() or sendPokemon(2) or sendPokemon(6) or run() or sendAnyPokemon()
    end

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

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



[Image: AT5MISE.png]
Vermilion City

name = "SPDEF"
author = "redskhie"
description = [[EV Trainer]]

function onStart()

    startime = os.time()
    
end

function onPause()
    log("***"..getPokemonName(1).." EV STATS***")
    log("-"..getPokemonNature(1).." Nature-")
    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 isPokemonUsable(1) and getPokemonEffortValue(1, "SPDEF") < 252 then
        if getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            moveToWater()
        end
    
    else
        if getMapName() == "Vermilion City" then    
            moveToMap("Pokecenter Vermilion")
            elseif getMapName() == "Pokecenter Vermilion" 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()
    end
    
    if getActivePokemonNumber() == 1 and isOpponentEffortValue("SPDEF") and getPokemonEffortValue(1,"SPDEF") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1, "SPDEF").. " SPDEF EVs.")
        return attack() or sendPokemon(5) or sendPokemon(6) or run()
    end

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


[Image: xBazuM8.png]
Viridian Forest


name = "Zero"
author = "redskhie"
description = [[EV Trainer]]

function onStart()

    startime = os.time()
    
end

function onPause()
    log("***"..getPokemonName(1).." EV STATS***")
    log("-"..getPokemonNature(1).." Nature-")
    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 isPokemonUsable(1) and getPokemonEffortValue(1, "HP") < 252 then
        if getMapName() == "Pokecenter Viridian" then
            moveToMap("Viridian City")
        elseif getMapName() == "Pokecenter Pewter" then
            moveToMap("Pewter City")
        elseif getMapName() == "Viridian City" or getMapName() == "Pewter City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 2")
            end
        elseif getMapName() == "Route 2" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                return moveToMap("Route 2 Stop2") or moveToMap("Route 2 Stop")
            end
        elseif getMapName() == "Route 2 Stop" or getMapName() == "Route 2 Stop2" then
            moveToMap("Viridian Forest")
        elseif getMapName() == "Viridian Forest" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToGrass()
            end
        end
    else
        if 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() == "Viridian Forest" then    
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 2 Stop2")
            end    
        elseif getMapName() == "Route 2 Stop2" then    
            moveToMap("Route 2")
        elseif getMapName() == "Digletts Cave" then    
            moveToMap("Digletts Cave Entrance 2")
        elseif getMapName() == "Digletts Cave Entrance 2" then    
            moveToMap("Route 11")
        elseif getMapName() == "Route 11" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 2" then    
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Pewter City")
            end
        elseif getMapName() == "Pewter City" then
            moveToMap("Pokecenter Pewter")
           elseif getMapName() == "Pokecenter Pewter" 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("HP") and getPokemonEffortValue(1,"HP") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1, "HP").. " HP EVs.")
        return attack() or sendPokemon(5) or sendPokemon(6) or run()
    end

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


DUAL to Level 100


SPEED and SPAttack: Route 6 and Cerulean Cave



HP and DEF: Viridian Forest

name = "EV Trainer HP Def and Max Leveller"
author = "redskhie"
description = [[HP Viridian Forest to Pewter and Max Leveller to Cerulean Cave]]

function onStart()

    startime = os.time()
    
end

function onPause()
    log("***"..getPokemonName(1).." EV STATS***")
    log("-"..getPokemonNature(1).." Nature-")
    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, "DEF") == 252 and getPokemonEffortValue(1, "HP") == 252 then
        if getPokemonHeldItem(1) == "Macho Brace" then takeItemFromPokemon(1) end
    end

    if isPokemonUsable(1) and (getPokemonEffortValue(1, "DEF") < 252 or getPokemonEffortValue(1, "HP") < 252) then

        if getMapName() == "Pokecenter Viridian" then
            moveToMap("Viridian City")
        elseif getMapName() == "Pokecenter Pewter" then
            moveToMap("Pewter City")
        elseif getMapName() == "Viridian City" or getMapName() == "Pewter City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 2")
            end
        elseif getMapName() == "Route 2" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                return moveToMap("Route 2 Stop2") or moveToMap("Route 2 Stop")
            end
        elseif getMapName() == "Route 2 Stop" or getMapName() == "Route 2 Stop2" then
            moveToMap("Viridian Forest")
        elseif getMapName() == "Digletts Cave Entrance 2" then
            moveToMap("Digletts Cave")
        elseif getMapName() == "Digletts Cave" then
            moveToMap("Digletts Cave Entrance 1")
        elseif getMapName() == "Digletts Cave Entrance 1" then
            moveToMap("Route 2")
        elseif getMapName() == "Viridian Forest" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToGrass()
            end
        end

    elseif getPokemonEffortValue(1, "DEF") == 252 and getPokemonEffortValue(1, "HP") == 252 and isPokemonUsable(1) and getPokemonLevel(1) < 40 then
        
        if getMapName() == "Pokecenter Pewter" then
            moveToMap("Pewter City")
        elseif getMapName() == "Pewter City" then
            moveToMap("Route 2")
        elseif getMapName() == "Viridian Forest" then    
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 2 Stop2")
            end
            
        elseif getMapName() == "Route 2 Stop2" then    
            moveToMap("Route 2")
        elseif getMapName() == "Route 2" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Digletts Cave Entrance 1")
            end
        elseif getMapName() == "Digletts Cave Entrance 1" then
            moveToMap("Digletts Cave")
        elseif getMapName() == "Digletts Cave" then
            moveToMap("Digletts cave Entrance 2")
        elseif getMapName() == "Digletts Cave Entrance 2" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 11")
            end
        elseif getMapName() == "Route 11" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Pokecenter Saffron" then
            moveToMap("Saffron City")
        elseif getMapName() == "Saffron City" then
            moveToMap("Route 6 Stop House")
        elseif getMapName() == "Route 6 Stop House" then
            moveToMap("Route 6")
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            else
                moveToMap("Route 6")
            end
        elseif getMapName() == "Route 6" then
            moveToGrass()
        end

    elseif (getPokemonLevel(1) < 99 and getPokemonLevel(1) >= 40) and getPokemonEffortValue(1, "DEF") == 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() == "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() == "Pokemon Tower 2F" then    
            moveToMap("Pokemon Tower 1F")
        elseif getMapName() == "Route 6" then    
            moveToMap("Route 6 Stop House")
        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() == "Pokemon Tower 1F" then    
            moveToMap("Lavender Town")
        elseif getMapName() == "Lavender Town" then    
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Pokecenter Lavender")
            end
            elseif getMapName() == "Pokecenter Lavender" then
            usePokecenter()
        elseif getMapName() == "Viridian Forest" then    
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 2 Stop2")
            end
            
        elseif getMapName() == "Route 2 Stop2" then    
            moveToMap("Route 2")
        elseif getMapName() == "Digletts Cave" then    
            moveToMap("Digletts Cave Entrance 2")
        elseif getMapName() == "Digletts Cave Entrance 2" then    
            moveToMap("Route 11")
        elseif getMapName() == "Route 11" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then    
                moveToMap("Route 6")
            end
        elseif getMapName() == "Route 2" then    
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Pewter City")
            end
        elseif getMapName() == "Pewter City" then
            moveToMap("Pokecenter Pewter")
           elseif getMapName() == "Pokecenter Pewter" or getMapName() == "Pokecenter Saffron" then
            usePokecenter()
        end
        
    end
end

function onBattleAction()
    
    if getActivePokemonNumber() == 1 and isOpponentEffortValue("DEF") and getPokemonEffortValue(1,"DEF") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1,"DEF").. " Def EVs.")
        return attack() or sendPokemon(5) or sendPokemon(6) or run()
    elseif getActivePokemonNumber() == 1 and isOpponentEffortValue("HP") and getPokemonEffortValue(1,"HP") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1,"HP").. "HP EVs.")
        return attack() or sendPokemon(5) or sendPokemon(6) or run()
    elseif getPokemonEffortValue(1,"DEF") == 252 and getPokemonEffortValue(1,"HP") == 252 then
        return attack() or sendPokemon(2) or sendAnyPokemon() or run()
    
    elseif isOpponentShiny() then
        return useItem("Pokeball") or useItem("Great Ball") or sendUsablePokemon()
    else
              return run() or sendUsablePokemon() or sendAnyPokemon()
    end
        
end



HP and SPDEF: Vermilion City, Viridian Forest, and Cerulean Cave


name = "HP and SPDEF"
author = "redskhie"
description = [[EV Trainer]]

function onStart()

    startime = os.time()
    
end

function onPause()
    log("***"..getPokemonName(1).." EV STATS***")
    log("-"..getPokemonNature(1).." Nature-")
    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, "SPDEF") == 252 and getPokemonEffortValue(1, "HP") == 252 then
        if getPokemonHeldItem(1) == "Macho Brace" then takeItemFromPokemon(1) end
    end
    
    if isPokemonUsable(1) and getPokemonEffortValue(1, "SPDEF") < 252 then
        if getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            moveToWater()
        end
    elseif isPokemonUsable(1) and getPokemonEffortValue(1, "HP") < 252 and getPokemonEffortValue(1, "SPDEF") == 252 then
        if getMapName() == "Pokecenter Viridian" then
            moveToMap("Viridian City")
        elseif getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            if not isSurfing() then
                useItem("Arcanine Mount")
            elseif isSurfing() or isMounted() then
                moveToMap("Route 11")
            end
        elseif getMapName() == "Pokecenter Pewter" then
            moveToMap("Pewter City")
        elseif getMapName() == "Viridian City" or getMapName() == "Pewter City" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 2")
            end
        elseif getMapName() == "Route 2" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                return moveToMap("Route 2 Stop2") or moveToMap("Route 2 Stop")
            end
        elseif getMapName() == "Route 2 Stop" or getMapName() == "Route 2 Stop2" then
            moveToMap("Viridian Forest")
        elseif getMapName() == "Route 11" then
            moveToMap("Digletts Cave Entrance 2")
        elseif getMapName() == "Digletts Cave Entrance 2" then
            moveToMap("Digletts Cave")
        elseif getMapName() == "Digletts Cave" then
            moveToMap("Digletts Cave Entrance 1")
        elseif getMapName() == "Digletts Cave Entrance 1" then
            moveToMap("Route 2")
        elseif getMapName() == "Viridian Forest" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToGrass()
            end
        end
    elseif getPokemonEffortValue(1, "HP") == 252 and getPokemonLevel(1) < 100 and getPokemonEffortValue(1, "SPDEF") == 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() == "Viridian Forest" then
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 2 Stop2")
            end
        elseif getMapName() == "Route 2 Stop2" then
            moveToMap("Route 2")
        elseif getMapName() == "Route 2" then
            moveToMap("Digletts Cave Entrance 1")
        elseif getMapName() == "Digletts Cave Entrance 1" then
            moveToMap("Digletts Cave")
        elseif getMapName() == "Digletts Cave" then
            moveToMap("Digletts Cave Entrance 2")
        elseif getMapName() == "Digletts Cave Entrance 2" then
            moveToMap("Route 11")
        elseif getMapName() == "Viridian Forest" then
        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() == "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() == "Viridian Forest" then    
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Route 2 Stop2")
            end    
        elseif getMapName() == "Route 2 Stop2" then    
            moveToMap("Route 2")
        elseif getMapName() == "Digletts Cave" then    
            moveToMap("Digletts Cave Entrance 2")
        elseif getMapName() == "Digletts Cave Entrance 2" then    
            moveToMap("Route 11")
        elseif getMapName() == "Route 11" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Route 2" then    
            if not isMounted() then
                useItem("Arcanine Mount")
            elseif isMounted() then
                moveToMap("Pewter City")
            end
        elseif getMapName() == "Pewter City" then
            moveToMap("Pokecenter Pewter")
           elseif getMapName() == "Pokecenter Pewter" or getMapName() == "Pokecenter Saffron" then
            usePokecenter()
        elseif getMapName() == "Pokemon Tower 2F" then    
            moveToMap("Pokemon Tower 1F")
        elseif getMapName() == "Pokemon Tower 1F" then    
            moveToMap("Lavender Town")
        elseif getMapName() == "Vermilion City" then    
            moveToMap("Pokecenter Vermilion")
            elseif getMapName() == "Pokecenter Vermilion" 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()
    end
    
    if getActivePokemonNumber() == 1 and isOpponentEffortValue("SPDEF") and getPokemonEffortValue(1,"SPDEF") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1, "SPDEF").. " SPDEF EVs.")
        return attack() or sendPokemon(5) or sendPokemon(6) or run()
    elseif getActivePokemonNumber() == 1 and isOpponentEffortValue("HP") and getPokemonEffortValue(1,"HP") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1, "HP").. " HP EVs.")
        return attack() or sendPokemon(5) or sendPokemon(6) or run()
    elseif getPokemonEffortValue(1,"SPDEF") == 252 and getPokemonEffortValue(1,"HP") == 252 then
        return attack() or sendPokemon(2) or sendAnyPokemon()
    end

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




ATTACK and SPEED: Pokemon Tower to Cerulean Cave



name = "Zero"
author = "redskhie"
description = [[EV Trainer]]


function onPathAction()

    if not isMounted() and hasItem("Arcanine Mount") and not isSurfing() and isOutside() then
       log("---------------------------")
       log("~~~ Riding on my pet!!! ~~~")
       log("---------------------------")
               return useItem("Arcanine Mount")

    
    elseif getPokemonHeldItem(1) == "Macho Brace" and getPokemonEffortValue(1, "Attack") >= 252 and getPokemonEffortValue(1, "Speed") >= 252 then
         takeItemFromPokemon(1)
            
    

    elseif isPokemonUsable(1) and (getPokemonEffortValue(1, "Speed") < 252 or getPokemonEffortValue(1, "Attack") < 252) then
        if getMapName() == "Pokecenter Lavender" then
            moveToMap("Lavender Town")
        elseif getMapName() == "Pokecenter Vermilion" or getMapName() == "Route 6" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            moveToMap("Route 11")
        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
            moveToMap("Lavender Town")
        elseif getMapName() == "Lavender Town" then
            moveToMap("Pokemon Tower 1F")
        elseif getMapName() == "Pokemon Tower 1F" then
            moveToMap("Pokemon Tower 2F")
        elseif getMapName() == "Route 12" then
            moveToMap("Lavender Town")
        elseif getMapName() == "Pokemon Tower 2F" then
            moveNearExit("Pokemon Tower 1F")
        end
        
    elseif isPokemonUsable(1) and getPokemonLevel(1) < 98 then
        if getMapName() == "Pokecenter Cerulean" then
            moveToMap("Cerulean City")
        elseif (getPlayerX() == 26 and getPlayerY() == 31) or (getPlayerX() == 9 and getPlayerY() == 49) then
            moveToMap("Route 4")
        elseif getMapName() == "Route 6" then    
            return moveToMap("Route 6 Stop House")
        elseif getMapName() == "Safari Stop" or getMapName() == "Pokecenter Fuchsia" then    
            return moveToMap("Fuchsia City")
        elseif getMapName() == "Fuchsia City" then
            moveToMap("Route 15 Stop House")
        elseif getMapName() == "Route 15 Stop House" then    
            moveToMap("Route 15")
        elseif getMapName() == "Route 15" then
            moveToMap("Route 14")
        elseif getMapName() == "Route 14" then    
            moveToMap("Route 13")
        elseif getMapName() == "Route 13" then    
            moveToMap("Route 12")
        elseif getMapName() == "Route 12" then    
            moveToMap("Route 11 Stop House")
        elseif getMapName() == "Route 11 Stop House" then    
            moveToMap("Route 11")
        elseif getMapName() == "Route 11" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Pokecenter Vermilion" then    
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then    
            moveToMap("Route 6")
        elseif getMapName() == "Pokemon Tower 2F" then    
            moveToMap("Pokemon Tower 1F")
        elseif getMapName() == "Pokemon Tower 1F" then    
            moveToMap("Lavender Town")
        elseif getMapName() == "Lavender Town" then
            moveToMap("Route 12")
        elseif getMapName() == "Route 6 Stop House" then    
            moveToMap("Saffron City")
        elseif getMapName() == "Saffron City" then    
            moveToMap("Route 5 Stop House")
        elseif getMapName() == "Route 5 Stop House" then    
            moveToMap("Route 5")
        elseif getMapName() == "Route 5" then    
            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() == "Pokemon Tower 2F" then    
            moveToMap("Pokemon Tower 1F")
        elseif getMapName() == "Cerulean Cave 1F" then
            moveToMap("Cerulean City")
        elseif ( getPlayerX() == 1 and getPlayerY() == 20 ) then
            moveToCell(26, 30)
        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 11" then
            moveToMap("Route 11 Stop House")
        elseif getMapName() == "Route 11 Stop House" then
            moveToMap("Route 12")
        elseif getMapName() == "Route 12" then
            moveToMap("Lavender Town")
        elseif getMapName() == "Pokemon Tower 1F" then    
            moveToMap("Lavender Town")
        elseif getMapName() == "Lavender Town" then    
            moveToMap("Pokecenter Lavender")
        elseif getMapName() == "Route 6" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            moveToMap("Pokecenter Vermilion")
            elseif getMapName() == "Pokecenter Lavender" or getMapName() == "Pokecenter Vermilion" 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()
    end
    
    if getActivePokemonNumber() == 1 and isOpponentEffortValue("Attack") and getPokemonEffortValue(1,"Attack") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1,"Attack").. " Atk EVs.")
        return attack() or sendPokemon(2) or sendPokemon(3)  or sendAnyPokemon() or run()

    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(3) or sendAnyPokemon() or run()
    
    
    elseif (getActivePokemonNumber() == 2) or ( getPokemonEffortValue(1,"Speed") == 252 and getPokemonEffortValue(1,"Attack") == 252 ) then
        return attack() or sendPokemon(4) or sendPokemon(5) or sendAnyPokemon() or run()
    end    

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

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()
    
    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



Note: Feel free to tell me an error and suggest of what is good.



UPDATE:

~ Mt. Moon Added for DEFENSE training spot.
~ Attack and Speed and Levelling at Lavender/Cerulean Cave



[Image: Y9wNr6X.png]
God Karp Trainer loading... *splash*splash Huh

 
Reply
#2
you can make it spatk/hp on route 6 aswell, great job sir
XD
 
Reply
#3
[18:25:08] Bot started
[18:25:18] No action executed: stopping the bot.
[18:25:18] Bot stopped
when i try to use hp and def ev script this error turns out
 
Reply
#4
Hayri [18:25:08] Bot started
[18:25:18] No action executed: stopping the bot.
[18:25:18] Bot stopped
when i try to use hp and def ev script this error turns out
same to me
 
Reply
#5
leo
Hayri [18:25:08] Bot started
[18:25:18] No action executed: stopping the bot.
[18:25:18] Bot stopped
when i try to use hp and def ev script this error turns out
same to me




if not isMounted() then
                useItem("Arcanine Mount")

You need a Arcanine Mount.
 
Reply
#6
Alissa
leo
Hayri [18:25:08] Bot started
[18:25:18] No action executed: stopping the bot.
[18:25:18] Bot stopped
when i try to use hp and def ev script this error turns out
same to me




if not isMounted() then
                useItem("Arcanine Mount")

You need a Arcanine Mount.

If you don't have Arca, you can change it with Bicycle or just delete it
God Karp Trainer loading... *splash*splash Huh

 
Reply
#7
SPEED: Route 6 (Many Starting Map)

[21:32:08] Running PROShine by Silv3r, version 2.1.1.0
[21:32:12] Could not load script SPATK Route 6.lua:
chunk_1Sad91,2-8): unexpected symbol near 'elseif'

HELP
 
Reply
#8
thanks ^^
 
Reply
#9
pedrocas00 SPEED: Route 6 (Many Starting Map)

[21:32:08] Running PROShine by Silv3r, version 2.1.1.0
[21:32:12] Could not load script SPATK Route 6.lua:
chunk_1Sad91,2-8): unexpected symbol near 'elseif'

HELP

Updated, recopy the script.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#10
they all are with the same error and when it comes to Saffron City and it hangs oara handle the time he has to handle the nothing
 
Reply
#11
pedrocas00 they all are with the same error and when it comes to Saffron City and it hangs oara handle the time he has to handle the nothing

You mean all the scripts are stopping the bot when in Saffron City?


Better move to correct farming location to make the script run. And back read the requirements.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#12
redskhie
pedrocas00 they all are with the same error and when it comes to Saffron City and it hangs oara handle the time he has to handle the nothing

You mean all the scripts are stopping the bot when in Saffron City?


Better move to correct farming location to make the script run. And back read the requirements.



looks SPEED and oSPATK station locking in Saffron City as it arrives and also they are quitting responds very and other damage then the error unexpected symbol near ' elseif '
 
Reply
#13
[23:07:17] Script "Timid" by "redskhie" successfully loaded
[23:07:17] EV Trainer
[23:07:19] Bot started
[23:07:29] No action executed: stopping the bot.
[23:07:29] Bot stopped
[23:07:29]
[23:07:29] ***Gastly STATS***
[23:07:29] Attack: 0
[23:07:29] Defense: 0
[23:07:29] Speed: 0
[23:07:29] Special Attack: 0
[23:07:29] Special Defense: 0
[23:07:29] Health Points: 0
[23:07:29]
[23:07:29] Bot running time: 0.00 hours
[23:07:29] or
[23:07:29] Bot running time: 0.17 minutes
[23:07:29]
 
Reply
#14
pedrocas00
redskhie
pedrocas00 they all are with the same error and when it comes to Saffron City and it hangs oara handle the time he has to handle the nothing

You mean all the scripts are stopping the bot when in Saffron City?


Better move to correct farming location to make the script run. And back read the requirements.



looks SPEED and oSPATK station locking in Saffron City as it arrives and also they are quitting responds very and other damage then the error unexpected symbol near ' elseif '


Actually I don't understand what your saying. But you can manually go to Vermilion City. And recopy the script because its updated. And make sure you have Arcanine Mount.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#15
redskhie
pedrocas00
redskhie You mean all the scripts are stopping the bot when in Saffron City?


Better move to correct farming location to make the script run. And back read the requirements.



looks SPEED and oSPATK station locking in Saffron City as it arrives and also they are quitting responds very and other damage then the error unexpected symbol near ' elseif '


Actually I don't understand what your saying. But you can manually go to Vermilion City. And recopy the script because its updated. And make sure you have Arcanine Mount.


I do not have it

elseif getMapName() == "Saffron City" then
if not isMounted() then
useItem("")
elseif isMounted() then
moveToMap("Route 6 Stop House")
 
Reply
#16
[10:10:58 AM] The Attack hits.
[10:10:58 AM] The Attack hits.
[10:11:02 AM] You have run away from the wild Pokemon.
[10:11:07 AM] A Wild Psyduck Attacks!
[10:11:11 AM] Bot paused
[10:11:11 AM]  

[10:11:11 AM] Attack: 6
[10:11:11 AM] Defense: 0
[10:11:11 AM] Speed: 84
[10:11:11 AM] Special Attack: 54
[10:11:11 AM] Special Defense: 0
[10:11:11 AM] Health Points: 0
[10:11:11 AM]  
[10:11:11 AM] Bot running time: 0.00 hours
[10:11:11 AM] or
[10:11:11 AM] Bot running time: 0.23 minutes
[10:11:11 AM]
God Karp Trainer loading... *splash*splash Huh

 
Reply
#17
I see, thats why the bot stops.

elseif getMapName() == "Saffron City" then
            if not isMounted() then
                useItem("")
            elseif isMounted() then
                moveToMap("Route 6 Stop House")

Delete all the mount function just like this:


elseif getMapName() == "Saffron City" then
                moveToMap("Route 6 Stop House")
God Karp Trainer loading... *splash*splash Huh

 
Reply
#18
redskhie I see, thats why the bot stops.

elseif getMapName() == "Saffron City" then
            if not isMounted() then
                useItem("")
            elseif isMounted() then
                moveToMap("Route 6 Stop House")

Delete all the mount function just like this:


elseif getMapName() == "Saffron City" then
                moveToMap("Route 6 Stop House")


name = "Timid"
author = "redskhie"
description = [[EV Trainer]]

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 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
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
moveToMap("Route 6 Stop House")
end
elseif getMapName() == "Route 6 Stop House" then
moveToMap("Route 6")
elseif getMapName() == "Route 6" then
moveToGrass()
end

else

if getMapName() == "Route 6" then
moveToMap("Vermilion City")
elseif getMapName() == "Vermilion City" then
moveToMap("Pokecenter Vermilion")
end
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("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()
end


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

end

function onBattleMessage(error)
if stringContains(error, "You can not") then
fatal("Ev training destroyed")
end
end
 
Reply
#19
If you or anyone was interested, I just added this bit to the "function onBattleAction()" section of your Pokemon Tower (Atk EV) code to also have it train for the Speed EV, since there is a high encounter rate of Rattatas in there

elseif getActivePokemonNumber() == 1 and isOpponentEffortValue("Speed") and getPokemonEffortValue(1,"Speed") < 252 then
        log("Your "..getPokemonName(1).." have "..getPokemonEffortValue(1,"Speed").. " Speed EVs.")
        return attack() or sendPokemon(5) or sendPokemon(6) or run()
 
Reply
#20
scripts spatk don't work by
if isPokemonUsable(1) and getPokemonEffortValue(1, "Speed") < 252 then
you should change it
will
if isPokemonUsable(1) and getPokemonEffortValue(1, "Spattack") < 252 then
 
Reply
#21
script spatk fail , it looks like script train speed
 
Reply
#22
cuncon1432000 script spatk fail , it looks like script train speed
It will work and train SPattack but it won't stop even if SPATTACK reaches 252 because the condition is in SPEED. BTW its updated, thanks
God Karp Trainer loading... *splash*splash Huh

 
Reply
#23
redskhie
cuncon1432000 script spatk fail , it looks like script train speed
It will work and train SPattack but it won't stop even if SPATTACK reaches 252 because the condition is in SPEED. BTW its updated, thanks
if 3 move PP=0 and 1 move is completely ineffective :
{[11:00:53 AM] A Wild Rattata Attacks!
[11:00:58 AM] Your Gastly have 250 SPe EVs.
[11:00:59 AM] Come Back, Gastly!
[11:00:59 AM] Go, Sandslash!
[11:00:59 AM] Rattata used Tail Whip.
[11:00:59 AM] Sandslash's DEF fell!
[11:01:02 AM] You have run away from the wild Pokemon.
[11:01:10 AM] A Wild Zubat Attacks!
[11:01:15 AM] Your Gastly have 250 SPe EVs.
[11:01:16 AM] Come Back, Gastly!
[11:01:16 AM] Go, Sandslash!
[11:01:16 AM] Zubat Attacks Sandslash with Astonish.
[11:01:20 AM] You have run away from the wild Pokemon.
[11:01:26 AM] A Wild Zubat Attacks!
[11:01:30 AM] Your Gastly have 250 SPe EVs.
[11:01:31 AM] Come Back, Gastly!
[11:01:31 AM] Go, Sandslash!
[11:01:31 AM] Zubat Attacks Sandslash with Astonish.
[11:01:36 AM] You have run away from the wild Pokemon.
[11:01:43 AM] A Wild Spearow Attacks!
[11:01:48 AM] Your Gastly have 250 SPe EVs.
[11:01:49 AM] Come Back, Gastly!
[11:01:49 AM] Go, Sandslash!
[11:01:49 AM] Spearow used Leer.
[11:01:49 AM] Sandslash's DEF fell!
[11:01:53 AM] You have run away from the wild Pokemon.
[11:02:01 AM] A Wild Rattata Attacks!
[11:02:06 AM] Your Gastly have 250 SPe EVs.
[11:02:07 AM] Come Back, Gastly!
[11:02:07 AM] Go, Sandslash!
[11:02:07 AM] Rattata used Tail Whip.
[11:02:07 AM] Sandslash's DEF fell!
[11:02:11 AM] You have run away from the wild Pokemon.

in that case, you should add in script go to pokemon center
 
Reply
#24
What script did you use?
God Karp Trainer loading... *splash*splash Huh

 
Reply
#25
redskhie What script did you use?
speed ,
and 1 other similar scenarios in such circumstances if all pp
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)