Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $c[Trigger: (Anything you’d like)]
- $c[⚠️ IMPORTANT: Inside of this `$var[Made by Xloxn#4050;…]` put whatever you want, separate it with a |, you could make help commands, reminders, etc… If you have any ideas I could make with this DM me (Xloxn#4050)]
- $var[Made by Xloxn#4050;]
- $var[⚠️ IMPORTANT: Go to the copy whatever you put inside the `$var[Made by Xloxn#4050.]` and put it inside other `$var[Made by Xloxn#4050.]` inside the `$onInteraction` command!]
- $c[⚠️ IMPORTANT: Once you’ve followed these steps you should be done, keep in mind, it’ll seperate every 9 |’s]
- $c[// Cool Features:
- - Could go up to `10,000` pages (command breaks after that, but I don’t know why would you ever use that much)
- - This is more efficient than creating multiple `$įf` statements and button and etc…
- - Calculates the amount of pages based on the amount of `|` you put inside the `$vār` at the top of the code]
- $nomention
- $textSplit[$var[Made by Xloxn#4050];|]
- $if[$splitText[1]!=]
- $description[
- $splitText[1]
- $splitText[2]
- $splitText[3]
- $splitText[4]
- $splitText[5]
- $splitText[6]
- $splitText[7]
- $splitText[8]]
- $else
- $description[Nothing to see here…]
- $endif
- $c[// This calculates the pages, I lost multiple brain cells from this]
- $enableDecimals[yes]
- $if[$checkContains[$divide[$getTextSplitLength;9];.]==true]
- $textSplit[$divide[$getTextSplitLength;9];.]
- $var[pages;$sum[$splitText[1];1]]
- $else
- $var[pages;$divide[$getTextSplitLength;9]]
- $endif
- $footer[Page 1 of $var[pages]]
- $textSplit[$var[Made by Xloxn#4050];|]
- $color[#2f3136]
- $c[// Change the button emojis if you’d like, it won’t effect the code 👌 then go to the `$onInteraction` and change it there too, otherwise it’d look weird]
- $addButton[no;hfirst-$authorID;;secondary;yes;⏪]
- $addButton[no;hpage1-$authorID;;secondary;yes;⬅️]
- $if[$splitText[8]!=]
- $addButton[no;hpage2-$authorID-;;secondary;no;➡️]
- $addButton[no;hlast-$authorID;;secondary;no;⏩]
- $else
- $addButton[no;hpage2-$authorID;;secondary;yes;➡️]
- $addButton[no;hlast-$authorID;;secondary;yes;⏩]
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement