Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function XP(p: player):
- set {_uuid} to uuid of {_p}
- loop 120 times:
- if {%{_uuid}%::XP} >= {%{_uuid}%::maxXP}:
- add 1 to {%{_uuid}%::lv}
- subtract {%{_uuid}%::maxXP} from {%{_uuid}%::XP}
- set {%{_uuid}%::maxXP} to floor(needXP({_p}))
- else if {%{_uuid}%::XP} < {%{_uuid}%::maxXP}:
- stop loop
- function needXP(p: player) :: number:
- set {_uuid} to uuid of {_p}
- return {%{_uuid}%::maxXP}+50*({%{_uuid}%::maxXP}/1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement