kuragonn

Untitled

Nov 15th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.25 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 0 rows named "&9&l≫&6&l属性を付与する" to player
  187.  
  188. on right click on enchantment table:
  189. block under block is lapis block
  190. cancel event
  191. player's tool exist
  192. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  193. wait 2 ticks
  194. open chest with 5 rows named "&9&l≫&6&l属性を付与する" to player
  195. wait 1 tick
  196. format slot 9 of player with iron helmet named "&4&lFire&6を付与する" with lore "&4選択する武器にFireを付与します" to run "attribution 1"
  197. format slot 18 of player with iron helmet named "&b&lWater&6を付与する" with lore "&b選択する武器にWaterを付与します" to run "attribution 1"
  198. format slot 8 of player with iron sword named "&2&lLeaf&6を付与する" with lore "&3選択する武器にLeafを付与します" to run "attribution 1"
  199. format slot 17 of player with iron sword named "&e&lElectricity&6を付与する" with lore "&e選択する武器にElectricityを付与します" to run "attribution 1"
  200. format slot 26 of player with iron sword named "&5&lShadow&6を付与する" with lore "&5選択する武器にShadowを付与します" to run "attribution 1"
  201.  
  202.  
  203. #attribution of Mobs
  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設定を追加しました。"
  253.  
  254. #protection
  255.  
  256. on place:
  257. player do not have permission "admin"
  258. cancel event
  259.  
  260. on break:
  261. player do not have permission "admin"
  262. cancel event
  263.  
  264. on drop:
  265. player do not have permission "admin"
  266. cancel event
  267.  
  268. on explode:
  269. cancel event
  270.  
  271. on craft:
  272. player do not have permission "admin"
  273. cancel event
Advertisement
Add Comment
Please, Sign In to add comment