Advertisement
NiceQQQQ

Untitled

Jul 6th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.84 KB | None | 0 0
  1. #===============================================================#
  2. #-J-RPG- Level System #
  3. #===============================================================#
  4.  
  5. #===============================================================#
  6. #-CONFIG- #
  7. #===============================================================#
  8.  
  9. options:
  10. #-------------------LOG-------------------#
  11. #LVLUP時の最初のメッセージに
  12. log: &8≫&7&lシステム&8≪
  13. #-----------------------------------------#
  14.  
  15. #------------------Types------------------#
  16. maxlvl: 1000
  17. playerleveling: true
  18. #-----------------------------------------#
  19.  
  20. #------------------Rank-------------------#
  21. rank: &2Player
  22. #-----------------------------------------#
  23.  
  24.  
  25. #===============================================================#
  26. #-Dont-Edit- #
  27. #===============================================================#
  28.  
  29. variables:
  30. {lvl::%player%} = 1
  31. {xp::%player%} = 0
  32. {sp::%player%} = 1
  33. {str::%player%} = 0
  34. {def::%player%} = 0
  35. {spd::%player%} = 0
  36. {up::%player%} = 130
  37.  
  38. command /rpg-status-reset [<offline player>]:
  39. permission: k2Rsk
  40. trigger:
  41. if arg-1 is not set:
  42. set {lvl::%player%} to 1
  43. set {xp::%player%} to 0
  44. set {sp::%player%} to 1
  45. set {str::%player%} to 0
  46. set {def::%player%} to 0
  47. set {hp::%player%} to 0
  48. set {up::%player%} to 130
  49. execute console command "effect %player% clear"
  50. send "{@log}&e%player%のステータスをリセットしました"
  51. if arg-1 is set:
  52. set {lvl::%arg-1%} to 1
  53. set {xp::%arg-1%} to 0
  54. set {sp::%arg-1%} to 1
  55. set {str::%arg-1%} to 0
  56. set {def::%arg-1%} to 0
  57. set {hp::%arg-1%} to 0
  58. set {up::%arg-1%} to 130
  59. execute console command "effect %arg-1% clear"
  60. send "{@log}&e%arg-1%のステータスをリセットしました"
  61.  
  62. #===============================================================#
  63. #-Edit-OK- #
  64. #===============================================================#
  65.  
  66. every 2 second:
  67. loop all players:
  68. wipe loop-player's sidebar
  69. set name of sidebar of loop-player to "&2| &6&lJ&f&l-&5&lRPG &2|"
  70. set score "§e§l---==[ステータス]==---" in sidebar of loop-player to 11
  71. set score "§eLv &7[&e&l%{lvl::%loop-player%}%&7]" in sidebar of loop-player to 10
  72. set score "§aExp &7[&a&l%{xp::%loop-player%}%&7]" in sidebar of loop-player to 9
  73. set score "§5Sp &7[&5&l%{sp::%loop-player%}%&7]" in sidebar of loop-player to 8
  74. set score "§cRank &7[&c&l%{prefix::%loop-player%}%&7]" in sidebar of loop-player to 7
  75. set score "§cStr &7[&c&l%{str::%loop-player%}%&7]" in sidebar of loop-player to 5
  76. set score "§3Def &7[&3&l%{def::%loop-player%}%&7]" in sidebar of loop-player to 3
  77. set score "§dHp &7[&b&l%{hp::%loop-player%}%&7]" in sidebar of loop-player to 1
  78.  
  79.  
  80. #----------------------------------------------------------------------------------------------------
  81.  
  82. on any movement:
  83. if {@playerleveling} is true:
  84. set the player's tablist name to "&c&lRank&9≫%{prefix::%uuid of player%}% &6&lLevel&f&l:&e&l%{lvl::%player%}% &f%player%"
  85. set display name of player to "&c&lRank&9≫%{prefix::%uuid of player%}% &6&lLevel&f&l:&e&l%{lvl::%player%}% &f%player%"
  86.  
  87. on any movement:
  88. if {@playerleveling} is true:
  89. set tab header to "|&6&lJ&f&l-&5&lRPG&f|" and footer to "|&a%number of all players%&7/15&f|" for player
  90.  
  91. on join:
  92. if {prefix::%uuid of player%} is not set:
  93. set {prefix::%uuid of player%} to "{@rank}"
  94.  
  95. on any movement:
  96. if {@playerleveling} is true:
  97. if {xp::%player%} is greater or equal to {up::%player%}:
  98. if {lvl::%player%} is greater or equal to {@maxlvl}:
  99. stop
  100. else:
  101. add 1 to {lvl::%player%}
  102. add 1 to {sp::%player%}
  103. add 120 to {up::%player%}
  104. set {xp::%player%} to 0
  105. send "&l?? {@log} &f&l??"
  106. send "&l?? &b&lレベルアップ!! &f&l??"
  107. send "&8≫ &6&lLevel&a&l: &e&l%{lvl::%player%}%"
  108. send "&8≫ &5&lSP&a&l: &e&l+1"
  109. stop
  110.  
  111. command /rpg-set-level [<offline player>] [<text>]:
  112. permission: admin
  113. trigger:
  114. if arg 1 is set:
  115. if arg 2 is set:
  116. set {lvl::%arg-1%} to arg-2
  117. set {sp::%arg-1%} to arg-2
  118. stop
  119. if arg 1 is set:
  120. if arg 2 is not set:
  121. send "使い方: /rpg-set-level k2R 1"
  122. stop
  123. if arg 1 is not set:
  124. send "使い方: /rpg-set-level k2R"
  125. stop
  126. #----------------------------------------------------------------------------------------------------
  127.  
  128. on chat:
  129. cancel event
  130. if {mute::%uuid of player%} is set:
  131. {mute::%uuid of player%} is true
  132. send "あなたは発言できません。" to player
  133. add 1 to {checkchat::%player%}
  134. stop
  135. if {prefix::%uuid of player%} is set:
  136. if {suffix::%uuid of player%} is set:
  137. broadcast "&9≫%{prefix::%uuid of player%}% &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
  138. else:
  139. broadcast "&9≫%{prefix::%uuid of player%}% &f%player%&a: &f&l%message%"
  140. else:
  141. if {suffix::%uuid of player%} is set:
  142. broadcast "&9≫ &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
  143. else:
  144. broadcast "&9≫ &f%player%&a: &f&l%message%"
  145.  
  146.  
  147. on chat:
  148. if {mute::%uuid of player%} is true:
  149. if {checkchat::%player%} is more than 5:
  150. broadcast "&8[&fJ-RPG&8]&6%player%をKICKしました。 "
  151. kick the player
  152. stop
  153.  
  154. command /mute [<offline player>] [<text>]:
  155. permission: admin
  156. trigger:
  157. if arg-1 is set:
  158. if arg-2 is set:
  159. set {mute::%uuid of arg-1%} to true
  160. broadcast "%arg-1%&6が%player%&cによってミュートされました"
  161. broadcast "理由: %arg-2% "
  162. if arg-1 is not set:
  163. send "使い方: /mute k2R_Options うるさい"
  164.  
  165. command /mute-check [<offline player>]:
  166. trigger:
  167. send "MUTE: %arg-1% %{mute::%uuid of arg-1%}%"
  168.  
  169. command /unmute [<offline player>] [<text>]:
  170. permission: admin
  171. trigger:
  172. if arg-1 is set:
  173. if arg 2 is set:
  174. set {mute::%uuid of arg-1%} to false
  175. broadcast "%arg-1%&6は&c%player%によってミュート解除されました"
  176. broadcast "理由: %arg-2% "
  177. if arg-1 is not set:
  178. send "使い方: /unmute k2R_Options 大好き"
  179.  
  180.  
  181. command /prefix [<offline player>] [<text>]:
  182. permission: admin
  183. permission message: あなたは権限を持っていません。
  184. trigger:
  185. set {prefix::%uuid of arg-1%} to colored arg-2
  186. send "&b%arg 1% の前を %colored arg 2% &bにしました!"
  187.  
  188. command /clearprefix [<offline player>]:
  189. permission: admin
  190. permission message: あなたは権限を持っていません。
  191. trigger:
  192. clear {prefix::%uuid of arg-1%}
  193. send "&b%arg 1% の称号をリセットしました。"
  194.  
  195. command /suffix [<offline player>] [<text>]:
  196. permission: admin
  197. permission message: あなたは権限を持っていません。
  198. trigger:
  199. set {suffix::%uuid of arg-1%} to coloured arg-2
  200. send "&b%arg 1% の称号を%colored arg 2% &bにしました!"
  201.  
  202. command /clearsuffix [<offline player>]:
  203. permission: admin
  204. permission message: あなたは権限を持っていません。
  205. trigger:
  206. clear {suffix::%uuid of arg-1%}
  207. send "&b%arg 1% の称号をリセットしました。"
  208.  
  209. command /prefixhelp:
  210. permission: skript.admin
  211. permission message: あなたは権限を持っていません。
  212. trigger:
  213. send "&b&m================================="
  214. send "&b&lPREFIX &eSKRIPT Version:1.12.2 "
  215. send "&b&l/prefix (名前) (称号) "
  216. send "&b&l/clearprefix (名前) "
  217. send "&b&l/suffix (名前) (称号) "
  218. send "&b&l/clearsuffix (名前)"
  219. send "&b&l/mute (名前) (理由)"
  220. send "&b&l/unmute (名前) (理由)"
  221. send "&b&l/mute-check (名前)"
  222. send "&b&m================================="
  223.  
  224. #----------------------------------------------------------------------------------------------------
  225. command /rpg-status [<offline player>]:
  226. trigger:
  227. if arg-1 is not set:
  228. open chest with 3 row named "&e&l%player%'s &6&lStatus" to player
  229. wait 2 tick
  230. format slot 10 of player with beacon named "&eLv" with lore "&8[&6&l%{lvl::%player%}%&8]" to close
  231. format slot 11 of player with emerald named "&aExp" with lore "&8[&a&l%{xp::%player%}%&8]" to close
  232. format slot 12 of player with diamond named "&5Sp" with lore "&8[&6&l%{sp::%player%}%&8]" to close
  233. format slot 13 of player with stone sword named "&cStr" with lore "&8[&6&l%{str::%player%}%&8]" to close
  234. format slot 14 of player with iron chestplate named "&3Def" with lore "&8[&6&l%{def::%player%}%&8]" to close
  235. format slot 15 of player with feather named "&dHp" with lore "&8[&6&l%{Hp::%player%}%&8]" to close
  236. if arg-1 is set:
  237. open chest with 3 row named "&e&l%arg-1%'s &6&lStatus" to player
  238. wait 2 tick
  239. format slot 10 of player with beacon named "&eLv" with lore "&8[&6&l%{lvl::%arg-1%}%&8]" to close
  240. format slot 11 of player with emerald named "&aExp" with lore "&8[&a&l%{xp::%arg-1%}%&8]" to close
  241. format slot 12 of player with diamond named "&5Sp" with lore "&8[&6&l%{sp::%arg-1%}%&8]" to close
  242. format slot 13 of player with stone sword named "&cStr" with lore "&8[&6&l%{str::%arg-1%}%&8]" to close
  243. format slot 14 of player with iron chestplate named "&3Def" with lore "&8[&6&l%{def::%arg-1%}%&8]" to close
  244. format slot 15 of player with feather named "&dHp" with lore "&8[&6&l%{hp::%arg-1%}%&8]" to close
  245. #----------------------------------------------------------------------------------------------------
  246. command /rpg-status-up:
  247. trigger:
  248. open chest with 1 row named "&a&lStatus&f-&e&ldistribution" to player
  249. wait 2 tick
  250. format slot 1 of player with stone sword named "&cPower" to run [execute player command "rpg-status-up-str"]
  251. format slot 2 of player with iron chestplate named "&9Defense" to run [execute player command "rpg-status-up-def"]
  252. format slot 3 of player with feather named "&dHp" to run [execute player command "rpg-status-up-hp"]
  253. format slot 8 of player with diamond named "&bSp" with lore "&8[&a&l%{sp.%player%}%&8]" to close
  254.  
  255. #----------------------------------------------------------------------------------------------------
  256. command /rpg-status-up-str:
  257. trigger:
  258. if {sp::%player%} = 0:
  259. message "&cSPがたりません" to player
  260. stop
  261. else:
  262. add -1 to {sp::%player%}
  263. add 1 to {str::%player%}
  264. message "&estrに1SP割り振りました" to player
  265. execute player command "rpg-status-up"
  266. execute console command "replaceitem entity %player% slot.armor.head minecraft:leather_helmet 1 0 {""display"":{""Name"":""§c攻撃力"",""Lore"":[""§7[§c%{str::%player%}%§7]""],""color"":16711680},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":1910767407l,""UUIDMost"":1910767407l,""Operation"":0,""AttributeName"":""generic.attackDamage"",""Amount"":%{str::%player%}%d,""Slot"":""head""}],""HideFlags"":39}"
  267.  
  268. command /rpg-status-up-def:
  269. trigger:
  270. if {sp::%player%} = 0:
  271. message "&cSPがたりません" to player
  272. stop
  273. else:
  274. add -1 to {sp::%player%}
  275. add 1 to {def::%player%}
  276. message "&edefに1SP割り振りました" to player
  277. execute player command "rpg-status-up"
  278. execute console command "replaceitem entity %player% slot.armor.chest minecraft:leather_chestplate 1 0 {""display"":{""Name"":""§3防御力"",""Lore"":[""§7[§3%{def::%player%}%§7]""],""color"":16512},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":861001074l,""UUIDMost"":861001074l,""Operation"":0,""AttributeName"":""generic.armor"",""Amount"":%{def::%player%}%d,"Slot"":""chest""}],""HideFlags"":39}"
  279.  
  280.  
  281. command /rpg-status-up-hp:
  282. trigger:
  283. if {sp::%player%} = 0:
  284. message "&cSPがたりません" to player
  285. stop
  286. else:
  287. add -1 to {sp::%player%}
  288. add 1 to {hp::%player%}
  289. message "&eSpeedに1SP割り振りました" to player
  290. execute player command "rpg-status-up"
  291. execute console command "replaceitem entity %player% slot.armor.legs minecraft:leather_leggings 1 0 {""display"":{""Name"":""§d体力"",""Lore"":[""§7[§d%{hp::%player%}%§7]""],""color"":16711808},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":684236257l,""UUIDMost"":684236257l,""Operation"":0,""AttributeName"":""generic.maxHealth"",""Amount"":%{hp::%player%}%d,""Slot"":""legs""}],""HideFlags"":39}"
  292.  
  293. #--------------------------------------------------------------------------------------------------
  294.  
  295. #---------------------------------------------------------------------------------------------------
  296.  
  297. #===============================================================#
  298. #-Edit-Ok- #
  299. #===============================================================#
  300.  
  301.  
  302.  
  303. options:
  304. zombie: 5
  305. skeleton: 10
  306. creeper: 7
  307. spider: 12
  308. enderman: 20
  309. witch: 14
  310. blaze: 24
  311. zombie pigman: 30
  312. slime: 2
  313. TEST: 10
  314.  
  315. on death of a slime:
  316. if {@playerleveling} is true:
  317. if attacker is a player:
  318. add {@slime} to {xp::%attacker%}
  319. send "{@log}&b{@slime}&6EXP" to the attacker
  320.  
  321. on death of a zombie:
  322. if {@playerleveling} is true:
  323. if attacker is a player:
  324. add {@zombie} to {xp::%attacker%}
  325. send "{@log}&b{@zombie}&6EXP" to the attacker
  326.  
  327. on death of a skeleton:
  328. if {@playerleveling} is true:
  329. if attacker is a player:
  330. add {@skeleton} to {xp::%attacker%}
  331. send "{@log}&b{@skeleton}&6EXP" to the attacker
  332.  
  333. on death of a creeper:
  334. if {@playerleveling} is true:
  335. if attacker is a player:
  336. add {@creeper} to {xp.%attacker%}
  337. send "{@log}&b{@creeper}&6EXP" to the attacker
  338.  
  339. on death of a spider:
  340. if {@playerleveling} is true:
  341. if attacker is a player:
  342. add {@spider} to {xp::%attacker%}
  343. send "{@log}&b{@spider}&6EXP" to the attacker
  344.  
  345. on death of a enderman:
  346. if {@playerleveling} is true:
  347. if attacker is a player:
  348. add {@enderman} to {xp::%attacker%}
  349. send "{@log}&b{@enderman}&6EXP" to the attacker
  350.  
  351. on death of a witch:
  352. if {@playerleveling} is true:
  353. if attacker is a player:
  354. add {@witch} to {xp::%attacker%}
  355. send "{@log}&b{@witch}&6EXP" to the attacker
  356.  
  357. on death of a blaze:
  358. if {@playerleveling} is true:
  359. if attacker is a player:
  360. add {@blaze} to {xp::%attacker%}
  361. send "{@log}&b{@blaze}&6EXP" to the attacker
  362.  
  363. on death of a zombie pigman:
  364. if {@playerleveling} is true:
  365. if attacker is a player:
  366. add {@zombie pigman} to {xp::%attacker%}
  367. send "{@log}&b{@zombie pigman}&6EXP" to the attacker
  368.  
  369. on death of a blaze:
  370. if {@playerleveling} is true:
  371. if attacker is a player:
  372. add {@TEST} to {xp::%attacker%}
  373. send "{@log}&b{@TEST}&6EXP" to the attacker
  374.  
  375. command /armorreload:
  376. trigger:
  377. execute console command "replaceitem entity %player% slot.armor.head minecraft:leather_helmet 1 0 {""display"":{""Name"":""§c攻撃力"",""Lore"":[""§7[§c%{str::%player%}%§7]""],""color"":16711680},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":1910767407l,""UUIDMost"":1910767407l,""Operation"":0,""AttributeName"":""generic.attackDamage"",""Amount"":%{str::%player%}%d,""Slot"":""head""}],""HideFlags"":39}"
  378. execute console command "replaceitem entity %player% slot.armor.chest minecraft:leather_chestplate 1 0 {""display"":{""Name"":""§3防御力"",""Lore"":[""§7[§3%{def::%player%}%§7]""],""color"":16512},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":861001074l,""UUIDMost"":861001074l,""Operation"":0,""AttributeName"":""generic.armor"",""Amount"":%{def::%player%}%d,""Slot"":""chest""}],""HideFlags"":39}"
  379. execute console command "replaceitem entity %player% slot.armor.legs minecraft:leather_leggings 1 0 {""display"":{""Name"":""§d体力"",""Lore"":[""§7[§d%{hp::%player%}%§7]""],""color"":16711808},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":684236257l,""UUIDMost"":684236257l,""Operation"":0,""AttributeName"":""generic.maxHealth"",""Amount"":%{hp::%player%}%d,""Slot"":""legs""}],""HideFlags"":39}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement