Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Leveling script for PvP by Greqtest.
- on first join:
- set {level.%player's uuid%} to 1
- set {xp.%player's uuid%} to 1
- set {xpNeeded.%player's uuid%} to 5
- on death of player:
- if attacker is a player:
- if attacker has permission "xpmult.2":
- add 2 to {xp.%attacker's uuid%}
- send "&a+2 XP (Kill)" to attacker
- else:
- add 1 to {xp.%attacker's uuid%}
- send "&a+1 XP (Kill)" to attacker
- on death of player:
- if attacker is a player:
- if {xp.%attacker's uuid%} = {xpNeeded.%attacker's uuid%}:
- add 1 to {level.%attacker's uuid%}
- send attacker title "&e&lLEVEL UP" with subtitle &aNew Level: &7%{level.%attacker's uuid%}%" for 5 seconds
- stop
- if {level.%attacker's uuid%} < 5:
- set {xpNeeded.%attacker's uuid%} to 5
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} is between 5 and 9:
- set {xpNeeded.%attacker's uuid%} to 10
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} is between 10 and 14:
- set {xpNeeded.%attacker's uuid%} to 15
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} is between 15 and 19:
- set {xpNeeded.%attacker's uuid%} to 20
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} is between 20 and 24:
- set {xpNeeded.%attacker's uuid%} to 25
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} is between 20 and 24:
- set {xpNeeded.%attacker's uuid%} to 30
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} is between 25 and 29:
- set {xpNeeded.%attacker's uuid%} to 35
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} is between 30 and 34:
- set {xpNeeded.%attacker's uuid%} to 40
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} is between 35 and 39:
- set {xpNeeded.%attacker's uuid%} to 45
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} is between 40 and 44:
- set {xpNeeded.%attacker's uuid%} to 50
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} is between 45 and 49:
- set {xpNeeded.%attacker's uuid%} to 55
- set {xp.%attacker's uuid%} to 0
- stop
- if {level.%attacker's uuid%} > 50:
- set {xpNeeded.%attacker's uuid%} to 60
- set {xp.%attacker's uuid%} to 0
- stop
- # PRESTIGES BELOW
- if {level.%attacker's uuid%} = 100:
- add 1 to {prestige.%attacker's uuid%}
- set {xpNeeded.%attacker's uuid%} to 5
- set {xp.%attacker's uuid%} to 0
- command /level [<offlineplayer=%player%>]:
- usage: &c/level <player>
- trigger:
- if arg-1 is not set:
- send "&7&m--------------------" to player
- send "&eCurrent Level&7: %{level.%player's uuid%}%" to player
- send "&eNext Level&7: %{nextLevel.%player's uuid%}%" to player
- send "&eProgress&7: PROGRESS" to player # NEED A WAY To GET A PERCENTAGE OF THE WAY TO NEXT LEVEL
- send "&7&m--------------------" to player
- else:
- send "&7&m--------------------" to player
- send "&eCurrent Level&7: %{level.%arg-1's uuid%}%" to player
- send "&eNext Level&7: %{nextLevel.%arg-1's uuid%}%" to player
- send "&eProgress&7: PROGRESS" to player # NEED A WAY To GET A PERCENTAGE OF THE WAY TO NEXT LEVEL
- send "&7&m--------------------" to player
- command /adminlevel [<offlineplayer=%player%>]:
- usage: &c/adminlevel <player>
- trigger:
- if arg-1 is not set:
- send "&7&m--------------------" to player
- send "&eLevel&7: %{level.%player's uuid%}%" to player
- send "&eXP&7: %{xp.%player's uuid%}%" to player
- send "&eXP Needed:&7: %{xpNeeded.%player's uuid%}%" to player # NEED A WAY To GET A PERCENTAGE OF THE WAY TO NEXT LEVEL
- send "&7&m--------------------" to player
- else:
- send "&7&m--------------------" to player
- send "&eLevel&7: %{level.%arg-1's uuid%}%" to player
- send "&eXP&7: %{xp.%arg-1's uuid%}%" to player
- send "&eXP Needed:&7: %{xpNeeded.%arg-1's uuid%}%" to player # NEED A WAY To GET A PERCENTAGE OF THE WAY TO NEXT LEVEL
- send "&7&m--------------------" to player
- command /resetlevel [<offlineplayer=%player%>]:
- trigger:
- if arg-1 is not set:
- set {xp.%player's uuid%} to 1
- set {level.%player's uuid%} to 1
- set {prestige.%player's uuid%} to 0
- else:
- set {xp.%arg-1's uuid%} to 1
- set {level.%arg-1's uuid%} to 1
- set {prestige.%arg-1's uuid%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement