kuragonn

Untitled

Nov 8th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.60 KB | None | 0 0
  1. #全体オプション
  2.  
  3. options:
  4. Title: 未定(後々設定)
  5.  
  6. #SK reload
  7.  
  8. on load:
  9. broadcast "&a[&cSkript&a] リロードが完了しました。"
  10.  
  11. #sidebar on join
  12.  
  13. on join:
  14. wait 0.2 seconds
  15. create a new stylish scoreboard named "%player%"
  16. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  17. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  18. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  19. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  20. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*({Level.%player%}^2)+10%" slot 7 for stylish scoreboard "%player%"
  21. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  22. create a new id based score "%player%5" with text "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G" slot 5 for stylish scoreboard "%player%"
  23. create a new id based score "%player%4" with text "&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65" slot 4 for stylish scoreboard "%player%"
  24. set stylish scoreboard of player to "%player%"
  25.  
  26. #reset
  27.  
  28. command /reset:
  29. trigger:
  30. set {Level.%player%} to 1
  31. set {Exp.%player%} to 0
  32. set {Money.%player%} to 100
  33. set {Soul.%player%} to 5
  34. send "&bステータスをリセットしました。"
  35.  
  36. #status set
  37.  
  38. command /setstatus [<text>] [<text>] [<number>] :
  39. trigger:
  40. if arg 2 is "level":
  41. set {Level.%arg 1%} to arg 3
  42. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  43. stop
  44. if arg 2 is "exp":
  45. set {Exp.%arg 1%} to arg 3
  46. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  47. stop
  48. if arg 2 is "money":
  49. set {Money.%arg 1%} to arg 3
  50. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  51. stop
  52. if arg 2 is "soul":
  53. set {Soul.%arg 1%} to arg 3
  54. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  55. stop
  56. else:
  57. send "&4Skript error"
  58. stop
  59.  
  60.  
  61.  
  62. #score 設定
  63.  
  64. command /applyboard:
  65. trigger:
  66. create a new stylish scoreboard named "%player%"
  67. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  68. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  69. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  70. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  71. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*({Level.%player%}^2)+10%" slot 7 for stylish scoreboard "%player%"
  72. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  73. create a new id based score "%player%5" with text "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G" slot 5 for stylish scoreboard "%player%"
  74. create a new id based score "%player%4" with text "&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65" slot 4 for stylish scoreboard "%player%"
  75. set stylish scoreboard of player to "%player%"
  76.  
  77.  
  78.  
  79. command /updatescores:
  80. trigger:
  81. set the text of id "%player%10" to "&7&l< &e&l%player% &7&l>"
  82. set the text of id "%player%9" to "&e"
  83. set the text of id "%player%8" to "&6&lLevel &7&l> &c&l%{Level.%player%}%"
  84. set the text of id "%player%7" to "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*({Level.%player%}^2)+10%"
  85. set the text of id "%player%6" to "&f"
  86. set the text of id "%player%5" to "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G"
  87. set the text of id "%player%4" to "&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65"
  88.  
  89. command /removeboard:
  90. trigger:
  91. reset stylish scoreboard of player
  92. delete stylish scoreboard named "%player%"
  93.  
  94. #TAB
  95.  
  96. on join:
  97. loop all players:
  98. set tab header to "&6&lThe Fantasy RPG Server" and footer to "&eOnline players &7: &e%amount of all players%&7/&e15" for loop-player
  99.  
  100.  
  101. on quit:
  102. loop all players:
  103. wait 0.5 ticks
  104. set tab header to "&6&lThe Fantasy RPG Server" and footer to "&eOnline players &7: &e%amount of all players%&7/&e15" for loop-player
  105.  
  106.  
  107.  
  108. #Join&Quitメッセージ表示
  109. on join:
  110. set join message to "&7[&a+&7] &7%player%"
  111.  
  112.  
  113. on quit:
  114. set quit message to "&7[&c-&7] &7%player%"
  115.  
  116.  
  117. on first join:
  118. message "&7[&a+&7] &7%player% &e-&6New&e-"
  119. set {Level.%player%} to 1
  120. set {Exp.%player%} to 0
  121. set {Money.%player%} to 100
  122. set {Soul.%player%} to 5
  123.  
  124. #Soul
  125.  
  126. on respawn:
  127. if {Soul.%player%} is 5:
  128. set {Soul.%player%} to 4
  129. send "&bSoulが4に減少しました。"
  130. create a new stylish scoreboard named "%player%"
  131. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  132. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  133. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  134. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  135. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*({Level.%player%}^2)+10%" slot 7 for stylish scoreboard "%player%"
  136. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  137. create a new id based score "%player%5" with text "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G" slot 5 for stylish scoreboard "%player%"
  138. create a new id based score "%player%4" with text "&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65" slot 4 for stylish scoreboard "%player%"
  139. set stylish scoreboard of player to "%player%"
  140. stop
  141. if {Soul.%player%} is 4:
  142. set {Soul.%player%} to 3
  143. send "&bSoulが3に減少しました。"
  144. create a new stylish scoreboard named "%player%"
  145. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  146. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  147. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  148. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  149. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*({Level.%player%}^2)+10%" slot 7 for stylish scoreboard "%player%"
  150. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  151. create a new id based score "%player%5" with text "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G" slot 5 for stylish scoreboard "%player%"
  152. create a new id based score "%player%4" with text "&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65" slot 4 for stylish scoreboard "%player%"
  153. set stylish scoreboard of player to "%player%"
  154. stop
  155. if {Soul.%player%} is 3:
  156. set {Soul.%player%} to 2
  157. send "&bSoulが2に減少しました。"
  158. create a new stylish scoreboard named "%player%"
  159. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  160. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  161. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  162. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  163. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*({Level.%player%}^2)+10%" slot 7 for stylish scoreboard "%player%"
  164. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  165. create a new id based score "%player%5" with text "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G" slot 5 for stylish scoreboard "%player%"
  166. create a new id based score "%player%4" with text "&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65" slot 4 for stylish scoreboard "%player%"
  167. set stylish scoreboard of player to "%player%"
  168. stop
  169. if {Soul.%player%} is 2:
  170. set {Soul.%player%} to 1
  171. send "&bSoulが1に減少しました。"
  172. create a new stylish scoreboard named "%player%"
  173. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  174. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  175. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  176. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  177. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*({Level.%player%}^2)+10%" slot 7 for stylish scoreboard "%player%"
  178. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  179. create a new id based score "%player%5" with text "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G" slot 5 for stylish scoreboard "%player%"
  180. create a new id based score "%player%4" with text "&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65" slot 4 for stylish scoreboard "%player%"
  181. set stylish scoreboard of player to "%player%"
  182. stop
  183. if {Soul.%player%} is 1:
  184. set {Soul.%player%} to 5
  185. set {Exp.%player%} to {Exp.%player%}/2
  186. set {Money.%player%} to {Money.%player%}/2
  187. send "&bSoulが0になったのでExpとMoneyが半分になりました。"
  188. create a new stylish scoreboard named "%player%"
  189. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  190. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  191. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  192. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  193. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*({Level.%player%}^2)+10%" slot 7 for stylish scoreboard "%player%"
  194. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  195. create a new id based score "%player%5" with text "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G" slot 5 for stylish scoreboard "%player%"
  196. create a new id based score "%player%4" with text "&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65" slot 4 for stylish scoreboard "%player%"
  197. set stylish scoreboard of player to "%player%"
  198. stop
  199.  
  200.  
  201. #sound
  202.  
  203. on inventory click:
  204. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  205.  
  206. on command:
  207. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 3
  208.  
  209.  
  210. #command log
  211.  
  212.  
  213. on command:
  214. sender is player
  215. loop all players:
  216. loop-player have permission "admin"
  217. message "&7[&bCommandLog&7] &b%player%&7 /%full command%" to loop-player
  218.  
  219.  
  220. #monster spawn
  221.  
  222.  
  223. command /spawnmonster [<text>] [<text>] [<number>] [<number>]:
  224. trigger:
  225. if arg 1 is "zombie"
  226. spawn a zombie at {zombie.spawn}
  227. set name of spawned entity to "&a[Lv. 1] Zombie"
  228. set {entity} to last spawned entity
  229.  
  230. on death:
  231. wait 3 seconds
  232. if victim is {entity}:
  233. spawn a zombie at {zombie.spawn}
  234. set name of spawned entity to "&a[Lv. 1] Zombie"
  235. set {entity} to last spawned entity
  236.  
  237. command /setmonster [<text>] [<text>] [<number>] [<number>]:
  238. trigger:
  239. if player is op:
  240. set {zombie.spawn} to location of player
  241. send "&8[&bMobspawn&8] &7設定を追加しました。"
  242.  
  243. command /removemonster [<text>] [<text>] [<number>] [<number>]:
  244. trigger:
  245. if player is op:
  246. delete {zombie.spawn}
  247. send "&8[&bMobspawn&8] &7設定を追加しました。"
Advertisement
Add Comment
Please, Sign In to add comment