Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 50 second:
- if {kabuka} is not set:
- set {kabuka} to 100
- set {_kabu} to random integer between 1 and 11
- if {_kabu} is 1:
- kabuka(30)
- if {_kabu} is 2:
- kabuka(60)
- if {_kabu} is 3:
- kabuka(100)
- if {_kabu} is 4:
- kabuka(150)
- if {_kabu} is 5:
- kabuka1(20)
- if {_kabu} is 6:
- kabuka1(50)
- if {_kabu} is 7:
- kabuka1(80)
- if {_kabu} is 8:
- kabuka1(100)
- if {_kabu} is 9:
- kabuka1(120)
- if {_kabu} is 10:
- tousan()
- if {_kabu} is 11:
- tousan()
- if {kabuka} <= 0:
- tousan()
- function kabuka(p: number):
- add {_p} to {kabuka}
- broadcast "&e[株価]&a+%{_p}% &d現在の株価:%{kabuka}%"
- loop all players:
- play sound "ENTITY_PLAYER_LEVELUP" to loop-player with volume 0.5 and pitch 3
- function kabuka1(p: number):
- remove {_p} from {kabuka}
- if {kabuka} <= 0:
- tousan()
- else:
- broadcast "&e[株価]&c-%{_p}% &d現在の株価:%{kabuka}%"
- loop all players:
- play sound "BLOCK_ANVIL_LAND" to loop-player with volume 0.2 and pitch 3
- function tousan():
- set {kabuka} to 300
- broadcast "&e[株価]倒産しました...全員の株が消えました &d現在の株価:%{kabuka}%"
- loop all offline players:
- set {kabu::%loop-offlineplayer%} to 0
- play sound "BLOCK_ANVIL_LAND" to loop-player with volume 0.2 and pitch 3
- function kabu(p: player):
- if {money::%{_p}%} >= {kabuka}:
- add 1 to {kabu::%{_p}%}
- remove {kabuka} from {money::%{_p}%}
- #send "&c一株買いました!" to {_p}
- play sound "ENTITY_PLAYER_LEVELUP" to {_p} with volume 0.5 and pitch 2
- else:
- #send "%{kabuka}-{money::%{_p}%}%円足りません!" to {_p}
- function urikabu(p: player):
- if {kabu::%{_p}%} is not 0:
- remove 1 from {kabu::%{_p}%}
- add {kabuka} to {money::%{_p}%}
- #send "&c一株売りました!" to {_p}
- play sound "ENTITY_PLAYER_LEVELUP" to {_p} with volume 0.5 and pitch 2
- else:
- #send "株をもっていません!" to {_p}
- command /status <player>:
- trigger:
- send "&e==%arg-1%==" and "&d所持金:%{money::%arg-1%}%" and "&d所持株数%{kabu::%arg-1%}%" and "&e==========="
- command /setmoney <player> <number>:
- permission:sk
- trigger:
- set {money::%arg-1%} to arg-2
- send "%arg-1%さんの所持金を%arg-2%円に設定しました!"
Advertisement
Add Comment
Please, Sign In to add comment