SHARE
TWEET

Untitled

K2Rk1o Nov 30th, 2018 (edited) 101 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: 800
  15.     lvlupreward: iron_ingot
  16.     #---------------------------------------------------------------------------
  17.    
  18.     #---------------------------------------------------------------------------
  19.     #----------------------------------MaxLvL-----------------------------------
  20.     maxlvl: 300
  21.     #---------------------------------------------------------------------------
  22.  
  23.  
  24. #------------------------------------------------------------
  25. #                 first status options
  26. #------------------------------------------------------------
  27.  
  28. variables:
  29.     {lvl.%player%} = 1
  30.     {xp.%player%} = 0
  31.  
  32. #------------------------------------------------------------
  33. #                 Player Leveling System
  34. #------------------------------------------------------------
  35.  
  36. on any movement:
  37.     if {@playerleveling} is true:
  38.         if {xp.%player%} is greater or equal to {@xpforlvlup}:
  39.             if {lvl.%player%} is greater or equal to {@maxlvl}:
  40.                 stop
  41.             else:
  42.                 remove {@xpforlvlup} from {xp.%player%}
  43.                 add 1 to {lvl.%player%}
  44.                 send "{@log} &e&lレベルUP!現在の&a&lLV: &b%{lvl.%player%}%" to player
  45.                 execute console command "/give %player% {@lvlupreward}"
  46.                 stop
  47.  
  48. command /resetstatus [<offline player>]:
  49.     permission: skript.homo
  50.     trigger:
  51.         if arg-1 is not set:
  52.             set {lvl.%player%} to 1
  53.             set {xp.%player%} to 0
  54.             send "%player%のステータスをリセットしました"
  55.         if arg-1 is set:
  56.             set {lvl.%arg-1%} to 1
  57.             set {xp.%arg-1%} to 0
  58.             send "%arg-1%のステータスをリセットしました"
  59.  
  60. on death:
  61.     victim is a player
  62.     attacker is a player
  63.     add 5 to {xp.%attacker%}
  64.     send "&a+ &e5xp"
  65.  
  66. #-------------------------------------------------------
  67. # side bar
  68. #-------------------------------------------------------
  69.  
  70. every 2 second:
  71.     loop all players:
  72.         wipe loop-player's sidebar
  73.         set name of sidebar of loop-player to "&3&lannko"
  74.         set score "  &b&lLV: %{lvl.%loop-player%}%" in sidebar of loop-player to 10
  75.         set score "  &a&lEXP: %{xp.%loop-player%}%" in sidebar of loop-player to 9
  76.         set score "  &e&l" in sidebar of loop-player to 8
  77.         set score "  &e" in sidebar of loop-player to 7
  78.         set score "  &5&lお知らせ:" in sidebar of loop-player to 6
  79.         set score "  &a&l" in sidebar of loop-player to 5
  80.         set score "  &c&l" in sidebar of loop-player to 4
  81.         set score "  &5&l" in sidebar of loop-player to 3
  82.         set score "  &3&l" in sidebar of loop-player to 2
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