quab

BlackJack Unbeliebeboat - BDFD

Oct 24th, 2026 (edited)
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 4.09 KB | None | 0 0
  1. Youtube Tutorial:
  2. Discord:  https://discord.gg/yPyu6W2rQ
  3.  
  4.  
  5. Primer Codigo:
  6. Prefix: !bj <cantidad>
  7.  
  8. $nomention
  9.  
  10. $var[variable;coin] $c[<- pon el nombre de tu variable]
  11.  
  12. $if[$message==]
  13. :x: Especifica algo para apostar y que sea un numero
  14. $stop
  15. $endif
  16. $if[$isNumber[$message]==false]
  17. :x: Por favor ingresa un numero.
  18. $stop
  19. $endif
  20. $if[$getUserVar[$var[variable]]<=0]
  21. :x: No tienes disponible para apostar
  22. $stop
  23. $endif
  24. $if[$getUserVar[$var[variable]]<=$message]
  25. La cantidad de dinero "$message" es mayor a tu saldo que es "$getUserVar[$var[variable]]".
  26. $stop
  27. $endif
  28.  
  29. $httpPost[https://bdscript-tools.onrender.com/games;{
  30.         "bet": "$message",
  31.         "starting_balance": "$getUserVar[$var[variable]]"
  32.     }]
  33.    
  34.  
  35. $author[$username]
  36. $authorIcon[$authorAvatar]
  37.  
  38.  
  39. $addField[Tus Carts;$if[$httpResult[hands;0;cards;0]!=]$httpResult[hands;0;cards;0]$endif $if[$httpResult[hands;0;cards;1]!=]$httpResult[hands;0;cards;1]$endif $if[$httpResult[hands;0;cards;2]!=]$httpResult[hands;0;cards;2]$endif
  40.  
  41. Valor: $httpResult[hands;0;value];true]
  42.  
  43. $addField[Dealer Carts;$httpResult[dealer;cards;0]
  44.  
  45. Valor: $if[$httpResult[dealer;value]==] 0 $else $httpResult[dealer;value] $endif
  46. ;true]
  47.  
  48.  
  49. $footer[Carda Remaining: $httpResult[cards_remaining]]
  50.  
  51.  
  52.  
  53. $var[n;$replaceText[$httpResult[game_id];-;.;-1]]
  54.  
  55. $addButton[false;black-pararse-$var[n];Stand;success;$checkCondition[$httpResult[available_actions;0]==]]
  56.  
  57. $addButton[false;black-golpear-$var[n];Hand;primary;$checkCondition[$httpResult[available_actions;1]==]]
  58.  
  59. $addButton[false;black-doblar-$var[n];Doble Down;secondary;$checkCondition[$httpResult[available_actions;2]==]]
  60.  
  61. $addButton[false;black-separar-$var[n];Split;secondary;$checkCondition[$httpResult[available_actions;3]==]]
  62.  
  63. $addButton[true;https://discord.gg/yPyu6W2rQ;Help;link;false]
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. Segundo codigo
  72. Prefix: $onInteraction
  73.  
  74. Codigo:
  75.  
  76. $nomention
  77. $if[$checkContains[$customID;black]==true]
  78.  
  79. $var[variable;coin] $c[<- pon el nombre de tu variable de dinero ]
  80. $var[cantidad;]
  81.  
  82.  
  83.  
  84. $var[n;$customID]
  85. $textSplit[$var[n];-]
  86. $var[id;$replaceText[$splitText[3];.;-;-1]]
  87.  
  88.  
  89.  
  90. $var[value;]
  91. $if[$splitText[2]==pararse]
  92. $var[value;hit]
  93. $elseif[$splitText[2]==golpear]
  94. $var[value;stand]
  95. $elseif[$splitText[2]==doblar]
  96. $var[value;double]
  97. $elseif[$splitText[2]==separar]
  98. $var[value;split]
  99. $endif
  100.  
  101.  
  102.  
  103. $httpPost[https://bdscript-tools.onrender.com/games/$var[id]/$var[value];{}]
  104.  
  105.  
  106. $var[text;]
  107. $var[col;]
  108. $if[$httpResult[result;hands;0;outcome]==win]
  109. $var[text;win]
  110. $color[66bb6a]
  111.  
  112.  
  113.  
  114.  
  115.  
  116. $endif
  117. $if[$httpResult[result;hands;0;outcome]==loss]
  118. $var[text;loss]
  119. $color[ef5250]
  120.  
  121.  
  122.  
  123.  
  124. $endif
  125. $if[$httpResult[result;hands;0;outcome]==push]
  126. $var[text;push]
  127. $color[#4286f4]
  128.  
  129.  
  130. $endif
  131. $if[$httpResult[result;hands;0;outcome]==blackjack]
  132. $var[text;blackjack]
  133. $var[col;$random[000000;999999]]
  134. $endif
  135.  
  136. $if[$httpResult[result]!=]
  137. $description[Resultado: $var[text] $$httpResult[hands;0;bet]]
  138. $endif
  139.  
  140. $author[$username]
  141. $authorIcon[$authorAvatar]
  142.  
  143.  
  144.  
  145.  
  146. $addField[Tus Carts;$if[$httpResult[hands;0;cards;0]!=]$httpResult[hands;0;cards;0]$endif $if[$httpResult[hands;0;cards;1]!=]$httpResult[hands;0;cards;1]$endif $if[$httpResult[hands;0;cards;2]!=]$httpResult[hands;0;cards;2]$endif
  147.  
  148. Valor: $httpResult[hands;0;value];true]
  149.  
  150. $addField[Dealer Carts;$httpResult[dealer;cards;0]
  151.  
  152. Valor: $if[$httpResult[dealer;value]==] 0 $else $httpResult[dealer;value] $endif
  153. ;true]
  154.  
  155.  
  156. $footer[Carda Remaining: $httpResult[cards_remaining]]
  157.  
  158.  
  159. $setUserVar[$var[variable];$httpResult[balance]]
  160.  
  161.  
  162.  
  163. $removeButtons
  164.  
  165. $var[id;$replaceText[$var[id];-;.;-1]]
  166. $addButton[false;black-pararse-$var[id];Stand;success;$checkCondition[$httpResult[available_actions;0]==]]
  167.  
  168. $addButton[false;black-golpear-$var[id];Hand;primary;$checkCondition[$httpResult[available_actions;1]==]]
  169.  
  170. $addButton[false;black-doblar-$var[id];Doble Down;secondary;$checkCondition[$httpResult[available_actions;2]==]]
  171.  
  172. $addButton[false;black-separar-$var[id];Split;secondary;$checkCondition[$httpResult[available_actions;3]==]]
  173.  
  174. $addButton[true;https://discord.gg/yPyu6W2rQ;Help;link;false]
  175.  
  176.  
  177.  
  178. $endif
  179.  
Add Comment
Please, Sign In to add comment