Advertisement
kuragonn

Untitled

Nov 17th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.17 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 3 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&lふはは"
  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&lふはは" 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 {Fire.point.%player%} to 0
  45. set {Water.point.%player%} to 0
  46. set {Leaf.point.%player%} to 0
  47. set {Electricity.point.%player%} to 0
  48. set {Shadow.point.%player%} to 0
  49. set {Status.point.%player%} to 5
  50. send "&bステータスをリセットしました。"
  51.  
  52. #status set
  53.  
  54. command /setstatus [<text>] [<text>] [<number>] :
  55. trigger:
  56. if arg 2 is "level":
  57. set {Level.%arg 1%} to arg 3
  58. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  59. stop
  60. if arg 2 is "exp":
  61. set {Exp.%arg 1%} to arg 3
  62. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  63. stop
  64. if arg 2 is "money":
  65. set {Money.%arg 1%} to arg 3
  66. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  67. stop
  68. if arg 2 is "fire":
  69. set {Fire.point.%arg 1%} to arg 3
  70. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  71. stop
  72. if arg 2 is "water":
  73. set {Water.point.%arg 1%} to arg 3
  74. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  75. stop
  76. if arg 2 is "leaf":
  77. set {Leaf.point.%arg 1%} to arg 3
  78. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  79. stop
  80. if arg 2 is "Electricity":
  81. set {Electricity.point.%arg 1%} to arg 3
  82. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  83. stop
  84. if arg 2 is "shadow":
  85. set {Shadow.point.%arg 1%} to arg 3
  86. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  87. stop
  88. if arg 2 is "status":
  89. set {Status.point.%arg 1%} to arg 3
  90. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  91. stop
  92. else:
  93. send "&4Skript error"
  94. stop
  95.  
  96.  
  97.  
  98. #score 設定
  99.  
  100. command /applyboard:
  101. trigger:
  102. create a new stylish scoreboard named "%player%"
  103. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  104. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  105. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  106. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  107. 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%"
  108. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  109. 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%"
  110. create a new id based score "%player%4" with text "&6&lふはは" slot 4 for stylish scoreboard "%player%"
  111. set stylish scoreboard of player to "%player%"
  112.  
  113.  
  114.  
  115. command /updatescores:
  116. trigger:
  117. set the text of id "%player%10" to "&7&l< &e&l%player% &7&l>"
  118. set the text of id "%player%9" to "&e"
  119. set the text of id "%player%8" to "&6&lLevel &7&l> &c&l%{Level.%player%}%"
  120. 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%"
  121. set the text of id "%player%6" to "&f"
  122. set the text of id "%player%5" to "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G"
  123. set the text of id "%player%4" to "&6&lふはは"
  124.  
  125. command /removeboard:
  126. trigger:
  127. reset stylish scoreboard of player
  128. delete stylish scoreboard named "%player%"
  129.  
  130. #TAB
  131.  
  132. on join:
  133. loop all players:
  134. 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
  135.  
  136.  
  137. on quit:
  138. loop all players:
  139. wait 0.5 ticks
  140. 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
  141.  
  142.  
  143.  
  144. #Join&Quitメッセージ表示
  145. on join:
  146. set join message to "&7[&a+&7] &7%player%"
  147.  
  148.  
  149. on quit:
  150. set quit message to "&7[&c-&7] &7%player%"
  151.  
  152.  
  153. on first join:
  154. set join message to "&7[&a+&7] &7%player% &e-&6New&e-"
  155. set {Level.%player%} to 1
  156. set {Exp.%player%} to 0
  157. set {Money.%player%} to 100
  158. set {Soul.%player%} to 5
  159. set {Fire.point.%player%} to 0
  160. set {Water.point.%player%} to 0
  161. set {Leaf.point.%player%} to 0
  162. set {Electricity.point.%player%} to 0
  163. set {Shadow.point.%player%} to 0
  164. set {Status.point.%player%} to 5
  165.  
  166. #level up
  167.  
  168. on death:
  169. wait 2 ticks
  170. if {Exp.%attacker%} is more than 2*(5*{Level.%attacker%}+{Level.%attacker%}^2)+99:
  171. add 1 to {status.point.%attacker%}
  172. send "&bレベルが上がりました。" to attacker
  173.  
  174. #respawn
  175.  
  176. on respawn:
  177. wait 2 ticks
  178. create a new stylish scoreboard named "%player%"
  179. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  180. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  181. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  182. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  183. 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%"
  184. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  185. 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%"
  186. create a new id based score "%player%4" with text "&6&lふはは" slot 4 for stylish scoreboard "%player%"
  187. set stylish scoreboard of player to "%player%"
  188.  
  189.  
  190. #&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65
  191.  
  192.  
  193. #attribution
  194. command /attribution [<number>] [<player>]:
  195. trigger:
  196. if arg 1 is 1:
  197. wait 2 ticks
  198. open chest with 0 rows named "&9&l≫&6&lFireを付与する武器を選択してください" to arg 2
  199. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  200. if arg 1 is 2:
  201. wait 2 ticks
  202. open chest with 0 rows named "&9&l≫&6&lWaterを付与する武器を選択してください" to arg 2
  203. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  204. if arg 1 is 3:
  205. wait 2 ticks
  206. open chest with 0 rows named "&9&l≫&6&lLeafを付与する武器を選択してください" to arg 2
  207. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  208. if arg 1 is 4:
  209. wait 2 ticks
  210. open chest with 0 rows named "&9&l≫&6&lElectricityを付与する武器を選択してください" to arg 2
  211. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  212. if arg 1 is 5:
  213. wait 2 ticks
  214. open chest with 0 rows named "&9&l≫&6&lShadowを付与する武器を選択してください" to arg 2
  215. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  216.  
  217.  
  218. on inventory click:
  219. if inventory name of player's current inventory is "&9&l≫&6&lFireを付与する武器を選択してください":
  220. cancel event
  221. if lore of clicked item contain "&8&l??? &7&lWeapon":
  222. set line 1 of lore of clicked item to "&4&lFire &7&lWeapon"
  223. send "&6武器に属性を付与しました"
  224. close inventory of player
  225. stop
  226. else:
  227. send "&6そのアイテムに属性は付与できません"
  228. stop
  229. if inventory name of player's current inventory is "&9&l≫&6&lWaterを付与する武器を選択してください":
  230. cancel event
  231. if lore of clicked item contain "&8&l??? &7&lWeapon":
  232. set line 1 of lore of clicked item to "&b&lWater &7&lWeapon"
  233. send "&6武器に属性を付与しました"
  234. close inventory of player
  235. stop
  236. else:
  237. send "&6そのアイテムに属性は付与できません"
  238. stop
  239. if inventory name of player's current inventory is "&9&l≫&6&lLeafを付与する武器を選択してください":
  240. cancel event
  241. if lore of clicked item contain "&8&l??? &7&lWeapon":
  242. set line 1 of lore of clicked item to "&2&lLeaf &7&lWeapon"
  243. send "&6武器に属性を付与しました"
  244. close inventory of player
  245. stop
  246. else:
  247. send "&6そのアイテムに属性は付与できません"
  248. stop
  249. if inventory name of player's current inventory is "&9&l≫&6&lElectricityを付与する武器を選択してください":
  250. cancel event
  251. if lore of clicked item contain "&8&l??? &7&lWeapon":
  252. set line 1 of lore of clicked item to "&e&lElectricity &7&lWeapon"
  253. send "&6武器に属性を付与しました"
  254. close inventory of player
  255. stop
  256. else:
  257. send "&6そのアイテムに属性は付与できません"
  258. stop
  259. if inventory name of player's current inventory is "&9&l≫&6&lShadowを付与する武器を選択してください":
  260. cancel event
  261. if lore of clicked item contain "&8&l??? &7&lWeapon":
  262. set line 1 of lore of clicked item to "&5&lShadow &7&lWeapon"
  263. send "&6武器に属性を付与しました"
  264. close inventory of player
  265. stop
  266. else:
  267. send "&6そのアイテムに属性は付与できません"
  268. stop
  269.  
  270.  
  271. on right click on enchantment table:
  272. block under block is lapis block
  273. cancel event
  274. player's tool exist
  275. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  276. wait 2 ticks
  277. open chest with 5 rows named "&9&l≫&6&l付与する属性を選択してください" to player
  278. wait 1 tick
  279. format slot 11 of player with iron sword named "&4&lFire&6を付与する" with lore "&4選択する武器にFireを付与します" to run "attribution 1 %player%"
  280. format slot 13 of player with iron sword named "&b&lWater&6を付与する" with lore "&b選択する武器にWaterを付与します" to run "attribution 2 %player%"
  281. format slot 15 of player with iron sword named "&2&lLeaf&6を付与する" with lore "&3選択する武器にLeafを付与します" to run "attribution 3 %player%"
  282. format slot 30 of player with iron sword named "&e&lElectricity&6を付与する" with lore "&e選択する武器にElectricityを付与します" to run "attribution 4 %player%"
  283. format slot 32 of player with iron sword named "&5&lShadow&6を付与する" with lore "&5選択する武器にShadowを付与します" to run "attribution 5 %player%"
  284.  
  285.  
  286. #attribution of Mobs
  287.  
  288.  
  289. #sound
  290.  
  291. on inventory click:
  292. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  293.  
  294. on command:
  295. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 3
  296.  
  297. #attribution status
  298.  
  299. command /atts [<number>] [<player>]:
  300. trigger:
  301. if arg 1 is 1:
  302. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  303. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  304. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  305. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  306. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  307. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  308. stop
  309. if arg 1 is 2:
  310. add 1 to {Fire.point.%player%}
  311. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  312. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  313. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  314. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  315. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  316. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  317. stop
  318. if arg 1 is 3:
  319. add 1 to {Water.point.%player%}
  320. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  321. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  322. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  323. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  324. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  325. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  326. stop
  327. if arg 1 is 4:
  328. add 1 to {Leaf.point.%player%}
  329. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  330. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  331. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  332. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  333. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  334. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  335. stop
  336. if arg 1 is 5:
  337. add 1 to {Electricity.point.%player%}
  338. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  339. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  340. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  341. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  342. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  343. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  344. stop
  345. if arg 1 is 6:
  346. add 1 to {Shadow.point.%player%}
  347. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  348. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  349. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  350. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  351. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  352. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  353. stop
  354.  
  355.  
  356.  
  357. #command log
  358.  
  359.  
  360. on command:
  361. sender is player
  362. loop all players:
  363. loop-player have permission "admin"
  364. message "&7[&bCommandLog&7] &b%player%&7 /%full command%" to loop-player
  365.  
  366.  
  367. #monster spawn
  368.  
  369.  
  370. command /spawnmonster [<text>] [<text>] [<number>] [<number>]:
  371. trigger:
  372. if arg 1 is "zombie"
  373. spawn a zombie at {zombie.spawn}
  374. set name of spawned entity to "&a[Lv. 1] Zombie"
  375. set {entity} to last spawned entity
  376.  
  377. on death:
  378. wait 3 seconds
  379. if victim is {entity}:
  380. spawn a zombie at {zombie.spawn}
  381. set name of spawned entity to "&a[Lv. 1] Zombie"
  382. set {entity} to last spawned entity
  383.  
  384. command /setmonster [<text>] [<text>] [<number>] [<number>]:
  385. trigger:
  386. if player is op:
  387. set {zombie.spawn} to location of player
  388. send "&8[&bMobspawn&8] &7設定を追加しました。"
  389.  
  390. command /removemonster [<text>] [<text>] [<number>] [<number>]:
  391. trigger:
  392. if player is op:
  393. delete {zombie.spawn}
  394. send "&8[&bMobspawn&8] &7設定を追加しました。"
  395.  
  396. #protection
  397.  
  398. on place:
  399. player do not have permission "admin"
  400. cancel event
  401.  
  402. on break:
  403. player do not have permission "admin"
  404. cancel event
  405.  
  406. on drop:
  407. player do not have permission "admin"
  408. cancel event
  409.  
  410. on explode:
  411. cancel event
  412.  
  413. on craft:
  414. player do not have permission "admin"
  415. cancel event
  416.  
  417.  
  418. #item name and lore
  419.  
  420. command /itemname [<text>]:
  421. trigger:
  422. set the name of held item to colored arg
  423.  
  424. command /itemlore [<number>] [<text>]:
  425. trigger:
  426. set line arg 1 of lore of held item to colored "%arg 2%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement