Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /dicegamb <number>:
- trigger:
- if arg > 99:
- if {money::%player%} >= arg:
- if {dicestart} is not set:
- set {dicestart} to true
- set {kake} to arg
- set {diceplayer} to player
- set {dicetime} to 15
- remove arg from {money::%player%}
- broadcast "&b[サイコロ賭博]&d%player%さん&eがサイコロ賭博を開始しました! &b/diceapt&eで勝負できます! 掛け金額&d[%{kake}%]"
- wait 10 second
- if {dicestart1} is not set:
- broadcast "&a[サイコロ賭博]参加者がいなかったためこの勝負は取り消されました!"
- add {kake} to {money::%player%}
- delete {diceplayer}
- delete {kake}
- delete {dicestart}
- else:
- delete {dicestart1}
- else:
- send "&a[サイコロ賭博]&cすでに開始してしまっているため実行できません!"
- else:
- send "&a[サイコロ賭博]&c指定した掛け金額を持っていません!"
- else:
- send "&a[サイコロ賭博]&c100コイン未満は賭けることはできません!"
- command /diceapt:
- trigger:
- if {dicestart} is true:
- if {money::%player%} >= {kake}:
- set {dicestart1} to true
- set {diceplayer1} to player
- remove {kake} from {money::%player%}
- broadcast "&a[サイコロ賭博]&d%player%&dさん&eが参加しました!まず&d%{diceplayer}%さん&eがサイコロを回します!"
- wait 1 second
- play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
- wait 10 tick
- play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
- wait 10 tick
- play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
- wait 2 second
- set {_oya} to a random integer between 1 and 6
- broadcast "&b[サイコロ賭博]&c%{diceplayer}%&eの出目は&d%{_oya}%&eです!続いて&a%{diceplayer1}%&eのサイコロを回します!"
- set {_ko} to a random integer between 1 and 6
- play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
- wait 10 tick
- play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
- wait 10 tick
- play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
- wait 2 second
- broadcast "&a[サイコロ賭博]&a%{diceplayer1}%&eの出目は&d%{_ko}%&eです!"
- wait 4 second
- if {_oya} < {_ko}:
- broadcast "&b[サイコロ賭博]&a%{diceplayer1}%&eの勝ち! &d<賞金>&a%{kake}*2%"
- add {kake}*2 to {money::%{diceplayer1}%}
- else if {_oya} > {_ko}:
- broadcast "&b[サイコロ賭博]&c%{diceplayer}%&eの勝ち! &d<賞金>&a%{kake}*2%"
- add {kake}*2 to {money::%{diceplayer}%}
- else:
- broadcast "&b[サイコロ賭博]&e引き分け!掛け金は両者に戻ります!"
- add {kake} to {money::%{diceplayer1}%}
- add {kake} to {money::%{diceplayer}%}
- delete {diceplayer}
- delete {diceplayer1}
- delete {kake}
- delete {dicestart}
- else:
- send "&a[サイコロ賭博]&e掛け金を持っていません!"
- else:
- send "&a[サイコロ賭博]&e開始していません!"
- on right click:
- line 1 is "スロット"
- {money::%player%} >= 10
- if {cool%player%} is not set:
- set {cool%player%} to 0
- remove 10 from {money::%player%}
- set {_%player%} to a random integer between 1 and 3
- set {_%player%1} to a random integer between 1 and 3
- set {_%player%2} to a random integer between 1 and 3
- wait 6 tick
- play "BLOCK_NOTE_HARP" to player at volume 100 and pitch 15
- set line 2 to "&d|&b%{_%player%}%&d| || ||"
- wait 6 tick
- play "BLOCK_NOTE_HARP" to player at volume 100 and pitch 15
- set line 2 to "&d|&b%{_%player%}%&d| |&b%{_%player%1}%&d| ||"
- wait 6 tick
- play "BLOCK_NOTE_HARP" to player at volume 100 and pitch 15
- set line 2 to "&d|&b%{_%player%}%&d| |&b%{_%player%1}%&d| |&b%{_%player%2}%&d|"
- wait 2 tick
- if {_%player%} is {_%player%1} and {_%player%2}:
- add 100 to {money::%player%}
- if {slotmute%player%} is not set:
- send "&d[スロット]&e当たり!"
- play "ENTITY_PLAYER_LEVELUP" to player at volume 0.6 and pitch 6
- delete {cool%player%}
- command /slotmute:
- trigger:
- if {slotmute%player%} is not set:
- set {slotmute%player%} to true
- send "有効"
- else:
- delete {slotmute%player%}
- send "無効"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement