Advertisement
NiceQQQQ

Untitled

Jul 6th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.81 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&l/&6&l%{up::%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 2
  78. set score "§eMoney &7[&e&l%{money::%loop-player%}%&7]" in sidebar of loop-player to 1
  79.  
  80.  
  81.  
  82. #----------------------------------------------------------------------------------------------------
  83.  
  84. on any movement:
  85. if {@playerleveling} is true:
  86. set the player's tablist name to "&c&lRank&9≫%{prefix::%uuid of player%}% &6&lLevel&f&l:&e&l%{lvl::%player%}% &f%player%"
  87. set display name of player to "&c&lRank&9≫%{prefix::%uuid of player%}% &6&lLevel&f&l:&e&l%{lvl::%player%}% &f%player%"
  88.  
  89. on any movement:
  90. if {@playerleveling} is true:
  91. set tab header to "|&6&lQ&f&l-&5&lRPG&f|" and footer to "|&a%number of all players%&7/15&f|" for player
  92.  
  93. on join:
  94. if {prefix::%uuid of player%} is not set:
  95. set {prefix::%uuid of player%} to "{@rank}"
  96.  
  97. on any movement:
  98. if {@playerleveling} is true:
  99. if {xp::%player%} is greater or equal to {up::%player%}:
  100. if {lvl::%player%} is greater or equal to {@maxlvl}:
  101. stop
  102. else:
  103. add 1 to {lvl::%player%}
  104. add 1 to {sp::%player%}
  105. add 120 to {up::%player%}
  106. set {xp::%player%} to 0
  107. send "&l?? {@log} &f&l??"
  108. send "&l?? &b&lレベルアップ!! &f&l??"
  109. send "&8≫ &6&lLevel&a&l: &e&l%{lvl::%player%}%"
  110. send "&8≫ &5&lSP&a&l: &e&l+1"
  111. stop
  112.  
  113. command /rpg-set-level [<offline player>] [<text>]:
  114. permission: admin
  115. trigger:
  116. if arg 1 is set:
  117. if arg 2 is set:
  118. set {lvl::%arg-1%} to arg-2
  119. set {sp::%arg-1%} to arg-2
  120. stop
  121. if arg 1 is set:
  122. if arg 2 is not set:
  123. send "使い方: /rpg-set-level k2R 1"
  124. stop
  125. if arg 1 is not set:
  126. send "使い方: /rpg-set-level k2R"
  127. stop
  128. #----------------------------------------------------------------------------------------------------
  129.  
  130. on chat:
  131. cancel event
  132. if {mute::%uuid of player%} is set:
  133. {mute::%uuid of player%} is true
  134. send "あなたは発言できません。" to player
  135. add 1 to {checkchat::%player%}
  136. stop
  137. if {prefix::%uuid of player%} is set:
  138. if {suffix::%uuid of player%} is set:
  139. broadcast "&9≫%{prefix::%uuid of player%}% &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
  140. else:
  141. broadcast "&9≫%{prefix::%uuid of player%}% &f%player%&a: &f&l%message%"
  142. else:
  143. if {suffix::%uuid of player%} is set:
  144. broadcast "&9≫ &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
  145. else:
  146. broadcast "&9≫ &f%player%&a: &f&l%message%"
  147.  
  148.  
  149. on chat:
  150. if {mute::%uuid of player%} is true:
  151. if {checkchat::%player%} is more than 5:
  152. broadcast "&8[&fJ-RPG&8]&6%player%をKICKしました。 "
  153. kick the player
  154. stop
  155.  
  156. command /mute [<offline player>] [<text>]:
  157. permission: admin
  158. trigger:
  159. if arg-1 is set:
  160. if arg-2 is set:
  161. set {mute::%uuid of arg-1%} to true
  162. broadcast "%arg-1%&6が%player%&cによってミュートされました"
  163. broadcast "理由: %arg-2% "
  164. if arg-1 is not set:
  165. send "使い方: /mute k2R_Options うるさい"
  166.  
  167. command /mute-check [<offline player>]:
  168. trigger:
  169. send "MUTE: %arg-1% %{mute::%uuid of arg-1%}%"
  170.  
  171. command /unmute [<offline player>] [<text>]:
  172. permission: admin
  173. trigger:
  174. if arg-1 is set:
  175. if arg 2 is set:
  176. set {mute::%uuid of arg-1%} to false
  177. broadcast "%arg-1%&6は&c%player%によってミュート解除されました"
  178. broadcast "理由: %arg-2% "
  179. if arg-1 is not set:
  180. send "使い方: /unmute k2R_Options 大好き"
  181.  
  182.  
  183. command /prefix [<offline player>] [<text>]:
  184. permission: admin
  185. permission message: あなたは権限を持っていません。
  186. trigger:
  187. set {prefix::%uuid of arg-1%} to colored arg-2
  188. send "&b%arg 1% の前を %colored arg 2% &bにしました!"
  189.  
  190. command /clearprefix [<offline player>]:
  191. permission: admin
  192. permission message: あなたは権限を持っていません。
  193. trigger:
  194. clear {prefix::%uuid of arg-1%}
  195. send "&b%arg 1% の称号をリセットしました。"
  196.  
  197. command /suffix [<offline player>] [<text>]:
  198. permission: admin
  199. permission message: あなたは権限を持っていません。
  200. trigger:
  201. set {suffix::%uuid of arg-1%} to coloured arg-2
  202. send "&b%arg 1% の称号を%colored arg 2% &bにしました!"
  203.  
  204. command /clearsuffix [<offline player>]:
  205. permission: admin
  206. permission message: あなたは権限を持っていません。
  207. trigger:
  208. clear {suffix::%uuid of arg-1%}
  209. send "&b%arg 1% の称号をリセットしました。"
  210.  
  211. command /prefixhelp:
  212. permission: skript.admin
  213. permission message: あなたは権限を持っていません。
  214. trigger:
  215. send "&b&m================================="
  216. send "&b&lPREFIX &eSKRIPT Version:1.12.2 "
  217. send "&b&l/prefix (名前) (称号) "
  218. send "&b&l/clearprefix (名前) "
  219. send "&b&l/suffix (名前) (称号) "
  220. send "&b&l/clearsuffix (名前)"
  221. send "&b&l/mute (名前) (理由)"
  222. send "&b&l/unmute (名前) (理由)"
  223. send "&b&l/mute-check (名前)"
  224. send "&b&m================================="
  225.  
  226. #----------------------------------------------------------------------------------------------------
  227. command /rpg-status [<offline player>]:
  228. trigger:
  229. if arg-1 is not set:
  230. open chest with 3 row named "&e&l%player%'s &6&lStatus" to player
  231. wait 2 tick
  232. format slot 10 of player with beacon named "&eLv" with lore "&8[&6&l%{lvl::%player%}%&8]" to close
  233. format slot 11 of player with emerald named "&aExp" with lore "&8[&a&l%{xp::%player%}%&8]" to close
  234. format slot 12 of player with diamond named "&5Sp" with lore "&8[&6&l%{sp::%player%}%&8]" to close
  235. format slot 13 of player with stone sword named "&cStr" with lore "&8[&6&l%{str::%player%}%&8]" to close
  236. format slot 14 of player with iron chestplate named "&3Def" with lore "&8[&6&l%{def::%player%}%&8]" to close
  237. format slot 15 of player with feather named "&dHp" with lore "&8[&6&l%{Hp::%player%}%&8]" to close
  238. if arg-1 is set:
  239. open chest with 3 row named "&e&l%arg-1%'s &6&lStatus" to player
  240. wait 2 tick
  241. format slot 10 of player with beacon named "&eLv" with lore "&8[&6&l%{lvl::%arg-1%}%&8]" to close
  242. format slot 11 of player with emerald named "&aExp" with lore "&8[&a&l%{xp::%arg-1%}%&8]" to close
  243. format slot 12 of player with diamond named "&5Sp" with lore "&8[&6&l%{sp::%arg-1%}%&8]" to close
  244. format slot 13 of player with stone sword named "&cStr" with lore "&8[&6&l%{str::%arg-1%}%&8]" to close
  245. format slot 14 of player with iron chestplate named "&3Def" with lore "&8[&6&l%{def::%arg-1%}%&8]" to close
  246. format slot 15 of player with feather named "&dHp" with lore "&8[&6&l%{hp::%arg-1%}%&8]" to close
  247. #----------------------------------------------------------------------------------------------------
  248. command /rpg-status-up:
  249. trigger:
  250. open chest with 1 row named "&a&lStatus&f-&e&ldistribution" to player
  251. wait 2 tick
  252. format slot 1 of player with stone sword named "&cPower" to run [execute player command "rpg-status-up-str"]
  253. format slot 2 of player with iron chestplate named "&9Defense" to run [execute player command "rpg-status-up-def"]
  254. format slot 3 of player with feather named "&dHp" to run [execute player command "rpg-status-up-hp"]
  255. format slot 8 of player with diamond named "&bSp" with lore "&8[&a&l%{sp.%player%}%&8]" to close
  256.  
  257. #----------------------------------------------------------------------------------------------------
  258. command /rpg-status-up-str:
  259. trigger:
  260. if {sp::%player%} = 0:
  261. message "&cSPがたりません" to player
  262. stop
  263. else:
  264. add -1 to {sp::%player%}
  265. add 1 to {str::%player%}
  266. message "&estrに1SP割り振りました" to player
  267. 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}"
  268.  
  269. command /rpg-status-up-def:
  270. trigger:
  271. if {sp::%player%} = 0:
  272. message "&cSPがたりません" to player
  273. stop
  274. else:
  275. add -1 to {sp::%player%}
  276. add 1 to {def::%player%}
  277. message "&edefに1SP割り振りました" to player
  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 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}"
  291.  
  292. #--------------------------------------------------------------------------------------------------
  293.  
  294. #---------------------------------------------------------------------------------------------------
  295.  
  296. #===============================================================#
  297. #-Edit-Ok- #
  298. #===============================================================#
  299.  
  300.  
  301.  
  302. options:
  303. zombie: 5
  304. skeleton: 10
  305. creeper: 7
  306. spider: 12
  307. enderman: 20
  308. witch: 14
  309. blaze: 24
  310. zombie pigman: 30
  311. slime: 2
  312. TEST: 10
  313.  
  314. on death of a slime:
  315. if {@playerleveling} is true:
  316. if attacker is a player:
  317. add {@slime} to {xp::%attacker%}
  318. send "{@log}&b{@slime}&6EXP" to the attacker
  319.  
  320. on death of a zombie:
  321. if {@playerleveling} is true:
  322. if attacker is a player:
  323. add {@zombie} to {xp::%attacker%}
  324. send "{@log}&b{@zombie}&6EXP" to the attacker
  325.  
  326. on death of a skeleton:
  327. if {@playerleveling} is true:
  328. if attacker is a player:
  329. add {@skeleton} to {xp::%attacker%}
  330. send "{@log}&b{@skeleton}&6EXP" to the attacker
  331.  
  332. on death of a creeper:
  333. if {@playerleveling} is true:
  334. if attacker is a player:
  335. add {@creeper} to {xp.%attacker%}
  336. send "{@log}&b{@creeper}&6EXP" to the attacker
  337.  
  338. on death of a spider:
  339. if {@playerleveling} is true:
  340. if attacker is a player:
  341. add {@spider} to {xp::%attacker%}
  342. send "{@log}&b{@spider}&6EXP" to the attacker
  343.  
  344. on death of a enderman:
  345. if {@playerleveling} is true:
  346. if attacker is a player:
  347. add {@enderman} to {xp::%attacker%}
  348. send "{@log}&b{@enderman}&6EXP" to the attacker
  349.  
  350. on death of a witch:
  351. if {@playerleveling} is true:
  352. if attacker is a player:
  353. add {@witch} to {xp::%attacker%}
  354. send "{@log}&b{@witch}&6EXP" to the attacker
  355.  
  356. on death of a blaze:
  357. if {@playerleveling} is true:
  358. if attacker is a player:
  359. add {@blaze} to {xp::%attacker%}
  360. send "{@log}&b{@blaze}&6EXP" to the attacker
  361.  
  362. on death of a zombie pigman:
  363. if {@playerleveling} is true:
  364. if attacker is a player:
  365. add {@zombie pigman} to {xp::%attacker%}
  366. send "{@log}&b{@zombie pigman}&6EXP" to the attacker
  367.  
  368. on death of a blaze:
  369. if {@playerleveling} is true:
  370. if attacker is a player:
  371. add {@TEST} to {xp::%attacker%}
  372. send "{@log}&b{@TEST}&6EXP" to the attacker
  373.  
  374. command /armorreload:
  375. trigger:
  376. 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}"
  377. 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}"
  378. 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