tsutitire2

Untitled

Jun 10th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. Variables:
  2. {%player%.tsutikill} = 0
  3. {%player%.Himakill} = 0
  4.  
  5. on death:
  6. If victim is a player:
  7. If attacker is a player:
  8. set {%attacker%.tsutikill} to {%attacker%.tsutikill} + 20 + {%victim%.Himakill} * 0.1
  9. if {%attacker%.kc} is more than 3:
  10. set {%attacker%.tsutikill} to {%attacker%.tsutikill} + {%attacker%.kc} * 1
  11. if {%victim%.kc} is more than 3:
  12. set {%attacker%.tsutikill} to {%attacker%.tsutikill} + {%victim%.kc} * 5
  13. If {%attacker%.tsutikill} is more than {%attacker%.Himakill} * 100:
  14. add 1 to {%attacker%.Himakill}
  15. set {%attacker%.tsutikill} to 0
  16. set {%attacker%.nname} to "%attacker's tablist name%&7[Lv.%{%attacker%.Himakill}%]"
  17. set the attacker's tablist name to "%{%attacker%.nname}%"
  18. message "&2&l[LvUP]&a&lレベルアップしました! &7現在のレベル・&6%{%attacker%.Himakill}%" to the attacker
  19. If {%attacker%.Himakill} is 100:
  20. broadcast "&2&l[LvUP]&a&l%attacker%さんがLv100になりました!"
  21. If {%attacker%.Himakill} is 200:
  22. broadcast "&2&l[LvUP]&a&l%attacker%さんがLv200になりました!"
  23. If {%attacker%.Himakill} is 300:
  24. broadcast "&2&l[LvUP]&a&l%attacker%さんがLv300になりました!"
  25. command /lvu <player> <integer>:
  26. permission: skript.admin
  27. trigger:
  28. set {%arg-1%.Himakill} to {%arg-1%.Himakill} + arg-2
  29. set {%arg-1%.nname} to "%arg-1's name%&7Lv.%{%arg-1%.Himakill}%"
  30. message "&2&l[LvUP]&a&l%player%によってlv.%arg-2%アップしました! &r&7現在のレベル・&6%{%arg-1%.Himakill}%" to the arg-1
  31. If {%arg-1%.Himakill} is 100:
  32. broadcast "&2&l[LvUP]&a&l%arg-1%さんがLv100になりました!"
  33. If {%arg-1%.Himakill} is 200:
  34. broadcast "&2&l[LvUP]&a&l%arg-1%さんがLv200になりました!"
  35. If {%arg-1%.Himakill} is 300:
  36. broadcast "&2&l[LvUP]&a&l%arg-1%さんがLv300になりました!"
  37.  
  38. command /lvd <player> <integer>:
  39. permission: skript.admin
  40. trigger:
  41. set {%arg-1%.Himakill} to {%arg-1%.Himakill} - arg-2
  42. set {%arg-1%.nname} to "%arg-1's name%&7Lv.%{%arg-1%.Himakill}%"
  43. message "&2&l[LvDW]&a&l%player%によってlv.%arg-2%ダウンしました &r&7現在のレベル・&6%{%arg-1%.Himakill}%" to the arg-1
  44. command /lvl <player>:
  45. trigger:
  46. message "%arg 1%'s level is now %{%arg 1%.Himakill}%"
  47. set arg 1's tablist name to "%{%arg 1%.nname}%"
Add Comment
Please, Sign In to add comment