Advertisement
ALPHADOIDE

Untitled

Aug 18th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.26 KB | None | 0 0
  1. command /dicegamb <number>:
  2. trigger:
  3. if arg > 99:
  4. if {money::%player%} >= arg:
  5. if {dicestart} is not set:
  6. set {dicestart} to true
  7. set {kake} to arg
  8. set {diceplayer} to player
  9. set {dicetime} to 15
  10. remove arg from {money::%player%}
  11. broadcast "&b[サイコロ賭博]&d%player%さん&eがサイコロ賭博を開始しました! &b/diceapt&eで勝負できます! 掛け金額&d[%{kake}%]"
  12. wait 10 second
  13. if {dicestart1} is not set:
  14. broadcast "&a[サイコロ賭博]参加者がいなかったためこの勝負は取り消されました!"
  15. add {kake} to {money::%player%}
  16. delete {diceplayer}
  17. delete {kake}
  18. delete {dicestart}
  19. else:
  20. delete {dicestart1}
  21. else:
  22. send "&a[サイコロ賭博]&cすでに開始してしまっているため実行できません!"
  23. else:
  24. send "&a[サイコロ賭博]&c指定した掛け金額を持っていません!"
  25. else:
  26. send "&a[サイコロ賭博]&c100コイン未満は賭けることはできません!"
  27.  
  28. command /diceapt:
  29. trigger:
  30. if {dicestart} is true:
  31. if {money::%player%} >= {kake}:
  32. set {dicestart1} to true
  33. set {diceplayer1} to player
  34. remove {kake} from {money::%player%}
  35. broadcast "&a[サイコロ賭博]&d%player%&dさん&eが参加しました!まず&d%{diceplayer}%さん&eがサイコロを回します!"
  36. wait 1 second
  37. play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
  38. wait 10 tick
  39. play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
  40. wait 10 tick
  41. play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
  42. wait 2 second
  43. set {_oya} to a random integer between 1 and 6
  44. broadcast "&b[サイコロ賭博]&c%{diceplayer}%&eの出目は&d%{_oya}%&eです!続いて&a%{diceplayer1}%&eのサイコロを回します!"
  45. set {_ko} to a random integer between 1 and 6
  46. play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
  47. wait 10 tick
  48. play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
  49. wait 10 tick
  50. play "BLOCK_NOTE_HARP" to all players at volume 100 and pitch 15
  51. wait 2 second
  52. broadcast "&a[サイコロ賭博]&a%{diceplayer1}%&eの出目は&d%{_ko}%&eです!"
  53. wait 4 second
  54. if {_oya} < {_ko}:
  55. broadcast "&b[サイコロ賭博]&a%{diceplayer1}%&eの勝ち! &d<賞金>&a%{kake}*2%"
  56. add {kake}*2 to {money::%{diceplayer1}%}
  57. else if {_oya} > {_ko}:
  58. broadcast "&b[サイコロ賭博]&c%{diceplayer}%&eの勝ち! &d<賞金>&a%{kake}*2%"
  59. add {kake}*2 to {money::%{diceplayer}%}
  60. else:
  61. broadcast "&b[サイコロ賭博]&e引き分け!掛け金は両者に戻ります!"
  62. add {kake} to {money::%{diceplayer1}%}
  63. add {kake} to {money::%{diceplayer}%}
  64. delete {diceplayer}
  65. delete {diceplayer1}
  66. delete {kake}
  67. delete {dicestart}
  68. else:
  69. send "&a[サイコロ賭博]&e掛け金を持っていません!"
  70. else:
  71. send "&a[サイコロ賭博]&e開始していません!"
  72.  
  73. on right click:
  74. line 1 is "スロット"
  75. {money::%player%} >= 10
  76. if {cool%player%} is not set:
  77. set {cool%player%} to 0
  78. remove 10 from {money::%player%}
  79. set {_%player%} to a random integer between 1 and 3
  80. set {_%player%1} to a random integer between 1 and 3
  81. set {_%player%2} to a random integer between 1 and 3
  82. wait 6 tick
  83. play "BLOCK_NOTE_HARP" to player at volume 100 and pitch 15
  84. set line 2 to "&d|&b%{_%player%}%&d| || ||"
  85. wait 6 tick
  86. play "BLOCK_NOTE_HARP" to player at volume 100 and pitch 15
  87. set line 2 to "&d|&b%{_%player%}%&d| |&b%{_%player%1}%&d| ||"
  88. wait 6 tick
  89. play "BLOCK_NOTE_HARP" to player at volume 100 and pitch 15
  90. set line 2 to "&d|&b%{_%player%}%&d| |&b%{_%player%1}%&d| |&b%{_%player%2}%&d|"
  91. wait 2 tick
  92. if {_%player%} is {_%player%1} and {_%player%2}:
  93. add 100 to {money::%player%}
  94. if {slotmute%player%} is not set:
  95. send "&d[スロット]&e当たり!"
  96. play "ENTITY_PLAYER_LEVELUP" to player at volume 0.6 and pitch 6
  97. delete {cool%player%}
  98.  
  99. command /slotmute:
  100. trigger:
  101. if {slotmute%player%} is not set:
  102. set {slotmute%player%} to true
  103. send "有効"
  104. else:
  105. delete {slotmute%player%}
  106. send "無効"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement