S_t_a_i_n Posted March 3, 2020 Share Posted March 3, 2020 Does anyone know how to make a gamble skript? Send me a gamble skript if u have a gamble skript. Thank you!! - WinterFedora MamaSita not banned Link to comment Share on other sites More sharing options...
Guest tib69 Posted March 4, 2020 Share Posted March 4, 2020 Any specifics? Link to comment Share on other sites More sharing options...
S_t_a_i_n Posted March 4, 2020 Author Share Posted March 4, 2020 (edited) ??? Edited March 4, 2020 by WinterFedora MamaSita not banned Link to comment Share on other sites More sharing options...
Preinstalled Posted March 4, 2020 Share Posted March 4, 2020 You mean a script where you put your money and there's a chance of it being doubled or it being removed from your balance? First Join: October 21st, 2017VIP: November 11th, 2017PRO: August 29th, 2018VIP Again: December 3rd, 2018Legend: Not achieved yet. Link to comment Share on other sites More sharing options...
S_t_a_i_n Posted March 4, 2020 Author Share Posted March 4, 2020 1 minute ago, Preinstalled said: You mean a script where you put your money and there's a chance of it being doubled or it being removed from your balance? Yes MamaSita not banned Link to comment Share on other sites More sharing options...
Preinstalled Posted March 4, 2020 Share Posted March 4, 2020 Hmm I'll get back to you in some time First Join: October 21st, 2017VIP: November 11th, 2017PRO: August 29th, 2018VIP Again: December 3rd, 2018Legend: Not achieved yet. Link to comment Share on other sites More sharing options...
_iZ_ Posted March 4, 2020 Share Posted March 4, 2020 options: permission: gamble.use permission message: &4You do not have access to this command. usage: Usage: /gamble <amount> chance: 50% pay out: 2 #The number the original number gets multiplied by if they win (Ex. If you gamble $10 and win, you get $20) command /gamble <number>: permission: {@permission} permission message: {@permission message} usage: {@usage} trigger: if player's balance is less than arg-1: message "&cYou do not have enough money to gamble this amount!" else: remove arg-1 from player's balance message "&eBetting $&e%arg-1%&e..." wait 3 seconds set {_gambled} to arg-1 set {_out} to ({_gambled}*{@pay out}) chance of {_chance}: send title "&a&lYou won!" with subtitle "&aYou won &a%{_out}%&a!" to player add {_out} to player's balance else: send title "&c&lYou lost!" with subtitle "&cYou did not win &c%{_out}%&c!" 1 » IGN: _iZ_ « » Joined: 12/18/2016 « » VIP: 1/13/2018 « » Helper: 1/29/2021 « » [<3]: 5/8/2021 « » Skript dev « » Discord: iZz#0420 « React to this if I was helpful, found this interesting, or you're just nice Link to comment Share on other sites More sharing options...
S_t_a_i_n Posted March 4, 2020 Author Share Posted March 4, 2020 Thank you! I am gonna try it on my server. MamaSita not banned Link to comment Share on other sites More sharing options...
S_t_a_i_n Posted March 5, 2020 Author Share Posted March 5, 2020 4 hours ago, izzzzthewiz said: options: permission: gamble.use permission message: &4You do not have access to this command. usage: Usage: /gamble <amount> chance: 50% pay out: 2 #The number the original number gets multiplied by if they win (Ex. If you gamble $10 and win, you get $20) command /gamble <number>: permission: {@permission} permission message: {@permission message} usage: {@usage} trigger: if player's balance is less than arg-1: message "&cYou do not have enough money to gamble this amount!" else: remove arg-1 from player's balance message "&eBetting $&e%arg-1%&e..." wait 3 seconds set {_gambled} to arg-1 set {_out} to ({_gambled}*{@pay out}) chance of {_chance}: send title "&a&lYou won!" with subtitle "&aYou won &a%{_out}%&a!" to player add {_out} to player's balance else: send title "&c&lYou lost!" with subtitle "&cYou did not win &c%{_out}%&c! So it always fails, i never win, can you fix this please? MamaSita not banned Link to comment Share on other sites More sharing options...
_iZ_ Posted March 5, 2020 Share Posted March 5, 2020 Sorry, I messed something up xD options: permission: gamble.use permission message: &4You do not have access to this command. usage: Usage: /gamble <amount> chance: 50% pay out: 2 #The number the original number gets multiplied by if they win (Ex. If you gamble $10 and win, you get $20) command /gamble <number>: permission: {@permission} permission message: {@permission message} usage: {@usage} trigger: if player's balance is less than arg-1: message "&cYou do not have enough money to gamble this amount!" else: remove arg-1 from player's balance message "&eBetting $&e%arg-1%&e..." wait 3 seconds set {_gambled} to arg-1 set {_out} to ({_gambled}*{@pay out}) chance of {@chance}: send title "&a&lYou won!" with subtitle "&aYou won $&a%{_out}%&a!" to player add {_out} to player's balance stop else: send title "&c&lYou lost!" with subtitle "&cYou did not win $&c%{_out}%&c!" I tested it and it works » IGN: _iZ_ « » Joined: 12/18/2016 « » VIP: 1/13/2018 « » Helper: 1/29/2021 « » [<3]: 5/8/2021 « » Skript dev « » Discord: iZz#0420 « React to this if I was helpful, found this interesting, or you're just nice Link to comment Share on other sites More sharing options...
S_t_a_i_n Posted March 5, 2020 Author Share Posted March 5, 2020 18 minutes ago, izzzzthewiz said: Sorry, I messed something up xD Lmao, its okay! MamaSita not banned Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now