Advertisement
Brucord-Xloxn1296

Advanced Leaderboard | Xloxn#4050

Jul 29th, 2022 (edited)
1,821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 12.72 KB | None | 0 0
  1. $c[for ppl using the pastebin there should be a “copy” button on the top right simply click that and paste it into bdfd, and make sure to fill out the variables below]
  2.  
  3. $c[// Credits: Xloxn#4050, If you publish it even though you may have modify it, you shall give me credit… or else…]
  4.  
  5. $c[// Make sure to enable BDscript 2]
  6.  
  7. $var[var_name;variable-here]$c[<====
  8. ⚠️ Put your var name in here otherwise the code wont work ⚠️]
  9.  
  10. $var[type;user] $c[<====
  11. ¢setVar(var:authorID) = globalUser
  12. ¢setUserVar(var) = user
  13. ¢setServerVar(var) = server]
  14.  
  15. $var[separator1;] $c[<=====
  16. eg: $, would look like:
  17. `$10,000,000` - Xloxn
  18. 📝 Note: if you wish to do something like this `Level 10` with a “space” in between, put a space after the “separator1”]
  19.  
  20. $var[separator2;] $c[<====
  21. eg: Money, would look like:
  22. `1,000,000` Money - Xloxn
  23. 📝 Note: if you wish to do something like this `1,000,000 Money` with a “space” in between, put a space before the “separator2”]
  24.  
  25. $var[1emoji;1️⃣]
  26. $var[2emoji;2️⃣]
  27. $var[3emoji;3️⃣]
  28. $var[4emoji;4️⃣]
  29. $var[5emoji;5️⃣]
  30. $var[6emoji;6️⃣]
  31. $var[7emoji;7️⃣]
  32. $var[8emoji;8️⃣]
  33. $var[9emoji;9️⃣]
  34. $var[10emoji;🔟]
  35.  
  36. $nomention
  37. $title[$username[$botID]’s Leaderboard]
  38. $addTimestamp
  39. $description[
  40. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]!=] ⠀$var[1emoji]  **$var[separator1]$numberSeparator[$getLeaderboardValue[$var[type];$var[var_name];asc;1;value];,]$var[separator2]** - $username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]$endif
  41. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]!=]⠀$var[2emoji]  **$var[separator1]$numberSeparator[$getLeaderboardValue[$var[type];$var[var_name];asc;2;value];,]$var[separator2]** - $username[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]]$endif
  42. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;3;id]!=]⠀$var[3emoji]  **$var[separator1]$numberSeparator[$getLeaderboardValue[$var[type];$var[var_name];asc;3;value];,]$var[separator2]** - $username[$getLeaderboardValue[$var[type];$var[var_name];asc;3;id]]$endif
  43. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;4;id]!=]⠀$var[4emoji]  **$var[separator1]$numberSeparator[$getLeaderboardValue[$var[type];$var[var_name];asc;4;value];,]$var[separator2]** - $username[$getLeaderboardValue[$var[type];$var[var_name];asc;4;id]]$endif
  44. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;5;id]!=]⠀$var[5emoji]  **$var[separator1]$numberSeparator[$getLeaderboardValue[$var[type];$var[var_name];asc;5;value];,]$var[separator2]** - $username[$getLeaderboardValue[$var[type];$var[var_name];asc;5;id]]$endif
  45. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;6;id]!=]⠀$var[6emoji]  **$var[separator1]$numberSeparator[$getLeaderboardValue[$var[type];$var[var_name];asc;6;value];,]$var[separator2]** - $username[$getLeaderboardValue[$var[type];$var[var_name];asc;6;id]]$endif
  46. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;7;id]!=]⠀$var[7emoji]  **$var[separator1]$numberSeparator[$getLeaderboardValue[$var[type];$var[var_name];asc;7;value];,]$var[separator2]** - $username[$getLeaderboardValue[$var[type];$var[var_name];asc;7;id]]$endif
  47. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;8;id]!=]⠀$var[8emoji]  **$var[separator1]$numberSeparator[$getLeaderboardValue[$var[type];$var[var_name];asc;8;value];,]$var[separator2]** - $username[$getLeaderboardValue[$var[type];$var[var_name];asc;8;id]]$endif
  48. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;9;id]!=]⠀$var[9emoji]  **$var[separator1]$numberSeparator[$getLeaderboardValue[$var[type];$var[var_name];asc;9;value];,]$var[separator2]** - $username[$getLeaderboardValue[$var[type];$var[var_name];asc;9;id]]$endif
  49. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;10;id]!=]⠀$var[10emoji]  **$var[separator1]$numberSeparator[$getLeaderboardValue[$var[type];$var[var_name];asc;10;value];,]$var[separator2]** - $username[$getLeaderboardValue[$var[type];$var[var_name];asc;10;id]]$endif
  50. ]
  51. $color[#2f3136]
  52.  
  53.  
  54. $if[$getLeaderboardValue[$var[type];$var[var_name];asc;10;value]!=]
  55. $var[Box;'$username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;3;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;4;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;5;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;6;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;7;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;8;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;9;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;10;id]]']
  56.     $var[Value;$getLeaderboardValue[$var[type];$var[var_name];asc;1;value],$getLeaderboardValue[$var[type];$var[var_name];asc;2;value],$getLeaderboardValue[$var[type];$var[var_name];asc;3;value],$getLeaderboardValue[$var[type];$var[var_name];asc;4;value],$getLeaderboardValue[$var[type];$var[var_name];asc;5;value],$getLeaderboardValue[$var[type];$var[var_name];asc;6;value],$getLeaderboardValue[$var[type];$var[var_name];asc;7;value],$getLeaderboardValue[$var[type];$var[var_name];asc;8;value],$getLeaderboardValue[$var[type];$var[var_name];asc;9;value],$getLeaderboardValue[$var[type];$var[var_name];asc;10;value]]
  57. $elseif[$getLeaderboardValue[$var[type];$var[var_name];asc;9;value]!=]
  58.         $var[Box;'$username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;3;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;4;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;5;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;6;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;7;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;8;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;9;id]]']
  59.         $var[Value;$getLeaderboardValue[$var[type];$var[var_name];asc;1;value],$getLeaderboardValue[$var[type];$var[var_name];asc;2;value],$getLeaderboardValue[$var[type];$var[var_name];asc;3;value],$getLeaderboardValue[$var[type];$var[var_name];asc;4;value],$getLeaderboardValue[$var[type];$var[var_name];asc;5;value],$getLeaderboardValue[$var[type];$var[var_name];asc;6;value],$getLeaderboardValue[$var[type];$var[var_name];asc;7;value],$getLeaderboardValue[$var[type];$var[var_name];asc;8;value],$getLeaderboardValue[$var[type];$var[var_name];asc;9;value]]
  60. $elseif[$getLeaderboardValue[$var[type];$var[var_name];asc;8;value]!=]
  61.         $var[Box;'$username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;3;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;4;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;5;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;6;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;7;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;8;id]]']
  62.         $var[Value;$getLeaderboardValue[$var[type];$var[var_name];asc;1;value],$getLeaderboardValue[$var[type];$var[var_name];asc;2;value],$getLeaderboardValue[$var[type];$var[var_name];asc;3;value],$getLeaderboardValue[$var[type];$var[var_name];asc;4;value],$getLeaderboardValue[$var[type];$var[var_name];asc;5;value],$getLeaderboardValue[$var[type];$var[var_name];asc;6;value],$getLeaderboardValue[$var[type];$var[var_name];asc;7;value],$getLeaderboardValue[$var[type];$var[var_name];asc;8;value]]
  63. $elseif[$getLeaderboardValue[$var[type];$var[var_name];asc;7;value]!=]
  64.         $var[Box;'$username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;3;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;4;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;5;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;6;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;7;id]]']
  65.         $var[Value;$getLeaderboardValue[$var[type];$var[var_name];asc;1;value],$getLeaderboardValue[$var[type];$var[var_name];asc;2;value],$getLeaderboardValue[$var[type];$var[var_name];asc;3;value],$getLeaderboardValue[$var[type];$var[var_name];asc;4;value],$getLeaderboardValue[$var[type];$var[var_name];asc;5;value],$getLeaderboardValue[$var[type];$var[var_name];asc;6;value],$getLeaderboardValue[$var[type];$var[var_name];asc;7;value]]
  66. $elseif[$getLeaderboardValue[$var[type];$var[var_name];asc;6;value]!=]
  67.         $var[Box;'$username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;3;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;4;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;5;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;6;id]]']
  68.         $var[Value;$getLeaderboardValue[$var[type];$var[var_name];asc;1;value],$getLeaderboardValue[$var[type];$var[var_name];asc;2;value],$getLeaderboardValue[$var[type];$var[var_name];asc;3;value],$getLeaderboardValue[$var[type];$var[var_name];asc;4;value],$getLeaderboardValue[$var[type];$var[var_name];asc;5;value],$getLeaderboardValue[$var[type];$var[var_name];asc;6;value]]
  69. $elseif[$getLeaderboardValue[$var[type];$var[var_name];asc;5;value]!=]
  70.         $var[Box;'$username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;3;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;4;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;5;id]]']
  71.         $var[Value;$getLeaderboardValue[$var[type];$var[var_name];asc;1;value],$getLeaderboardValue[$var[type];$var[var_name];asc;2;value],$getLeaderboardValue[$var[type];$var[var_name];asc;3;value],$getLeaderboardValue[$var[type];$var[var_name];asc;4;value],$getLeaderboardValue[$var[type];$var[var_name];asc;5;value]]
  72. $elseif[$getLeaderboardValue[$var[type];$var[var_name];asc;4;value]!=]
  73.         $var[Box;'$username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;3;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;4;id]]']
  74.         $var[Value;$getLeaderboardValue[$var[type];$var[var_name];asc;1;value],$getLeaderboardValue[$var[type];$var[var_name];asc;2;value],$getLeaderboardValue[$var[type];$var[var_name];asc;3;value],$getLeaderboardValue[$var[type];$var[var_name];asc;4;value]]
  75. $elseif[$getLeaderboardValue[$var[type];$var[var_name];asc;3;value]!=]
  76.         $var[Box;'$username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;3;id]]']
  77.         $var[Value;$getLeaderboardValue[$var[type];$var[var_name];asc;1;value],$getLeaderboardValue[$var[type];$var[var_name];asc;2;value],$getLeaderboardValue[$var[type];$var[var_name];asc;3;value]]
  78.        
  79. $elseif[$getLeaderboardValue[$var[type];$var[var_name];asc;2;value]!=]
  80.         $var[Box;'$username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]','$username[$getLeaderboardValue[$var[type];$var[var_name];asc;2;id]]']
  81.         $var[Value;$getLeaderboardValue[$var[type];$var[var_name];asc;1;value],$getLeaderboardValue[$var[type];$var[var_name];asc;2;value]]
  82. $elseif[$getLeaderboardValue[$var[type];$var[var_name];asc;1;value]!=]
  83.         $var[Box;'$username[$getLeaderboardValue[$var[type];$var[var_name];asc;1;id]]']
  84.         $var[Value;$getLeaderboardValue[$var[type];$var[var_name];asc;1;value]]
  85. $else
  86. $description[No data available…]
  87.      $stop
  88. $endif
  89.  
  90. $image[https://quickchart.io/chart?w=500&h=250&bkg=white&c={type:%27bar%27,data:{labels:[$url[encode;$var[Box]]\],datasets:[{label:['Leaderboard'\],data:[$var[Value]\],borderColor:['rgb(255,99,132)','rgb(255,159,64)','rgba(255,205,88,255)','rgba(103,197,197,255)','rgba(54,162,235,255)','rgba(153,102,255,255)','rgb(112,121,223)','rgb(32,161,184)','rgb(239,40,180)'\],backgroundColor:['rgba(255,99,132,0.5)','rgba(255,159,64,0.5)','rgba(255,230,171,255)','rgba(165,223,223,255)','rgba(155,208,245,255)','rgba(204,179,255,255)','rgba(112,121,223,0.5)','rgba(32,161,184,0.5)','rgba(239,40,180,0.4)'\],borderWidth:1,}\]}}]
  91.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement