Hello There, Guest! Login Register


Route 18 Level-Script
#1
Hi guys this is my first script I do and I hope the public enjoy and above all they serve and work Smile


name = "Route 18 Level-Script"
author = "Zenix"
description = [[Levelling in Route 18 and catch every Shiny Pokemon!]]


function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Pokecenter Fuchsia" then
moveToMap("Fuchsia City")
elseif getMapName() == "Fuchsia City" then
moveToMap("Route 18")
elseif getMapName() == "Route 18" then
moveToGrass()
end
else
if getMapName() == "Route 18" then
moveToMap("Fuchsia City")
elseif getMapName() == "Fuchsia City" then
moveToMap("Pokecenter Fuchsia")
elseif getMapName() == "Pokecenter Fuchsia" 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 sendUsablePokemon() or run() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)