![[Image: GY1xSJC.png]](https://i.imgur.com/GY1xSJC.png)
If you don't have pokemon with shadow tag ability, you can use Pokemon with Mean Look move instead. Here's a simple script.
Requirements
1. Pokemon with Mean Look move at 1st slot
2. Pokeballs
name = "Abra Catcher"
Author = "redskhie"
Description = "It will catch Abra at Route 5"
function onStart()
abra_count = 0
abra_found = false
used_meanlook = false
end
function onPathAction()
used_meanlook = false
abra_found = false
if isPokemonUsable(2) and getRemainingPowerPoints(1,"Mean Look") > 0 then
if getMapName() == "Pokecenter Cerulean" then
moveToMap("Cerulean City")
elseif getMapName() == "Cerulean City" then
moveToCell(16, 50)
elseif getMapName() == "Route 5" then
moveToGrass()
end
else
if getMapName() == "Route 5" then
moveToCell(14, 0)
elseif getMapName() == "Cerulean City" then
moveToMap("Pokecenter Cerulean")
elseif getMapName() == "Pokecenter Cerulean" then
usePokecenter()
end
end
end
function onBattleAction()
if getOpponentName() == "Abra" then
if getActivePokemonNumber() == 1 then
if used_meanlook == false then
pp_left = useMove("Mean Look")
--pp_left = pp_left - 1
if getPokemonStatus(1) == "SLEEP" then
used_meanlook = false
else
used_meanlook = true
end
elseif abra_found == true then
return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendAnyPokemon()
elseif pp_left == false then
return run() or sendAnyPokemon()
else
return run() or sendAnyPokemon()
end
end
elseif isOpponentShiny() then
return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendUsablePokemon()
else
return run() or sendUsablePokemon()
end
end
function onBattleMessage(message)
if stringContains(message, "switched") then
abra_found = true
abra_count = abra_count + 1
end
end
function onPause()
log("You have caught " .. abra_count .. " Abra's " )
end
Goodluck