kuragonn

Untitled

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