szumielxd

StatTrack

Oct 19th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. on rightclick with prismarine crystal:
  2. name of player's tool is "&cStat Track":
  3. cancel event
  4. {stattrack.%player%} is true:
  5. send "&4[&cStatTrack&4] &cale lepiej najpierw uzyc jednego stattracka"
  6. stop
  7. set {stattrack.%player%} to true
  8. wait 1 tick
  9. remove 1 of event-item from player's inventory
  10. send "&4[&cStatTrack&4] &eKliknij PPM trzymajac w rece przedmiot na ktory chcesz zalozyc Stat Trackera"
  11.  
  12. on rightclick:
  13. type of player's tool is prismarine crystal:
  14. name of player's tool is "&cStat Track":
  15. stop
  16. {stattrack.%player%} is true:
  17. 1st line of lore of player's tool contains "&e&lKille: ":
  18. send "&4[&cStatTrack&4] &cStat Track zalozony na Stat Tracka? Moze lepiej nie..."
  19. stop
  20. set {_i} to type of event-item
  21. set lore of {_i} to "&e&lKille: &a0||%lore of player's tool%"
  22. name of player's tool is not set:
  23. set name of {_i} to "&4&l☢ Stat Track ☢"
  24. else:
  25. set name of {_i} to "%name of player's tool% &4&l☢ Stat Track ☢"
  26. remove 1 of event-item from player's inventory
  27. delete {stattrack.%player%}
  28. give player 1 of {_i}
  29. send "&4[&cStatTrack&4] &6Pomyslnie dodano Stat Trackera do przedmiotu w rece"
  30.  
  31. on death of player:
  32. "%type of attacker%" is "player":
  33. first 10 characters of 1st line of lore of attacker's tool is "&e&lKille:":
  34. name of attacker's tool do not contain "&4&l☢ Stat Track ☢":
  35. name of attacker's tool is not set:
  36. set name of attacker's tool to "&4&l☢ Stat Track ☢"
  37. else:
  38. set name of attacker's tool to "%name of attacker's tool% &r&4&l☢ Stat Track ☢"
  39. set {_t} to "%attacker's tool%"
  40. set {_t} to first character of {_t} parsed as integer
  41. {_t} is integer:
  42. send "&cStatSrack dziala tylko kiedy w rece trzymasz jeden przedmiot" to attacker
  43. stop
  44. set {_lore} to 1st line of lore of attacker's tool
  45. replace first 13 characters of {_lore} with "" in {_lore}
  46. set {_kills} to {_lore} parsed as integer
  47. add 1 to {_kills}
  48. {_kills} is bigger than 500:
  49. {_kills} is bigger than 800:
  50. last 9 characters of name of attacker's tool is not "&6&lҳ̸Ҳ̸ҳ":
  51. set name of attacker's tool to "%name of attacker's tool% &6&lҳ̸Ҳ̸ҳ"
  52. set 1st line of lore of attacker's tool to "&e&lKille: &4%{_kills}%"
  53. stop
  54. {_kills} is bigger than 200:
  55. set 1st line of lore of attacker's tool to "&e&lKille: &3%{_kills}%"
  56. stop
  57. {_kills} is bigger than 100:
  58. set 1st line of lore of attacker's tool to "&e&lKille: &2%{_kills}%"
  59. stop
  60. {_kills} is bigger than 30:
  61. set 1st line of lore of attacker's tool to "&e&lKille: &c%{_kills}%"
  62. stop
  63. {_kills} is bigger than 10:
  64. set 1st line of lore of attacker's tool to "&e&lKille: &b%{_kills}%"
  65. stop
  66. {_kills} is set:
  67. set 1st line of lore of attacker's tool to "&e&lKille: &a%{_kills}%"
  68. stop
  69.  
  70. on chat:
  71. if last 9 characters of name of player's tool is "&6&lҳ̸Ҳ̸ҳ":
  72. set player's prefix to "%player's prefix%&6&lҳ̸Ҳ̸ҳ "
  73. else:
  74. if player's prefix contains "&6&lҳ̸Ҳ̸ҳ ":
  75. set {_p} to player's prefix
  76. replace every "&6&lҳ̸Ҳ̸ҳ " with "" in {_p}
  77. set player's prefix to {_p}
Advertisement
Add Comment
Please, Sign In to add comment