2016-10-16, 20:19:19
name = "Attack EV: Sky Pillar 1F"
author = "Privacy"
description = [[This script will train the first pokémon of your team.
This will also catch shinys and only attack pokémon giving Attack EV.
Start at Pacifidlog Town PokeCenter or Pacifidlog Town.]]
function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Pokecenter Pacifidlog Town" then
moveToMap("Pacifidlog Town")
elseif getMapName() == "Pacifidlog Town" then
moveToMap("Route 131")
elseif getMapName() == "Route 131" then
moveToMap("Sky Pillar Entrence")
elseif getMapName() == "Sky Pillar Entrence" then
moveToMap("Sky Pillar 1F")
elseif getMapName() == "Sky Pillar 1F" then
moveToRectangle( 3, 6, 3, 13)
elseif getMapName() == "Route 131" then
moveToMap("Sky Pillar 1F")
elseif getMapName() == "Sky Pillar 1F" then
end
else
if getMapName() == "Sky Pillar 1F" then
moveToMap("Sky Pillar Entrence")
elseif getMapName() == "Sky Pillar Entrence"then
moveToMap("Route 131")
elseif getMapName() == "Route 131" then
moveToMap("Pacifidlog Town")
elseif getMapName() == "Pacifidlog Town" then
moveToMap("Pokecenter Pacifidlog Town")
elseif getMapName() == "Pokecenter Pacifidlog Town" then
usePokecenter()
end
end
end
function onBattleAction()
if isWildBattle() and isOpponentShiny() then
if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
return
end
end
if getActivePokemonNumber() == 1 then
return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end
author = "Privacy"
description = [[This script will train the first pokémon of your team.
This will also catch shinys and only attack pokémon giving Attack EV.
Start at Pacifidlog Town PokeCenter or Pacifidlog Town.]]
function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Pokecenter Pacifidlog Town" then
moveToMap("Pacifidlog Town")
elseif getMapName() == "Pacifidlog Town" then
moveToMap("Route 131")
elseif getMapName() == "Route 131" then
moveToMap("Sky Pillar Entrence")
elseif getMapName() == "Sky Pillar Entrence" then
moveToMap("Sky Pillar 1F")
elseif getMapName() == "Sky Pillar 1F" then
moveToRectangle( 3, 6, 3, 13)
elseif getMapName() == "Route 131" then
moveToMap("Sky Pillar 1F")
elseif getMapName() == "Sky Pillar 1F" then
end
else
if getMapName() == "Sky Pillar 1F" then
moveToMap("Sky Pillar Entrence")
elseif getMapName() == "Sky Pillar Entrence"then
moveToMap("Route 131")
elseif getMapName() == "Route 131" then
moveToMap("Pacifidlog Town")
elseif getMapName() == "Pacifidlog Town" then
moveToMap("Pokecenter Pacifidlog Town")
elseif getMapName() == "Pokecenter Pacifidlog Town" then
usePokecenter()
end
end
end
function onBattleAction()
if isWildBattle() and isOpponentShiny() then
if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
return
end
end
if getActivePokemonNumber() == 1 then
return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end