kuragonn

Untitled

Nov 8th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.68 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. wait 2 ticks
  131. create a new stylish scoreboard named "%player%"
  132. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  133. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  134. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  135. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  136. 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%"
  137. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  138. 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%"
  139. 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%"
  140. set stylish scoreboard of player to "%player%"
  141. stop
  142. if {Soul.%player%} is 4:
  143. set {Soul.%player%} to 3
  144. send "&bSoulが3に減少しました。"
  145. wait 2 ticks
  146. create a new stylish scoreboard named "%player%"
  147. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  148. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  149. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  150. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  151. 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%"
  152. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  153. 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%"
  154. 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%"
  155. set stylish scoreboard of player to "%player%"
  156. stop
  157. if {Soul.%player%} is 3:
  158. set {Soul.%player%} to 2
  159. send "&bSoulが2に減少しました。"
  160. wait 2 ticks
  161. create a new stylish scoreboard named "%player%"
  162. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  163. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  164. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  165. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  166. 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%"
  167. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  168. 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%"
  169. 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%"
  170. set stylish scoreboard of player to "%player%"
  171. stop
  172. if {Soul.%player%} is 2:
  173. set {Soul.%player%} to 1
  174. send "&bSoulが1に減少しました。"
  175. wait 2 ticks
  176. create a new stylish scoreboard named "%player%"
  177. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  178. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  179. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  180. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  181. 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%"
  182. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  183. 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%"
  184. 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%"
  185. set stylish scoreboard of player to "%player%"
  186. stop
  187. if {Soul.%player%} is 1:
  188. set {Soul.%player%} to 5
  189. set {Exp.%player%} to {Exp.%player%}/2
  190. set {Money.%player%} to {Money.%player%}/2
  191. send "&bSoulが0になったのでExpとMoneyが半分になりました。"
  192. wait 2 ticks
  193. create a new stylish scoreboard named "%player%"
  194. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  195. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  196. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  197. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  198. 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%"
  199. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  200. 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%"
  201. 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%"
  202. set stylish scoreboard of player to "%player%"
  203. stop
  204.  
  205.  
  206. #sound
  207.  
  208. on inventory click:
  209. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  210.  
  211. on command:
  212. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 3
  213.  
  214.  
  215. #command log
  216.  
  217.  
  218. on command:
  219. sender is player
  220. loop all players:
  221. loop-player have permission "admin"
  222. message "&7[&bCommandLog&7] &b%player%&7 /%full command%" to loop-player
  223.  
  224.  
  225. #monster spawn
  226.  
  227.  
  228. command /spawnmonster [<text>] [<text>] [<number>] [<number>]:
  229. trigger:
  230. if arg 1 is "zombie"
  231. spawn a zombie at {zombie.spawn}
  232. set name of spawned entity to "&a[Lv. 1] Zombie"
  233. set {entity} to last spawned entity
  234.  
  235. on death:
  236. wait 3 seconds
  237. if victim is {entity}:
  238. spawn a zombie at {zombie.spawn}
  239. set name of spawned entity to "&a[Lv. 1] Zombie"
  240. set {entity} to last spawned entity
  241.  
  242. command /setmonster [<text>] [<text>] [<number>] [<number>]:
  243. trigger:
  244. if player is op:
  245. set {zombie.spawn} to location of player
  246. send "&8[&bMobspawn&8] &7設定を追加しました。"
  247.  
  248. command /removemonster [<text>] [<text>] [<number>] [<number>]:
  249. trigger:
  250. if player is op:
  251. delete {zombie.spawn}
  252. send "&8[&bMobspawn&8] &7設定を追加しました。"
Advertisement
Add Comment
Please, Sign In to add comment