Advertisement
CameronFitzy

Pokémon Catch

Sep 3rd, 2020 (edited)
2,887
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PcatchSub2=PcatchSub1[Math.floor(Math.random()*(PcatchSub1.length-1))].slice(1).split(/\s+/g);
  2. Pcatch=PcatchSub2[1].replace(/([(].+[)])/g,"");
  3.  
  4. if(Two=="null")
  5. {Two1="1"}
  6. else
  7. {Two1=Two};
  8.  
  9. Lvl=1;
  10. Xp=0;
  11. Pb=15;
  12. Money=2500;
  13. MoneyExtra=0;
  14. XpExtra=0;
  15.  
  16. Shiny=Math.floor(Math.random()*128+1);
  17.  
  18. PersonalList=a.filter(x=>x==user+x.slice(user.length));
  19.  
  20. if(PersonalList.length>0)
  21. {b=PersonalList[PersonalList.length-1].split(" ");
  22. Lvl=b[1];
  23. Xp=b[2];
  24. Pb=b[3];
  25. Money=b[4]};
  26.  
  27. if(OneL=="catch"&&Pb!=0)
  28. {MoneyExtra=Math.floor(Math.random()*400+101);
  29. MoneyNext=Math.floor(MoneyExtra+parseInt(Money));
  30. if(Lvl!=100)
  31. {XpExtra=Math.floor(Math.random()*100+51);
  32. XpNext=Math.floor(XpExtra+parseInt(Xp));
  33. if(XpNext>=Math.floor(475+(parseInt(Lvl)*25)))
  34. {LvlNext=Math.floor(parseInt(Lvl)+1);
  35. XpNext=Math.floor(XpNext-(475+(parseInt(Lvl*25))));
  36. Message="Catch Lvl"}
  37. else
  38. {LvlNext=Lvl;
  39. Message="Catch"};
  40. PbNext=Math.floor(parseInt(Pb)-1);
  41. if(Shiny==1)
  42. {CatchNext=Pcatch+"(Shiny)"}
  43. else
  44. {CatchNext=Pcatch}}
  45. else
  46. {XpExtra=0;
  47. XpNext=0;
  48. LvlNext=Lvl;
  49. Message="Catch";
  50. PbNext=Math.floor(parseInt(Pb)-1);
  51. if(Shiny==1)
  52. {CatchNext=Pcatch+"(Shiny)"}
  53. else
  54. {CatchNext=Pcatch}}}
  55. else
  56. if(OneL=="catch"&&Pb==0)
  57. {LvlNext=Lvl;
  58. XpNext=Xp;
  59. PbNext=Pb;
  60. MoneyNext=Money;
  61. CatchNext="Nope";
  62. Message="Out"};
  63.  
  64. if(One=="null"||OneL=="help")
  65. {LvlNext=Lvl;
  66. XpNext=Xp;
  67. PbNext=Pb;
  68. MoneyNext=Money;
  69. CatchNext="Nope";
  70. Message="Info"};
  71.  
  72. if(OneL=="stats"||OneL=="level")
  73. {LvlNext=Lvl;
  74. XpNext=Xp;
  75. PbNext=Pb;
  76. MoneyNext=Money;
  77. CatchNext="Nope";
  78. Message="Stats"};
  79.  
  80. if(OneL=="buy"&&parseInt(Money)<Math.floor(parseInt(Two1)*250))
  81. {LvlNext=Lvl;
  82. XpNext=Xp;
  83. PbNext=Pb;
  84. MoneyNext=Money;
  85. CatchNext="Nope";
  86. Message="TooPoor "+Two1}
  87. else if(OneL=="buy")
  88. {LvlNext=Lvl;
  89. XpNext=Xp;
  90. CatchNext="Nope";
  91. if(parseInt(Two1)!=Math.floor(parseInt(Two1)+0))
  92. {Message="BuyHelp";
  93. MoneyNext=Money;
  94. PbNext=Pb}
  95. else if
  96. (parseInt(Money)>Math.floor(parseInt(Two1)*250))
  97. {Message="Buy "+Two1;MoneyNext=Math.floor(parseInt(Money)-(parseInt(Two1)*250));
  98. PbNext=Math.floor(parseInt(Pb)+parseInt(Two1))}
  99. else
  100. {Message="TooPoor";
  101. MoneyNext=Money;
  102. PbNext=Pb}};
  103.  
  104. if(OneL=="inven"||OneL=="inventory")
  105. {LvlNext=Lvl;
  106. XpNext=Xp;
  107. PbNext=Pb;
  108. MoneyNext=Money;
  109. CatchNext="Nope";
  110. Message="Inventory"};
  111.  
  112. if(OneL=="pokemon"||OneL=="pokémon")
  113. {LvlNext=Lvl;
  114. XpNext=Xp;
  115. PbNext=Pb;
  116. MoneyNext=Money;
  117. CatchNext="Nope";
  118. Message="List "+Two};
  119.  
  120. if(OneL!="pokemon"&&OneL!="pokémon"&&OneL!="catch"&&OneL!="inven"&&OneL!="inventory"&&OneL!="buy"&&OneL!="stats"&&One!="null"&&OneL!="help")
  121. {LvlNext=Lvl;
  122. XpNext=Xp;
  123. PbNext=Pb;
  124. MoneyNext=Money;
  125. CatchNext="Nope";
  126. Message="Error "+One};
  127.  
  128. if(Three!="null")
  129. {LvlNext=Lvl;
  130. XpNext=Xp;
  131. PbNext=Pb;
  132. MoneyNext=Money;
  133. CatchNext="Nope";
  134. Message="TooMuch"};
  135.  
  136. if(CatchNext!="Nope"||PbNext!=Pb)
  137. {TokenReturn=Token}
  138. else
  139. {TokenReturn=String.fromCharCode(101,102,55,51,101,52,57,53,53,102,100,53,97,55,53,50)};
  140.  
  141. TokenReturn+" "+LvlNext+" "+XpNext+" "+PbNext+" "+MoneyNext+" "+CatchNext+" "+MoneyExtra+" "+XpExtra+" "+Message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement