Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. function onStop()
  2. log("Charmander caught: "..counter)
  3. end
  4.  
  5. function onPause()
  6. log("Charmander caught: "..counter)
  7. end
  8.  
  9. function onBattleMessage(message)
  10. if stringContains(message, "caught") then
  11. counter = counter +1
  12. log("One more Charmander")
  13. end
  14. end
  15.  
  16.  
  17. function onPathAction()
  18. if isPokemonUsable(1) and isPokemonUsable(2) and getRemainingPowerPoints(2, "False Swipe") > 0 then
  19. if getMapName() == "Pokecenter Route 10" then
  20. moveToMap("Route 10")
  21. elseif getMapName() == "Route 10" then
  22. moveToMap("Route 9")
  23. elseif getMapName() == "Route 9" then
  24. moveToMap("Cerulean City")
  25. elseif getMapName() == "Cerulean City" then
  26. moveToMap("Route 24")
  27. elseif getMapName() == "Route 24" then
  28. moveToMap("Route 25")
  29. elseif getMapName() == "Route 25" then
  30. moveToRectangle(30,9,35,9)
  31. end
  32. else
  33. if getMapName() == "Route 25" then
  34. moveToMap("Route 24")
  35. elseif getMapName() == "Route 24" then
  36. moveToMap("Cerulean City")
  37. elseif getMapName() == "Cerulean City" then
  38. moveToMap("Route 9")
  39. elseif getMapName() == "Route 9" then
  40. moveToMap("Route 10")
  41. elseif getMapName() == "Route 10" then
  42. moveToMap("Pokecenter Route 10")
  43. elseif getMapName() == "Pokecenter Route 10" then
  44. usePokecenter()
  45. end
  46. end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement