Hello There, Guest! Login Register


Hoenn - Route 120 Leveling
#1
name = "Leveling in Route 120"
author = "Felixao"
description = "Leveling in Route 120"
function onPathAction()
   if isPokemonUsable(1) then
       if getMapName() == "Pokecenter Fortree City" then
               moveToCell(8, 22)
       elseif getMapName() == "Fortree City" then
           if not isMounted() and hasItem("Bicycle") then
                           return useItem("Bicycle")
                       else
                           moveToCell(54, 15)
                       end
       elseif getMapName() == "Route 120" then
           moveToGrass()
       end
   else
       if getMapName() == "Route 120" then
           moveToCell(0, 7)
       elseif getMapName() == "Fortree City" then
           moveToCell(8, 11)
       elseif getMapName() == "Pokecenter Fortree City" 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 run() or sendUsablePokemon() or sendAnyPokemon()
   else
       return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
   end
end
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)