kama6012

LvIsMoney

Apr 24th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. on damage:
  2. victim isn't player
  3. victim's health - damage <= 0
  4. set {_long} to 0
  5. set {_LV} to ""
  6. set {_split::*} to victim's name split at "Lv."
  7. loop length of {_split::2} times:
  8. set {_long} to {_long} + 1
  9. set {_L} to sub text of {_split::2} between {_long} and {_long}
  10. if {_L} parsed as number is number:
  11. set {_LV} to "%{_LV}%%{_L}%"
  12. else if {_L} is "§":
  13. set {_long} to {_long} + 1
  14. else if {_L} is " ":
  15. exit this loop
  16. set {_LV} to {_LV} parsed as number
  17. set {money::%attacker%} to {money::%attacker%} + {_LV}
  18.  
  19. every second:
  20. loop all players:
  21. send actionbar "&6[所持金%{money::%loop-player%}%A]" to loop-player
  22. {money::%loop-player%} is none
  23. set {money::%loop-player%} to 0
Add Comment
Please, Sign In to add comment