Advertisement
TEKITOU-123

kill%

May 4th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. on damage of a player:
  2. add damage to {ATK::%victim%::%attacker%}
  3. on death of a player:
  4. set {_xp} to (100*((100+{%uuid of victim%::lv})*0.01))*ceil({%uuid of victim%::lv}/30)*{%uuid of victim%::rank}*(random number between 0.8 and 1.2)
  5. set {_g} to (100*((100+{%uuid of victim%::lv})*0.01))*ceil({%uuid of victim%::lv}/30)*{%uuid of victim%::rank}*(random number between 0.7 and 1)
  6. loop {ATK::%victim%::*}:
  7. add loop-value to {_h}
  8. loop {ATK::%victim%::*}:
  9. if attacker = (loop-index) parsed as player:
  10. set {_w} to (loop-value/{_h})
  11. set {_x} to floor({_xp}*{_w}*1.5)
  12. set {_gg} to floor({_g}*{_w}*1.5)
  13. if {%uuif of attacker%::lv} < 120:
  14. add {_x} to {%uuif of attacker%::xp}
  15. add {_gg} to {%uuif of attacker%::money}
  16. XP(attacker)
  17. send "&a&lKILL!&r&7%victim%&8(%{_w}*100%%%)&f(&a+xp%{_x}% &6+gold%{_gg}%&f)" to attacker
  18. play sound "entity.arrow.hit_player" with volume 10 and pitch 6 at player
  19. else if attacker != (loop-index) parsed as player:
  20. set {_w} to (loop-value/{_h})
  21. set {_x} to floor({_xp}*{_w})
  22. set {_gg} to floor({_g}*{_w})
  23. if {%uuid of (loop-index) parsed as player%::lv} < 120:
  24. add {_x} to {%uuid of (loop-index) parsed as player%::xp}
  25. add {_gg} to {%uuid of (loop-index) parsed as player%::money}
  26. XP((loop-index) parsed as player)
  27. send "&a&lAssist!&r&7%victim%&8(%{_w}*100%%%)&f(&a+xp%{_x}% &6+gold%{_gg}%&f)" to (loop-index) parsed as player
  28. play raw sound "entity.arrow.hit_player" at (loop-index) parsed as player with pitch 5 volume 10
  29. if attacker is set:
  30. send "&c&lDeath!&7 by %attacker%" to victim
  31. else if attacker is not set:
  32. send "&c&lDeath!&7 by unknow" to victim
  33. delete {ATK::%victim%::*}
  34. on death of player:
  35. set death message to ""
  36. command /money:
  37. trigger:
  38. send "%{%uuid of player%::money}%"
  39. every 10 minutes:
  40. delete {ATK::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement