Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PcatchSub2=PcatchSub1[Math.floor(Math.random()*(PcatchSub1.length-1))].slice(1).split(/\s+/g);
- Pcatch=PcatchSub2[1].replace(/([(].+[)])/g,"");
- if(Two=="null")
- {Two1="1"}
- else
- {Two1=Two};
- Lvl=1;
- Xp=0;
- Pb=15;
- Money=2500;
- MoneyExtra=0;
- XpExtra=0;
- Shiny=Math.floor(Math.random()*128+1);
- PersonalList=a.filter(x=>x==user+x.slice(user.length));
- if(PersonalList.length>0)
- {b=PersonalList[PersonalList.length-1].split(" ");
- Lvl=b[1];
- Xp=b[2];
- Pb=b[3];
- Money=b[4]};
- if(OneL=="catch"&&Pb!=0)
- {MoneyExtra=Math.floor(Math.random()*400+101);
- MoneyNext=Math.floor(MoneyExtra+parseInt(Money));
- if(Lvl!=100)
- {XpExtra=Math.floor(Math.random()*100+51);
- XpNext=Math.floor(XpExtra+parseInt(Xp));
- if(XpNext>=Math.floor(475+(parseInt(Lvl)*25)))
- {LvlNext=Math.floor(parseInt(Lvl)+1);
- XpNext=Math.floor(XpNext-(475+(parseInt(Lvl*25))));
- Message="Catch Lvl"}
- else
- {LvlNext=Lvl;
- Message="Catch"};
- PbNext=Math.floor(parseInt(Pb)-1);
- if(Shiny==1)
- {CatchNext=Pcatch+"(Shiny)"}
- else
- {CatchNext=Pcatch}}
- else
- {XpExtra=0;
- XpNext=0;
- LvlNext=Lvl;
- Message="Catch";
- PbNext=Math.floor(parseInt(Pb)-1);
- if(Shiny==1)
- {CatchNext=Pcatch+"(Shiny)"}
- else
- {CatchNext=Pcatch}}}
- else
- if(OneL=="catch"&&Pb==0)
- {LvlNext=Lvl;
- XpNext=Xp;
- PbNext=Pb;
- MoneyNext=Money;
- CatchNext="Nope";
- Message="Out"};
- if(One=="null"||OneL=="help")
- {LvlNext=Lvl;
- XpNext=Xp;
- PbNext=Pb;
- MoneyNext=Money;
- CatchNext="Nope";
- Message="Info"};
- if(OneL=="stats"||OneL=="level")
- {LvlNext=Lvl;
- XpNext=Xp;
- PbNext=Pb;
- MoneyNext=Money;
- CatchNext="Nope";
- Message="Stats"};
- if(OneL=="buy"&&parseInt(Money)<Math.floor(parseInt(Two1)*250))
- {LvlNext=Lvl;
- XpNext=Xp;
- PbNext=Pb;
- MoneyNext=Money;
- CatchNext="Nope";
- Message="TooPoor "+Two1}
- else if(OneL=="buy")
- {LvlNext=Lvl;
- XpNext=Xp;
- CatchNext="Nope";
- if(parseInt(Two1)!=Math.floor(parseInt(Two1)+0))
- {Message="BuyHelp";
- MoneyNext=Money;
- PbNext=Pb}
- else if
- (parseInt(Money)>Math.floor(parseInt(Two1)*250))
- {Message="Buy "+Two1;MoneyNext=Math.floor(parseInt(Money)-(parseInt(Two1)*250));
- PbNext=Math.floor(parseInt(Pb)+parseInt(Two1))}
- else
- {Message="TooPoor";
- MoneyNext=Money;
- PbNext=Pb}};
- if(OneL=="inven"||OneL=="inventory")
- {LvlNext=Lvl;
- XpNext=Xp;
- PbNext=Pb;
- MoneyNext=Money;
- CatchNext="Nope";
- Message="Inventory"};
- if(OneL=="pokemon"||OneL=="pokémon")
- {LvlNext=Lvl;
- XpNext=Xp;
- PbNext=Pb;
- MoneyNext=Money;
- CatchNext="Nope";
- Message="List "+Two};
- if(OneL!="pokemon"&&OneL!="pokémon"&&OneL!="catch"&&OneL!="inven"&&OneL!="inventory"&&OneL!="buy"&&OneL!="stats"&&One!="null"&&OneL!="help")
- {LvlNext=Lvl;
- XpNext=Xp;
- PbNext=Pb;
- MoneyNext=Money;
- CatchNext="Nope";
- Message="Error "+One};
- if(Three!="null")
- {LvlNext=Lvl;
- XpNext=Xp;
- PbNext=Pb;
- MoneyNext=Money;
- CatchNext="Nope";
- Message="TooMuch"};
- if(CatchNext!="Nope"||PbNext!=Pb)
- {TokenReturn=Token}
- else
- {TokenReturn=String.fromCharCode(101,102,55,51,101,52,57,53,53,102,100,53,97,55,53,50)};
- TokenReturn+" "+LvlNext+" "+XpNext+" "+PbNext+" "+MoneyNext+" "+CatchNext+" "+MoneyExtra+" "+XpExtra+" "+Message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement