Hello There, Guest! Login Register


route 110 catching electrike
#1
i did't get dex entry of the member exclusive pokemon yet so added a few pokemon native to this route from emerald game
name = "Leveling in Route 110 and catch Electrike"
author = "Alex"
description = "Leveling in Route 110 and catch Electrike"
function onPathAction()
    if getUsablePokemonCount() > 2 then
        if getMapName() == "Pokecenter Mauville City" then
            moveToMap("Mauville city")
        elseif getMapName() == "Mauville City" then
            moveToMap("Mauville City Stop House 1")
        elseif getMapName() == "Mauville City Stop House 1" then
            moveToMap("Route 110")
        elseif getMapName() == "Route 110" then
            moveToGrass()
            end
    else
        if getMapName() == "Route 110" then
        moveToMap("Mauville City Stop House 1")
        elseif getMapName() == "Mauville City Stop House 1" then
            moveToMap("Mauville city")
        elseif getMapName() == "Mauville City" then
            moveToMap("Pokecenter Mauville City")
        elseif getMapName() == "Pokecenter Mauville City" then
            usePokecenter()
        end
    end
end


function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() or (not isAlreadyCaught()) or (getOpponentName() == "Electrike" ) or (getOpponentName() == "Plusle" ) or (getOpponentName() == "Minun" ) or (getOpponentName() == "Gulpin" ) or (getOpponentName() == "Shellos" ) or (getOpponentName() == "Trubbish" ) ) then
        if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
            return
        end
    end
    if (getUsablePokemonCount() > 2 and getOpponentName() != "Oddish") then
        return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
    else
        return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
    end
end
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)