Hello There, Guest! Login Register


Johto - Route 30 Level up
#1
PHP Code:
name "Route 30"
author "Gandalf"
description = [[Start anywhere between the exit of the Route 30 and the Pokecenter Cherrygrove City.]]

function 
onPathAction()
 
  if isPokemonUsable(1then
       
if getMapName() == "Pokecenter Cherrygrove City" then
           moveToCell
(1020)
 
      elseif getMapName() == "Cherrygrove City" then
           moveToCell
(360)
 
      elseif getMapName() == "Route 30" then
           moveToRectangle
(13882088)
 
      end
   
else
 
      if getMapName() == "Route 30" then
           moveToCell
(896)
 
      elseif getMapName() == "Cherrygrove City" then
           moveToCell
(516)
 
      elseif getMapName() == "Pokecenter Cherrygrove City" then
           talkToNpcOnCell
(1012)
 
      end
   end
end

function onBattleAction()
 
  if isWildBattle() and (isOpponentShiny() or isAlreadyCaught() == falsethen
       
if 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
function onLearningMove(moveNamepokemonIndex)
 
  forgetAnyMoveExcept(movesNotToForget)
end 
This script will allow you to up the level of the first Pokemon on Route 30 in Johto, when the first Pokemon dies, the bot automatically goes to the Pokecenter and after healing the pokemon, returns to the farm level again.
Script:
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)