Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every tick:
- loop all players:
- if {temotikabu::%loop-player%} is not set:
- set {temotikabu::%loop-player%} to 0
- if {money::%loop-player%} is not set:
- set {money::%loop-player%} to 0
- if {a::*} is not set:
- set {a::*} to 500
- else:
- set {b} to random integer between 1 and 4
- if {b} is 1:
- add 1 to {a::*}
- if {b} is 2:
- add 2 to {a::*}
- if {b} is 3:
- add -1 to {a::*}
- if {b} is 4:
- add -2 to {a::*}
- if {a::*} >= 1000:
- broadcast "&c君たちがこれ以上儲かるといけないので倒産ってことで^^"
- set {a::*} to 500
- set {temotikabu::*} to 0
- if {a::*} <= 0:
- broadcast "&c株は倒産してしまった..."
- command /kabu [<text>] [<integer>]:
- trigger:
- if arg-1 is not set:
- message "&c/kabu <sell・buy> <個数>"
- if arg-1 and arg-1 is set:
- if arg-1 is "buy":
- set {d} to round({a::*} * arg-2)
- if arg-2 >= 100:
- message "&c数が多すぎます!! 1~100 にしてください!!"
- if arg-2 <= 0:
- message "&c数が少なすぎます!! 1~100 にしてください!!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement