Advertisement
Guest User

Mew

a guest
Aug 26th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. Pastebin PRO Accounts SUMMER SPECIAL! For a limited time only get 40% discount on a LIFETIME PRO account! Offer Ends Soon!
  2.  
  3. Mew Prank Script
  4. A GUEST AUG 5TH, 2016 10,676 NEVER
  5.  
  6. rawdownloadreport 3.07 KB
  7. PokemonGoMITM = require './lib/pokemon-go-mitm'
  8.  
  9. interrested = ['Encounter', 'EvolvePokemon', 'CatchPokemon', 'GetInventory']
  10. addPokemon = false
  11. pokemontoevolve = 0
  12. cnt = 0
  13.  
  14. server = new PokemonGoMITM port: 8090
  15. .addRequestHandler "*", (data, action) ->
  16. console.log "[<-] Request for #{action} ", data, "\n" unless action not in interrested
  17. false
  18.  
  19. .addResponseHandler "*", (data, action) ->
  20. console.log "[->] Response for #{action} ", JSON.stringify(data, null, 4), "\n" unless action not in interrested
  21. false
  22.  
  23. .addResponseHandler "GetInventory", (data) ->
  24. cnt++
  25. console.log "Update number ", cnt
  26. if addPokemon
  27. console.log "Going to add Pokemon!"
  28. if data.inventory_delta
  29. if cnt > 5
  30. console.log "Adding candy!"
  31. data.inventory_delta.new_timestamp_ms += 50
  32. data.inventory_delta.inventory_items.push
  33. modified_timestamp_ms: data.inventory_delta.new_timestamp_ms
  34. inventory_item_data:
  35. candy: {
  36. family_id: "MEW"
  37. candy: 3
  38. }
  39. data.inventory_delta.inventory_items.push
  40. modified_timestamp_ms: data.inventory_delta.new_timestamp_ms
  41. inventory_item_data:
  42. candy: {
  43. family_id: "Ratata"
  44. candy: 73
  45. }
  46.  
  47. if addPokemon
  48. console.log "Going to add Pokemon!"
  49. data.inventory_delta.new_timestamp_ms += 500
  50. data.inventory_delta.inventory_items.push
  51. modified_timestamp_ms: data.inventory_delta.new_timestamp_ms
  52. inventory_item_data:
  53. pokemon_data: {
  54. id: pokemontoevolve
  55. pokemon_id: "MEWTWO"
  56. cp: 3299
  57. stamina: 714
  58. stamina_max: 714
  59. move_1: "PSYSHOCK"
  60. move_2: "HYPER_BEAM"
  61. height_m: 1.1
  62. weight_kg: 0.91
  63. captured_cell_id: 5064635525547163648
  64. creation_time_ms: 1469196525585
  65. pokeball: "ITEM_GREAT_BALL"
  66. individual_attack: 15
  67. individual_deffence: 15
  68. individual_stamina: 15
  69. cp_multiplier: 1.0
  70. num_upgrades: 1
  71. }
  72. data.inventory_delta.inventory_items.push
  73. modified_timestamp_ms: data.inventory_delta.new_timestamp_ms
  74. inventory_item_data:
  75. pokedex_entry: {
  76. pokemon_id: "MEW"
  77. times_encountered: 1
  78. times_captured: 1
  79. }
  80. addPokemon = false
  81. data
  82.  
  83. .addRequestHandler "EvolvePokemon", (data) ->
  84. console.log "Trying to evolve!"
  85. pokemontoevolve = parseInt(data.pokemon_id)+20
  86. addPokemon = true
  87. data
  88.  
  89. .addResponseHandler "EvolvePokemon", (data) ->
  90. console.log "Evolve Responce!"
  91. data.result = "SUCCESS"
  92. data.experience_awarded = 1000
  93. data.candy_awarded = 3
  94. data.evolved_pokemon_data = {
  95. id: pokemontoevolve
  96. pokemon_id: "MEWTWO"
  97. cp: 3299
  98. stamina: 714
  99. stamina_max: 714
  100. move_1: "PSYSHOCK"
  101. move_2: "HYPER_BEAM"
  102. height_m: 1.1
  103. weight_kg: 0.91
  104. captured_cell_id: "5064635525547163648"
  105. creation_time_ms: "1469196525585"
  106. pokeball: "ITEM_GREAT_BALL"
  107. individual_attack: 15
  108. individual_deffence: 15
  109. individual_stamina: 15
  110. cp_multiplier: 1.0
  111. num_upgrades: 1
  112. }
  113. console.log data
  114. data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement