SHARE
TWEET

Untitled

K2Rk1o Dec 21st, 2018 (edited) 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     #-------------------LOG-------------------#
  3.     #LVLUP時の最初のメッセージに
  4.     log: &8&l[&6&lLevel&f&l-&a&lSystem&8&l]
  5.     #-----------------------------------------#
  6.    
  7.     #------------------Types------------------#
  8.     playerleveling: true
  9.     #LVを名前の前に表示します 例: [LV:1] k1Ok2R
  10.     prefix: false
  11.     prefixmsg: &8&l[&a&lLV&e&l:&6&l%{lvl.%player%}%&8&l]
  12.     #LVを名前の後に表示します 例: k1Ok2R [LV:1]
  13.     suffix: true
  14.     suffixmsg: &2&l[&a&lLV&e&l:&6&l%{lvl.%player%}%&2&l]
  15.     #-----------------------------------------#
  16.  
  17.     #------------------Level------------------#
  18.     #レベルUPに必要なXPを設定できます
  19.     xpforlvlup: 500
  20.     #最大LVを設定できます
  21.     maxlvl: 100
  22.     #-----------------------------------------#
  23.  
  24. variables:
  25.     {lvl::%player%} = 1
  26.     {xp::%player%} = 0
  27.     {sp::%player%} = 1
  28.     {str::%player%} = 0
  29.     {def::%player%} = 0
  30.     {spd::%player%} = 0
  31.     {up::%player%} = 21
  32.  
  33. command /rpg-status-reset [<offline player>]:
  34.     permission: k2Rsk
  35.     trigger:
  36.         if arg-1 is not set:
  37.             set {lvl::%player%} to 1
  38.             set {xp::%player%} to 0
  39.             set {sp::%player%} to 1
  40.             set {str::%player%} to 0
  41.             set {def::%player%} to 0
  42.             set {spd::%player%} to 0
  43.             set {up::%player%} to 25
  44.             execute console command "effect %player% clear"
  45.             send "{@log}&e%player%のステータスをリセットしました"
  46.         if arg-1 is set:
  47.             set {lvl::%arg-1%} to 1
  48.             set {xp::%arg-1%} to 0
  49.             set {sp::%arg-1%} to 1
  50.             set {str::%arg-1%} to 0
  51.             set {def::%arg-1%} to 0
  52.             set {spd::%arg-1%} to 0
  53.             set {up::%arg-1%} to 25
  54.             execute console command "effect %arg-1% clear"
  55.             send "{@log}&e%arg-1%のステータスをリセットしました"
  56.  
  57.  
  58. #----------------------------------------------------------------------------------------------------
  59. on any movement:
  60.     if {@suffix} is true:
  61.         set {suffix::%uuid of player%} to " &8&l[&e&l%{lvl::%player%}%&8&l]"
  62.  
  63. on any movement:
  64.     if {@playerleveling} is true:
  65.         set the player's tablist name to "&7&l≫%{prefix::%uuid of player%}% &6&lLevel&f&l:&e&l%{lvl::%player%}% &f%player%"
  66.         set display name of player to "&7&l≫%{prefix::%uuid of player%}% &6&lLevel&f&l:&e&l%{lvl::%player%}% &f%player%"
  67.  
  68.  
  69. on any movement:
  70.     if {@playerleveling} is true:
  71.         set tab header to "&d>>&f&lJ&e&l-&d&lRPG&d<<" and footer to "&6playerrealms.com &a%number of all players%&7/15" for player
  72.  
  73.  
  74. on any movement:
  75.     if {@playerleveling} is true:
  76.         if {xp::%player%} is greater or equal to {up::%player%}:
  77.             if {lvl::%player%} is greater or equal to {@maxlvl}:
  78.                 stop
  79.             else:
  80.                 add 1 to {lvl::%player%}
  81.                 add 1 to {sp::%player%}
  82.                 add 50 to {up::%player%}
  83.                 set {xp::%player%} to 0
  84.                 send "{@log} &e&lレベルUP!現在の&a&lLV: &b%{lvl::%player%}%"
  85.                 stop
  86.  
  87. #----------------------------------------------------------------------------------------------------
  88.  
  89. on chat:
  90.     cancel event
  91.     if {prefix::%uuid of player%} is set:
  92.         if {suffix::%uuid of player%} is set:
  93.             broadcast "%{prefix::%uuid of player%}%%player%%{suffix::%uuid of player%}% &f≫ &b&l%message%"
  94.         else:
  95.             broadcast "%{prefix::%uuid of player%}%%player% &f≫ &b&l%message%"
  96.     else:
  97.         if {suffix::%uuid of player%} is set:
  98.             broadcast "&7%player%%{suffix::%uuid of player%}% &f≫ &b&l%message%"
  99.         else:
  100.             broadcast "&7%player% &f≫ &b&l%message%"
  101.  
  102. command /prefix [<offline player>] [<text>]:
  103.     permission: admin
  104.     permission message: あなたは権限を持っていません。
  105.     trigger:
  106.         set {prefix::%uuid of arg-1%} to colored arg-2
  107.         send "&b%arg 1% の前を %colored arg 2% &bにしました!"
  108.  
  109. command /clearprefix [<offline player>]:
  110.     permission: admin
  111.     permission message: あなたは権限を持っていません。
  112.     trigger:
  113.         clear {prefix::%uuid of arg-1%}
  114.         send "&b%arg 1% の称号をリセットしました。"
  115.  
  116. command /suffix [<offline player>] [<text>]:
  117.     permission: admin
  118.     permission message: あなたは権限を持っていません。
  119.     trigger:
  120.         set {suffix::%uuid of arg-1%} to coloured arg-2
  121.         send "&b%arg 1% の称号を%colored arg 2% &bにしました!"
  122.  
  123. command /clearsuffix [<offline player>]:
  124.     permission: admin
  125.     permission message: あなたは権限を持っていません。
  126.     trigger:
  127.         clear {suffix::%uuid of arg-1%}
  128.         send "&b%arg 1% の称号をリセットしました。"
  129.  
  130. command /prefixhelp:
  131.     permission: skript.admin
  132.     permission message: あなたは権限を持っていません。
  133.     trigger:
  134.         send "&b&m================================="
  135.         send "&b&lPREFIX &eSKRIPT Version:1.12.2   "
  136.         send "&b&l/prefix (名前) (称号)             "
  137.         send "&b&l/clearprefix (名前)               "
  138.         send "&b&l/suffix (名前) (称号)          "
  139.         send "&b&l/clearsuffix (名前)"
  140.         send "&b&m================================="
  141.  
  142. #----------------------------------------------------------------------------------------------------
  143. command /rpg-status [<offline player>]:
  144.     trigger:
  145.         if arg-1 is not set:
  146.             open chest with 3 row named "&e&l%player%'s &6&lStatus" to player
  147.             wait 2 tick
  148.             format slot 10 of player with beacon named "&aLevel" with lore "&8[&6&l%{lvl::%player%}%&8]" to close
  149.             format slot 11 of player with emerald named "&eXP" with lore "&8[&a&l%{xp::%player%}%&8]" to close
  150.             format slot 12 of player with diamond named "&bSP" with lore "&8[&6&l%{sp::%player%}%&8]" to close
  151.             format slot 13 of player with stone sword named "&cPower" with lore "&8[&6&l%{str::%player%}%&8]" to close
  152.             format slot 14 of player with iron chestplate named "&9Defense" with lore "&8[&6&l%{def::%player%}%&8]" to close
  153.             format slot 15 of player with feather named "&bSpeed" with lore "&8[&6&l%{spd::%player%}%&8]" to close
  154.         if arg-1 is set:
  155.             open chest with 3 row named "&e&l%arg-1%'s &6&lStatus" to player
  156.             wait 2 tick
  157.             format slot 10 of player with beacon named "&aLevel" with lore "&8[&6&l%{lvl::%arg-1%}%&8]" to close
  158.             format slot 11 of player with emerald named "&eXP" with lore "&8[&a&l%{xp::%arg-1%}%&8]" to close
  159.             format slot 12 of player with diamond named "&bSP" with lore "&8[&6&l%{sp::%arg-1%}%&8]" to close
  160.             format slot 13 of player with stone sword named "&cPower" with lore "&8[&6&l%{str::%arg-1%}%&8]" to close
  161.             format slot 14 of player with iron chestplate named "&9Defense" with lore "&8[&6&l%{def::%arg-1%}%&8]" to close
  162.             format slot 15 of player with feather named "&bSpeed" with lore "&8[&6&l%{spd::%arg-1%}%&8]" to close
  163. #----------------------------------------------------------------------------------------------------
  164. command /rpg-status-up:
  165.     trigger:
  166.         open chest with 1 row named "&a&lStatus&f-&e&ldistribution" to player
  167.         wait 2 tick
  168.         format slot 1 of player with stone sword named "&cPower" to run [execute player command "rpg-status-up-str"]
  169.         format slot 2 of player with iron chestplate named "&9Defense" to run [execute player command "rpg-status-up-def"]
  170.         format slot 3 of player with feather named "&bSpeed" to run [execute player command "rpg-status-up-speed"]
  171.         format slot 8 of player with diamond named "&bSP" with lore "&8[&a&l%{sp.%player%}%&8]" to close
  172.  
  173. #----------------------------------------------------------------------------------------------------
  174. command /rpg-status-up-str:
  175.     trigger:
  176.         if {sp::%player%} = 0:
  177.             message "&cSPがたりません" to player
  178.             stop
  179.         else:
  180.             add -1 to {sp::%player%}
  181.             add 1 to {str::%player%}
  182.             message "&estrに1SP割り振りました" to player
  183.             execute player command "rpg-status-up"
  184.  
  185. command /rpg-status-up-def:
  186.     trigger:
  187.         if {sp::%player%} = 0:
  188.             message "&cSPがたりません" to player
  189.             stop
  190.         else:
  191.             add -1 to {sp::%player%}
  192.             add 1 to {def::%player%}
  193.             message "&edefに1SP割り振りました" to player
  194.             execute player command "rpg-status-up"
  195.  
  196. command /rpg-status-up-speed:
  197.     trigger:
  198.         if {sp::%player%} = 0:
  199.             message "&cSPがたりません" to player
  200.             stop
  201.         else:
  202.             add -1 to {sp::%player%}
  203.             add 1 to {spd::%player%}
  204.             message "&eSpeedに1SP割り振りました" to player
  205.             execute player command "rpg-status-up"
  206.  
  207. #--------------------------------------------------------------------------------------------------
  208. #Strength
  209. on any movement:
  210.     if {@playerleveling} is true:
  211.         if {str::%player%} is greater or equal to 1:
  212.             apply strength 1 to the player for 10 seconds
  213.            
  214. on any movement:
  215.     if {@playerleveling} is true:
  216.         if {str::%player%} is greater or equal to 20:
  217.             apply strength 2 to the player for 10 seconds
  218.  
  219. on any movement:
  220.     if {@playerleveling} is true:
  221.         if {str::%player%} is greater or equal to 50:
  222.             apply strength 3 to the player for 10 seconds
  223.  
  224. on any movement:
  225.     if {@playerleveling} is true:
  226.         if {str::%player%} is greater or equal to 100:
  227.             apply strength 4 to the player for 10 seconds
  228.  
  229. #Defense
  230.  
  231. on any movement:
  232.     if {@playerleveling} is true:
  233.         if {def::%player%} is greater or equal to 1:
  234.             apply resistance 1 to the player for 10 seconds
  235.  
  236. on any movement:
  237.     if {@playerleveling} is true:
  238.         if {def::%player%} is greater or equal to 20:
  239.             apply resistance 2 to the player for 10 seconds
  240.  
  241. on any movement:
  242.     if {@playerleveling} is true:
  243.         if {def::%player%} is greater or equal to 50:
  244.             apply resistance 3 to the player for 10 seconds
  245.  
  246. on any movement:
  247.     if {@playerleveling} is true:
  248.         if {def::%player%} is greater or equal to 100:
  249.             apply resistance 4 to the player for 10 seconds
  250.  
  251. #speed
  252. on any movement:
  253.     if {@playerleveling} is true:
  254.         if {spd::%player%} is greater or equal to 1:
  255.             apply speed 1 to the player for 10 seconds
  256.  
  257. on any movement:
  258.     if {@playerleveling} is true:
  259.         if {spd::%player%} is greater or equal to 100:
  260.             apply speed 2 to the player for 10 seconds
  261.  
  262. #---------------------------------------------------------------------------------------------------
  263. options:
  264.     zombie: 5
  265.     skeleton: 10
  266.     creeper: 7
  267.     spider: 12
  268.     enderman: 20
  269.     witch: 14
  270.     blaze: 24
  271.     zombie pigman: 30
  272.     slime: 2
  273.    
  274. on death of a slime:
  275.     if {@playerleveling} is true:
  276.         if attacker is a player:
  277.             add {@slime} to {xp::%attacker%}
  278.             send "{@log}&b{@slime}&6EXP" to the attacker
  279.             send "&6%player%'s &a&lEXP&f: &e&l%{xp::%attacker%}%"
  280.  
  281. on death of a zombie:
  282.     if {@playerleveling} is true:
  283.         if attacker is a player:
  284.             add {@zombie} to {xp::%attacker%}
  285.             send "{@log}&b{@zombie}&6EXP" to the attacker
  286.             send "&6%player%'s &a&lEXP&f: &e&l%{xp::%attacker%}%"
  287.  
  288. on death of a skeleton:
  289.     if {@playerleveling} is true:
  290.         if attacker is a player:
  291.             add {@skeleton} to {xp::%attacker%}
  292.             send "{@log}&b{@skeleton}&6EXP" to the attacker
  293.             send "&6%player%'s &a&lEXP&f: &e&l%{xp::%attacker%}%"
  294.  
  295. on death of a creeper:
  296.     if {@playerleveling} is true:
  297.         if attacker is a player:
  298.             add {@creeper} to {xp.%attacker%}
  299.             send "{@log}&b{@creeper}&6EXP" to the attacker
  300.             send "&6%player%'s &a&lEXP&f: &e&l%{xp::%attacker%}%"
  301.  
  302. on death of a spider:
  303.     if {@playerleveling} is true:
  304.         if attacker is a player:
  305.             add {@spider} to {xp::%attacker%}
  306.             send "{@log}&b{@spider}&6EXP" to the attacker
  307.             send "&6%player%'s &a&lEXP&f: &e&l%{xp::%attacker%}%"
  308.  
  309. on death of a enderman:
  310.     if {@playerleveling} is true:
  311.         if attacker is a player:
  312.             add {@enderman} to {xp::%attacker%}
  313.             send "{@log}&b{@enderman}&6EXP" to the attacker
  314.             send "&6%player%'s &a&lEXP&f: &e&l%{xp::%attacker%}%"
  315.  
  316. on death of a witch:
  317.     if {@playerleveling} is true:
  318.         if attacker is a player:
  319.             add {@witch} to {xp::%attacker%}
  320.             send "{@log}&b{@witch}&6EXP" to the attacker
  321.             send "&6%player%'s &a&lEXP&f: &e&l%{xp::%attacker%}%"
  322.  
  323. on death of a blaze:
  324.     if {@playerleveling} is true:
  325.         if attacker is a player:
  326.             add {@blaze} to {xp::%attacker%}
  327.             send "{@log}&b{@blaze}&6EXP" to the attacker
  328.             send "&6%player%'s &a&lEXP&f: &e&l%{xp::%attacker%}%"
  329.  
  330. on death of a zombie pigman:
  331.     if {@playerleveling} is true:
  332.         if attacker is a player:
  333.             add {@zombie pigman} to {xp::%attacker%}
  334.             send "{@log}&b{@zombie pigman}&6EXP" to the attacker
  335.             send "&6%player%'s &a&lEXP&f: &e&l%{xp::%attacker%}%"
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