kuragonn

Untitled

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