Tutorials_for_BDFD

Backup

Feb 9th, 2025
191
0
Never
8
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | None | 0 0
  1. Code 1
  2. Trigger: !start
  3.  
  4. $nomention
  5. $onlyIf[$scriptLanguage==BDScript 2;❌ Dieses Skript funktioniert nur mit BDScript2]
  6.  
  7. $c[Prüfe, ob die Variablen existieren]
  8. $varExistError[coins;❌ Bitte erstelle die Variable "coins"!]
  9. $varExistError[extra_spins;❌ Bitte erstelle die Variable "extra_spins"!]
  10.  
  11. $c[Glücksrad starten]
  12. $addButton[no;spin_wheel;🎡 Drehe das Glücksrad!;primary;no]
  13.  
  14. $color[#ffcc00]
  15. $title[🎰 Glücksrad]
  16. $description[Drücke auf den Button, um das Glücksrad zu drehen und eine zufällige Belohnung zu erhalten!]
  17. $footer[Viel Glück!]
  18.  
  19.  
  20. _______________________________________________________________________________________________________________________________________
  21. _______________________________________________________________________________________________________________________________________
  22. _______________________________________________________________________________________________________________________________________
  23. _______________________________________________________________________________________________________________________________________
  24.  
  25.  
  26.  
  27. Trigger: $onInteraction[spin_wheel]
  28. Command language: BDSCRIPT 2
  29.  
  30. $nomention
  31. $enableDecimals[yes]
  32.  
  33. $c[Prüfe, ob die benötigten Variablen existieren]
  34. $varExistError[coins;❌ Bitte erstelle die Variable "coins"!]
  35. $varExistError[extra_spins;❌ Bitte erstelle die Variable "extra_spins"!]
  36. $varExistError[total_spins;❌ Bitte erstelle die Variable "total_spins"!]
  37. $varExistError[total_wins;❌ Bitte erstelle die Variable "total_wins"!]
  38. $varExistError[win_rate;❌ Bitte erstelle die Variable "win_rate"!]
  39. $varExistError[spin_cost;❌ Bitte erstelle die Variable "spin_cost"!]
  40.  
  41. $c[Setze Standardwerte für leere Variablen]
  42. $if[$getUserVar[coins]==]
  43. $setUserVar[coins;0]
  44. $endif
  45.  
  46. $if[$getUserVar[extra_spins]==]
  47. $setUserVar[extra_spins;0]
  48. $endif
  49.  
  50. $if[$getUserVar[spin_cost]==]
  51. $setUserVar[spin_cost;20]
  52. $endif
  53.  
  54. $c[Embed sofort senden, damit die Interaction nicht fehlschlägt]
  55. $title[🎰 Glücksrad Ergebnis]
  56. $description[Das Glücksrad dreht sich... ⏳]
  57. $footer[Viel Glück!]
  58. $color[#ffcc00]
  59.  
  60. $c[Prüfe, ob der Nutzer Freispiele hat, bevor Coins verwendet werden]
  61. $if[$getUserVar[extra_spins] > 0]
  62. $setUserVar[extra_spins;$sub[$getUserVar[extra_spins];1]]
  63. $setUserVar[used_extra_spin;1]
  64. $else
  65. $if[$getUserVar[coins] >= $getUserVar[spin_cost]]
  66. $setUserVar[coins;$sub[$getUserVar[coins];$getUserVar[spin_cost]]]
  67. $setUserVar[used_extra_spin;0]
  68. $else
  69. $editEmbedIn[2s;❌ Nicht genug Coins!;Du brauchst mindestens **$getUserVar[spin_cost] Coins**, um das Glücksrad zu drehen!;Tipp: Gewinne Extra Spins, um kostenlos zu drehen!;#ff0000]
  70. $removeComponent[spin_wheel]
  71. $stop
  72. $endif
  73. $endif
  74.  
  75. $c[Zufällige Belohnung generieren]
  76. $setUserVar[spin_result;$randomText[eine Niete;eine Niete;eine Niete;50 Coins;10 Coins;den Jackpot;einen Extra Spin]]
  77.  
  78. $c[Erhöhe die Anzahl der gespielten Spins]
  79. $setUserVar[total_spins;$sum[$getUserVar[total_spins];1]]
  80.  
  81. $c[Gewinn erkennen und total_wins erhöhen (ALLES außer Niete zählt als Gewinn)]
  82. $if[$getUserVar[spin_result]!=eine Niete]
  83. $setUserVar[total_wins;$sum[$getUserVar[total_wins];1]]
  84. $endif
  85.  
  86. $c[Aktualisiere die Gewinnquote nach jedem Spin – FINALER FIX!]
  87. $if[$getUserVar[total_spins]>0]
  88. $if[$getUserVar[total_wins]>0]
  89. $setUserVar[win_rate;$round[$multi[$divide[$getUserVar[total_wins];$getUserVar[total_spins]];100];2]]
  90. $else
  91. $setUserVar[win_rate;0]
  92. $endif
  93. $endif
  94.  
  95. $c[Nachricht nach 2 Sekunden mit dem tatsächlichen Ergebnis aktualisieren]
  96. $if[$getUserVar[spin_result]==50 Coins]
  97. $editEmbedIn[2s;🎰 Glücksrad Ergebnis;Du hast **50 Coins** gewonnen!;WinRate: $getUserVar[win_rate]%;#ffcc00]
  98. $setUserVar[coins;$sum[$getUserVar[coins];50]]
  99. $stop
  100. $endif
  101.  
  102. $if[$getUserVar[spin_result]==10 Coins]
  103. $editEmbedIn[2s;🎰 Glücksrad Ergebnis;Du hast **10 Coins** gewonnen!;WinRate: $getUserVar[win_rate]%;#ffcc00]
  104. $setUserVar[coins;$sum[$getUserVar[coins];10]]
  105. $stop
  106. $endif
  107.  
  108. $if[$getUserVar[spin_result]==eine Niete]
  109. $editEmbedIn[2s;🎰 Glücksrad Ergebnis;Leider hast du **eine Niete** gezogen! Vielleicht hast du beim nächsten Mal mehr Glück!;WinRate: $getUserVar[win_rate]%;#ff0000]
  110. $stop
  111. $endif
  112.  
  113. $if[$getUserVar[spin_result]==den Jackpot]
  114. $editEmbedIn[2s;🎰 Glücksrad Ergebnis;🎉 Glückwunsch! Du hast **den Jackpot** gewonnen! 🎉;WinRate: $getUserVar[win_rate]%;#ffd700]
  115. $setUserVar[coins;$sum[$getUserVar[coins];500]]
  116. $stop
  117. $endif
  118.  
  119. $if[$getUserVar[spin_result]==einen Extra Spin]
  120. $editEmbedIn[2s;🎰 Glücksrad Ergebnis;Du hast **einen Extra Spin** erhalten! Dreh gleich nochmal!;WinRate: $getUserVar[win_rate]%;#00ff00]
  121. $setUserVar[extra_spins;$sum[$getUserVar[extra_spins];1]]
  122. $stop
  123. $endif
  124.  
  125.  
  126.  
  127. _______________________________________________________________________________________________________________________________________
  128. _______________________________________________________________________________________________________________________________________
  129. _______________________________________________________________________________________________________________________________________
  130. _______________________________________________________________________________________________________________________________________
  131.  
  132. Trigger: !profil
  133. Command language: BDScript 2
  134.  
  135. $nomention
  136. $onlyIf[$scriptLanguage==BDScript 2;❌ Dieses Skript funktioniert nur in BDScript2!]
  137. $enableDecimals[yes]
  138. $c[Prüfe, ob die benötigten Variablen existieren]
  139. $varExistError[coins;❌ Bitte erstelle die Variable "coins"!]
  140. $varExistError[extra_spins;❌ Bitte erstelle die Variable "extra_spins"!]
  141. $varExistError[total_spins;❌ Bitte erstelle die Variable "total_spins"!]
  142. $varExistError[win_rate;❌ Bitte erstelle die Variable "win_rate"!]
  143.  
  144. $c[Profil-Embed]
  145. $title[📜 Dein Glücksrad-Profil]
  146. $thumbnail[$userAvatar[$authorID]]
  147. $color[#ffcc00]
  148. $description[
  149. 💰 **Coins:** `$getUserVar[coins]`
  150. 🎡 **Freispiele:** `$getUserVar[extra_spins]`
  151. 🔄 **Spins insgesamt:** `$getUserVar[total_spins]`
  152. 🏆 **Gewinnquote:** `$getUserVar[win_rate]%`
  153. ]
  154. $footer[Fordere deine Freunde heraus und gewinne mehr Coins!]
  155.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment