PepeeYT

PEStatTrak

Mar 22nd, 2020
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. options:
  2. Version: 1.2
  3. script load:
  4. if {toolid::*} is not set:
  5. set {toolid::*} to 0
  6.  
  7. on join:
  8. if {stone::%player%} is not set:
  9. set {stone::%player%} to 0
  10. if {ores::%player%} is not set:
  11. set {ores::%player%} to 0
  12. if {kills::%player%} is not set:
  13. set {kills::%player%} to 0
  14. command /stattrak [<text>]:
  15. trigger:
  16. if arg 1 is not set:
  17. send "&8* &cPoprawne uzycie: /stattrak <kilof|miecz>"
  18. if arg 1 is "kilof":
  19. if player is holding pickaxe:
  20. send "&8* &7Utworzyles kilof &b[StatTrak]&7!"
  21. set name of player's tool to "&b[StatTrak] &eKilof"
  22. set lore of player's tool to "&8* &cO uzytkowniku:||&8* &7Wlasciciel: &e%player%||&8* &7Wykopany kamien: &e%{stone::%player%}%||&8* &7Wykopane rudy: &e%{ores::%player%}%||&8{toolid::*}"
  23. add 1 to {toolid::*}
  24. if arg 1 is "miecz":
  25. if player is holding sword:
  26. send "&8* &7Utworzyles miecz &b[StatTrak]&7!!"
  27. set name of player's tool to "&b[StatTrak] &eMiecz"
  28. set lore of player's tool to "&8* &cO uzytkowniku:||&8* &7Wlasciciel: &e%player%||&8* &7Zabojstwa: &e%{kills::%player%}%"
  29. on break of stone:
  30. if name of player's tool is "&b[StatTrak] &eKilof" or "&0[StatTrak*] &eKilof" or "&a[StatTrak*] &eKilof":
  31. add 1 to {stone::%player%}
  32. set lore of player's tool to "&8* &cO uzytkowniku:||&8* &7Wlasciciel: &e%player%||&8* &7Wykopany kamien: &e%{stone::%player%}%||&8* &7Wykopane rudy: &e%{ores::%player%}%"
  33. if {stone::%player%} >= 1000:
  34. if name of player's tool is "&b[StatTrak] &eKilof":
  35. set name of player's tool to "&0[StatTrak*] &eKilof"
  36. if {stone::%player%} < 1000:
  37. set name of player's tool to "&b[StatTrak] &eKilof"
  38. else:
  39. stop
  40. on mine of any ore:
  41. if name of player's tool is "&b[StatTrak] &eKilof" or "&0[StatTrak*] &eKilof" or "&a[StatTrak*] &eKilof":
  42. add 1 to {ores::%player%}
  43. set lore of player's tool to "&8* &cO uzytkowniku:||&8* &7Wlasciciel: &e%player%||&8* &7Wykopany kamien: &e%{stone::%player%}%||&8* &7Wykopane rudy: &e%{ores::%player%}%"
  44. if {ores::%player%} >= 1000:
  45. if name of player's tool is "&b[StatTrak] &eKilof":
  46. set name of player's tool to "&a[StatTrak*] &eKilof"
  47. if {ores::%player%} < 1000:
  48. set name of player's tool to "&b[StatTrak] &eKilof"
  49. else:
  50. stop
  51. on death:
  52. if victim is a player:
  53. if attacker is a player:
  54. if name of attacker's tool is "&b[StatTrak] &eMiecz" or "&4[StatTrak*] &eMiecz":
  55. add 1 to {kills::%attacker%}
  56. set lore of attacker's tool to "&8* &cO uzytkowniku:||&8* &7Wlasciciel: &e%attacker%||&8* &7Zabojstwa: &e%{kills::%attacker%}%||&8* &7Ostatnia ofiara: &e%victim%"
  57. if {kills::%attacker%} >= 100:
  58. if name of attacker's tool is "&b[StatTrak] &eMiecz":
  59. set name of attacker's tool to "&4[StatTrak*] &eMiecz"
  60. if {kills::%attacker%} < 100:
  61. set name of attacker's tool to "&b[StatTrak] &eMiecz"
  62. else:
  63. stop
  64.  
  65. command /test:
  66. trigger:
  67. send "%{toolid}%"
Advertisement
Add Comment
Please, Sign In to add comment