Wa_free 0e8e61844b114c398d82f569b65c940b
이해도 | 초보자 |
---|---|
게임버전 (JE) | 1.20.1 |
게임버전 (BE) | 관련없음 |
스크립트 버전 | 2.6.4 |
스크립트 애드온 | 몰라요 |
도박 스크립트에서 금액이 안들어와요 ㅠㅠ
on click on entity:
if entity's name is "&e슬롯&6머신$":
open chest with 1 rows named "&e&l슬롯&6&l머신$ &c(도박!)" to player
set {_slot} to 0
loop 9 times:
set slot {_slot} of current inventory of player to yellow stained glass pane
add 1 to {_slot}
wait 1 tick
set {_slot} to 0
loop 9 times:
set slot {_slot} of current inventory of player to light green stained glass pane
add 1 to {_slot}
set slot 2 of current inventory of player to iron ingot named "&e배팅금 &f| &e100골드"
set slot 4 of current inventory of player to gold ingot named "&e배팅금 &f| &e1000골드"
set slot 6 of current inventory of player to diamond named "&e배팅금 &f| &e10000골드"
on inventory click:
if name of current inventory of player is "&e&l슬롯&6&l머신$ &c(도박!)":
cancel event
if clicked raw slot is 2:
if player's money >= 100:
close player's inventory
set {배팅금::%player%} to 100
send "&a%{배팅금::%player%}%을 배팅하였습니다." to player
if clicked raw slot is 4:
if player's money >= 1000:
close player's inventory
set {배팅금::%player%} to 1000
send "&a%{배팅금::%player%}%을 배팅하였습니다." to player
if clicked raw slot is 6:
if player's money >= 10000:
close player's inventory
set {배팅금::%player%} to 10000
send "&a%{배팅금::%player%}%을 배팅하였습니다." to player
if clicked raw slot is 6 or 4 or 2:
if player's money >= {배팅금::%player%}:
subtract player's money from {배팅금::%player%}
wait 1 tick
open chest with 1 rows named "&e&l슬롯&6&l머신$ &c(도박!)" to player
set {_slot} to 0
loop 9 times:
set slot {_slot} of current inventory of player to yellow stained glass pane
add 1 to {_slot}
wait 1 tick
set {_slot} to 0
loop 9 times:
set slot {_slot} of current inventory of player to light green stained glass pane
add 1 to {_slot}
set {금액::%player%} to 1
loop 64 times:
set {금액::%player%} to random integer between 1 and 100
if {금액::%player%} is between 1 and 50:
set slot 4 of current inventory of player to iron ingot named "&c0.5배 (손해)"
if {금액::%player%} is between 51 and 80:
set slot 4 of current inventory of player to gold ingot named "&e1배 (??)"
if {금액::%player%} is between 81 and 90:
set slot 4 of current inventory of player to diamond named "&b3배 (이득!)"
if {금액::%player%} is between 91 and 100:
set slot 4 of current inventory of player to diamond block named "&b5배 (이득!)"
play sound "block.note_block.bit" at player
wait 1 tick
if {금액::%player%} is between 1 and 50:
subtract {배팅금::%player%}/2 from player's money
if {금액::%player%} is between 51 and 80:
add {배팅금::%player%}*1 to player's money
if {금액::%player%} is between 81 and 90:
add {배팅금::%player%}*3 to player's money
if {금액::%player%} is between 91 and 100:
add {배팅금::%player%}*5 to player's money
delete {배팅금::%player%}
delete {금액::%player%}
wait 3 seconds
close player's inventory
else:
play sound "minecraft:block.anvil.use" at player
환타비
2024.03.17돈 스크립트랑 연동 하셨나요
해당 스크립트는 도박 관련만 있고 돈 스크립트를 같이 올려주셔야 합니당
별코미
2024.03.17예? 스크립이 아니라 보시다시피 볼트 플러그인으로 플러그인과 연동한겁니다
별코미
2024.03.17플러그인 말씀하시는거면 버터 이코노미입니다
별코미
2024.03.17아 저 금액 변수는 확률변수애ㅔ요
별코미
2024.03.17해결했어요!