Advertisement
jsoichiro

level

Jun 22nd, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. on join:
  2. if {Lv::%Player%} is not set:
  3. set {nextlv.%Player%} to 5
  4. set {exp.%Player%} to 0
  5. set {Lv::%Player%} to 1
  6.  
  7. function Lvup(p: player):
  8. while {exp.%{_p}%}+1 is more than {nextlv.%{_p}%}:
  9. remove {nextlv.%{_p}%} from {exp.%{_p}%}
  10. add 1 to {Lv::%{_p}%}
  11. set {nextlv.%{_p}%} to round({nextlv.%{_p}%} * 1.2)
  12. send "&b======================" to {_p}
  13. send "&c&lLevel UP !!" to {_p}
  14. send "&7&lLevel &7&l%{Lv::%{_p}%}-1% &f→ &6&lLevel &6&l%{Lv::%{_p}%}%" to {_p}
  15. send "&b======================" to {_p}
  16.  
  17. command /gun-status:
  18. permission: admin.sk
  19. trigger:
  20. loop all Players:
  21. if {Lv::%loop-Player%} is not set:
  22. set {nextlv.%loop-Player%} to 5
  23. set {exp.%loop-Player%} to 0
  24. set {Lv::%loop-Player%} to 1
  25.  
  26. on death of Player:
  27. add 1 to {exp.%attacker%}
  28. add 4 of emerald to attacker
  29. Lvup(attacker)
  30. add 1 to {Kill.%attacker%}
  31. add 1 to {Death.%victim%}
  32. set {KD.%attacker%} to {Kill.%attacker%} / {Death.%attacker%}
  33. set {KD.%victim%} to {Kill.%victim%} / {Death.%victim%}
  34.  
  35. every 1 second:
  36. loop all Players:
  37. set action bar of loop-Player to "&e&l%loop-Player% &b&l[&f&l%{Lv::%loop-Player%}%Lv&b&l] [&f&l%{exp.%loop-Player%}%&b&l/&f&l%{nextlv.%loop-Player%}%&b&l]"
  38.  
  39. command /status:
  40. aliases: /s /st
  41. trigger:
  42. send "&b==========================" to player
  43. send "&aあなたのステータス情報" to player
  44. send "&6Lv: %{Lv::%Player%}%" to player
  45. send "&6NextLv: %{nextlv.%Player%}%" to player
  46. send "&6Death: %{Death.%Player%}%" to player
  47. send "&6Kill: %{Kill.%Player%}%" to player
  48. send "&6K/D Rate: %{KD.%Player%}%" to player
  49. send "&b==========================" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement