Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Lvl=Query[1];
- Xp=Query[2];
- Pb=Query[3];
- Money=Query[4];
- Pcatch=Query[5];
- MoneyExtra=Query[6];
- XpExtra=Query[7];
- Message=Query[8];
- MessageSub=Query[9];
- Output="If you see this please contact me via twitch @potatoeaterlove";
- List="";
- Count=0;
- Error=a.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+" 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, Level, Buy, Inventory, Inven, Pokemon, Pokémon) New version of command available at https://bit.ly/3cuQ64T"};
- if(Message=="Stats")
- {if(Lvl!="100")
- {Output="@"+user+" you are level "+Lvl+" with "+Xp+" Xp."}
- else
- {Output="@"+user+" you are max level congratulations!!!"}};
- if(Message=="BuyHelp")
- {Output="@"+user+" please only put the number of Pokéballs you wish to buy after Buy. 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."};
- if(Message=="List"&&parseInt(MessageSub)==Math.floor(parseInt(MessageSub)+0))
- {for(x=0;x<PersonalList.length;x++)
- {DataSub=PersonalList[x].split(" ");
- Count++;
- if(Count>Math.floor(parseInt(MessageSub)*20-20)&&Count<Math.floor(parseInt(MessageSub)*20))
- {List+=", "+DataSub[5]}};
- if(Math.floor(Count%20)==0)
- {Page=Math.floor(Count/20)}
- else
- {Page=Math.floor(Count/20+1)};
- if(Math.floor(parseInt(MessageSub)*20)>Count)
- {Count2=Math.floor(Count%20)}
- else
- {Count2=20};
- if(Math.floor(parseInt(MessageSub)*20)>Math.floor(Count+20))
- {Output="@"+user+" you only have "+Page+" pages of Pokémon. Please choose a lower number"}
- else
- {if(Count==0)
- {Output="@"+user+" you have no Pokémon :/"}
- else
- {Output=List.slice(1)+" || "+Count2+"/"+Count+" Page:"+MessageSub+"/"+Page}}}
- else
- if(Message=="List"&&MessageSub=="null")
- {for(x=0;x<PersonalList.length;x++)
- {DataSub=PersonalList[x].split(" ");
- Count++;
- if(Count>Math.floor(1*20-20)&&Count<Math.floor(1*20))
- {List+=", "+DataSub[5]}};
- if(Math.floor(Count%20)==0)
- {Page=Math.floor(Count/20)}
- else
- {Page=Math.floor(Count/20+1)};
- if(20>Count)
- {Count2=Math.floor(Count%20)}
- else
- {Count2=20};
- if(Math.floor(1*20)>Math.floor(Count+20))
- {Output="@"+user+" you only have "+Page+" pages of Pokémon. Please choose a lower number"}
- else
- {if(Count==0)
- {Output="@"+user+" you have no Pokémon :/"}
- else
- {Output=List.slice(1)+" || "+Count2+"/"+Count+" Page:1/"+Page}}}
- else
- if(Message=="List"&&parseInt(MessageSub)!=Math.floor(parseInt(MessageSub)+0)&&MessageSub!="null")
- {Output="@"+user+" please only put numbers or leave it blank after Pokémon"};
- 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 @potatoeaterlove via twitch"}};
- Output
Add Comment
Please, Sign In to add comment