ALPHADOIDE

Untitled

Mar 21st, 2019
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. every 50 second:
  2. if {kabuka} is not set:
  3. set {kabuka} to 100
  4. set {_kabu} to random integer between 1 and 11
  5. if {_kabu} is 1:
  6. kabuka(30)
  7. if {_kabu} is 2:
  8. kabuka(60)
  9. if {_kabu} is 3:
  10. kabuka(100)
  11. if {_kabu} is 4:
  12. kabuka(150)
  13. if {_kabu} is 5:
  14. kabuka1(20)
  15. if {_kabu} is 6:
  16. kabuka1(50)
  17. if {_kabu} is 7:
  18. kabuka1(80)
  19. if {_kabu} is 8:
  20. kabuka1(100)
  21. if {_kabu} is 9:
  22. kabuka1(120)
  23. if {_kabu} is 10:
  24. tousan()
  25. if {_kabu} is 11:
  26. tousan()
  27. if {kabuka} <= 0:
  28. tousan()
  29.  
  30. function kabuka(p: number):
  31. add {_p} to {kabuka}
  32. broadcast "&e[株価]&a+%{_p}% &d現在の株価:%{kabuka}%"
  33. loop all players:
  34. play sound "ENTITY_PLAYER_LEVELUP" to loop-player with volume 0.5 and pitch 3
  35.  
  36. function kabuka1(p: number):
  37. remove {_p} from {kabuka}
  38. if {kabuka} <= 0:
  39. tousan()
  40. else:
  41. broadcast "&e[株価]&c-%{_p}% &d現在の株価:%{kabuka}%"
  42. loop all players:
  43. play sound "BLOCK_ANVIL_LAND" to loop-player with volume 0.2 and pitch 3
  44.  
  45. function tousan():
  46. set {kabuka} to 300
  47. broadcast "&e[株価]倒産しました...全員の株が消えました &d現在の株価:%{kabuka}%"
  48. loop all offline players:
  49. set {kabu::%loop-offlineplayer%} to 0
  50. play sound "BLOCK_ANVIL_LAND" to loop-player with volume 0.2 and pitch 3
  51.  
  52.  
  53. function kabu(p: player):
  54. if {money::%{_p}%} >= {kabuka}:
  55. add 1 to {kabu::%{_p}%}
  56. remove {kabuka} from {money::%{_p}%}
  57. #send "&c一株買いました!" to {_p}
  58. play sound "ENTITY_PLAYER_LEVELUP" to {_p} with volume 0.5 and pitch 2
  59. else:
  60. #send "%{kabuka}-{money::%{_p}%}%円足りません!" to {_p}
  61.  
  62. function urikabu(p: player):
  63. if {kabu::%{_p}%} is not 0:
  64. remove 1 from {kabu::%{_p}%}
  65. add {kabuka} to {money::%{_p}%}
  66. #send "&c一株売りました!" to {_p}
  67. play sound "ENTITY_PLAYER_LEVELUP" to {_p} with volume 0.5 and pitch 2
  68. else:
  69. #send "株をもっていません!" to {_p}
  70.  
  71. command /status <player>:
  72. trigger:
  73. send "&e==%arg-1%==" and "&d所持金:%{money::%arg-1%}%" and "&d所持株数%{kabu::%arg-1%}%" and "&e==========="
  74.  
  75. command /setmoney <player> <number>:
  76. permission:sk
  77. trigger:
  78. set {money::%arg-1%} to arg-2
  79. send "%arg-1%さんの所持金を%arg-2%円に設定しました!"
Advertisement
Add Comment
Please, Sign In to add comment