Jump to content

Can someone fix this skript (XP skript)


DragnB

Recommended Posts

can someone make like a XP skript for like example:

 on break of coal  ore:

  send "&bYou have gained %xp% for mining Coal Ore!"

 Like can someone make me a skript kinda like that and when you level up

you get like a paper called "&bPiece"

 and if you get to lvl 10 you get a rank called "&3Expert Miner"

Link to comment
Share on other sites

# First, a specific XP variable.

on join:

  set {xp..%player’s uuid%} to 0

  set {level..%player’s uuid%} to 1

  set {levelrq..%player’s uuid%} to 10

 

# Next, the mining.

on break of coal ore:

  add 1 to {xp..%player’s uuid%}

  send action bar “You gained 1 XP!” to player for 1 second


on join:

  while player is online:

    if {xp..%player’s uuid%} is greater than {levelrq..%player’s uuid%}:

      add 1 to {level..%player’s uuid%}
      set {levelrq..%player’s uuid%} to {levelrq..%player’s uuid%} * 2

      set {xp..%player’s uuid} to 0

 

 

 

 

 

— OMBS —

Hello. I am ombs, a chill server developer and FPS enthusiast.

Currently working on a server with a queue-style arena PVP.

Battle500 is my completed server. 
 

Have a great day!

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...