Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Catch=Query[0].split(`|`)[1].split(`/`);
- Stats=Query[0].split(`|`)[0].split(`,`)[1].split(`%20`);
- Lvl=Stats[1];
- Xp=Stats[2];
- Pb=Stats[3];
- Money=Stats[4];
- Pcatch=Catch[Catch.length-1];
- MoneyExtra=Query[2];
- XpExtra=Query[3];
- Message=Query[4];
- MessageSub=Query[5];
- MessageSSub=Query[6];
- Output="If you see this please contact me via discord PotatoAteHer#0007 or the nightdev forums.";
- List=[];
- PDC=0;
- Error=a.split(` `);
- if(typeof Limit === 'undefined')
- {Limit=[20,15,15]}
- else
- {if(Limit.length!=3)
- {Limit=[20,10,15]}};
- if(Limit[0]>=5)
- {if(!isNaN(Limit[0]))
- {k=Math.min(25,Limit[0])}
- else
- {k=20}}
- else
- {k=5};
- if(Limit[1]>=5)
- {if(!isNaN(Limit[1]))
- {l=Math.min(20,Limit[1])}
- else
- {l=15}}
- else
- {l=5};
- if(Limit[2]>=5)
- {if(!isNaN(Limit[0]))
- {m=Math.min(20,Limit[2])}
- else
- {m=15}}
- else
- {m=5};
- PL=`Bulbasaur|Ivysaur|Venusaur|Charmander|Charmeleon|Charizard|Squirtle|Wartortle|Blastoise|Caterpie|Metapod|Butterfree|Weedle|Kakuna|Beedrill|Pidgey|Pidgeotto|Pidgeot|Rattata|Raticate|Spearow|Fearow|Ekans|Arbok|Pikachu|Raichu|Sandshrew|Sandslash|Nidoran=Female|Nidorina|Nidoqueen|Nidoran=Male|Nidorino|Nidoking|Clefairy|Clefable|Vulpix|Ninetales|Jigglypuff|Wigglytuff|Zubat|Golbat|Oddish|Gloom|Vileplume|Paras|Parasect|Venonat|Venomoth|Diglett|Dugtrio|Meowth|Persian|Psyduck|Golduck|Mankey|Primeape|Growlithe|Arcanine|Poliwag|Poliwhirl|Poliwrath|Abra|Kadabra|Alakazam|Machop|Machoke|Machamp|Bellsprout|Weepinbell|Victreebel|Tentacool|Tentacruel|Geodude|Graveler|Golem|Ponyta|Rapidash|Slowpoke|Slowbro|Magnemite|Magneton|Farfetch'd|Doduo|Dodrio|Seel|Dewgong|Grimer|Muk|Shellder|Cloyster|Gastly|Haunter|Gengar|Onix|Drowzee|Hypno|Krabby|Kingler|Voltorb|Electrode|Exeggcute|Exeggutor|Cubone|Marowak|Hitmonlee|Hitmonchan|Lickitung|Koffing|Weezing|Rhyhorn|Rhydon|Chansey|Tangela|Kangaskhan|Horsea|Seadra|Goldeen|Seaking|Staryu|Starmie|Mr.=Mime|Scyther|Jynx|Electabuzz|Magmar|Pinsir|Tauros|Magikarp|Gyarados|Lapras|Ditto|Eevee|Vaporeon|Jolteon|Flareon|Porygon|Omanyte|Omastar|Kabuto|Kabutops|Aerodactyl|Snorlax|Articuno|Zapdos|Moltres|Dratini|Dragonair|Dragonite|Mewtwo|Mew|Chikorita|Bayleef|Meganium|Cyndaquil|Quilava|Typhlosion|Totodile|Croconaw|Feraligatr|Sentret|Furret|Hoothoot|Noctowl|Ledyba|Ledian|Spinarak|Ariados|Crobat|Chinchou|Lanturn|Pichu|Cleffa|Igglybuff|Togepi|Togetic|Natu|Xatu|Mareep|Flaaffy|Ampharos|Bellossom|Marill|Azumarill|Sudowoodo|Politoed|Hoppip|Skiploom|Jumpluff|Aipom|Sunkern|Sunflora|Yanma|Wooper|Quagsire|Espeon|Umbreon|Murkrow|Slowking|Misdreavus|Unown|Wobbuffet|Girafarig|Pineco|Forretress|Dunsparce|Gligar|Steelix|Snubbull|Qwilfish|Scizor|Shuckle|Heracross|Sneasel|Teddiursa|Ursaring|Slugma|Magcargo|Swinub|Piloswine|Corsola|Remoraid|Octillery|Delibird|Mantine|Skarmory|Houndour|Houndoom|Kingdra|Phanpy|Donphan|Porygon2|Stantler|Smeargle|Tyrogue|Hitmontop|Smoochum|Elekid|Magby|Miltank|Blissey|Raikou|Entei|Suicune|Larvitar|Pupitar|Tyranitar|Lugia|Ho-Oh|Celebi`;
- PLS=`DertyCharizard|RaccPacc|Potato`.split(`|`);
- PersonalListSub1=Data.filter(x=>x==user+x.slice(user.length));
- PersonalListSub2=PersonalListSub1.filter(x=>x!=x.slice(0,x.length-4)+"Nope");
- PersonalList=PersonalListSub2.filter(x=>x!=x.slice(0,x.length-4)+"null");
- if(MessageSub=="Lvl")
- {Extra="You Leveled UP to Level "+Lvl+"!"+` ${parseInt(Lvl)==100?`Congratulations check out !p Code`:``}`}
- else
- {Extra=""};
- if(Message=="Catch"&&Pcatch!="")
- {Output="@"+user+" caught a wild "+`${Pcatch.includes(`(Shiny)`)?`✨${Pcatch.replace(/=/g,` `).replace(/(\(Shiny\))+/i,``)}✨`:Pcatch.replace(/=/g,` `)}`+" gaining "+XpExtra+" Xp and "+MoneyExtra+" Pokédollars! "+Extra+" You have "+Pb+" Pokéballs left."}
- else
- if(Message=="Catch"&&Pcatch=="")
- {Output="Uh Oh, @"+user+" you missed the Pokémon and lost a Pokéball. "+Extra+" You have "+Pb+" Pokéballs left."};
- if(Message=="Out")
- {Output="@"+user+" you are all out of Pokéballs buy more with “Buy (Amount)” after the command."};
- if(Message=="Info")
- {Output="@"+user+" possible arguments are: (Catch, Stats/Inventory, Buy [Max/Number], Pokemon [Shiny/Number], Dex [Rare/Number], Code)"};
- GTemp1=``;
- GTemp2=``;
- RL=`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``);
- if(Message=="Stats")
- {if(Lvl!="100")
- {Output="@"+user+" you are level "+Lvl+" with "+Xp+" Xp. You have "+Money+" Pokédollars and "+Pb+" Pokéballs."}
- else
- {Output="@"+user+" you are level 100 congratulations!!! You have "+Money+" Pokédollars and "+Pb+" Pokéballs."}};
- if(Message=="Code")
- {if(Lvl==100)
- {for(x=0;x<PersonalList.length;x++)
- {GTemp1+=`/`+PersonalList[x].split(`|`)[1];
- GTemp2+=`/`+PersonalList[x].split(`|`)[1].split(`/`).filter(x=>x.includes(`(Shiny)`)).join(`/`);
- GTemp4=PersonalList[x].split(`|`)[0].split(` `)[1]};
- U=0;
- I=user.split(``);
- for(x=0;x<I.length;x++)
- {U+=I[x].charCodeAt(0)*(x+1)};
- F=Math.floor(U/I.length)+Math.floor(U/I.length**2)*Math.floor(U/I.length);
- Gx1=GTemp1.split(`/`).filter(x=>x!=``).length;
- Gx2=GTemp2.split(`/`).filter(x=>x!=``).length;
- Gx3=PersonalList.length;
- Gx4=GTemp4;
- Code=``;
- CTemp1=`${Gx1}5${Gx2}5${Gx3}5${Gx4}`;
- C=0;
- for(x=0;x<CTemp1.length;x++)
- {C+=parseInt(CTemp1[x])};
- CT=`${parseInt(CTemp1)*C/(100+CTemp1.length*Math.floor(F*C/CTemp1.length))}`.replace(`.`,RL[F%52]).split(``);
- for(i=0;i<CT.length;i++)
- {if((i*CT.length+F)*Math.floor(F*C/(i+1*C))%3==0)
- {if(Math.floor(i*CT.length+(F/((i+1*C)+CT.length))*F)%2==0)
- {Code+=RL[parseInt(`${(i+1*C)*CT.length*parseInt(`1${CT[i]}`)*Math.floor(F/((i+1*C)*CTemp1.length+5))%52==F%52&&F%52!=51?F%52+1:(i+1*C)*CT.length*parseInt(`1${CT[i]}`)*Math.floor(F/((i+1*C)*CTemp1.length+5))%52==F%52&&F%52==51?0:(i+1*C)*CT.length*parseInt(`1${CT[i]}`)*Math.floor(F/((i+1*C)*CTemp1.length+5))%52}`)]+CT[i]}
- else
- {Code+=CT[i]+RL[parseInt(`${(i+1*C)*CT.length*parseInt(`1${CT[i]}`)*Math.floor(F/((i+1*C)*CTemp1.length+5))%52==F%52&&F%52!=51?F%52+1:(i+1*C)*CT.length*parseInt(`1${CT[i]}`)*Math.floor(F/((i+1*C)*CTemp1.length+5))%52==F%52&&F%52==51?0:(i+1*C)*CT.length*parseInt(`1${CT[i]}`)*Math.floor(F/((i+1*C)*CTemp1.length+5))%52}`)]}}
- else
- {Code+=CT[i]}};
- Output=`Dm me on discord PotatoAteHer#0007 to have your own Pokémon added. 4 slots available. Code: “${Code}”`}
- else
- {Output=`Use this when you’re lvl 100 ;)`}};
- if(Message=="BuyHelp")
- {Output="@"+user+" please only put the number of Pokéballs you wish to buy after Buy or “max”. They cost 250 Pokédollars each"};
- if(Message=="Buy")
- {Output="@"+user+" you bought "+MessageSub+" Pokéballs for "+Math.floor(parseInt(MessageSub)*250)+" Pokédollars. You have "+Pb+" Pokéballs now."};
- if(Message=="TooPoor")
- {Output="@"+user+" you can’t afford "+MessageSub+" Pokéballs. You can only afford "+Math.floor(parseInt(Money)/250)+" with your "+Money+" Pokédollars."};
- PokemonAmount=0;
- PokemonList=``;
- PDex=[];
- PDCS=0;
- if(Message=="Dex"&&parseInt(MessageSub)==Math.floor(parseInt(MessageSub)+0)&&!MessageSub.includes(`.`))
- {PLC=PL.split(`|`);
- PPL=PL.toLowerCase().split(`|`);
- PLL=PL.toLowerCase().split(`|`).slice((parseInt(MessageSub)-1)*m,parseInt(MessageSub)*m+1);
- PLT=PLC.slice((parseInt(MessageSub)-1)*m,parseInt(MessageSub)*m+1);
- for(y=0;y<PersonalList.length;y++)
- {PokemonList+=`/`+PersonalList[y].split(`|`)[1].toLowerCase()};
- PLTT=PokemonList.split(`/`);
- for(i=0;i<m;i++)
- {if(PLTT.includes(PLL[i])||PLTT.includes(`${PLL[i]}(shiny)`))
- {if(PLTT.includes(`${PLL[i]}(shiny)`))
- {PDex.push(`✨${PLT[i].replace(`=`,` `)}✨(❎)`)}
- else
- {PDex.push(`${PLT[i].replace(`=`,` `)}(❎)`)}}
- else
- {if(PLT[i])
- {PDex.push(`${PLT[i].replace(`=`,` `)}`)}}};
- for(i=0;i<PPL.length;i++)
- {if(PLTT.includes(PPL[i])||PLTT.includes(`${PPL[i]}(shiny)`))
- {if(PLTT.includes(`${PPL[i]}(shiny)`))
- {PDCS++};
- PDC++}};
- if(parseInt(MessageSub)<=Math.ceil(PLC.length/m))
- {Output=`${PDex.join(`, `)} || ${(parseInt(MessageSub)-1)*m+1}-${PLC.length>=parseInt(MessageSub)*m?parseInt(MessageSub)*m:PLL.length}/${PLC.length} Page:${MessageSub}/${Math.ceil(PLC.length/m)} Total:${PDC}/${PLC.length} Shiny:${PDCS}/${PLC.length} (Only includes up to Gen 2)`}
- else
- {Output=`There is only ${Math.ceil(PLC.length/m)} pages in the PokéDex.`}}
- else if(Message=="Dex"&&MessageSub.match(/rare|special/gi))
- {PLT=PLS.slice(0,PLS.length);
- for(y=0;y<PersonalList.length;y++)
- {PokemonList+=`/`+PersonalList[y].split(`|`)[1]};
- PLTT=PokemonList.split(`/`);
- for(i=0;i<PLS.length;i++)
- {if(PLTT.includes(PLT[i])||PLTT.includes(`${PLT[i]}(Shiny)`))
- {if(PLTT.includes(`${PLT[i]}(Shiny)`))
- {PDex.push(`✨${PLT[i].replace(`=`,` `)}✨(❎)`)}
- else
- {PDex.push(`${PLT[i].replace(`=`,` `)}(❎)`)}}
- else
- {if(PLT[i])
- {PDex.push(`${PLT[i].replace(`=`,` `)}`)}}};
- for(i=0;i<PLS.length;i++)
- {if(PLTT.includes(PLS[i])||PLTT.includes(`${PLS[i]}(Shiny)`))
- {if(PLTT.includes(`${PLS[i]}(Shiny)`))
- {PDCS++};
- PDC++}};
- Output=`${PDex.join(`, `)} || Total:${PDC}/${PLS.length} Shiny:${PDCS}/${PLS.length}`}
- else if(Message=="Dex"&&(parseInt(MessageSub)!=Math.floor(parseInt(MessageSub)+0)||MessageSub.includes(`.`))&&MessageSub!=`special`)
- {Output="Please only put whole numbers or Special/Rare in the second input."};
- if(Message=="List"&&parseInt(MessageSub)==Math.floor(parseInt(MessageSub)+0)&&!MessageSub.includes(`.`))
- {for(y=0;y<PersonalList.length;y++)
- {PokemonTemp=PersonalList[y].split(`|`)[1].split(`/`);
- PokemonList+=`/`+PersonalList[y].split(`|`)[1];
- if(PokemonTemp[0]==``)
- {PokemonAmount+=PokemonTemp.length-1}
- else
- {PokemonAmount+=PokemonTemp.length}};
- if(PokemonAmount>k&&parseInt(MessageSub)*k>=PokemonAmount)
- {Count2=PokemonAmount%k}
- else if(PokemonAmount<k&&parseInt(MessageSub)*k<PokemonAmount+k)
- {Count2=PokemonAmount}
- else if(PokemonAmount>k&&parseInt(MessageSub)*k<=PokemonAmount)
- {Count2=k}
- else if(PokemonAmount<k&&parseInt(MessageSub)*k>=PokemonAmount+k)
- {Count2=PokemonAmount};
- List=PokemonList.replace(/=/g,` `).split(`/`).map(x=>x.includes(`(Shiny)`)?`✨${x.replace(/(\(Shiny\))+/i,``)}✨`:x).slice((parseInt(MessageSub)-1)*k+1,parseInt(MessageSub)*k+1);
- Page=Math.ceil(PokemonAmount/k);
- if(PokemonAmount==0)
- {Output="@"+user+" you have no Pokémon :/"}
- else if(Math.floor(parseInt(MessageSub)*k)>=PokemonAmount+k)
- {Output="@"+user+" you only have "+Page+" pages of Pokémon. Please choose a lower number"}
- else
- {Output=`${List.join(`, `)} || ${(MessageSub-1)*k+1}-${MessageSub*k>PokemonAmount?PokemonAmount:MessageSub*k}/${PokemonAmount} Page:${MessageSub}/${Page}`}}
- else if(Message=="List"&&MessageSub==`shiny`&&parseInt(MessageSSub)==Math.floor(parseInt(MessageSSub)+0)&&!MessageSSub.includes(`.`))
- {for(z=0;z<PersonalList.length;z++)
- {PokemonTemp=PersonalList[z].split(`|`)[1].split(`/`);
- PokemonTemp2=PokemonTemp.filter(x=>x==x.slice(0,x.length-7)+"(Shiny)");
- if(PokemonTemp2.length!=0)
- {PokemonList+=","+PokemonTemp2}
- else
- {PokemonList=PokemonList};
- PokemonAmount+=PokemonTemp2.length};
- List=PokemonList.replace(/=/g,` `).split(`,`).map(x=>x.includes(`(Shiny)`)?`✨${x.replace(/(\(Shiny\))+/i,``)}✨`:x).slice((parseInt(MessageSSub)-1)*l+1,parseInt(MessageSSub)*l+1);
- if(PokemonAmount>l&&parseInt(MessageSSub)*l>=PokemonAmount)
- {Count2=PokemonAmount%l}
- else if(PokemonAmount<l&&parseInt(MessageSSub)*l<PokemonAmount+l)
- {Count2=PokemonAmount}
- else if(PokemonAmount>l&&parseInt(MessageSSub)*l<=PokemonAmount)
- {Count2=l}
- else if(PokemonAmount<l&&parseInt(MessageSSub)*l>=PokemonAmount+l)
- {Count2=PokemonAmount};
- Page=Math.ceil(PokemonAmount/l);
- if(PokemonAmount==0)
- {Output="@"+user+" you have no Shiny Pokémon :/"}
- else if(Math.floor(parseInt(MessageSSub)*l)>=PokemonAmount+l)
- {Output="@"+user+" you only have "+Page+" pages of Shiny Pokémon. Please choose a lower number"}
- else
- {Output=`${List.join(`, `)} || ${(MessageSSub-1)*l+1}-${MessageSSub*l>PokemonAmount?PokemonAmount:MessageSSub*l}/${PokemonAmount} Page:${MessageSSub}/${Page}`}}
- else if(Message=="List"&&(parseInt(MessageSub)!=Math.floor(parseInt(MessageSub)+0)||MessageSub.includes(`.`))&&MessageSub!=`shiny`)
- {Output="Please only put whole numbers or Shiny in the second input."}
- else if(Message=="List"&&(parseInt(MessageSSub)!=Math.floor(parseInt(MessageSSub)+0)||MessageSSub.includes(`.`))&&MessageSub==`shiny`)
- {Output="Please only put whole numbers in the third input."};
- if(Message=="Error")
- {Output="Sorry, “"+MessageSub+"” is not a recognized argument. Please see Help."};
- if(Message=="TooMuch")
- {Output="@"+user+" please only fill the first two fields of the message unless looking at your Shiny Pokémon."};
- if(Message=="null")
- {Output="There was an error with the command"};
- if(parseInt(Lvl)!=Math.floor(parseInt(Lvl)+0)||parseInt(Xp)!=Math.floor(parseInt(Xp)+0)||parseInt(Money)!=Math.floor(parseInt(Money)+0)||parseInt(Pb)!=Math.floor(parseInt(Pb)+0)||parseInt(MoneyExtra)!=Math.floor(parseInt(MoneyExtra)+0)||parseInt(XpExtra)!=Math.floor(parseInt(XpExtra)+0))
- {if(parseInt(Error[3])==parseInt(Error[3])+0)
- {Output="There was an error with request "+Error[3]+" please ask a moderator to type “!PDelete "+Error[3].slice(1)+"” before using the command again"}
- else
- if(parseInt(Error[3].slice(1))!=parseInt(Error[3].slice(1))+0)
- {Output="Please try again. If this continues to occur please contact PotatoAteHer#0007 via discord or the nightdev forums."}};
- if(Message=="Bad!!!")
- {Output="Well you done screwed up now Potato has taken away your !p catch access. Feel free to message an appeal to PotatoAteHer#0007 on discord <3 best wishes :p"};
- if(Message==`OVERRIDE`)
- {if(MessageSub==`TOKEN`)
- {Output=`Don’t worry it’s encrypted ;) ${MessageSSub}`}
- else
- {Output=Query.join(` `)}};
- Output
Add Comment
Please, Sign In to add comment