Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. name = "Victory Road Kanto 1F Level + Catch Pokemon v.2.0"
  2. author = "atnd"
  3. Description = "Catches Dratini & Dragonair & shinies in the Victory Road Kanto 1F.Uses pokemon in first slot and Hypnosis in second slot"
  4.  
  5. function onStart()
  6.  
  7. goToPC()
  8. end
  9.  
  10. function onPathAction()
  11. Dratini_found = false
  12.  
  13. if isPokemonUsable(1) and isPokemonUsable(2) then
  14. if getMapName() == "Pokecenter Viridian" then
  15. log("Pokecenter to City for HUNTING!!!")
  16. moveToMap("Viridian City")
  17. elseif getMapName() == "Viridian City" then
  18. log("City to Entrance for HUNTING!!!")
  19. moveToMap("Route 22")
  20. elseif getMapName() == "Route 22" then
  21. log("Entrance to Victory Road Kanto 1F for HUNTING!!!")
  22. moveToMap("Pokemon League Reception Gate")
  23. elseif getMapName() == "Pokemon League Reception Gate" then
  24. moveToMap("Victory Road Kanto 1F")
  25. elseif getMapName() == "Victory Road Kanto 1F" then
  26. moveToRectangle(18, 43, 45, 49)
  27. end
  28. else
  29. goToPC()
  30.  
  31. end
  32. end
  33.  
  34. function onBattleAction()
  35. if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "Dratini" or getOpponentName() == "Corpish" or getOpponentName() == "Bagon" or getOpponentName() == "Dragonair" ) then
  36. if getActivePokemonNumber() == 1 then
  37. return sendPokemon(2) or attack() or run()
  38. elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
  39. return weakAttack() or run()
  40. elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() == 1 ) then
  41. return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball")
  42. end
  43. end
  44. if getActivePokemonNumber() >= 1 and ( getOpponentName() == "Magikarp" or getOpponentName() == "Slowpoke" or getOpponentName() == "Psyduck" or getOpponentName() == "Horsea" ) then
  45. return run() or sendUsablePokemon()
  46. else
  47. return attack() or sendUsablePokemon() or run()
  48. end
  49. end
  50.  
  51. function goToPC()
  52. if getMapName() == "Victory Road Kanto 1F" then
  53. log("Victory Road Kanto 1F to Entrance for Heal :3")
  54. moveToMap("Pokemon League Reception Gate")
  55. elseif getMapName() == "Pokemon League Reception Gate" then
  56. moveToMap("Route 22")
  57. elseif getMapName() == "Route 22" then
  58. log("Entrance to City for Heal :3")
  59. moveToMap("Viridian City")
  60. elseif getMapName() == "Viridian City" then
  61. log("City to Pokecenter for Heal :3")
  62. moveToMap("Pokecenter Viridian")
  63. elseif getMapName() == "Pokecenter Viridian" then
  64. usePokecenter()
  65. end
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement