#XP

1 messages · Page 1 of 1 (latest)

void lagoon
#

I am trying to make a custom XP system for my server:

    if victim is a player:
        send "&c&lYou have been killed by %damager%" to victim
    if damager is a player:
        send "&c&lYou have killed %victim%" to damager
        set {_killcoins} to random integer between 10 and 20
        set {_killxp} to random integer between 5 and 10
        set {_currentxp} to {xp%{level::%uuid of player%}%::%uuid of player%}
        set {xp%{level::%uuid of player%}%::%uuid of player%} to {_currentxp} + {_killxp}```
It says: (screenshot)
I can't figure this out and I tried looking in so many places.
junior river
#

ohhh

#

use uuid of attacker not player

void lagoon
#

oh ok

#

thank you

void lagoon
#

this should fix it