Advertisement
Azxx

Untitled

Dec 15th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.04 KB | None | 0 0
  1. options:
  2. #-------------------LOG-------------------#
  3. #LVLUP時の最初のメッセージに
  4. log: &8&l[&6&lLevel&f&l-&a&lSystem&8&l]
  5. #-----------------------------------------#
  6.  
  7. #------------------Types------------------#
  8. playerleveling: true
  9. #LVを名前の前に表示します 例: [LV:1] k1Ok2R
  10. prefix: true
  11. prefixmsg: &8[&aLV&8:&6%{lvl.%player%}%&8]
  12. #LVを名前の後に表示します 例: k1Ok2R [LV:1]
  13. suffix: false
  14. suffixmsg: &2&l[&a&lLV&e&l:&6&l%{lvl.%player%}%&2&l]
  15. #-----------------------------------------#
  16.  
  17. #------------------Level------------------#
  18. #レベルUPに必要なXPを設定できます
  19. xpforlvlup: 800
  20. #最大LVを設定できます
  21. maxlvl: 500
  22. #-----------------------------------------#
  23.  
  24. variables:
  25. {lvl.%player%} = 1
  26. {xp.%player%} = 0
  27. {sp.%player%} = 1
  28. {str.%player%} = 0
  29. {def.%player%} = 0
  30. {spd.%player%} = 0
  31.  
  32. command /rpg-status-reset [<offline player>]:
  33. permission: k2Rsk
  34. trigger:
  35. if arg-1 is not set:
  36. set {lvl.%player%} to 1
  37. set {xp.%player%} to 0
  38. set {sp.%player%} to 1
  39. set {str.%player%} to 0
  40. set {def.%player%} to 0
  41. set {spd.%player%} to 0
  42. execute console command "effect %player% clear"
  43. send "{@log}&e%player%のステータスをリセットしました"
  44. if arg-1 is set:
  45. set {lvl.%arg-1%} to 1
  46. set {xp.%arg-1%} to 0
  47. set {sp.%arg-1%} to 1
  48. set {str.%arg-1%} to 0
  49. set {def.%arg-1%} to 0
  50. set {spd.%arg-1%} to 0
  51. execute console command "effect %arg-1% clear"
  52. send "{@log}&e%arg-1%のステータスをリセットしました"
  53.  
  54. every 2 second:
  55. loop all players:
  56. wipe loop-player's sidebar
  57. set name of sidebar of loop-player to "&8&l-----------------"
  58. set score "&5Owner:_WARABI_" in sidebar of loop-player to 9
  59. set score "&a" in sidebar of loop-player to 8
  60. set score "&aLV&f>>&6 %{lvl.%loop-player%}%" in sidebar of loop-player to 7
  61. set score "&eXP&8>>&6 %{xp.%loop-player%}%&a/&7800" in sidebar of loop-player to 6
  62. set score "&a" in sidebar of loop-player to 5
  63. set score "&3お知らせ" in sidebar of loop-player to 4
  64. set score "&3完成日:未定" in sidebar of loop-player to 3
  65. set score " &8&l-----------------" in sidebar of loop-player to 2
  66. #----------------------------------------------------------------------------------------------------
  67. on any movement:
  68. if {@suffix} is true:
  69. set {suffix::%uuid of player%} to " &8&l[&e&l%{lvl.%player%}%&8&l]"
  70.  
  71. on any movement:
  72. if {@prefix} is true:
  73. set {prefix::%uuid of player%} to " &8&l[&e&l%{lvl.%player%}%&8&l]"
  74.  
  75. on any movement:
  76. if {@playerleveling} is true:
  77. if {xp.%player%} is greater or equal to {@xpforlvlup}:
  78. if {lvl.%player%} is greater or equal to {@maxlvl}:
  79. stop
  80. else:
  81. remove {@xpforlvlup} from {xp.%player%}
  82. add 1 to {lvl.%player%}
  83. add 1 to {sp.%player%}
  84. send "{@log} &e&lレベルUP!現在の&a&lLV: &b%{lvl.%player%}%" to player
  85. stop
  86.  
  87. #----------------------------------------------------------------------------------------------------
  88.  
  89. on chat:
  90. cancel event
  91. if {prefix::%uuid of player%} is set:
  92. if {suffix::%uuid of player%} is set:
  93. broadcast "%{prefix::%uuid of player%}%%player%%{suffix::%uuid of player%}% &f≫ %message%"
  94. else:
  95. broadcast "%{prefix::%uuid of player%}%%player% &f≫ %message%"
  96. else:
  97. if {suffix::%uuid of player%} is set:
  98. broadcast "&7%player%%{suffix::%uuid of player%}% &f≫ %message%"
  99. else:
  100. broadcast "&7%player% &f≫ %message%"
  101.  
  102. command /prefix [<offline player>] [<text>]:
  103. permission: admin
  104. permission message: あなたは権限を持っていません。
  105. trigger:
  106. set {prefix::%uuid of arg-1%} to colored arg-2
  107. send "&b%arg 1% の前を %colored arg 2% &bにしました!"
  108.  
  109. command /clearprefix [<offline player>]:
  110. permission: admin
  111. permission message: あなたは権限を持っていません。
  112. trigger:
  113. clear {prefix::%uuid of arg-1%}
  114. send "&b%arg 1% の称号をリセットしました。"
  115.  
  116. command /suffix [<offline player>] [<text>]:
  117. permission: admin
  118. permission message: あなたは権限を持っていません。
  119. trigger:
  120. set {suffix::%uuid of arg-1%} to coloured arg-2
  121. send "&b%arg 1% の称号を%colored arg 2% &bにしました!"
  122.  
  123. command /clearsuffix [<offline player>]:
  124. permission: admin
  125. permission message: あなたは権限を持っていません。
  126. trigger:
  127. clear {suffix::%uuid of arg-1%}
  128. send "&b%arg 1% の称号をリセットしました。"
  129.  
  130. command /prefixhelp:
  131. permission: skript.admin
  132. permission message: あなたは権限を持っていません。
  133. trigger:
  134. send "&b&m================================="
  135. send "&b&lPREFIX &eSKRIPT Version:1.12.2 "
  136. send "&b&l/prefix (名前) (称号) "
  137. send "&b&l/clearprefix (名前) "
  138. send "&b&l/suffix (名前) (称号) "
  139. send "&b&l/clearsuffix (名前)"
  140. send "&b&m================================="
  141.  
  142. #----------------------------------------------------------------------------------------------------
  143. command /rpg-status [<offline player>]:
  144. trigger:
  145. if arg-1 is not set:
  146. open chest with 3 row named "&e&l%player%'s &6&lStatus" to player
  147. wait 2 tick
  148. format slot 10 of player with beacon named "&aLevel" with lore "&8[&6&l%{lvl.%player%}%&8]" to close
  149. format slot 11 of player with emerald named "&eXP" with lore "&8[&a&l%{xp.%player%}%&8]" to close
  150. format slot 12 of player with diamond named "&bSP" with lore "&8[&6&l%{sp.%player%}%&8]" to close
  151. format slot 13 of player with stone sword named "&cPower" with lore "&8[&6&l%{str.%player%}%&8]" to close
  152. format slot 14 of player with iron chestplate named "&9Defense" with lore "&8[&6&l%{def.%player%}%&8]" to close
  153. format slot 15 of player with feather named "&bSpeed" with lore "&8[&6&l%{spd.%player%}%&8]" to close
  154. if arg-1 is set:
  155. open chest with 3 row named "&e&l%arg-1%'s &6&lStatus" to player
  156. wait 2 tick
  157. format slot 10 of player with beacon named "&aLevel" with lore "&8[&6&l%{lvl.%arg-1%}%&8]" to close
  158. format slot 11 of player with emerald named "&eXP" with lore "&8[&a&l%{xp.%arg-1%}%&8]" to close
  159. format slot 12 of player with diamond named "&bSP" with lore "&8[&6&l%{sp.%arg-1%}%&8]" to close
  160. format slot 13 of player with stone sword named "&cPower" with lore "&8[&6&l%{str.%arg-1%}%&8]" to close
  161. format slot 14 of player with iron chestplate named "&9Defense" with lore "&8[&6&l%{def.%arg-1%}%&8]" to close
  162. format slot 15 of player with feather named "&bSpeed" with lore "&8[&6&l%{spd.%arg-1%}%&8]" to close
  163. #----------------------------------------------------------------------------------------------------
  164. command /rpg-status-up:
  165. trigger:
  166. open chest with 1 row named "&a&lStatus&f-&e&ldistribution" to player
  167. wait 2 tick
  168. format slot 1 of player with stone sword named "&cPower" to run [execute player command "rpg-status-up-str"]
  169. format slot 2 of player with iron chestplate named "&9Defense" to run [execute player command "rpg-status-up-def"]
  170. format slot 3 of player with feather named "&bSpeed" to run [execute player command "rpg-status-up-speed"]
  171. format slot 8 of player with diamond named "&bSP" with lore "&8[&a&l%{sp.%player%}%&8]" to close
  172.  
  173. #----------------------------------------------------------------------------------------------------
  174. command /rpg-status-up-str:
  175. trigger:
  176. if {sp.%player%} = 0:
  177. message "&cSPがたりません" to player
  178. stop
  179. else:
  180. add -1 to {sp.%player%}
  181. add 1 to {str.%player%}
  182. message "&estrに1SP割り振りました" to player
  183. execute player command "rpg-status-up"
  184.  
  185. command /rpg-status-up-def:
  186. trigger:
  187. if {sp.%player%} = 0:
  188. message "&cSPがたりません" to player
  189. stop
  190. else:
  191. add -1 to {sp.%player%}
  192. add 1 to {def.%player%}
  193. message "&edefに1SP割り振りました" to player
  194. execute player command "rpg-status-up"
  195.  
  196. command /rpg-status-up-speed:
  197. trigger:
  198. if {sp.%player%} = 0:
  199. message "&cSPがたりません" to player
  200. stop
  201. else:
  202. add -1 to {sp.%player%}
  203. add 1 to {spd.%player%}
  204. message "&eSpeedに1SP割り振りました" to player
  205. execute player command "rpg-status-up"
  206.  
  207. #--------------------------------------------------------------------------------------------------
  208. #Strength
  209. on any movement:
  210. if {@playerleveling} is true:
  211. if {str.%player%} is greater or equal to 1:
  212. apply strength 1 to the player for 10 seconds
  213.  
  214. on any movement:
  215. if {@playerleveling} is true:
  216. if {str.%player%} is greater or equal to 20:
  217. apply strength 2 to the player for 10 seconds
  218.  
  219. on any movement:
  220. if {@playerleveling} is true:
  221. if {str.%player%} is greater or equal to 50:
  222. apply strength 3 to the player for 10 seconds
  223.  
  224. on any movement:
  225. if {@playerleveling} is true:
  226. if {str.%player%} is greater or equal to 100:
  227. apply strength 4 to the player for 10 seconds
  228.  
  229. #Defense
  230.  
  231. on any movement:
  232. if {@playerleveling} is true:
  233. if {def.%player%} is greater or equal to 1:
  234. apply resistance 1 to the player for 10 seconds
  235.  
  236. on any movement:
  237. if {@playerleveling} is true:
  238. if {def.%player%} is greater or equal to 20:
  239. apply resistance 2 to the player for 10 seconds
  240.  
  241. on any movement:
  242. if {@playerleveling} is true:
  243. if {def.%player%} is greater or equal to 50:
  244. apply resistance 3 to the player for 10 seconds
  245.  
  246. on any movement:
  247. if {@playerleveling} is true:
  248. if {def.%player%} is greater or equal to 100:
  249. apply resistance 4 to the player for 10 seconds
  250.  
  251. #speed
  252. on any movement:
  253. if {@playerleveling} is true:
  254. if {spd.%player%} is greater or equal to 1:
  255. apply speed 1 to the player for 10 seconds
  256.  
  257. on any movement:
  258. if {@playerleveling} is true:
  259. if {spd.%player%} is greater or equal to 100:
  260. apply speed 2 to the player for 10 seconds
  261.  
  262. #---------------------------------------------------------------------------------------------------
  263. options:
  264. zombie: 11
  265. skeleton: 15
  266. creeper: 17
  267. spider: 15
  268. enderman: 21
  269. witch: 16
  270. blaze: 32
  271. zombie pigman: 52
  272. slime: 10
  273.  
  274. on death of a slime:
  275. if {@playerleveling} is true:
  276. if attacker is a player:
  277. add {@slime} to {xp.%attacker%}
  278. send "{@log}&b{@slime}&6EXP" to the attacker
  279.  
  280. on death of a zombie:
  281. if {@playerleveling} is true:
  282. if attacker is a player:
  283. add {@zombie} to {xp.%attacker%}
  284. send "{@log}&b{@zombie}&6EXP" to the attacker
  285.  
  286. on death of a skeleton:
  287. if {@playerleveling} is true:
  288. if attacker is a player:
  289. add {@skeleton} to {xp.%attacker%}
  290. send "{@log}&b{@skeleton}&6EXP" to the attacker
  291.  
  292. on death of a creeper:
  293. if {@playerleveling} is true:
  294. if attacker is a player:
  295. add {@creeper} to {xp.%attacker%}
  296. send "{@log}&b{@creeper}&6EXP" to the attacker
  297.  
  298. on death of a spider:
  299. if {@playerleveling} is true:
  300. if attacker is a player:
  301. add {@spider} to {xp.%attacker%}
  302. send "{@log}&b{@spider}&6EXP" to the attacker
  303.  
  304. on death of a enderman:
  305. if {@playerleveling} is true:
  306. if attacker is a player:
  307. add {@enderman} to {xp.%attacker%}
  308. send "{@log}&b{@enderman}&6EXP" to the attacker
  309.  
  310. on death of a witch:
  311. if {@playerleveling} is true:
  312. if attacker is a player:
  313. add {@witch} to {xp.%attacker%}
  314. send "{@log}&b{@witch}&6EXP" to the attacker
  315.  
  316. on death of a blaze:
  317. if {@playerleveling} is true:
  318. if attacker is a player:
  319. add {@blaze} to {xp.%attacker%}
  320. send "{@log}&b{@blaze}&6EXP" to the attacker
  321.  
  322. on death of a zombie pigman:
  323. if {@playerleveling} is true:
  324. if attacker is a player:
  325. add {@zombie pigman} to {xp.%attacker%}
  326. send "{@log}&b{@zombie pigman}&6EXP" to the attacker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement