maozou

Pit

Nov 30th, 2018
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2. #---------------------------------------------------------------------------
  3. #-----------------------------------Log------------------------------------
  4. log: &8[&6System&8] &7&l|
  5. #---------------------------------------------------------------------------
  6.  
  7. #---------------------------------------------------------------------------
  8. #-----------------------------------Types-----------------------------------
  9. playerleveling: true
  10. #---------------------------------------------------------------------------
  11.  
  12. #---------------------------------------------------------------------------
  13. #---------------------------------PLeveling---------------------------------
  14. xpforlvlup: 150
  15. lvlupreward: air
  16. #---------------------------------------------------------------------------
  17.  
  18. #---------------------------------------------------------------------------
  19. #----------------------------------MaxLvL-----------------------------------
  20. maxlvl: 9999
  21. #---------------------------------------------------------------------------
  22.  
  23.  
  24. #------------------------------------------------------------
  25. # first status options
  26. #------------------------------------------------------------
  27.  
  28. variables:
  29. {lvl::%player%} = 1
  30. {xp::%player%} = 0
  31. {gold::%player%} = 0
  32.  
  33. #------------------------------------------------------------
  34. # Player Leveling System
  35. #------------------------------------------------------------
  36.  
  37. on any movement:
  38. if {@playerleveling} is true:
  39. if {xp::%player%} is greater or equal to {@xpforlvlup}:
  40. if {lvl::%player%} is greater or equal to {@maxlvl}:
  41. stop
  42. else:
  43. remove {@xpforlvlup} from {xp::%player%}
  44. add 1 to {lvl::%player%}
  45. send "{@log} &a%player% &e&lレベルUP!現在の&a&lLV: &b%{lvl::%player%}%" to player
  46. execute console command "/title %player% title {""text"":""Level Up!"",""bold"":true,""color"":""aqua""}"
  47. execute console command "/title %player% subtitle {""text"":""%{lvl::%player%}%"",""color"":""blue""}"
  48. set the player's tablist name to "&7[&b%{lvl::%player%}%&7]&f%player%"
  49. set display name of player to "&7[&b%{lvl::%player%}%&7]&f%player%"
  50. stop
  51.  
  52. on any movement:
  53. if {@playerleveling} is true:
  54. set the player's tablist name to "&7[&b%{lvl::%player%}%&7]&f%player%"
  55. set display name of player to "&7[&b%{lvl::%player%}%&7]&f%player%"
  56. stop
  57.  
  58. on join:
  59. set the player's tablist name to "&7[&b%{lvl::%player%}%&7]&f%player%"
  60. set display name of player to "&7[&b%{lvl::%player%}%&7]&f%player%"
  61. command /resetstatus [<offline player>]:
  62. permission: skript.LvReset
  63. trigger:
  64. if arg-1 is not set:
  65. set {lvl::%player%} to 1
  66. set {xp::%player%} to 0
  67. set {gold::%player%} to 0
  68. set {mvp::%player%} to "0"
  69. set {vip::%player%} to "0"
  70. set {mvpplus::%player%} to "0"
  71. send "%player%のステータスをリセットしました"
  72. if arg-1 is set:
  73. set {lvl::%arg-1%} to 1
  74. set {xp::%arg-1%} to 0
  75. set {gold::%arg-1%} to 0
  76. set {mvp::%player%} to "0"
  77. set {vip::%player%} to "0"
  78. set {mvpplus::%player%} to "0"
  79. send "%arg-1%のステータスをリセットしました"
  80.  
  81. on death:
  82. victim is a player
  83. attacker is a player
  84. wait a tick
  85. add 5 to {xp::%attacker%}
  86. send "&a+ &e5xp"
  87. give attacker golden apple named "&fGapple"
  88. add 50 to {gold::%attacker%}
  89. add 1 to {killstats::%attacker%}
  90. add 1 to {deathstats::%victim%}
  91. if {vip::%attacker%} is "1":
  92. add 50 to {gold::%attacker%}
  93. if {mvp::%attacker%} is "1":
  94. add 80 to {gold::%attacker%}
  95. if {mvpplus::%attacker%} is "1":
  96. add 100 to {gold::%attacker%}
  97. on damage:
  98. victim is a player
  99. attacker is a player
  100. #-------------------------------------------------------
  101. # side bar
  102. #-------------------------------------------------------
  103.  
  104. every 2 second:
  105. loop all players:
  106. wipe loop-player's sidebar
  107. set name of sidebar of loop-player to "&e&lTHE REALM PIT"
  108. set score "Level: &a[%{lvl::%loop-player%}%&a]" in sidebar of loop-player to 10
  109. set score "XP: &a%{xp::%loop-player%}%" in sidebar of loop-player to 9
  110. set score "&f" in sidebar of loop-player to 8
  111. set score "&fGold: &6%{gold::%loop-player%}%g" in sidebar of loop-player to 7
  112. set score "&5&l" in sidebar of loop-player to 6
  113. set score "&4stats:" in sidebar of loop-player to 5
  114. set score "&ckills &7%{killstats::%loop-player%}%" in sidebar of loop-player to 4
  115. set score "&4deaths &7%{deathstats::%loop-player%}%" in sidebar of loop-player to 3
  116. set score "&3&l" in sidebar of loop-player to 2
  117.  
  118. #--------------------------------------------------------
  119. #add
  120. #--------------------------------------------------------
  121.  
  122. command /addstatus <player> [<number>]:
  123. permission:sk.admin
  124. trigger:
  125. if arg 2 is set:
  126. wait a tick
  127. add arg 2 to {xp::%arg 1%}
  128. send "&aadded XP"
  129. command /addgold <player> [<number>]:
  130. permission:sk.admin
  131. trigger:
  132. if arg 2 is set:
  133. wait a tick
  134. add arg 2 to {gold::%arg 1%}
  135. send "&6added Gold"
  136.  
  137. #--------------------------------------------------------
  138. #kills
  139. #--------------------------------------------------------
  140. command /shop <text>:
  141. trigger:
  142. if arg-1 is "1":
  143. if {gold::%player%} is greater than 500:
  144. remove 500 from {gold::%player%}
  145. execute console command "/give %player% minecraft:diamond_sword"
  146. execute console command "/playsound minecraft:item.armor.equip_chain ambient %player% ~ ~ ~ 2 0.9"
  147. send "&bアイテムを購入しました。"
  148. else:
  149. send "&4お金が足りません"
  150. execute console command "/playsound minecraft:entity.player.hurt ambient %player% ~ ~ ~ 2 0"
  151. if arg-1 is "2":
  152. if {gold::%player%} is greater than 500:
  153. remove 500 from {gold::%player%}
  154. execute console command "/give %player% minecraft:diamond_chestplate"
  155. execute console command "/playsound minecraft:item.armor.equip_chain ambient %player% ~ ~ ~ 2 0.9"
  156. send "&bアイテムを購入しました。"
  157. else:
  158. send "&cお金が足りません。"
  159. execute console command "/playsound minecraft:entity.player.hurt ambient %player% ~ ~ ~ 2 0"
  160. if arg-1 is "3":
  161. if {gold::%player%} is greater than 450:
  162. remove 450 from {gold::%player%}
  163. execute console command "/give %player% minecraft:diamond_boots"
  164. execute console command "/playsound minecraft:item.armor.equip_chain ambient %player% ~ ~ ~ 2 0.9"
  165. send "&bアイテムを購入しました。"
  166. if arg-1 is "menu":
  167. send "&6--=&6&LShop-Menu&6=--"
  168. send "&6/shop <番号>で購入!"
  169. send "&b1.ダイヤの剣 &6500G"
  170. send "&b2.ダイヤのチェストプレート &6550G"
  171. send "&b3.ダイヤのブーツ &6450G"
  172. send "&b4.矢x32 &6100G"
  173. if arg-1 is "4":
  174. if {gold::%player%} is greater than 100:
  175. remove 10 from {gold::%player%}
  176. execute console command "/give %player% minecraft:arrow 32"
  177. execute console command "/playsound minecraft:item.armor.equip_chain ambient %player% ~ ~ ~ 2 0.9"
  178. else:
  179. send "&cお金が足りません。"
  180. execute console command "/playsound minecraft:entity.player.hurt ambient %player% ~ ~ ~ 2 0"
  181. #----------------------------------------------------
  182. #cmd
  183. #=---------------------------------------
  184. command /vip:
  185. permission:sk.vip
  186. trigger:
  187. set {vip::%player%} to "1"
  188. set {mvp::%player%} to "0"
  189. set {mvpplus::%player%} to "0"
  190. send "&eあなたはvipになりました!"
  191. command /mvp:
  192. permission:sk.mvp
  193. trigger:
  194. set {mvp::%player%} to "1"
  195. set {vip::%player%} to "0"
  196. set {mvpplus::%player%} to "0"
  197. send "&bあなたはmvpになりました!"
  198. command /mvpplus:
  199. permission:sk.mvpplus
  200. trigger:
  201. set {mvp::%player%} to "0"
  202. set {vip::%player%} to "0"
  203. set {mvpplus::%player%} to "1"
  204. send "&bあなたはmvp&a+&bになりました!"
  205. command /lvup:
  206. trigger:
  207. open chest with 3 rows named "&6&lItems" to player
  208. wait a tick
  209. format slot 10 of player with diamond sword named "&ediamond sword" with lore "&6500G" to run [player command "shop 1"]
  210. format slot 11 of player with obsidian named "&eobdidian 製作中" to run [console command "tell %player% creating now"]
  211. format slot 12 of player with arrow named "&earrow x32" with lore "&6100G" to run [player command "shop 4"]
  212. format slot 15 of player with diamond chestplate named "&ediamond chestplate" with lore "&6500G" to run [player command "shop 2"]
  213. format slot 16 of player with diamond boots named "&ediamond boots" with lore "&6450G" to run [player command "shop 3"]
  214.  
  215. command /status [<offline player>]:
  216. trigger:
  217. if arg-1 is not set:
  218. open chest with 3 row named "&e&l%player%'s &6&lStatus" to player
  219. wait 2 tick
  220. format slot 10 of player with beacon named "&aLevel" with lore "&8[&a&l%{lvl::%player%}%&8]" to close
  221. format slot 11 of player with emerald named "&eXP" with lore "&8[&a&l%{xp::%player%}%&8]" to close
  222. format slot 12 of player with diamond named "&6Gold" with lore "&8[&6&l%{gold::%player%}%&8]" to close
  223. format slot 13 of player with iron sword named "&4Kills" with lore "&8[&4&l%{killstats::%player%}%&8]" to close
  224. format slot 14 of player with redstone named "&4Deaths" with lore "&8[&4&l%{deathstats::%player%}%&8]" to close
  225. if arg-1 is set:
  226. open chest with 3 row named "&e&l%arg-1%'s &6&lStatus" to player
  227. wait 2 tick
  228. format slot 10 of player with beacon named "&aLevel" with lore "&8[&a&l%{lvl::%arg-1%}%&8]" to close
  229. format slot 11 of player with emerald named "&eXP" with lore "&8[&a&l%{xp::%arg-1%}%&8]" to close
  230. format slot 12 of player with diamond named "&6Gold" with lore "&8[&6&l%{gold::%arg-1%}%&8]" to close
  231. format slot 13 of player with iron sword named "&4Kills" with lore "&8[&4&l%{killstats::%arg-1%}%&8]" to close
  232. format slot 14 of player with redstone named "&4Deaths" with lore "&8[&4&l%{deathstats::%arg-1%}%&8]" to close
Add Comment
Please, Sign In to add comment