Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = "Victory Road Kanto 1F Level + Catch Pokemon v.2.0"
- author = "atnd"
- Description = "Catches Dratini & Dragonair & shinies in the Victory Road Kanto 1F.Uses pokemon in first slot and Hypnosis in second slot"
- function onStart()
- goToPC()
- end
- function onPathAction()
- Dratini_found = false
- if isPokemonUsable(1) and isPokemonUsable(2) then
- if getMapName() == "Pokecenter Viridian" then
- log("Pokecenter to City for HUNTING!!!")
- moveToMap("Viridian City")
- elseif getMapName() == "Viridian City" then
- log("City to Entrance for HUNTING!!!")
- moveToMap("Route 22")
- elseif getMapName() == "Route 22" then
- log("Entrance to Victory Road Kanto 1F for HUNTING!!!")
- moveToMap("Pokemon League Reception Gate")
- elseif getMapName() == "Pokemon League Reception Gate" then
- moveToMap("Victory Road Kanto 1F")
- elseif getMapName() == "Victory Road Kanto 1F" then
- moveToRectangle(18, 43, 45, 49)
- end
- else
- goToPC()
- end
- end
- function onBattleAction()
- if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "Dratini" or getOpponentName() == "Corpish" or getOpponentName() == "Bagon" or getOpponentName() == "Dragonair" ) then
- if getActivePokemonNumber() == 1 then
- return sendPokemon(2) or attack() or run()
- elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
- return weakAttack() or run()
- elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() == 1 ) then
- return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball")
- end
- end
- if getActivePokemonNumber() >= 1 and ( getOpponentName() == "Magikarp" or getOpponentName() == "Slowpoke" or getOpponentName() == "Psyduck" or getOpponentName() == "Horsea" ) then
- return run() or sendUsablePokemon()
- else
- return attack() or sendUsablePokemon() or run()
- end
- end
- function goToPC()
- if getMapName() == "Victory Road Kanto 1F" then
- log("Victory Road Kanto 1F to Entrance for Heal :3")
- moveToMap("Pokemon League Reception Gate")
- elseif getMapName() == "Pokemon League Reception Gate" then
- moveToMap("Route 22")
- elseif getMapName() == "Route 22" then
- log("Entrance to City for Heal :3")
- moveToMap("Viridian City")
- elseif getMapName() == "Viridian City" then
- log("City to Pokecenter for Heal :3")
- moveToMap("Pokecenter Viridian")
- elseif getMapName() == "Pokecenter Viridian" then
- usePokecenter()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement