Advertisement
Kusa_Haenai_wWW

Untitled

Jul 13th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. every seconds:
  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 1000
  7. if {level::%loop-player%} is not set:
  8. set {level::%loop-player%} to 1
  9. if {exp::%loop-player%} is not set:
  10. set {exp::%loop-player%} to 0
  11. if {needexp::%loop-player%} is not set:
  12. set {needexp::%loop-player%} to 100
  13. if {a} is not set:
  14. set {a} to 500
  15. else:
  16. set {b} to random integer between 1 and 4
  17. if {b} is 1:
  18. add 1 to {a}
  19. if {b} is 2:
  20. add 2 to {a}
  21. if {b} is 3:
  22. add -1 to {a}
  23. if {b} is 4:
  24. add -2 to {a}
  25. if {a} >= 1000:
  26. broadcast "&c君たちがこれ以上儲かるといけないので倒産ってことで^^"
  27. set {a} to 500
  28. set {temotikabu::*} to 0
  29. if {a} <= 0:
  30. broadcast "&c株は倒産してしまった..."
  31.  
  32. command /kabu [<text>] [<integer>]:
  33. trigger:
  34. if arg-1 or arg-2 is not set:
  35. message "&c/kabu <sell・buy> <個数>"
  36. if arg-1 and arg-1 is set:
  37. if arg-1 is "buy":
  38. set {d} to round({a} * arg-2)
  39. if arg-2 >= 101:
  40. stop
  41. message "&c数が多すぎます!! 1~100 にしてください!!"
  42. if arg-2 <= 0:
  43. stop
  44. message "&c数が少なすぎます!! 1~100 にしてください!!"
  45. if {money::%player%} >= {d}:
  46. add arg-2 to {temotikabu::%player%}
  47. message "&b株を&d%arg-2%&b個購入しました!!"
  48. remove {d} from {money::%player%}
  49. delete {d}
  50. play entity_experience_orb_pickup at player with volume 1 and pitch 1
  51. else:
  52. message "&c購入金額が所持金を上回っています!!"
  53. if arg-1 is "sell":
  54. set {d} to round({a} * arg-2)
  55. if arg-2 >= 101:
  56. stop
  57. message "&c数が多すぎます!! 1~100 にしてください!!"
  58. if arg-2 <= 0:
  59. stop
  60. message "&c数が少なすぎます!! 1~100 にしてください!!"
  61. if {temotikabu::%player%} >= arg-2:
  62. add {d} to {money::%player%}
  63. message "&b株を&d%arg-2%&b個売却しました!!"
  64. remove arg-2 from {temotikabu::%player%}
  65. delete {d}
  66. play entity_experience_orb_pickup at player with volume 1 and pitch 1
  67.  
  68. command /givemoney [<player>] [<integer>]:
  69. permission: sk.admin
  70. trigger:
  71. if arg-1 is not set:
  72. message "&c/givemoney <player> <数字>"
  73. add arg-2 to {money::%arg-1%}
  74.  
  75. every tick:
  76. loop all players:
  77. set action bar of loop-player to "&d&lLv.&9&l%{level::%loop-player%}% &8[&c%{exo::%loop-player%}%&8/&b%{needexp::%loop-player%}%&8] &c所持株数 &d%{temotikabu::%loop-player%}% &eMoney &d%{money::%loop-player%}% &a&l株価 &d&l%{a}%"
  78.  
  79. on break:
  80. if event-block is stone:
  81. add round({level::%player%} * 1) to {money::%player%}
  82. add round({level::%player%} * 1) to {exp::%player%}
  83. play entity_item_pickup at player with volume 1 and pitch 1
  84. if {exp::%player%} >= {needexp::%player%}:
  85. set {exp::%player%} to 0
  86. add 1 to {level::%player%}
  87. set {needexp::%player%} to round(({level::%player%} + 1) * {needexp::%player%} + (25 * {level::%player%}))
  88. message "&e========================="
  89. message "&a&lLevel Up!!"
  90. message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  91. message "&e========================="
  92. play entity_firework_blast at player with volume 1 and pitch 1
  93. if event-block is iron ore:
  94. add round({level::%player%} * 3) to {money::%player%}
  95. add round({level::%player%} * 3) to {exp::%player%}
  96. play entity_item_pickup at player with volume 1 and pitch 1
  97. if {exp::%player%} >= {needexp::%player%}:
  98. set {exp::%player%} to 0
  99. add 1 to {level::%player%}
  100. set {needexp::%player%} to round(({level::%player%} + 1) * {needexp::%player%} + (25 * {level::%player%}))
  101. message "&e========================="
  102. message "&a&lLevel Up!!"
  103. message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  104. message "&e========================="
  105. play entity_firework_blast at player with volume 1 and pitch 1
  106. if event-block is gold ore:
  107. add round({level::%player%} * 5) to {money::%player%}
  108. add round({level::%player%} * 5) to {exp::%player%}
  109. play entity_item_pickup at player with volume 1 and pitch 1
  110. if {exp::%player%} >= {needexp::%player%}:
  111. set {exp::%player%} to 0
  112. add 1 to {level::%player%}
  113. set {needexp::%player%} to round(({level::%player%} + 1) * {needexp::%player%} + (25 * {level::%player%}))
  114. message "&e========================="
  115. message "&a&lLevel Up!!"
  116. message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  117. message "&e========================="
  118. play entity_firework_blast at player with volume 1 and pitch 1
  119. if event-block is diamond ore:
  120. add round({level::%player%} * 10) to {money::%player%}
  121. add round({level::%player%} * 10) to {exp::%player%}
  122. play entity_item_pickup at player with volume 1 and pitch 1
  123. if {exp::%player%} >= {needexp::%player%}:
  124. set {exp::%player%} to 0
  125. add 1 to {level::%player%}
  126. set {needexp::%player%} to round(({level::%player%} + 1) * {needexp::%player%} + (25 * {level::%player%}))
  127. message "&e========================="
  128. message "&a&lLevel Up!!"
  129. message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  130. message "&e========================="
  131. play entity_firework_blast at player with volume 1 and pitch 1
  132. if event-block is dirt:
  133. add round({level::%player%} * 1) to {money::%player%}
  134. add round({level::%player%} * 1) to {exp::%player%}
  135. play entity_item_pickup at player with volume 1 and pitch 1
  136. if {exp::%player%} >= {needexp::%player%}:
  137. set {exp::%player%} to 0
  138. add 1 to {level::%player%}
  139. set {needexp::%player%} to round(({level::%player%} + 1) * {needexp::%player%} + (25 * {level::%player%}))
  140. message "&e========================="
  141. message "&a&lLevel Up!!"
  142. message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  143. message "&e========================="
  144. play entity_firework_blast at player with volume 1 and pitch 1
  145. if event-block is grass:
  146. add round({level::%player%} * 1) to {money::%player%}
  147. add round({level::%player%} * 1) to {exp::%player%}
  148. play entity_item_pickup at player with volume 1 and pitch 1
  149. if {exp::%player%} >= {needexp::%player%}:
  150. set {exp::%player%} to 0
  151. add 1 to {level::%player%}
  152. set {needexp::%player%} to round(({level::%player%} + 1) * {needexp::%player%} + (25 * {level::%player%}))
  153. message "&e========================="
  154. message "&a&lLevel Up!!"
  155. message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  156. message "&e========================="
  157. play entity_firework_blast at player with volume 1 and pitch 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement