Guest User

Lasse pokemon vortex shiny bot

a guest
Jul 21st, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.82 KB | None | 0 0
  1. // ==UserScript==
  2. // @name PVT V.3+
  3. // @version 0.1
  4. // @description Tools
  5. // @author Created by Laravel
  6. // @require http://code.jquery.com/jquery-1.11.0.min.js
  7. // @match *.pokemon-vortex.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. /*********Information*************/
  12. // To use this script you need to install TamperMonkey/GreaseMonkey ( EXTENSIONS ) on your web browser (e.g. Chrome/Firefox)
  13. // Select add script and paste all of this script and enable it
  14. // For this one i already set up a Legendary Catcher only so you can just go to any map and wait until a notification pops up saying 'Found Something' and you just got yourself a legendary. Have fun !
  15. /**********LOGIN SETTING**********/
  16. var autoLogin = false; //auto-login when logged out
  17.  
  18. var username = "";
  19. var password = "";
  20.  
  21. /**********ON/OFF SETTINGS**********/
  22. var doBattle = false; //enable battles same battle over and over again
  23. var forceBattle = false; //enable being sent to the battle url when at dashboard
  24. var findPokemon = true; //enable finding pokemon alerts
  25. var findLevels = false; //enable find specific pokemon levels
  26. var findLevelsAndUp = true; //enable finding pokemon levels and up
  27. var autoWalkFind = true; //enable walking+finding without you doing work
  28.  
  29. /**********FINDING SETTINGS**********/
  30. var pokemonToFind = [
  31. // Custom
  32. 'Mystic Sableye',
  33. 'Mystic Spiritomb',
  34. 'Shiny Bulbasaur',
  35. 'Shiny Charmander',
  36. 'Shiny Squirtle',
  37. 'Shiny Caterpie',
  38. 'Shiny Weedle',
  39. 'Shiny Pidgey',
  40. 'Shiny Rattata',
  41. 'Shiny Ekans',
  42. 'Shiny Spearow',
  43. 'Shiny Pichu',
  44. 'Shiny Sandshrew',
  45. 'Shiny Nidoran (F)',
  46. 'Shiny Nidoran (M)',
  47. 'Shiny Vulpix',
  48. 'Shiny Cleffa',
  49. 'Shiny Igglybuff',
  50. 'Shiny Zubat',
  51. 'Shiny Oddish',
  52. 'Shiny Paras',
  53. 'Shiny Venonat',
  54. 'Shiny Diglett',
  55. 'Shiny Meowth',
  56. 'Shiny Psyduck',
  57. 'Shiny Mankey',
  58. 'Shiny Growlithe',
  59. 'Shiny Poliwag',
  60. 'Shiny Abra',
  61. 'Shiny Machop',
  62. 'Shiny Bellsprout',
  63. 'Shiny Tentacool',
  64. 'Shiny Geodude',
  65. 'Shiny Ponyta',
  66. 'Shiny Slowpoke',
  67. 'Shiny Magnemite',
  68. 'Shiny Duduo',
  69. 'Shiny Seel',
  70. 'Shiny Grimer',
  71. 'Shiny Shellder',
  72. 'Shiny Gastly',
  73. 'Shiny Onix',
  74. 'Shiny Drowzee',
  75. 'Shiny Krabby',
  76. 'Shiny Voltorb',
  77. 'Shiny Exeggcute',
  78. 'Shiny Cubone',
  79. 'Shiny Tyrogue',
  80. 'Shiny Lickitung',
  81. 'Shiny Koffing',
  82. 'Shiny Rhyhorn',
  83. 'Shiny Happiny',
  84. 'Shiny Tangela',
  85. 'Shiny Horsea',
  86. 'Shiny Goldeen',
  87. 'Shiny Staryu',
  88. 'Shiny Mime Jr.',
  89. 'Shiny Scyther',
  90. 'Shiny Smoochum',
  91. 'Shiny Elekid',
  92. 'Shiny Magby',
  93. 'Shiny Magikarp',
  94. 'Shiny Eevee',
  95. 'Shiny Porygon',
  96. 'Shiny Omante',
  97. 'Shiny Kabuto',
  98. 'Shiny Munchlax',
  99. 'Shiny Dratini',
  100. 'Shiny Chikorita',
  101. 'Shiny Cyndaquil',
  102. 'Shiny Totodile',
  103. 'Shiny Sentret',
  104. 'Shiny Hoothoot',
  105. 'Shiny Ledyba',
  106. 'Shiny Chinchou',
  107. 'Shiny Togepi',
  108. 'Shiny Natu',
  109. 'Shiny Mareep',
  110. 'Shiny Azurill',
  111. 'Shiny Bonsly',
  112. 'Shiny Hoppip',
  113. 'Shiny Aipom',
  114. 'Shiny Sunkern',
  115. 'Shiny Yanma',
  116. 'Shiny Wooper',
  117. 'Shiny Murkrow',
  118. 'Shiny Misdreavus',
  119. 'Shiny Pineco',
  120. 'Shiny Gligar',
  121. 'Shiny Snubull',
  122. 'Shiny Sneasel',
  123. 'Shiny Teddiursa',
  124. 'Shiny Slugma',
  125. 'Shiny Swinub',
  126. 'Shiny Remoraid',
  127. 'Shiny Mantyke',
  128. 'Shiny Houndour',
  129. 'Shiny Phanpy',
  130. 'Shiny Larvitar',
  131. 'Shiny Treecko',
  132. 'Shiny Torchic',
  133. 'Shiny Mudkip',
  134. 'Shiny Poochyena',
  135. 'Shiny Zigzagoon',
  136. 'Shiny Wurmple',
  137. 'Shiny Lotad',
  138. 'Shiny Seedot',
  139. 'Shiny Taillow',
  140. 'Shiny Wingull',
  141. 'Shiny Ralts',
  142. 'Shiny Surskit',
  143. 'Shiny Shroomsih',
  144. 'Shiny Slakoth',
  145. 'Shiny Nincada',
  146. 'Shiny Whismur',
  147. 'Shiny Makuhita',
  148. 'Shiny Nosepass',
  149. 'Shiny Skitty',
  150. 'Shiny Aron',
  151. 'Shiny Meditite',
  152. 'Shiny Electrike',
  153. 'Shiny Budew',
  154. 'Shiny Gulpin',
  155. 'Shiny Carvanha',
  156. 'Shiny Wailmer',
  157. 'Shiny Numel',
  158. 'Shiny Spoink',
  159. 'Shiny Trapinch',
  160. 'Shiny Cacnea',
  161. 'Shiny Swablu',
  162. 'Shiny Barboach',
  163. 'Shiny Corphish',
  164. 'Shiny Baltoy',
  165. 'Shiny Lileep',
  166. 'Shiny Anorith',
  167. 'Shiny Febbas',
  168. 'Shiny Shuppet',
  169. 'Shiny Duskull',
  170. 'Shiny Chingling',
  171. 'Shiny Snorunt',
  172. 'Shiny Spheal',
  173. 'Shiny Clamperl',
  174. 'Shiny Bagon',
  175. 'Shiny Beldum',
  176. 'Shiny Turtwig',
  177. 'Shiny Chimchar',
  178. 'Shiny Piplup',
  179. 'Shiny Starly',
  180. 'Shiny Bidoof',
  181. 'Shiny Kricketot',
  182. 'Shiny Shinx',
  183. 'Shiny Cranidos',
  184. 'Shiny Shieldon',
  185. 'Shiny Burmy (Plant)',
  186. 'Shiny Burmy (Steel)',
  187. 'Shiny Burmy (Sand)',
  188. 'Shiny Combee',
  189. 'Shiny Buizel',
  190. 'Shiny Cherubi',
  191. 'Shiny Shellos (East)',
  192. 'Shiny Shellos (West)',
  193. 'Shiny Drifloon',
  194. 'Shiny Buneary',
  195. 'Shiny Glameow',
  196. 'Shiny Stunky',
  197. 'Shiny Bronzor',
  198. 'Shiny Gible',
  199. 'Shiny Riolu',
  200. 'Shiny Hippopotas',
  201. 'Shiny Skorupi',
  202. 'Shiny Croagunk',
  203. 'Shiny Finneon',
  204. 'Shiny Snover',
  205. 'Shiny Snivy',
  206. 'Shiny Tepig',
  207. 'Shiny Oshawott',
  208. 'Shiny Lillipup',
  209. 'Shiny Purrloin',
  210. 'Shiny Pansage',
  211. 'Shiny Pansear',
  212. 'Shiny Panpour',
  213. 'Shiny Munna',
  214. 'Shiny Pidove',
  215. 'Shiny Blitzle',
  216. 'Shiny Roggenrola',
  217. 'Shiny Wobbat',
  218. 'Shiny Drilbur',
  219. 'Shiny Timburr',
  220. 'Shiny Tympole',
  221. 'Shiny Sewaddle',
  222. 'Shiny Venipede',
  223. 'Shiny Cottonee',
  224. 'Shiny Petilil',
  225. 'Shiny Sandile',
  226. 'Shiny Darumaka',
  227. 'Shiny Dwebble',
  228. 'Shiny Scraggy',
  229. 'Shiny Yamask',
  230. 'Shiny Tirtouga',
  231. 'Shiny Archen',
  232. 'Shiny Trubbish',
  233. 'Shiny Zorua',
  234. 'Shiny Minccino',
  235. 'Shiny Golitha',
  236. 'Shiny Solosis',
  237. 'Shiny Ducklett',
  238. 'Shiny Vanillite',
  239. 'Shiny Deerling (Autumn)',
  240. 'Shiny Deerling (Spring)',
  241. 'Shiny Derrling (Summer)',
  242. 'Shiny Deerling (Winter)',
  243. 'Shiny Karrablast',
  244. 'Shiny Foongus',
  245. 'Shiny Frillish',
  246. 'Shiny Joltik',
  247. 'Shiny Ferroseed',
  248. 'Shiny Klink',
  249. 'Shiny Tynamo',
  250. 'Shiny Elgyem',
  251. 'Shiny Litwick',
  252. 'Shiny Axew',
  253. 'Shiny Cubchoo',
  254. 'Shiny Shelmet',
  255. 'Shiny Mienfoo',
  256. 'Shiny Golett',
  257. 'Shiny Pawniard',
  258. 'Shiny Rufflet',
  259. 'Shiny Vullaby',
  260. 'Shiny Larvesta',
  261. 'Shiny Chespin',
  262. 'Shiny Fennekin',
  263. 'Shiny Froakie',
  264. 'Shiny Bunnelby',
  265. 'Shiny Fletchling',
  266. 'Shiny Scatterbug',
  267. 'Shiny Litleo',
  268. 'Shiny Flabebe (Blue)',
  269. 'Shiny Flabebe (Orange)',
  270. 'Shiny Flabebe (Red)',
  271. 'Shiny Flabebe (White)',
  272. 'Shiny Flabebe (Yellow)',
  273. 'Shiny Skiddo',
  274. 'Shiny Pancham',
  275. 'Shiny Espurr',
  276. 'Shiny Honedge',
  277. 'Shiny Spiritzee',
  278. 'Shiny Swirlix',
  279. 'Shiny Inkay',
  280. 'Shiny Binacle',
  281. 'Shiny Skrelp',
  282. 'Shiny Clauncher',
  283. 'Shiny Helioptile',
  284. 'Shiny Tyrunt',
  285. 'Shiny Amuara',
  286. 'Shiny Goomy',
  287. 'Shiny Phantump',
  288. 'Shiny Pumpkaboo (Average)',
  289. 'Shiny Pumpkaboo (Large)',
  290. 'Shiny Pumpkaboo (Small)',
  291. 'Shiny Bergmite',
  292. 'Shiny Noibat',
  293. 'Shiny Farfetchd',
  294. 'Shiny Kangashkhan',
  295. 'Shiny Pinsir',
  296. 'Shiny Tauros',
  297. 'Shiny Lapras',
  298. 'Shiny Ditto',
  299. 'Shiny Areodactyl',
  300. 'Shiny Girafarig',
  301. 'Shiny Dunsparce',
  302. 'Shiny Qwilfish',
  303. 'Shiny Shuckle',
  304. 'Shiny Heracross',
  305. 'Shiny Corsola',
  306. 'Shiny Delibird',
  307. 'Shiny Skarmory',
  308. 'Shiny Stantler',
  309. 'Shiny Smeargle',
  310. 'Shiny Miltank',
  311. 'Shiny Sableye',
  312. 'Shiny Mawile',
  313. 'Shiny Plusle',
  314. 'Shiny Minun',
  315. 'Shiny Volbeat',
  316. 'Shiny Illumise',
  317. 'Shiny Torkoal',
  318. 'Shiny Spinda',
  319. 'Shiny Zangoose',
  320. 'Shiny Seviper',
  321. 'Shiny Lunatone',
  322. 'Shiny Solrock',
  323. 'Shiny Castform',
  324. 'Shiny Kecleon',
  325. 'Shiny Tropius',
  326. 'Shiny Absol',
  327. 'Shiny Relicanth',
  328. 'Shiny Luvdisc',
  329. 'Shiny Pachirisu',
  330. 'Shiny Chatot',
  331. 'Shiny Spiritomb',
  332. 'Shiny Carnivine',
  333. 'Shiny Audino',
  334. 'Shiny Throh',
  335. 'Shiny Sawk',
  336. 'Shiny Basculin (Blue Stripe)',
  337. 'Shiny Basculin (Red Stripe)',
  338. 'Shiny Maractus',
  339. 'Shiny Sigilyph',
  340. 'Shiny Emolga',
  341. 'Shiny Alomomola',
  342. 'Shiny Cryogonal',
  343. 'Shiny Stunfisk',
  344. 'Shiny Druddigon',
  345. 'Shiny Bouffalant',
  346. 'Shiny Heatmor',
  347. 'Shiny Durant',
  348. 'Shiny Furfrou',
  349. 'Shiny Hawlucha',
  350. 'Shiny Dedenne',
  351. 'Shiny Carbink',
  352. 'Shiny Klefki',
  353.  
  354.  
  355.  
  356.  
  357. //Gen 6 Legends
  358. 'Xerneas','Shiny Xerneas','Dark Xerneas','Shadow Xernias','Metallic Xerneas','Mystic Xerneas',
  359. 'Yveltal','Shiny Yveltal','Dark Yveltal','Shadow Yveltal','Metallic Yveltal','Mystic Yveltal',
  360. 'Zygarde',
  361.  
  362. // Grass
  363. 'Shaymin (Sky)',
  364. 'Celebi',
  365. 'Latios',
  366. 'Latias',
  367. 'Rayquaza',
  368. 'Shaymin',
  369. 'Mew',
  370. 'Cresselia',
  371. 'Azelf',
  372. 'Uxie',
  373. 'Mesprit',
  374. 'Virizion',
  375. 'Genesect',
  376. 'Mystic Shaymin (Sky)',
  377. 'Mystic Celebi',
  378. 'Mystic Latios',
  379. 'Mystic Latias',
  380. 'Mystic Rayquaza',
  381. 'Mystic Shaymin',
  382. 'Mystic Mew',
  383. 'Mystic Cresselia',
  384. 'Mystic Azelf',
  385. 'Mystic Uxie',
  386. 'Mystic Mesprit',
  387. 'Mystic Virizion',
  388. 'Mystic Genesect',
  389. 'Shiny Shaymin (Sky)',
  390. 'Shiny Celebi',
  391. 'Shiny Latios',
  392. 'Shiny Latias',
  393. 'Shiny Rayquaza',
  394. 'Shiny Shaymin',
  395. 'Shiny Mew',
  396. 'Shiny Cresselia',
  397. 'Shiny Azelf',
  398. 'Shiny Uxie',
  399. 'Shiny Mesprit',
  400. 'Shiny Virizion',
  401. 'Shiny Genesect',
  402. 'Dark Shaymin (Sky)',
  403. 'Dark Celebi',
  404. 'Dark Latios',
  405. 'Dark Latias',
  406. 'Dark Rayquaza',
  407. 'Dark Shaymin',
  408. 'Dark Mew',
  409. 'Dark Cresselia',
  410. 'Dark Azelf',
  411. 'Dark Uxie',
  412. 'Dark Mesprit',
  413. 'Dark Virizion',
  414. 'Dark Genesect',
  415. 'Ancient Shaymin (Sky)',
  416. 'Ancient Celebi',
  417. 'Ancient Latios',
  418. 'Ancient Latias',
  419. 'Ancient Rayquaza',
  420. 'Ancient Shaymin',
  421. 'Ancient Mew',
  422. 'Ancient Cresselia',
  423. 'Ancient Azelf',
  424. 'Ancient Uxie',
  425. 'Ancient Mesprit',
  426. 'Ancient Virizion',
  427. 'Ancient Genesect',
  428.  
  429.  
  430.  
  431. // Grass (water)
  432. 'Manaphy',
  433. 'Phione',
  434. 'Suicune',
  435. 'Keldeo',
  436.  
  437. // Ice
  438. 'Articuno',
  439. 'Suicune',
  440. 'Lugia',
  441. 'Regice',
  442. 'Kyurem',
  443. 'Mystic Articuno',
  444. 'Mystic Suicune',
  445. 'Mystic Lugia',
  446. 'Mystic Regice',
  447. 'Mystic Kyurem',
  448. 'Shiny Articuno',
  449. 'Shiny Suicune',
  450. 'Shiny Lugia',
  451. 'Shiny Regice',
  452. 'Shiny Kyurem',
  453. 'Dark Articuno',
  454. 'Dark Suicune',
  455. 'Dark Lugia',
  456. 'Dark Regice',
  457. 'Dark Kyurem',
  458. 'Ancient Articuno',
  459. 'Ancient Suicune',
  460. 'Ancient Lugia',
  461. 'Ancient Regice',
  462. 'Ancient Kyurem',
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469. // Cave (land)
  470. 'Groudon',
  471. 'Arceus',
  472. 'Regigigas',
  473. 'Palkia',
  474. 'Dialga',
  475. 'Deoxys',
  476. 'Jirachi',
  477. 'Registeel',
  478. 'Regirock',
  479. 'Mewtwo',
  480. 'Cobalion',
  481. 'Terrakion',
  482. 'Virizion',
  483. 'Reshiram',
  484. 'Zekrom',
  485. 'Kyurem',
  486. 'Genesect',
  487. 'Tornadus',
  488. 'Landorus',
  489. 'Mystic Groudon',
  490. 'Mystic Arceus',
  491. 'Mystic Regigigas',
  492. 'Mystic Palkia',
  493. 'Mystic Dialga',
  494. 'Mystic Deoxys',
  495. 'Mystic Jirachi',
  496. 'Mystic Registeel',
  497. 'Mystic Regirock',
  498. 'Mystic Mewtwo',
  499. 'Mystic Cobalion',
  500. 'Mystic Terrakion',
  501. 'Mystic Virizion',
  502. 'Mystic Reshiram',
  503. 'Mystic Zekrom',
  504. 'Mystic Kyurem',
  505. 'Mystic Genesect',
  506. 'Mystic Tornadus',
  507. 'Mystic Landorus',
  508. 'Shiny Groudon',
  509. 'Shiny Arceus',
  510. 'Shiny Regigigas',
  511. 'Shiny Palkia',
  512. 'Shiny Dialga',
  513. 'Shiny Deoxys',
  514. 'Shiny Jirachi',
  515. 'Shiny Registeel',
  516. 'Shiny Regirock',
  517. 'Shiny Mewtwo',
  518. 'Shiny Cobalion',
  519. 'Shiny Terrakion',
  520. 'Shiny Virizion',
  521. 'Shiny Reshiram',
  522. 'Shiny Zekrom',
  523. 'Shiny Kyurem',
  524. 'Shiny Genesect',
  525. 'Shiny Tornadus',
  526. 'Shiny Landorus',
  527. 'Dark Groudon',
  528. 'Dark Arceus',
  529. 'Dark Regigigas',
  530. 'Dark Palkia',
  531. 'Dark Dialga',
  532. 'Dark Deoxys',
  533. 'Dark Jirachi',
  534. 'Dark Registeel',
  535. 'Dark Regirock',
  536. 'Dark Mewtwo',
  537. 'Dark Cobalion',
  538. 'Dark Terrakion',
  539. 'Dark Virizion',
  540. 'Dark Reshiram',
  541. 'Dark Zekrom',
  542. 'Dark Kyurem',
  543. 'Dark Genesect',
  544. 'Dark Tornadus',
  545. 'Dark Landorus',
  546.  
  547.  
  548. // Cave (water)
  549. 'Kyogre',
  550. 'Lugia',
  551. 'Keldeo',
  552.  
  553. // Ghost
  554. 'Mew',
  555. 'Giratina',
  556. 'Rotom',
  557. 'Mesprit',
  558. 'Azelf',
  559. 'Uxie',
  560. 'Celebi',
  561. 'Darkrown',
  562. 'Darkrai',
  563. 'Shiny Mew',
  564. 'Shiny Giratina',
  565. 'Shiny Rotom',
  566. 'Shiny Mesprit',
  567. 'Shiny Azelf',
  568. 'Shiny Uxie',
  569. 'Shiny Celebi',
  570. 'Shiny Darkrown',
  571. 'Shiny Darkrai',
  572. 'Dark Mew',
  573. 'Dark Giratina',
  574. 'Dark Rotom',
  575. 'Dark Mesprit',
  576. 'Dark Azelf',
  577. 'Dark Uxie',
  578. 'Dark Celebi',
  579. 'Dark Darkrown',
  580. 'Dark Darkrai',
  581. 'Mystic Mew',
  582. 'Mystic Giratina',
  583. 'Mystic Rotom',
  584. 'Mystic Mesprit',
  585. 'Mystic Azelf',
  586. 'Mystic Uxie',
  587. 'Mystic Celebi',
  588. 'Mystic Darkrown',
  589. 'Mystic Darkrai',
  590. 'Ancient Mew',
  591. 'Ancient Giratina',
  592. 'Ancient Rotom',
  593. 'Ancient Mesprit',
  594. 'Ancient Azelf',
  595. 'Ancient Uxie',
  596. 'Ancient Celebi',
  597. 'Ancient Darkrown',
  598. 'Ancient Darkrai',
  599.  
  600. // Electric
  601. 'Zapdos',
  602. 'Raikou',
  603. 'Jirachi',
  604. 'Darkrai',
  605. 'Darkrown',
  606. 'Thundurus',
  607. 'Zekrom',
  608. 'Genesect',
  609.  
  610. // Fire
  611. 'Heatran',
  612. 'Shiny Heatran','Dark Heatran','Shadow Heatran','Metallic Heatran','Mystic Heatran',
  613. 'Ho-oh','Shiny Ho-oh','Dark Ho-oh','Shadow Ho-oh','Metallic Ho-oh','Mystic Ho-oh',
  614. 'Moltres','Shiny Moltres','Dark Moltres','Shadow Moltres','Metallic Moltres','Mystic Moltres',
  615. 'Entei','Shiny Entei','Dark Entei','Shadow Entei','Metallic Entei','Mystic Entei',
  616. 'Reshiram','Shiny Reshiram',
  617. 'Victini','Shiny Victini','Dark Victini','Shadow Victini','Metallic Victini','Mystic Vitctini',
  618. ];
  619. //the pokemon you want to be alerted of
  620. //make sure you get the right spelling
  621. //TIP: You can also use the above setting as
  622. //a general keyword searcher in the pokemon you see
  623. //e.g. "shiny", "dark"
  624.  
  625. var levelsToFind = ["9"]; //The specific levels you want to be alerted for
  626. //keep this a string array
  627.  
  628. var levelsAndUpToFind = 50; //level and up to alert about pokemon
  629. //dont make this a string or array
  630.  
  631. var scanFreq = 75; //time to wait between every time the script checks if you saw what you wanted (in milliseconds)
  632.  
  633. var isDoneLoadingFreq = 350; //time to wait between checking if looking for pokemon has finished loading (in milli)
  634. //dont make this too low (keep it how it is, it works fine) unless you have very super speedy internet
  635. //THE LOWER THIS IS THE HIGHER CHANCE YOU HAVE OF LOSING A LEGEND
  636.  
  637. /**********FIGHTING SETTINGS**********/
  638. var battle = "/wildbattle.php";
  639. //change this to your battle url, but make sure you remove everything up to the /battle.php?jglasd=dfjklgdfj
  640. //Even though it does automatically :P
  641.  
  642. var firstPokemonPrefAtt = 0; // 0 = don't pick
  643. var seconPokemonPrefAtt = 0; // 0 = don't pick
  644. var thirdPokemonPrefAtt = 0; // 0 = don't pick
  645. var fourtPokemonPrefAtt = 0; // 0 = don't pick
  646. var fifthPokemonPrefAtt = 0; // 0 = don't pick
  647. var sixthPokemonPrefAtt = 0; // 0 = don't pick
  648.  
  649. var firstPokemonName = ""; // These names just need to be unique
  650. var seconPokemonName = ""; // Capitalization is ignored
  651. var thirdPokemonName = ""; // if empty it will be skipped
  652. var fourtPokemonName = ""; // if not found it will be skipped
  653. var fifthPokemonName = ""; // Make sure you spell right :p
  654. var sixthPokemonName = ""; //
  655. var attackFreq = 500; //time to wait between every click while fighting (in milliseconds)
  656.  
  657. /**********IGNORE EVERYTHING PAST THIS**********/
  658. var pokeNames = [firstPokemonName, seconPokemonName, thirdPokemonName, fourtPokemonName, fifthPokemonName, sixthPokemonName];
  659. var pokeAtts = [firstPokemonPrefAtt, seconPokemonPrefAtt, thirdPokemonPrefAtt, fourtPokemonPrefAtt, fifthPokemonPrefAtt, sixthPokemonPrefAtt];
  660. var battleUrl = ".pokemon-vortex.com/wildbattle.php";
  661. var findUrl = ".pokemon-vortex.com/map.php";
  662. var loginUrl = "www.pokemon-vortex.com/login.php";
  663. var dashboardUrl = ".pokemon-vortex.com/dashboard.php";
  664. var attTimes = 0;
  665. var moveTimes = 0;
  666.  
  667. if(battle.indexOf(".com")>-1){
  668. battle = battle.split(".com")[1];
  669. }
  670.  
  671. if (doBattle && window.location.href.indexOf(battleUrl) > -1) {
  672. function startBattle() {
  673. for(var d = 0; d < 6; d++)
  674. if(pokeAtts[d] !== 0 && $("h3:contains('Your')").text().toLowerCase().indexOf(pokeNames[d].toLowerCase()) > -1 && pokeNames[d] !== "")
  675. $("input#attack"+pokeAtts[d]).click();
  676.  
  677. if($("input[value*='Continue']").length)
  678. $("input[value*='Continue']").submit();
  679. if($("input[value*='Attack']").length)
  680. $("input[value*='Attack']").submit();
  681. if($("a:contains('Rebattle Opponent')").length)
  682. $("a:contains('Rebattle Opponent')").click();
  683. }
  684. if (window.location.href.indexOf(battle) >-1) {
  685. setInterval(function () {
  686. if($("#loading").css("visibility") == "hidden"){
  687. startBattle();
  688. attTimes = 0;
  689. }else{
  690. attTimes++;
  691. }
  692. if(times >= 100)
  693. location.reload(true);
  694.  
  695. }, attackFreq);
  696. } else {
  697. window.location.href = battle;
  698. }
  699. }else if ((findPokemon || findLevels || findLevelsAndUp) && window.location.href.indexOf(findUrl) > -1) {
  700. var a;
  701. var b;
  702. var finderOn = true;
  703. var whichMove = 1;
  704.  
  705. function fireKey(el, key) {
  706. //Set key to corresponding code. This one is set to the left arrow key.
  707. //37 = left, 38 = up, 39 = right, 40 = down;
  708. if (document.createEventObject) {
  709. var eventObj = document.createEventObject();
  710. eventObj.keyCode = key;
  711. el.fireEvent("onkeydown", eventObj);
  712. } else if (document.createEvent) {
  713. var eventObj = document.createEvent("Events");
  714. eventObj.initEvent("keydown", true, true);
  715. eventObj.which = key;
  716. el.body.dispatchEvent(eventObj);
  717. }
  718. }
  719.  
  720.  
  721. function found(thing){
  722. if($('#pkmnappear').first().html().toLowerCase().indexOf(thing.toLowerCase()) > -1){
  723. alert("Found Something");
  724. finderOn = true;
  725. clearInterval(a);
  726. if(autoWalkFind){
  727. clearInterval(b);
  728. }
  729. return true;
  730. }else{
  731. return false;
  732. }
  733. }
  734.  
  735. function setFinder(){
  736. finderOn = true;
  737.  
  738. if(autoWalkFind){
  739. b = setInterval(function(){
  740. var isLoading = $("#pkmnappear").text().indexOf("Please wait") > -1;
  741. if(!isLoading){
  742. switch(whichMove){
  743. case 1:
  744. fireKey(document,37);
  745. whichMove = 2;
  746. break;
  747. case 2:
  748. fireKey(document,38);
  749. whichMove = 3;
  750. break;
  751. case 3:
  752. fireKey(document,39);
  753. whichMove = 4;
  754. break;
  755. case 4:
  756. fireKey(document,40);
  757. whichMove = 1;
  758. break;
  759. }
  760. moveTimes=0;
  761. }else{
  762. moveTimes++;
  763. }
  764. if(moveTimes >= 100)
  765. location.reload(true);
  766. },isDoneLoadingFreq);
  767. }
  768.  
  769. a = setInterval(function () {
  770. if(findPokemon)
  771. for (var i = 0; i < pokemonToFind.length; i++)
  772. found(pokemonToFind[i]);
  773.  
  774. if(findLevels)
  775. for (var i = 0; i < levelsToFind.length; i++)
  776. found("Level: " + levelsToFind[i] + " ");
  777.  
  778. if(findLevelsAndUp)
  779. for(var l = levelsAndUpToFind; l<101;l++)
  780. if (found("Level: " + l + " "))
  781. break;
  782.  
  783. }, scanFreq);
  784. }
  785.  
  786. setFinder();
  787. $(document).keydown(function(event) {
  788. switch (event.keyCode) {
  789. case 37: case 38: case 39: case 40: case 87: case 65: case 83: case 68: if(!finderOn)setFinder();
  790. break;
  791. }
  792. });
  793.  
  794. }else if(autoLogin && window.location.href.indexOf(loginUrl) > -1){
  795. $("#myusername").val(username);
  796. $("#mypassword").val(password);
  797. $("input[value*='Log in']").click();
  798. $("input[value*='Log in']").submit();
  799. }else if(forceBattle && window.location.href.indexOf(dashboardUrl) > -1){
  800. window.location.href = battle;
  801. }
Add Comment
Please, Sign In to add comment