Hello There, Guest! Login Register


[VULCAND ISLAND 2018] - Turtwig Catcher
#1
Farms Turtwigs @ Kalijodo Path

name = "Vulcan Island - Turtwig Catcher"
author = "deluxekitties"
description = [[False Swipes Turtwigs at Kalijodo Path]]

-- Skill used to lower the Pokemon
skillName = "False Swipe"
-- Mount/Bicycle
mount = "Glaceon Mount"

function onStart()
    if isPrivateMessageEnabled() then
      log("Private messages have been disabled.")
      return disablePrivateMessage()
  end
end

function onPathAction()
    if isPokemonUsable(1) and getRemainingPowerPoints(1, skillName) >= 1 then
       if getMapName() == "Pokecenter Vulcanic Town" then
           moveToMap("Vulcanic Town")
       elseif getMapName() == "Vulcanic Town" then
            if not isMounted() then
                log("Riding on mount")
                    useItem(mount)
            elseif isMounted() then
                moveToMap("Kalijodo Path")
            else
                moveToMap("Kalijodo Path")
            end
       elseif getMapName() == "Kalijodo Path" then
           moveToGrass()
       end
   else
       if getMapName() == "Kalijodo Path" then
           moveToMap("Vulcanic Town")
       elseif getMapName() == "Vulcanic Town" then
           moveToMap("Pokecenter Vulcanic Town")
       elseif getMapName() == "Pokecenter Vulcanic Town" then
           usePokecenter()
       end
   end
end

function onBattleAction()
   if isWildBattle() and isAlreadyCaught() == false then
       if getOpponentHealth() > 1 then
           log(getOpponentName() .. "'s HP: " .. getOpponentHealth())
           return useMove(skillName) or run() or sendUsablePokemon() or sendAnyPokemon()
       else
           log(getOpponentName() .. "'s HP: " .. getOpponentHealth())
           if useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") then
               return
           end
       end
   end
   if isWildBattle() and isOpponentShiny() then
       if getOpponentHealth() > 1 then
           log(getOpponentName() .. "'s HP: " .. getOpponentHealth())
           return useMove(skillName) or run() or sendUsablePokemon() or sendAnyPokemon()
       else
           log(getOpponentName() .. "'s HP: " .. getOpponentHealth())
           if useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") then
               return
           end
       end
   end
   
   if getActivePokemonNumber() == 1 and (getOpponentName() == "Turtwig")  then
       if getOpponentHealth() > 1 then
           log(getOpponentName() .. "'s HP: " .. getOpponentHealth())
           return useMove(skillName) or run() or sendUsablePokemon() or sendAnyPokemon()
       else
           log(getOpponentName() .. "'s HP: " .. getOpponentHealth())
           if useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") then
               return
           end
       end
   else
       return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
   end
end
\\\#5776
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)