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="";
- Count=0;
- Error=a.split(" ");
- 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`.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+"!"}
- else
- {Extra=""};
- if(Message=="Catch"&&Pcatch!="")
- {Output="@"+user+" caught a wild "+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, Help, Stats, Buy, Inventory, Inven, Pokemon, Pokémon)"};
- if(Message=="Stats")
- {if(Lvl!="100")
- {Output="@"+user+" you are level "+Lvl+" with "+Xp+" Xp."}
- else
- {Output="@"+user+" you are level 100 congratulations!!!"}};
- 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."};
- if(Message=="Inventory")
- {Output="@"+user+" you have "+Money+" Pokédollars and "+Pb+" Pokéballs."};
- PokemonAmount=0;
- PokemonList=``;
- if(Message=="List"&&parseInt(MessageSub)==Math.floor(parseInt(MessageSub)+0))
- {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>20&&parseInt(MessageSub)*20>=PokemonAmount)
- {Count2=PokemonAmount%20}
- else if(PokemonAmount<20&&parseInt(MessageSub)*20<PokemonAmount+20)
- {Count2=PokemonAmount}
- else if(PokemonAmount>20&&parseInt(MessageSub)*20<=PokemonAmount)
- {Count2=20}
- else if(PokemonAmount<20&&parseInt(MessageSub)*20>=PokemonAmount+20)
- {Count2=PokemonAmount};
- List=PokemonList.replace(/=/g,` `).split(`/`).slice((parseInt(MessageSub)-1)*20+1,parseInt(MessageSub)*20+1);
- Page=Math.ceil(PokemonAmount/20);
- if(PokemonAmount==0)
- {Output="@"+user+" you have no Pokémon :/"}
- else if(Math.floor(parseInt(MessageSub)*20)>=PokemonAmount+20)
- {Output="@"+user+" you only have "+Page+" pages of Pokémon. Please choose a lower number"}
- else
- {Output=`${List.join(`, `)} || ${(MessageSub-1)*20+1}-${MessageSub*20>PokemonAmount?PokemonAmount:MessageSub*20}/${PokemonAmount} Page:${MessageSub}/${Page}`}}
- else if(Message=="List"&&MessageSub==`shiny`&&parseInt(MessageSSub)==Math.floor(parseInt(MessageSSub)+0))
- {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(`,`).slice((parseInt(MessageSSub)-1)*10+1,parseInt(MessageSSub)*10+1);
- if(PokemonAmount>10&&parseInt(MessageSSub)*10>=PokemonAmount)
- {Count2=PokemonAmount%10}
- else if(PokemonAmount<10&&parseInt(MessageSSub)*10<PokemonAmount+10)
- {Count2=PokemonAmount}
- else if(PokemonAmount>10&&parseInt(MessageSSub)*10<=PokemonAmount)
- {Count2=10}
- else if(PokemonAmount<10&&parseInt(MessageSSub)*10>=PokemonAmount+10)
- {Count2=PokemonAmount};
- Page=Math.ceil(PokemonAmount/10);
- if(PokemonAmount==0)
- {Output="@"+user+" you have no Shiny Pokémon :/"}
- else if(Math.floor(parseInt(MessageSSub)*10)>=PokemonAmount+10)
- {Output="@"+user+" you only have "+Page+" pages of Shiny Pokémon. Please choose a lower number"}
- else
- {Output=`${List.join(`, `)} || ${(MessageSSub-1)*10+1}-${MessageSSub*10>PokemonAmount?PokemonAmount:MessageSSub*10}/${PokemonAmount} Page:${MessageSSub}/${Page}`}}
- else if(Message=="List"&&parseInt(MessageSub)!=Math.floor(parseInt(MessageSub)+0)&&MessageSub!=`shiny`)
- {Output="Please only put numbers in the second input."}
- else if (Message=="List"&&parseInt(MessageSSub)!=Math.floor(parseInt(MessageSSub)+0)&&MessageSub!=`shiny`)
- {Output="Please only put 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."};
- 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"};
- Output
Add Comment
Please, Sign In to add comment