View difference between Paste ID: csS0hcGN and 03KN9k5h
SHOW: | | - or go back to the newest paste.
1
Catch=Query[0].split(`|`)[1].split(`/`);
2
Stats=Query[0].split(`|`)[0].split(`,`)[1].split(`%20`);
3
Lvl=Stats[1];
4
Xp=Stats[2];
5
Pb=Stats[3];
6
Money=Stats[4];
7
Pcatch=Catch[Catch.length-1];
8
MoneyExtra=Query[2];
9
XpExtra=Query[3];
10
Message=Query[4];
11
MessageSub=Query[5];
12
MessageSSub=Query[6];
13
Output="If you see this please contact me via discord PotatoAteHer#0007 or the nightdev forums.";
14-
List=[];
14+
List="";
15-
PDC=0;
15+
Count=0;
16-
Error=a.split(` `);
16+
Error=a.split(" ");
17
18-
if(typeof Limit === 'undefined')
18+
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(`|`);
19-
{Limit=[20,15,15]}
19+
20
PersonalListSub1=Data.filter(x=>x==user+x.slice(user.length));
21-
{if(Limit.length!=3)
21+
22-
{Limit=[20,10,15]}};
22+
23-
if(Limit[0]>=5)
23+
24-
{if(!isNaN(Limit[0]))
24+
25-
{k=Math.min(25,Limit[0])}
25+
{Extra="You Leveled UP to Level "+Lvl+"!"}
26
else
27-
{k=20}}
27+
28
29-
{k=5};
29+
30-
if(Limit[1]>=5)
30+
{Output="@"+user+" caught a wild "+Pcatch.replace(/=/g,` `)+" gaining "+XpExtra+" Xp and "+MoneyExtra+" Pokédollars! "+Extra+" You have "+Pb+" Pokéballs left."}
31-
{if(!isNaN(Limit[1]))
31+
32-
{l=Math.min(20,Limit[1])}
32+
33
{Output="Uh Oh, @"+user+" you missed the Pokémon and lost a Pokéball. "+Extra+" You have "+Pb+" Pokéballs left."};
34-
{l=15}}
34+
35
if(Message=="Out")
36-
{l=5};
36+
37-
if(Limit[2]>=5)
37+
38-
{if(!isNaN(Limit[0]))
38+
39-
{m=Math.min(20,Limit[2])}
39+
{Output="@"+user+" possible arguments are: (Catch, Help, Stats, Buy, Inventory, Inven, Pokemon, Pokémon)"};
40
41-
{m=15}}
41+
42
{if(Lvl!="100")
43-
{m=5};
43+
{Output="@"+user+" you are level "+Lvl+" with "+Xp+" Xp."}
44
else
45-
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`;
45+
{Output="@"+user+" you are level 100 congratulations!!!"}};
46
47-
PLS=`DertyCharizard|RaccPacc|Potato`.split(`|`);
47+
48
{Output="@"+user+" please only put the number of Pokéballs you wish to buy after Buy or “max”. They cost 250 Pokédollars each"};
49
50
if(Message=="Buy")
51
{Output="@"+user+" you bought "+MessageSub+" Pokéballs for "+Math.floor(parseInt(MessageSub)*250)+" Pokédollars. You have "+Pb+" Pokéballs now."};
52
53
if(Message=="TooPoor")
54-
{Extra="You Leveled UP to Level "+Lvl+"!"+` ${parseInt(Lvl)==100?`Congratulations check out !p Code`:``}`}
54+
55
56
if(Message=="Inventory")
57
{Output="@"+user+" you have "+Money+" Pokédollars and "+Pb+" Pokéballs."};
58
59-
{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."}
59+
60
PokemonList=``;
61
62
if(Message=="List"&&parseInt(MessageSub)==Math.floor(parseInt(MessageSub)+0))
63
{for(y=0;y<PersonalList.length;y++)
64
{PokemonTemp=PersonalList[y].split(`|`)[1].split(`/`);
65
PokemonList+=`/`+PersonalList[y].split(`|`)[1];
66
if(PokemonTemp[0]==``)
67
{PokemonAmount+=PokemonTemp.length-1}
68-
{Output="@"+user+" possible arguments are: (Catch, Stats/Inventory, Buy [Max/Number], Pokemon [Shiny/Number], Dex [Rare/Number], Code)"};
68+
69
{PokemonAmount+=PokemonTemp.length}};
70-
GTemp1=``;
70+
if(PokemonAmount>20&&parseInt(MessageSub)*20>=PokemonAmount)
71-
GTemp2=``;
71+
{Count2=PokemonAmount%20}
72
else if(PokemonAmount<20&&parseInt(MessageSub)*20<PokemonAmount+20)
73-
RL=`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``);
73+
74
else if(PokemonAmount>20&&parseInt(MessageSub)*20<=PokemonAmount)
75
{Count2=20}
76
else if(PokemonAmount<20&&parseInt(MessageSub)*20>=PokemonAmount+20)
77-
{Output="@"+user+" you are level "+Lvl+" with "+Xp+" Xp. You have "+Money+" Pokédollars and "+Pb+" Pokéballs."}
77+
78
List=PokemonList.replace(/=/g,` `).split(`/`).slice((parseInt(MessageSub)-1)*20+1,parseInt(MessageSub)*20+1);
79-
{Output="@"+user+" you are level 100 congratulations!!! You have "+Money+" Pokédollars and "+Pb+" Pokéballs."}};
79+
Page=Math.ceil(PokemonAmount/20);
80
if(PokemonAmount==0)
81-
if(Message=="Code")
81+
82-
{if(Lvl==100)
82+
else if(Math.floor(parseInt(MessageSub)*20)>=PokemonAmount+20)
83-
{for(x=0;x<PersonalList.length;x++)
83+
84-
{GTemp1+=`/`+PersonalList[x].split(`|`)[1];
84+
85-
GTemp2+=`/`+PersonalList[x].split(`|`)[1].split(`/`).filter(x=>x.includes(`(Shiny)`)).join(`/`);
85+
{Output=`${List.join(`, `)} || ${(MessageSub-1)*20+1}-${MessageSub*20>PokemonAmount?PokemonAmount:MessageSub*20}/${PokemonAmount} Page:${MessageSub}/${Page}`}}
86-
GTemp4=PersonalList[x].split(`|`)[0].split(` `)[1]};
86+
else if(Message=="List"&&MessageSub==`shiny`&&parseInt(MessageSSub)==Math.floor(parseInt(MessageSSub)+0))
87-
U=0;
87+
88-
I=user.split(``);
88+
89-
for(x=0;x<I.length;x++)
89+
90-
{U+=I[x].charCodeAt(0)*(x+1)};
90+
91-
F=Math.floor(U/I.length)+Math.floor(U/I.length**2)*Math.floor(U/I.length);
91+
92-
Gx1=GTemp1.split(`/`).filter(x=>x!=``).length;
92+
93-
Gx2=GTemp2.split(`/`).filter(x=>x!=``).length;
93+
94-
Gx3=PersonalList.length;
94+
95-
Gx4=GTemp4;
95+
List=PokemonList.replace(/=/g,` `).split(`,`).slice((parseInt(MessageSSub)-1)*10+1,parseInt(MessageSSub)*10+1);
96-
Code=``;
96+
if(PokemonAmount>10&&parseInt(MessageSSub)*10>=PokemonAmount)
97-
CTemp1=`${Gx1}5${Gx2}5${Gx3}5${Gx4}`;
97+
{Count2=PokemonAmount%10}
98-
C=0;
98+
else if(PokemonAmount<10&&parseInt(MessageSSub)*10<PokemonAmount+10)
99-
for(x=0;x<CTemp1.length;x++)
99+
100-
{C+=parseInt(CTemp1[x])};
100+
else if(PokemonAmount>10&&parseInt(MessageSSub)*10<=PokemonAmount)
101-
CT=`${parseInt(CTemp1)*C/(100+CTemp1.length*Math.floor(F*C/CTemp1.length))}`.replace(`.`,RL[F%52]).split(``);
101+
{Count2=10}
102-
for(i=0;i<CT.length;i++)
102+
else if(PokemonAmount<10&&parseInt(MessageSSub)*10>=PokemonAmount+10)
103-
{if((i*CT.length+F)*Math.floor(F*C/(i+1*C))%3==0)
103+
104-
{if(Math.floor(i*CT.length+(F/((i+1*C)+CT.length))*F)%2==0)
104+
Page=Math.ceil(PokemonAmount/10);
105-
{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]}
105+
106
{Output="@"+user+" you have no Shiny Pokémon :/"}
107-
{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}`)]}}
107+
else if(Math.floor(parseInt(MessageSSub)*10)>=PokemonAmount+10)
108
{Output="@"+user+" you only have "+Page+" pages of Shiny Pokémon. Please choose a lower number"}
109-
{Code+=CT[i]}};
109+
110-
Output=`Dm me on discord PotatoAteHer#0007 to have your own Pokémon added. 4 slots available. Code: “${Code}”`}
110+
{Output=`${List.join(`, `)} || ${(MessageSSub-1)*10+1}-${MessageSSub*10>PokemonAmount?PokemonAmount:MessageSSub*10}/${PokemonAmount} Page:${MessageSSub}/${Page}`}}
111
else if(Message=="List"&&parseInt(MessageSub)!=Math.floor(parseInt(MessageSub)+0)&&MessageSub!=`shiny`)
112-
{Output=`Use this when you’re lvl 100 ;)`}};
112+
{Output="Please only put numbers in the second input."}
113
else if (Message=="List"&&parseInt(MessageSSub)!=Math.floor(parseInt(MessageSSub)+0)&&MessageSub!=`shiny`)
114
{Output="Please only put numbers in the third input."};
115
116
if(Message=="Error")
117
{Output="Sorry, “"+MessageSub+"” is not a recognized argument. Please see Help."};
118
119
if(Message=="TooMuch")
120
{Output="@"+user+" please only fill the first two fields of the message."};
121
122
if(Message=="null")
123
{Output="There was an error with the command"}
124
125-
PDex=[];
125+
126-
PDCS=0;
126+
127
{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"}
128-
if(Message=="Dex"&&parseInt(MessageSub)==Math.floor(parseInt(MessageSub)+0)&&!MessageSub.includes(`.`))
128+
129-
{PLC=PL.split(`|`);
129+
130-
PPL=PL.toLowerCase().split(`|`);
130+
131-
PLL=PL.toLowerCase().split(`|`).slice((parseInt(MessageSub)-1)*m,parseInt(MessageSub)*m+1);
131+
132-
PLT=PLC.slice((parseInt(MessageSub)-1)*m,parseInt(MessageSub)*m+1);
132+
133-
for(y=0;y<PersonalList.length;y++)
133+
134-
{PokemonList+=`/`+PersonalList[y].split(`|`)[1].toLowerCase()};
134+
135-
PLTT=PokemonList.split(`/`);
135+