kuragonn

Untitled

Nov 15th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.52 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.  
  12. every 2 ticks:
  13. set the text of id "%player%10" to "&7&l< &e&l%player% &7&l>"
  14. set the text of id "%player%9" to "&e"
  15. set the text of id "%player%8" to "&6&lLevel &7&l> &c&l%{Level.%player%}%"
  16. set the text of id "%player%7" to "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*(5*{Level.%player%}+{Level.%player%}^2)+100%"
  17. set the text of id "%player%6" to "&f"
  18. set the text of id "%player%5" to "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G"
  19. set the text of id "%player%4" to "&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65"
  20.  
  21. #sidebar on join
  22.  
  23. on join:
  24. wait 0.2 seconds
  25. create a new stylish scoreboard named "%player%"
  26. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  27. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  28. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  29. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  30. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*(5*{Level.%player%}+{Level.%player%}^2)+100%" slot 7 for stylish scoreboard "%player%"
  31. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  32. 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%"
  33. 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%"
  34. set stylish scoreboard of player to "%player%"
  35.  
  36. #reset
  37.  
  38. command /reset:
  39. trigger:
  40. set {Level.%player%} to 1
  41. set {Exp.%player%} to 0
  42. set {Money.%player%} to 100
  43. set {Soul.%player%} to 5
  44. send "&bステータスをリセットしました。"
  45.  
  46. #status set
  47.  
  48. command /setstatus [<text>] [<text>] [<number>] :
  49. trigger:
  50. if arg 2 is "level":
  51. set {Level.%arg 1%} to arg 3
  52. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  53. stop
  54. if arg 2 is "exp":
  55. set {Exp.%arg 1%} to arg 3
  56. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  57. stop
  58. if arg 2 is "money":
  59. set {Money.%arg 1%} to arg 3
  60. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  61. stop
  62. if arg 2 is "soul":
  63. set {Soul.%arg 1%} to arg 3
  64. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  65. stop
  66. else:
  67. send "&4Skript error"
  68. stop
  69.  
  70.  
  71.  
  72. #score 設定
  73.  
  74. command /applyboard:
  75. trigger:
  76. create a new stylish scoreboard named "%player%"
  77. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  78. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  79. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  80. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  81. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*(5*{Level.%player%}+{Level.%player%}^2)+100%" slot 7 for stylish scoreboard "%player%"
  82. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  83. 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%"
  84. 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%"
  85. set stylish scoreboard of player to "%player%"
  86.  
  87.  
  88.  
  89. command /updatescores:
  90. trigger:
  91. set the text of id "%player%10" to "&7&l< &e&l%player% &7&l>"
  92. set the text of id "%player%9" to "&e"
  93. set the text of id "%player%8" to "&6&lLevel &7&l> &c&l%{Level.%player%}%"
  94. set the text of id "%player%7" to "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*(5*{Level.%player%}+{Level.%player%}^2)+100%"
  95. set the text of id "%player%6" to "&f"
  96. set the text of id "%player%5" to "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G"
  97. set the text of id "%player%4" to "&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65"
  98.  
  99. command /removeboard:
  100. trigger:
  101. reset stylish scoreboard of player
  102. delete stylish scoreboard named "%player%"
  103.  
  104. #TAB
  105.  
  106. on join:
  107. loop all players:
  108. 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
  109.  
  110.  
  111. on quit:
  112. loop all players:
  113. wait 0.5 ticks
  114. 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
  115.  
  116.  
  117.  
  118. #Join&Quitメッセージ表示
  119. on join:
  120. set join message to "&7[&a+&7] &7%player%"
  121.  
  122.  
  123. on quit:
  124. set quit message to "&7[&c-&7] &7%player%"
  125.  
  126.  
  127. on first join:
  128. message "&7[&a+&7] &7%player% &e-&6New&e-"
  129. set {Level.%player%} to 1
  130. set {Exp.%player%} to 0
  131. set {Money.%player%} to 100
  132. set {Soul.%player%} to 5
  133.  
  134. #level up
  135.  
  136. on death:
  137. wait 2 ticks
  138. if {Exp.%attacker%} is more than 2*(5*{Level.%attacker%}+{Level.%attacker%}^2)+99:
  139. send "&bレベルが上がりました。" to attacker
  140.  
  141. #Soul
  142.  
  143. on respawn:
  144. if {Soul.%player%} is 5:
  145. set {Soul.%player%} to 4
  146. send "&bSoulが4に減少しました。"
  147. stop
  148. if {Soul.%player%} is 4:
  149. set {Soul.%player%} to 3
  150. send "&bSoulが3に減少しました。"
  151. stop
  152. if {Soul.%player%} is 3:
  153. set {Soul.%player%} to 2
  154. send "&bSoulが2に減少しました。"
  155. stop
  156. if {Soul.%player%} is 2:
  157. set {Soul.%player%} to 1
  158. send "&bSoulが1に減少しました。"
  159. wait 2 ticks
  160. stop
  161. if {Soul.%player%} is 1:
  162. set {Soul.%player%} to 5
  163. set {Exp.%player%} to {Exp.%player%}/2
  164. set {Money.%player%} to {Money.%player%}/2
  165. send "&bSoulが0になったのでExpとMoneyが半分になりました。"
  166. stop
  167.  
  168. #attribution
  169. command /attribution [<number>]:
  170. trigger:
  171. if arg 1 is 1:
  172. send "God"
  173. if arg 1 is 2:
  174. send "God"
  175. if arg 1 is 3:
  176. send "God"
  177. if arg 1 is 4:
  178. send "God"
  179. if arg 1 is 5:
  180. send "God"
  181.  
  182. on right click on enchantment table:
  183. block under block is lapis block
  184. cancel event
  185. player's tool exist
  186. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  187. open chest with 5 rows named "&9&l≫&6&l属性を付与する" to player
  188. wait 1 tick
  189. format slot 11 of player with diamond sword named "&4&lFire&6を付与する" to close then run "attribution 1"
  190. format slot 13 of player with diamond sword named "&b&lWater&6を付与する" to close then run "attribution 2"
  191. format slot 15 of player with diamond sword named "&2&lLeaf&6を付与する" to close then run "attribution 3"
  192. format slot 30 of player with diamond sword named "&4&lElectricity&6を付与する" to close then run "attribution 4"
  193. format slot 32 of player with diamond sword named "&5&lShadow&6を付与する" to close then run "attribution 5"
  194.  
  195. #attribution of Mobs
  196.  
  197.  
  198. #sound
  199.  
  200. on inventory click:
  201. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  202.  
  203. on command:
  204. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 3
  205.  
  206.  
  207. #command log
  208.  
  209.  
  210. on command:
  211. sender is player
  212. loop all players:
  213. loop-player have permission "admin"
  214. message "&7[&bCommandLog&7] &b%player%&7 /%full command%" to loop-player
  215.  
  216.  
  217. #monster spawn
  218.  
  219.  
  220. command /spawnmonster [<text>] [<text>] [<number>] [<number>]:
  221. trigger:
  222. if arg 1 is "zombie"
  223. spawn a zombie at {zombie.spawn}
  224. set name of spawned entity to "&a[Lv. 1] Zombie"
  225. set {entity} to last spawned entity
  226.  
  227. on death:
  228. wait 3 seconds
  229. if victim is {entity}:
  230. spawn a zombie at {zombie.spawn}
  231. set name of spawned entity to "&a[Lv. 1] Zombie"
  232. set {entity} to last spawned entity
  233.  
  234. command /setmonster [<text>] [<text>] [<number>] [<number>]:
  235. trigger:
  236. if player is op:
  237. set {zombie.spawn} to location of player
  238. send "&8[&bMobspawn&8] &7設定を追加しました。"
  239.  
  240. command /removemonster [<text>] [<text>] [<number>] [<number>]:
  241. trigger:
  242. if player is op:
  243. delete {zombie.spawn}
  244. send "&8[&bMobspawn&8] &7設定を追加しました。"
  245.  
  246. #protection
  247.  
  248. on place:
  249. player do not have permission "admin"
  250. cancel event
  251.  
  252. on break:
  253. player do not have permission "admin"
  254. cancel event
  255.  
  256. on drop:
  257. player do not have permission "admin"
  258. cancel event
  259.  
  260. on explode:
  261. cancel event
  262.  
  263. on craft:
  264. player do not have permission "admin"
  265. cancel event
Advertisement
Add Comment
Please, Sign In to add comment