CameronFitzy

Pokémon Catch New

Nov 9th, 2020 (edited)
7,976
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Amendpcatch=[];
  2.  
  3. if(typeof Dex === 'undefined')
  4. {Dex=`all`}
  5. else
  6. {D=`${Dex}`.split(``);
  7. if(D.includes(`8`))
  8. {Amendpcatch.push(PcatchSub1.slice(809,897).join(`,`))};
  9. if(D.includes(`7`))
  10. {Amendpcatch.push(PcatchSub1.slice(721,809).join(`,`))};
  11. if(D.includes(`6`))
  12. {Amendpcatch.push(PcatchSub1.slice(649,721).join(`,`))};
  13. if(D.includes(`5`))
  14. {Amendpcatch.push(PcatchSub1.slice(493,649).join(`,`))};
  15. if(D.includes(`4`))
  16. {Amendpcatch.push(PcatchSub1.slice(386,493).join(`,`))};
  17. if(D.includes(`3`))
  18. {Amendpcatch.push(PcatchSub1.slice(251,386).join(`,`))};
  19. if(D.includes(`2`))
  20. {Amendpcatch.push(PcatchSub1.slice(151,251).join(`,`))};
  21. if(D.includes(`1`))
  22. {Amendpcatch.push(PcatchSub1.slice(0,151).join(`,`))};
  23. Amendpcatch=Amendpcatch.join(`,`).split(`,`)};
  24.  
  25. if(Dex==`all`)
  26. {Amendpcatch=PcatchSub1};
  27.  
  28. PcatchSub2=Amendpcatch[Math.floor(Math.random()*(Amendpcatch.length))].slice(4).split(/\s+/g);
  29. Pcatch=PcatchSub2[1].replace(/([(].+[)])/g,"");
  30.  
  31. Special=["DertyCharizard","RaccPacc","Potato"];
  32. Rare=Math.floor(Math.random()*2500+1);
  33. Shiny=Math.floor(Math.random()*128+1);
  34.  
  35. if(user==`potatoeaterlove`||user==`PotatoAteHer`)
  36. {if(OneL==`catch`&&Two.match(/override/gi))
  37. {if(Three.match(/rare|special/gi))
  38. {if(Three.match(/\d/gi))
  39. {Shiny=1;
  40. Rare=0;
  41. Pcatch=Special[parseInt(Three.replace(/\D+/gi,``))-1];}
  42. else
  43. {Shiny=1;
  44. Rare=1}}
  45. else if(!isNaN(parseInt(Three)))
  46. {Shiny=1;
  47. Rare=0;
  48. PPCS2=PcatchSub1[parseInt(Three)-1].slice(4).split(/\s+/g);
  49. PPC=PPCS2[1].replace(/([(].+[)])/g,"");
  50. Pcatch=PPC}
  51. else
  52. {Shiny=1;
  53. Rare=0}}
  54. else
  55. {Pcatch=Pcatch;
  56. Shiny=Math.floor(Math.random()*5+1);
  57. Rare=Math.floor(Math.random()*50+1)}};
  58.  
  59. if(user==`Tommy/Green`)
  60. {Pcatch=Pcatch};
  61.  
  62. BadBean=[];
  63.  
  64. if(Rare==1)
  65. {Pcatch=Special[Math.floor(Math.random()*Special.length)]};
  66.  
  67. if(Two=="null")
  68. {Two1="1"}
  69. else
  70. {Two1=Two};
  71.  
  72. if(Three=="null")
  73. {Three1="1"}
  74. else
  75. {Three1=Three};
  76.  
  77. Lvl=1;
  78. Xp=0;
  79. Pb=15;
  80. Money=2500;
  81. MoneyExtra=0;
  82. XpExtra=0;
  83. PokemonList=``;
  84. CatchNext=``;
  85.  
  86. if(Math.floor(Math.random()*128+1)==1)
  87. {Pcatch=Pcatch};
  88.  
  89. for(y=0;y<a.length;y++)
  90. {if(a[y]==user+a[y].slice(user.length))
  91. {PersonalEntry=y}};
  92.  
  93. PersonalList=a.filter(x=>x==user+x.slice(user.length));
  94.  
  95. if(PersonalList.length>0)
  96. {if(PersonalList[PersonalList.length-1].length<280)
  97. {b=PersonalList[PersonalList.length-1].split("|")[0].split(" ");
  98. Lvl=b[1];
  99. Xp=b[2];
  100. Pb=b[3];
  101. Money=b[4];
  102. PokemonList=PersonalList[PersonalList.length-1].split("|")[1]}
  103. else
  104. {b=PersonalList[PersonalList.length-1].split("|")[0].split(" ");
  105. Lvl=b[1];
  106. Xp=b[2];
  107. Pb=b[3];
  108. Money=b[4];
  109. PokemonList=``}};
  110.  
  111. LvlNext=Lvl;
  112. XpNext=Xp;
  113. PbNext=Pb;
  114. MoneyNext=Money;
  115. CatchNext="";
  116. Message="Info";
  117.  
  118. if(parseInt(Lvl)>100)
  119. {Lvl=100};
  120.  
  121. if(Two.toLowerCase()=="max")
  122. {Two1=`${Math.floor(parseInt(Money)/250)}`};
  123.  
  124. if(PersonalList.length>0)
  125. {if(PersonalList[PersonalList.length-1].length<280)
  126. {TokenState=`editquote?`}
  127. else
  128. {TokenState=`addquote?`}}
  129. else
  130. {TokenState=`addquote?`};
  131.  
  132. if(OneL=="catch"&&Pb!=0)
  133. {MoneyExtra=Math.floor(Math.random()*400+101);
  134. MoneyNext=Math.floor(MoneyExtra+parseInt(Money));
  135. if(Lvl!=100)
  136. {XpExtra=Math.floor(Math.random()*100+51);
  137. XpNext=Math.floor(XpExtra+parseInt(Xp));
  138. if(XpNext>=Math.floor(475+(parseInt(Lvl)*25)))
  139. {LvlNext=Math.floor(parseInt(Lvl)+1);
  140. XpNext=Math.floor(XpNext-(475+(parseInt(Lvl*25))));
  141. Message="Catch Lvl"}
  142. else
  143. {LvlNext=Lvl;
  144. Message="Catch"};
  145. PbNext=Math.floor(parseInt(Pb)-1);
  146. if(Shiny==1)
  147. {CatchNext=Pcatch+"(Shiny)"}
  148. else
  149. {CatchNext=Pcatch}}
  150. else
  151. {XpExtra=0;
  152. XpNext=0;
  153. LvlNext=Lvl;
  154. Message="Catch";
  155. PbNext=Math.floor(parseInt(Pb)-1);
  156. if(Shiny==1)
  157. {CatchNext=Pcatch+"(Shiny)"}
  158. else
  159. {CatchNext=Pcatch}}}
  160. else
  161. if(OneL=="catch"&&Pb==0)
  162. {LvlNext=Lvl;
  163. XpNext=Xp;
  164. PbNext=Pb;
  165. MoneyNext=Money;
  166. CatchNext="Nope";
  167. Message="Out"};
  168.  
  169. if(BadBean.includes(user))
  170. {LvlNext=Lvl;
  171. XpNext=Xp;
  172. PbNext=Pb;
  173. MoneyNext=Money;
  174. CatchNext="";
  175. Message="Bad"};
  176.  
  177. if(PersonalList.length>0)
  178. {if(PersonalList[PersonalList.length-1].length<280)
  179. {if(OneL==`catch`&&Message!="Bad"&&Pb!=0)
  180. {if(PersonalList[PersonalList.length-1].split("|")[1]==``)
  181. {PokemonList=CatchNext}
  182. else
  183. {PokemonList=PersonalList[PersonalList.length-1].split("|")[1]+`/`+CatchNext}}
  184. else
  185. {PokemonList=PersonalList[PersonalList.length-1].split("|")[1]}}
  186. else
  187. {PokemonList=CatchNext}}
  188. else
  189. {PokemonList=CatchNext};
  190.  
  191. if(One=="null"||OneL.match(/help|info/i))
  192. {LvlNext=Lvl;
  193. XpNext=Xp;
  194. PbNext=Pb;
  195. MoneyNext=Money;
  196. CatchNext="Nope";
  197. Message="Info"};
  198.  
  199. if(OneL.match(/pok.(ball|dollar)s?|inven(tory|)|le?ve?l|money|stats/i))
  200. {LvlNext=Lvl;
  201. XpNext=Xp;
  202. PbNext=Pb;
  203. MoneyNext=Money;
  204. CatchNext="Nope";
  205. Message="Stats"};
  206.  
  207. if(OneL.match(/code/i))
  208. {LvlNext=Lvl;
  209. XpNext=Xp;
  210. PbNext=Pb;
  211. MoneyNext=Money;
  212. CatchNext="Nope";
  213. Message="Code"};
  214.  
  215. if(OneL=="buy"&&parseInt(Money)<Math.floor(parseInt(Two1)*250))
  216. {LvlNext=Lvl;
  217. XpNext=Xp;
  218. PbNext=Pb;
  219. MoneyNext=Money;
  220. CatchNext="Nope";
  221. Message="TooPoor "+Two1}
  222. else if(OneL=="buy")
  223. {LvlNext=Lvl;
  224. XpNext=Xp;
  225. CatchNext="Nope";
  226. if(parseInt(Two1)!=Math.floor(parseInt(Two1)+0))
  227. {Message="BuyHelp";
  228. MoneyNext=Money;
  229. PbNext=Pb}
  230. else if
  231. (parseInt(Money)>=Math.floor(parseInt(Two1)*250))
  232. {Message="Buy "+Two1;MoneyNext=Math.floor(parseInt(Money)-(parseInt(Two1)*250));
  233. PbNext=Math.floor(parseInt(Pb)+parseInt(Two1))}
  234. else
  235. {Message="TooPoor";
  236. MoneyNext=Money;
  237. PbNext=Pb}};
  238.  
  239. if(OneL.match(/pok.mon/i))
  240. {LvlNext=Lvl;
  241. XpNext=Xp;
  242. PbNext=Pb;
  243. MoneyNext=Money;
  244. CatchNext="Nope";
  245. Message="List "+Two1.toLowerCase()+" "+Three1};
  246.  
  247. if(OneL.match(/dex|pok.dex/i))
  248. {LvlNext=Lvl;
  249. XpNext=Xp;
  250. PbNext=Pb;
  251. MoneyNext=Money;
  252. CatchNext="Nope";
  253. Message="Dex "+Two1.toLowerCase()};
  254.  
  255. if(!OneL.match(/pok.(dex|balls?|dollars?|mon)|iven(tory)?|money|stats|help|info|buy|dex|code|catch|le?ve?l/i)&&One!="null"&&((user!=`PotatoAteHer`&&user!=`potatoeaterlove`)&&OneL.match(/override/gi)))
  256. {LvlNext=Lvl;
  257. XpNext=Xp;
  258. PbNext=Pb;
  259. MoneyNext=Money;
  260. CatchNext="Nope";
  261. Message="Error "+One};
  262.  
  263. if(Three!="null"&&Two1.toLowerCase()!=`shiny`&&((user!=`PotatoAteHer`&&user!=`potatoeaterlove`)&&Three1.match(/override/gi)))
  264. {LvlNext=Lvl;
  265. XpNext=Xp;
  266. PbNext=Pb;
  267. MoneyNext=Money;
  268. CatchNext="Nope";
  269. Message="TooMuch"};
  270.  
  271. if(TokenState==`editquote?`)
  272. {Entry=PersonalEntry+`%20`}
  273. else
  274. {Entry=``};
  275.  
  276. if(a.length>1998)
  277. {Delete=`deletequote?`}
  278. else
  279. {Delete=`No`};
  280.  
  281. if(BadBean.includes(user))
  282. {LvlNext=Lvl;
  283. XpNext=Xp;
  284. PbNext=Pb;
  285. MoneyNext=Money;
  286. CatchNext="Nope";
  287. Message="Bad!!!"};
  288.  
  289. if((user==`PotatoAteHer`||user==`potatoeaterlove`)&&(OneL.match(/override/gi)||Two1.match(/override/gi)||Three1.match(/override/gi)))
  290. {if(Two.match(/token/gi))
  291. {RL=`0123456789abcdef`.split(``);
  292. C=[];
  293. U=0;
  294. Code=``;
  295. I=Three.split(``);
  296. for(x=0;x<Token.length;x++)
  297. {C.push(Token.split(``)[x].charCodeAt(0))};
  298. for(x=0;x<I.length;x++)
  299. {U+=I[x].charCodeAt(0)*(x+1)};
  300. F=Math.floor(U/I.length)+Math.floor(U/I.length**2)*Math.floor(U/I.length);
  301. for(i=0;i<C.length;i++)
  302. {if(parseInt(C[i])>=97)
  303. {L=parseInt(C[i])+9}
  304. else
  305. {L=parseInt(C[i])};
  306. Code+=RL[(F+L+i)%16]};
  307. Out="Notoken=Test_Use&data="+Entry+","+user+"%20"+LvlNext+"%20"+XpNext+"%20"+PbNext+"%20"+MoneyNext+"| "+Delete+"token=Test_Use "+MoneyExtra+" "+XpExtra+" OVERRIDE TOKEN "+Code}
  308. else if(OneL.match(/catch/gi))
  309. {Out=TokenState+"token="+Token+"&data="+Entry+","+user+"%20"+LvlNext+"%20"+XpNext+"%20"+PbNext+"%20"+MoneyNext+"|"+PokemonList+" "+Delete+"token="+Token+" "+MoneyExtra+" "+XpExtra+" "+Message}
  310. else
  311. {Out="Notoken=Test_Use&data="+Entry+","+user+"%20"+LvlNext+"%20"+XpNext+"%20"+PbNext+"%20"+MoneyNext+"| "+Delete+"token=Test_Use "+MoneyExtra+" "+XpExtra+" OVERRIDE "+Message+Amendpcatch.length}}
  312. else
  313. {Out=TokenState+"token="+Token+"&data="+Entry+","+user+"%20"+LvlNext+"%20"+XpNext+"%20"+PbNext+"%20"+MoneyNext+"|"+PokemonList+" "+Delete+"token="+Token+" "+MoneyExtra+" "+XpExtra+" "+Message};
  314.  
  315. Out
Add Comment
Please, Sign In to add comment