2017-01-28, 15:05:55
function onPathAction()
if getMapName() == "Pokecenter Lilycove City" then
moveToMap("Lilycove City")
elseif getMapName() == "Lilycove City" then
moveToMap("Route 121")
elseif getMapName() == "Route 121" then
moveToMap("Hoenn Safari Zone Lobby")
elseif getMapName() == "Hoenn Safari Zone Lobby" then
talkToNpcOnCell(21,6)
elseif getMapName"Hoenn Safari Zone Area 1" then
moveToMap("Hoenn Safari Zone Area 2")
moveToGrass()
end
end
function onBattleAction()
if isWildBattle() and (isOpponentShiny() or getOpponentName() == "Beldum") 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
if getMapName() == "Pokecenter Lilycove City" then
moveToMap("Lilycove City")
elseif getMapName() == "Lilycove City" then
moveToMap("Route 121")
elseif getMapName() == "Route 121" then
moveToMap("Hoenn Safari Zone Lobby")
elseif getMapName() == "Hoenn Safari Zone Lobby" then
talkToNpcOnCell(21,6)
elseif getMapName"Hoenn Safari Zone Area 1" then
moveToMap("Hoenn Safari Zone Area 2")
moveToGrass()
end
end
function onBattleAction()
if isWildBattle() and (isOpponentShiny() or getOpponentName() == "Beldum") 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