PROShine
Route 10 Level up Script V3 - Printable Version

+- PROShine (https://proshine-bot.com)
+-- Forum: PROShine (https://proshine-bot.com/forum-5.html)
+--- Forum: Scripts (https://proshine-bot.com/forum-13.html)
+--- Thread: Route 10 Level up Script V3 (/thread-3164.html)



Route 10 Level up Script V3 - darkrai - 2018-12-01

name = "Leveling: Route 10"
author = "darkrai"
movesNotToForget = {} --add moves here

function onPathAction()
   if isPokemonUsable(1) then
       if getMapName() == "Pokecenter Route 10" then
           moveToCell(9, 22)
       elseif getMapName() == "Route 10" then
           moveToRectangle(13, 10, 20, 11)
       end
   else
       if getMapName() == "Route 10" then
           moveToCell(18,4)
       elseif getMapName() == "Pokecenter Route 10" then
           usePokecenter()
       end
   end
end

function onBattleAction()
   if isWildBattle() and (isOpponentShiny() or isAlreadyCaught() == false) then
       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(moveName, pokemonIndex)
   forgetAnyMoveExcept(movesNotToForget)
end