Hello There, Guest! Login Register


Hoenn - Granite Cave 1F Level Up
#1
PHP Code:
name "Granite Cave 1F"
author "whtmn"
description = [[Start anywhere between the exit of the Granite Cave 1F and the Pokecenter Dewford Town.]]
movesNotToForget = {} --add moves here

function onPathAction()
 
  if isPokemonUsable(1then
       
if getMapName() == "Pokecenter Dewford Town" then
           moveToCell
(822)
 
      elseif getMapName() == "Dewford Town" then
           moveToCell
(180)
 
      elseif getMapName() == "Route 106" then
           moveToCell
(7534)
     
  elseif getMapName() == "Granite Cave 1F" then
           moveToRectangle
(37144014)
 
      end
   
else
 
      if getMapName() == "Granite Cave 1F" then
           moveToCell
(3915)
 
      elseif getMapName() == "Route 106" then
           moveToCell
(9942)
 
      elseif getMapName() == "Dewford Town" then
           moveToCell
(1314)
 
      elseif getMapName() == "Pokecenter Dewford Town" then
           talkToNpcOnCell
(814)
 
      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 
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)