taktie0304

Untitled

May 1st, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. options:
  2. lv.%player%: 1
  3. xp.%player%: 0
  4.  
  5. command /tbpxp [<text>] [<offline player>]:
  6. permission: skript.addxp
  7. trigger:
  8. if arg 1 is "5":
  9. if arg 2 is set:
  10. add 5 to {xp.%arg 2%}
  11. send "&75xp付与しました"
  12. if {xp.%arg 2%} >= 100:
  13. {xp.%arg 2%} = 0
  14. add 1 to {lv.%arg 2%}
  15. send "&6&l{lv.%arg 2%} &eLvにレベルアップ!"
  16.  
  17. if arg 1 is "100":
  18. if arg 2 is set:
  19. send "&7Lv1分付与しました"
  20. {xp.%arg 2%} = 0
  21. add 1 to {lv.%player%}
  22.  
  23. if arg 1 is not set:
  24. if arg 2 is set:
  25. send "&eレベル: {lv.%arg 2%}"
  26. send "&e経験値: {xp.%arg 2%}"
  27. else:
  28. send "&c使用法: /tbpxp <5/100> <player>"
  29. send "&c使用法: /tbpxp <player>"
  30.  
  31. on death of player:
  32. execute console command "tbpxp 5 %attacker%"
  33. send "&b+ 5xp"
Add Comment
Please, Sign In to add comment