Advertisement
NiceQQQQ

Untitled

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