SHARE
TWEET

[Skript]

K2Rk1o Jan 24th, 2019 (edited) 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Options:
  2. #------------------#
  3. #Skript
  4. #------------------#
  5. #・Skellet
  6. #・SKquery
  7. #・Skrayfall
  8. #・Skript
  9. #Config
  10.  
  11.     system: true
  12.     maxlvl: 500
  13.     log: &8≫&7&lシステム
  14.     upxp: 25
  15. #Tab
  16. #長すぎると表示されないかも
  17.     top_tab: realm
  18.     Tab_below: %number of all players%&f/15
  19.     news: Skript
  20.     sidebar_name: LV SYSTEM
  21.     mute_: &5[&2Mute&5]&6
  22.     sp_msg_no: &6SPがありません。
  23. #デフォルトのランクを設定します。
  24.     default_rank: &8NONE
  25.  
  26. variables:
  27.     {lv::%player%} = 1
  28.     {xp::%player%} = 0
  29.     {up::%player%} = 25
  30.     {sp::%player%} = 1
  31.     {power::%player%} = 0
  32.     {def::%player%} = 0
  33.     {speed::%player%} = 0
  34.  
  35. On join:
  36.     if {prefix::%uuid of player%} isn't set:
  37.         set {prefix::%uuid of player%} to "{@default_rank}"
  38.         stop
  39.  
  40. #==============================================================================================#
  41. #                                            Command
  42. #==============================================================================================#
  43.  
  44. command /status-show [<text>]:
  45.     trigger:
  46.         if arg-1 is not set:
  47.             open chest with 3 row named "&6%player%&7の&9&lステータス" to player
  48.             wait 1 second
  49.             format slot 10 of player with beacon named "&a&l&oLevel" with lore "&8[&6%{lv::%player%}%&8]" to close
  50.             format slot 11 of player with emerald named "&6&l&oExp" with lore "&8[&6%{xp::%player%}%&7/&a%{up::%uuid of player%}%&8]" to close
  51.             format slot 12 of player with experience bottle named "&e&lSp" with lore "&8[&6%{sp::%player%}%&8]" to close
  52.             format slot 13 of player with iron sword named "&c&lPower" with lore "&8[&6%{power::%player%}%&8]" to close
  53.             format slot 14 of player with iron chestplate named "&9&ldefense" with lore "&8[&6%{def::%player%}%&8]" to close
  54.             format slot 15 of player with feather named "&b&lSpeed" with lore "&8[&6%{speed::%player%}%&8]" to close
  55.         if arg-1 is set:
  56.             open chest with 3 row named "&6%arg-1%&7の&9&lステータス" to player
  57.             wait 1 second
  58.             format slot 10 of player with beacon named "&a&l&oLevel" with lore "&8[&6%{lv::%arg-1%}%&8]" to close
  59.             format slot 11 of player with emerald named "&6&l&oExp" with lore "&8[&6%{xp::%arg-1%}%&7/&a%{up::%arg-1%}%&8]" to close
  60.             format slot 12 of player with experience bottle named "&e&lSp" with lore "&8[&6%{sp::%arg-1%}%&8]" to close
  61.             format slot 13 of player with iron sword named "&c&lPower" with lore "&8[&6%{power::%arg-1%}%&8]" to close
  62.             format slot 14 of player with iron chestplate named "&9&ldefense" with lore "&8[&6%{def::%arg-1%}%&8]" to close
  63.             format slot 15 of player with feather named "&b&lSpeed" with lore "&8[&6%{speed::%arg-1%}%&8]" to close    
  64.        
  65.  
  66.  
  67. command /status:
  68.     trigger:
  69.         open chest with 3 row named "&6ステータス&e&l割り振り" to player
  70.         wait 1 second
  71.         format slot 11 of player with iron sword named "&c&lPower" to close then run "sp p"
  72.         format slot 12 of player with iron chestplate named "&9&lDefense" to close then run "sp d"
  73.         format slot 13 of player with feather named "&b&lSpeed" to close then run "sp s"
  74.         format slot 16 of player with experience bottle named "&e&lSp" with lore "&8[&6%{sp::%player%}%&8]" to close
  75.  
  76.  
  77.  
  78. command /sp [<text>]:
  79.     trigger:
  80.         if arg-1 is "p":
  81.             if {sp::%player%} = 0:
  82.                 send "{@sp_msg_no}"
  83.                 stop
  84.             else:
  85.                 add -1 to {sp::%player%}
  86.                 add 1 to {power::%player%}
  87.                 stop
  88.         if arg-1 is "d":
  89.             if {sp::%player%} = 0:
  90.                 send "{@sp_msg_no}"
  91.                 stop
  92.             else:
  93.                 add -1 to {sp::%player%}
  94.                 add 1 to {def::%player%}
  95.                 stop          
  96.         if arg-1 is "s":
  97.             if {sp::%uuid of player%} = 0:
  98.                 send "{@sp_msg_no}"
  99.                 stop
  100.             else:
  101.                 add -1 to {sp::%player%}
  102.                 add 1 to {speed::%player%}
  103.                 stop
  104.  
  105.  
  106.  
  107. command /status-reset [<text>]:
  108.     permission:
  109.     trigger:
  110.         if arg-1 isn't set:
  111.             stop
  112.         if arg-1 is set:
  113.             set {}
  114.  
  115.  
  116.  
  117.  
  118.  
  119. #==============================================================================================#
  120. #                                            Sidebar
  121. #==============================================================================================#
  122.  
  123.  
  124.  
  125.  
  126. every 2 second:
  127.     loop all players:
  128.         wipe loop-player's sidebar
  129.         set name of sidebar of loop-player to "{@sidebar_name}"
  130.         set score "&2&l&oステータス" in sidebar of loop-player to 16
  131.         set score "&a" in sidebar of loop-player to 15
  132.         set score "&6&lLevel&f&l: &e&l%{lv::%loop-player%}%" in sidebar of loop-player to 14
  133.         set score "&a&lExp&f&l: &e&l%{xp::%loop-player%}%&7&l/&e&l%{up::%loop-player%}%" in sidebar of loop-player to 13
  134.         set score "&5&lSP&f&l: &e&l%{sp::%loop-player%}%" in sidebar of loop-player to 12
  135.         set score "&e" in sidebar of loop-player to 11
  136.         set score "&b&l" in sidebar of loop-player to 10
  137.         set score "&f" in sidebar of loop-player to 9
  138.         set score "&c&lランク&a: &7&l%{prefix::%uuid of loop-player%}%" in sidebar of loop-player to 8
  139.         set score "" in sidebar of loop-player to 7
  140.         set score "" in sidebar of loop-player to 6
  141.         set score "&6&l&oサーバーニュース" in sidebar of loop-player to 5
  142.         set score "&7" in sidebar of loop-player to 4
  143.         set score " {@news}" in sidebar of loop-player to 3
  144.         set score "&d" in sidebar of loop-player to 2
  145.  
  146.  
  147. #==============================================================================================#
  148. #                                     Level & Tab
  149. #==============================================================================================#
  150. on any movement:
  151.     if {@system} is true:
  152.         if {xp::%player%} is greater or equal to {up::%player%}:
  153.             if {lvl::%player%} is greater or equal to {@maxlvl}:
  154.                 stop
  155.             else:
  156.                 add 1 to {lvl::%player%}
  157.                 add 1 to {sp::%player%}
  158.                 add {@upxp} to {up::%player%}
  159.                 set {xp::%player%} to 0
  160.                 send "{@log} "
  161.                 send "&l≻≻ &b&lレベルアップ!! &f&l≺≺"
  162.                 send "&8≫ &6&lLevel&a&l: &e&l%{lvl::%player%}%"
  163.                 send "&8≫ &5&lSP&a&l: &e&l+1"
  164.                 stop
  165.     set tab header to "{@top_tab}" and footer to "{@Tab_below}" for player
  166.     set the player's tablist name to "&9&l≫%{prefix::%uuid of player%}% &a&lLV&f&l:&e&l%{lvl::%player%}% &f%player%"
  167.  
  168. #===============================================================#
  169. #-Chat-                                                         #
  170. #===============================================================#
  171.  
  172. on chat:
  173.     cancel event
  174.     if {mute::%uuid of player%} is set:
  175.         {mute::%uuid of player%} is true
  176.         send "{@mute_}あなたは発言できません " to player
  177.         add 1 to {checkchat::%player%}
  178.         stop  
  179.     if {prefix::%uuid of player%} is set:
  180.         if {suffix::%uuid of player%} is set:
  181.             broadcast "&8≫&a&lチャット &7≫%{prefix::%uuid of player%}% &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
  182.         else:
  183.             broadcast "&8≫&a&lチャット &7≫%{prefix::%uuid of player%}% &f%player%&a: &f&l%message%"
  184.     else:
  185.         if {suffix::%uuid of player%} is set:
  186.             broadcast "&8≫&a&lチャット &7≫ &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
  187.         else:
  188.             broadcast "&8≫&a&lチャット &7≫ &f%player%&a: &f&l%message%"
  189.  
  190. #===============================================================#
  191. #-Mute-
  192. #===============================================================#  
  193.  
  194. on chat:
  195.     if {mute::%uuid of player%} is true:
  196.         if {checkchat::%player%} is more than 5:
  197.             kick the player due to "{@mute_} あなたはMuteされている時にチャットをしたためKickされました。"
  198.             set {checkchat::%player%} to 0
  199.             stop
  200.        
  201.  
  202.  
  203. command /mute [<offline player>] [<text>] :
  204.     permission: skript
  205.     trigger:
  206.         if arg-1 is set:
  207.             if arg-2 is set:
  208.                 set {mute::%uuid of arg-1%} to true
  209.                 broadcast "%arg-1%&6が%player%&cによってミュートされました"
  210.                 broadcast "理由: %arg-2% "
  211.         if arg-1 is not set:
  212.             send "使い方: /mute k2R_Options Spam"
  213.  
  214. command /mute-check [<offline player>]:
  215.     trigger:
  216.         send "MUTE: %arg-1% %{mute::%uuid of arg-1%}%"
  217.  
  218. command /unmute [<offline player>] [<text>]:
  219.     permission: skript
  220.     trigger:
  221.         if arg-1 is set:
  222.             if arg 2 is set:
  223.                 set {mute::%uuid of arg-1%} to false
  224.                 broadcast "%arg-1%&6は&c%player%によってミュート解除されました"
  225.                 broadcast "理由: %arg-2% "
  226.         if arg-1 is not set:
  227.             send "使い方: /unmute k2R_Options 反省した"
  228.  
  229.  
  230. #===============================================================#
  231. #-Rank-Set-
  232. #===============================================================#    
  233.  
  234. command /prefix [<offline player>] [<text>]:
  235.     permission: skript
  236.     permission message: あなたは権限を持っていません。
  237.     trigger:
  238.         set {prefix::%uuid of arg-1%} to colored arg-2
  239.         send "&b%arg 1% の前を %colored arg 2% &bにしました!"
  240.  
  241. command /clearprefix [<offline player>]:
  242.     permission: skript
  243.     permission message: あなたは権限を持っていません。
  244.     trigger:
  245.         clear {prefix::%uuid of arg-1%}
  246.         send "&b%arg 1% の称号をリセットしました。"
  247.  
  248. command /suffix [<offline player>] [<text>]:
  249.     permission: skript
  250.     permission message: あなたは権限を持っていません。
  251.     trigger:
  252.         set {suffix::%uuid of arg-1%} to coloured arg-2
  253.         send "&b%arg 1% の称号を%colored arg 2% &bにしました!"
  254.  
  255. command /clearsuffix [<offline player>]:
  256.     permission: skript
  257.     permission message: あなたは権限を持っていません。
  258.     trigger:
  259.         clear {suffix::%uuid of arg-1%}
  260.         send "&b%arg 1% の称号をリセットしました。"
  261.  
  262. command /prefixhelp:
  263.     permission: skript
  264.     permission message: あなたは権限を持っていません。
  265.     trigger:
  266.         send "&6&m================================="
  267.         send "&b&lPREFIX &eSKRIPT Version:1.12.2   "
  268.         send "&b&l/prefix (名前) (称号)             "
  269.         send "&b&l/clearprefix (名前)               "
  270.         send "&b&l/suffix (名前) (称号)          "
  271.         send "&b&l/clearsuffix (名前)"
  272.         send "&b&l/mute (名前) (理由)"
  273.         send "&b&l/unmute (名前) (理由)"
  274.         send "&b&l/mute-check"
  275.         send "&6&m================================="
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top