Advertisement
Brucord-Xloxn1296

Most Advanced Button Pages: Part 2/2 | By: Xloxn#4050

Oct 7th, 2022 (edited)
1,500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.99 KB | None | 0 0
  1. $nomention
  2. $c[Trigger: $onInteraction]
  3.  
  4. $var[⚠️ IMPORTANT: Copy from the $var[Made by Xloxn#4050] in the first code and paste it in this one!]
  5.  
  6.  
  7. $var[Made by Xloxn#4050;]
  8.  
  9.  
  10. $var[⚠️ IMPORTANT: Copy from the $var[Made by Xloxn#4050] in the first code and paste it in this one!]
  11.  
  12.  
  13. $var[customID;$customID]
  14. $if[$or[$checkContains[$var[customID];hpage]==true;$checkContains[$var[customID];hlast]==true;$checkContains[$var[customID];hfirst]==true]==true]
  15.  
  16. $textSplit[$var[customID];-]
  17.  
  18. $if[$splitText[2]==$authorID]
  19.  
  20. $textSplit[$getEmbedData[$channelID;$messageID;1;footer]; ]
  21. $var[pages;$splitText[4]]
  22.  
  23. $textSplit[$var[customID];]
  24.  
  25. $if[$checkContains[$var[customID];hlast]==true]
  26. $var[amount;$var[pages]]
  27. $elseif[$checkContains[$var[customID];hfirst]==true]
  28. $var[amount;1]
  29. $else
  30. $textSplit[$var[customID];]
  31. $var[amount;$splitText[6]]
  32. $endif
  33.  
  34.  
  35. $textSplit[$var[customID];]
  36. $if[$checkContains[$var[customID];hfirst]==true]
  37. $var[amount;1]
  38. $elseif[$checkContains[$var[customID];hlast]==true]
  39. $var[amount;$var[pages]]
  40. $else
  41. $if[$splitText[7]==-]
  42. $var[amount;$splitText[6]]
  43. $else
  44. $if[$splitText[8]!=-]
  45. $if[$splitText[9]!=-]
  46. $var[amount;$splitText[6]$splitText[7]$splitText[8]$splitText[9]]
  47. $else
  48. $var[amount;$splitText[6]$splitText[7]$splitText[8]]
  49. $endif
  50. $else
  51. $var[amount;$splitText[6]$splitText[7]]
  52. $endif
  53. $endif
  54.  
  55. $endif
  56.  
  57. $if[$or[$var[amount]==1;$checkContains[$var[customID];hfirst]==true]==true]
  58. $var[sum;$sub[$multi[8;$var[amount]];8]]
  59. $else
  60. $var[sum;$sub[$multi[8;$var[amount]];8]]
  61. $endif
  62.  
  63. $textSplit[$var[Made by Xloxn#4050];|]
  64.  
  65. $color[#2f3136]
  66.  
  67. $c[// Where the magic happens 😎]
  68.  
  69.  
  70. $description[
  71. $splitText[$sum[$var[sum];1]]
  72. $splitText[$sum[$var[sum];2]]
  73. $splitText[$sum[$var[sum];3]]
  74. $splitText[$sum[$var[sum];4]]
  75. $splitText[$sum[$var[sum];5]]
  76. $splitText[$sum[$var[sum];6]]
  77. $splitText[$sum[$var[sum];7]]
  78. $splitText[$sum[$var[sum];8]]
  79. ]
  80.  
  81. $enableDecimals[yes]
  82. $if[$checkContains[$divide[$getTextSplitLength;9];.]==true]
  83. $textSplit[$divide[$getTextSplitLength;9];.]
  84. $var[pages;$sum[$splitText[1];1]]
  85. $else
  86. $var[pages;$divide[$getTextSplitLength;9]]
  87. $endif
  88. $footer[Page $var[amount] of $var[pages]]
  89. $textSplit[$var[inv];|]
  90.  
  91.  
  92. $removeButtons
  93.  
  94. $c[// Change button emojis if you’d like, if you do so make sure to go to the first command and change it from there]
  95.  
  96. $if[$var[amount]!=1]
  97. $addButton[no;hfirst-$authorID;;secondary;no;⏪]
  98. $addButton[no;hpage$sub[$var[amount];1]-$authorID;;secondary;no;⬅️]
  99. $else
  100. $addButton[no;hfirst-$authorID;;secondary;yes;⏪]
  101. $addButton[no;hpage$sub[$var[amount];1]-$authorID;;secondary;yes;⬅️]
  102. $endif
  103.  
  104. $if[$var[amount]!=$var[pages]]
  105. $addButton[no;hpage$sum[$var[amount];1]-$authorID;;secondary;no;➡️]
  106. $addButton[no;hlast-$authorID;;secondary;no;⏩]
  107. $else
  108. $addButton[no;hpage$sum[$var[amount];1]-$authorID;;secondary;yes;➡️]
  109. $addButton[no;hlast-$authorID;;secondary;yes;⏩]
  110. $endif
  111.  
  112.  
  113. $else
  114. $color[#2f3136]
  115. $removeButtons
  116. $ephemeral
  117. $description[This isn’t for you!]
  118. $endif
  119. $endif
  120.  
  121. $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement