Advertisement
Kusa_Haenai_wWW

Untitled

Jul 12th, 2019
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. every tick:
  2. loop all players:
  3. if {temotikabu::%loop-player%} is not set:
  4. set {temotikabu::%loop-player%} to 0
  5. if {money::%loop-player%} is not set:
  6. set {money::%loop-player%} to 0
  7. if {a::*} is not set:
  8. set {a::*} to 500
  9. else:
  10. set {b} to random integer between 1 and 4
  11. if {b} is 1:
  12. add 1 to {a::*}
  13. if {b} is 2:
  14. add 2 to {a::*}
  15. if {b} is 3:
  16. add -1 to {a::*}
  17. if {b} is 4:
  18. add -2 to {a::*}
  19. if {a::*} >= 1000:
  20. broadcast "&c君たちがこれ以上儲かるといけないので倒産ってことで^^"
  21. set {a::*} to 500
  22. set {temotikabu::*} to 0
  23. if {a::*} <= 0:
  24. broadcast "&c株は倒産してしまった..."
  25.  
  26. command /kabu [<text>] [<integer>]:
  27. trigger:
  28. if arg-1 is not set:
  29. message "&c/kabu <sell・buy> <個数>"
  30. if arg-1 and arg-1 is set:
  31. if arg-1 is "buy":
  32. set {d} to round({a::*} * arg-2)
  33. if arg-2 >= 100:
  34. message "&c数が多すぎます!! 1~100 にしてください!!"
  35. if arg-2 <= 0:
  36. message "&c数が少なすぎます!! 1~100 にしてください!!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement