kuragonn

Untitled

Nov 15th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.46 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>] [<text>]:
  171. trigger:
  172. if arg 1 is 1:
  173. wait 2 ticks
  174. open chest with 0 rows named "&9&l≫&6&lattribution" to arg 2
  175. format slot 11 of arg 2 with iron helmet named "&4&lFire&6を付与する" with lore "&4選択する武器にFireを付与します" to run "attribution 2 %arg 2%"
  176. format slot 13 of arg 2 with iron helmet named "&b&lWater&6を付与する" with lore "&b選択する武器にWaterを付与します" to run "attribution 3 %arg 2%"
  177. format slot 15 of arg 2 with iron sword named "&2&lLeaf&6を付与する" with lore "&3選択する武器にLeafを付与します" to run "attribution 4 %arg 2%"
  178. format slot 30 of arg 2 with iron sword named "&e&lElectricity&6を付与する" with lore "&e選択する武器にElectricityを付与します" to run "attribution 5 %arg 2%"
  179. format slot 32 of arg 2 with iron sword named "&5&lShadow&6を付与する" with lore "&5選択する武器にShadowを付与します" to run "attribution 6 %arg 2%"
  180. if arg 1 is 2:
  181. wait 2 ticks
  182. open chest with 0 rows named "&9&l≫&6&lattribution" to arg 2
  183. if arg 1 is 3:
  184. wait 2 ticks
  185. open chest with 0 rows named "&9&l≫&6&lattribution" to arg 2
  186. if arg 1 is 4:
  187. wait 2 ticks
  188. open chest with 0 rows named "&9&l≫&6&lattribution" to arg 2
  189. if arg 1 is 5:
  190. wait 2 ticks
  191. open chest with 5 rows named "&9&l≫&6&lattribution" to arg 2
  192. if arg 1 is 6:
  193. wait 2 ticks
  194. open chest with 5 rows named "&9&l≫&6&lattribution" to arg 2
  195.  
  196.  
  197. on right click on enchantment table:
  198. block under block is lapis block
  199. cancel event
  200. player's tool exist
  201. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  202. wait 2 ticks
  203. open chest with 3 rows named "&9&l≫&6&lattribution" to player
  204. wait 1 tick
  205. format slot 13 of player with anvil named "&4&l武器に属性を付与する!" to close then run "attribution 1 %player%"
  206.  
  207.  
  208. #attribution of Mobs
  209.  
  210.  
  211. #sound
  212.  
  213. on inventory click:
  214. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  215.  
  216. on command:
  217. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 3
  218.  
  219.  
  220. #command log
  221.  
  222.  
  223. on command:
  224. sender is player
  225. loop all players:
  226. loop-player have permission "admin"
  227. message "&7[&bCommandLog&7] &b%player%&7 /%full command%" to loop-player
  228.  
  229.  
  230. #monster spawn
  231.  
  232.  
  233. command /spawnmonster [<text>] [<text>] [<number>] [<number>]:
  234. trigger:
  235. if arg 1 is "zombie"
  236. spawn a zombie at {zombie.spawn}
  237. set name of spawned entity to "&a[Lv. 1] Zombie"
  238. set {entity} to last spawned entity
  239.  
  240. on death:
  241. wait 3 seconds
  242. if victim is {entity}:
  243. spawn a zombie at {zombie.spawn}
  244. set name of spawned entity to "&a[Lv. 1] Zombie"
  245. set {entity} to last spawned entity
  246.  
  247. command /setmonster [<text>] [<text>] [<number>] [<number>]:
  248. trigger:
  249. if player is op:
  250. set {zombie.spawn} to location of player
  251. send "&8[&bMobspawn&8] &7設定を追加しました。"
  252.  
  253. command /removemonster [<text>] [<text>] [<number>] [<number>]:
  254. trigger:
  255. if player is op:
  256. delete {zombie.spawn}
  257. send "&8[&bMobspawn&8] &7設定を追加しました。"
  258.  
  259. #protection
  260.  
  261. on place:
  262. player do not have permission "admin"
  263. cancel event
  264.  
  265. on break:
  266. player do not have permission "admin"
  267. cancel event
  268.  
  269. on drop:
  270. player do not have permission "admin"
  271. cancel event
  272.  
  273. on explode:
  274. cancel event
  275.  
  276. on craft:
  277. player do not have permission "admin"
  278. cancel event
Advertisement
Add Comment
Please, Sign In to add comment