CameronFitzy

Pokemon Test C

Oct 26th, 2021 (edited)
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PcatchSub2=PcatchSub1[Math.floor(Math.random()*(PcatchSub1.length))].slice(4).split(/\s+/g);
  2. Pcatch=PcatchSub2[1].replace(/([(].+[)])/g,"");
  3.  
  4. if(user==`potatoeaterlove`||user==`PotatoAteHer`)
  5. {Pcatch=Pcatch};
  6.  
  7. if(user==`Tommy/Green`)
  8. {Pcatch=Pcatch};
  9.  
  10. BadBean=[];
  11.  
  12. if(Math.floor(Math.random()*2500+1)==1)
  13. {Pcatch="DertyCharizard"};
  14.  
  15. if(Math.floor(Math.random()*2500+1)==1)
  16. {Pcatch="RaccPacc"};
  17.  
  18. if(Two=="null")
  19. {Two1="1"}
  20. else
  21. {Two1=Two};
  22.  
  23. if(Three=="null")
  24. {Three1="1"}
  25. else
  26. {Three1=Three};
  27.  
  28. Lvl=1;
  29. Xp=0;
  30. Pb=15;
  31. Money=2500;
  32. MoneyExtra=0;
  33. XpExtra=0;
  34. PokemonList=``;
  35. CatchNext=``;
  36.  
  37. if(Math.floor(Math.random()*128+1)==1)
  38. {Pcatch=Pcatch};
  39.  
  40. Shiny=Math.floor(Math.random()*128+1);
  41.  
  42. if(user==`potatoeaterlove`||user==`PotatoAteHer`)
  43. {Shiny=Math.floor(Math.random()*1+1)};
  44.  
  45. for(y=0;y<a.length;y++)
  46. {if(a[y]==user+a[y].slice(user.length))
  47. {PersonalEntry=y}};
  48.  
  49. PersonalList=a.filter(x=>x==user+x.slice(user.length));
  50.  
  51. if(PersonalList.length>0)
  52. {if(PersonalList[PersonalList.length-1].length<280)
  53. {b=PersonalList[PersonalList.length-1].split("|")[0].split(" ");
  54. Lvl=b[1];
  55. Xp=b[2];
  56. Pb=b[3];
  57. Money=b[4];
  58. PokemonList=PersonalList[PersonalList.length-1].split("|")[1]}
  59. else
  60. {b=PersonalList[PersonalList.length-1].split("|")[0].split(" ");
  61. Lvl=b[1];
  62. Xp=b[2];
  63. Pb=b[3];
  64. Money=b[4];
  65. PokemonList=``}};
  66.  
  67. if(parseInt(Lvl)>100)
  68. {Lvl=100};
  69.  
  70. if(Two.toLowerCase()=="max")
  71. {Two1=`${Math.floor(parseInt(Money)/250)}`};
  72.  
  73. if(PersonalList.length>0)
  74. {if(PersonalList[PersonalList.length-1].length<280)
  75. {TokenState=`editquote?`}
  76. else
  77. {TokenState=`addquote?`}}
  78. else
  79. {TokenState=`addquote?`};
  80.  
  81. if(OneL=="catch"&&Pb!=0)
  82. {MoneyExtra=Math.floor(Math.random()*400+101);
  83. MoneyNext=Math.floor(MoneyExtra+parseInt(Money));
  84. if(Lvl!=100)
  85. {XpExtra=Math.floor(Math.random()*100+51);
  86. XpNext=Math.floor(XpExtra+parseInt(Xp));
  87. if(XpNext>=Math.floor(475+(parseInt(Lvl)*25)))
  88. {LvlNext=Math.floor(parseInt(Lvl)+1);
  89. XpNext=Math.floor(XpNext-(475+(parseInt(Lvl*25))));
  90. Message="Catch Lvl"}
  91. else
  92. {LvlNext=Lvl;
  93. Message="Catch"};
  94. PbNext=Math.floor(parseInt(Pb)-1);
  95. if(Shiny==1)
  96. {CatchNext=Pcatch+"(Shiny)"}
  97. else
  98. {CatchNext=Pcatch}}
  99. else
  100. {XpExtra=0;
  101. XpNext=0;
  102. LvlNext=Lvl;
  103. Message="Catch";
  104. PbNext=Math.floor(parseInt(Pb)-1);
  105. if(Shiny==1)
  106. {CatchNext=Pcatch+"(Shiny)"}
  107. else
  108. {CatchNext=Pcatch}}}
  109. else
  110. if(OneL=="catch"&&Pb==0)
  111. {LvlNext=Lvl;
  112. XpNext=Xp;
  113. PbNext=Pb;
  114. MoneyNext=Money;
  115. CatchNext="Nope";
  116. Message="Out"};
  117.  
  118. if(BadBean.includes(user))
  119. {LvlNext=Lvl;
  120. XpNext=Xp;
  121. PbNext=Pb;
  122. MoneyNext=Money;
  123. CatchNext="Nope";
  124. Message="Bad"};
  125.  
  126. if(PersonalList.length>0)
  127. {if(PersonalList[PersonalList.length-1].length<280)
  128. {if(OneL==`catch`&&Message!="Bad"&&Pb!=0)
  129. {if(PersonalList[PersonalList.length-1].split("|")[1]==``)
  130. {PokemonList=CatchNext}
  131. else
  132. {PokemonList=PersonalList[PersonalList.length-1].split("|")[1]+`/`+CatchNext}}
  133. else
  134. {PokemonList=PersonalList[PersonalList.length-1].split("|")[1]}}
  135. else
  136. {PokemonList=CatchNext}}
  137. else
  138. {PokemonList=CatchNext}
  139.  
  140. if(One=="null"||OneL=="help"||OneL=="info")
  141. {LvlNext=Lvl;
  142. XpNext=Xp;
  143. PbNext=Pb;
  144. MoneyNext=Money;
  145. CatchNext="Nope";
  146. Message="Info"};
  147.  
  148. if(OneL=="stats"||OneL=="level"||OneL=="lvl")
  149. {LvlNext=Lvl;
  150. XpNext=Xp;
  151. PbNext=Pb;
  152. MoneyNext=Money;
  153. CatchNext="Nope";
  154. Message="Stats"};
  155.  
  156. if(OneL=="buy"&&parseInt(Money)<Math.floor(parseInt(Two1)*250))
  157. {LvlNext=Lvl;
  158. XpNext=Xp;
  159. PbNext=Pb;
  160. MoneyNext=Money;
  161. CatchNext="Nope";
  162. Message="TooPoor "+Two1}
  163. else if(OneL=="buy")
  164. {LvlNext=Lvl;
  165. XpNext=Xp;
  166. CatchNext="Nope";
  167. if(parseInt(Two1)!=Math.floor(parseInt(Two1)+0))
  168. {Message="BuyHelp";
  169. MoneyNext=Money;
  170. PbNext=Pb}
  171. else if
  172. (parseInt(Money)>=Math.floor(parseInt(Two1)*250))
  173. {Message="Buy "+Two1;MoneyNext=Math.floor(parseInt(Money)-(parseInt(Two1)*250));
  174. PbNext=Math.floor(parseInt(Pb)+parseInt(Two1))}
  175. else
  176. {Message="TooPoor";
  177. MoneyNext=Money;
  178. PbNext=Pb}};
  179.  
  180. if(OneL=="inven"||OneL=="inventory")
  181. {LvlNext=Lvl;
  182. XpNext=Xp;
  183. PbNext=Pb;
  184. MoneyNext=Money;
  185. CatchNext="Nope";
  186. Message="Inventory"};
  187.  
  188. if(OneL=="pokemon"||OneL=="pokémon"||OneL=="pokèmon")
  189. {LvlNext=Lvl;
  190. XpNext=Xp;
  191. PbNext=Pb;
  192. MoneyNext=Money;
  193. CatchNext="Nope";
  194. Message="List "+Two1.toLowerCase()+" "+Three1};
  195.  
  196. if(OneL!="pokemon"&&OneL!="pokémon"&&OneL!="pokèmon"&&OneL!="info"&&OneL!="level"&&OneL!="catch"&&OneL!="inven"&&OneL!="inventory"&&OneL!="buy"&&OneL!="stats"&&One!="null"&&OneL!="help")
  197. {LvlNext=Lvl;
  198. XpNext=Xp;
  199. PbNext=Pb;
  200. MoneyNext=Money;
  201. CatchNext="Nope";
  202. Message="Error "+One};
  203.  
  204. if(Three!="null"&&Two1.toLowerCase()!=`shiny`)
  205. {LvlNext=Lvl;
  206. XpNext=Xp;
  207. PbNext=Pb;
  208. MoneyNext=Money;
  209. CatchNext="Nope";
  210. Message="TooMuch"};
  211.  
  212. if(TokenState==`editquote?`)
  213. {Entry=PersonalEntry+`%20`}
  214. else
  215. {Entry=``};
  216.  
  217. if(a.length>1998)
  218. {Delete=`deletequote?`}
  219. else
  220. {Delete=`No`};
  221.  
  222. if(BadBean.includes(user))
  223. {LvlNext=Lvl;
  224. XpNext=Xp;
  225. PbNext=Pb;
  226. MoneyNext=Money;
  227. CatchNext="Nope";
  228. Message="Bad!!!"};
  229.  
  230. TokenState+"token="+Token+"&data="+Entry+","+user+"%20"+LvlNext+"%20"+XpNext+"%20"+PbNext+"%20"+MoneyNext+"|"+PokemonList+" "+Delete+"token="+Token+" "+MoneyExtra+" "+XpExtra+" "+Message
Add Comment
Please, Sign In to add comment