Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. on death of player:
  2. if {speed.%attacker's uuid%} is true:
  3. apply speed 1 to the attacker for 5 seconds
  4. if {speed.%attacker's uuid%} is false:
  5. stop
  6. if {health.%attacker's uuid%} is true:
  7. heal the attacker by 3 hearts
  8.  
  9. command /killeffects:
  10. permission: killeffects.shop
  11. trigger:
  12. open chest with 1 row named "&cKill Effect Shop" to player
  13. format slot 0 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  14. format slot 1 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  15. format slot 2 of player with feather named "&bSwiftness" with lore "&a300$" to close then run [execute console command "pex user %player% add killeffects.speed"]->[execute player command "killeffectspeed"]
  16. format slot 3 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  17. format slot 4 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  18. format slot 5 of player with apple named "&cHealth" with lore "&a300$" to close then run [execute console command "pex user %player% add killeffects.health"]->[execute player command "killeffecthealth"]
  19. format slot 6 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  20. format slot 7 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  21. format slot 8 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  22.  
  23. command /killeffectspeed:
  24. permission: killeffects.speed
  25. trigger:
  26. if {purchase.speed.%player's uuid%} is true:
  27. send "&aYou have selected the &bSwiftness&c kill effect."
  28. set {health.%player's uuid%} to false
  29. set {speed.%player's uuid%} to true
  30. execute console command "pex user %player% remove killeffect.speed"
  31. stop
  32. if player's balance is less than 299:
  33. send "&cYou need 300$ to purchase the &bSwiftness&c kill effect."
  34. execute console command "pex user %player% remove killeffect.speed"
  35. stop
  36. if player's balance is greater than 299:
  37. set {speed.%player's uuid%} to true
  38. set {purchase.speed.%player's uuid%} to true
  39. execute console command "eco take %player% 300"
  40. send "&cYou have purchased &bSwiftness&c kill effect for &a300$."
  41. execute console command "pex user %player% remove killeffect.speed"
  42.  
  43. command /killeffecthealth:
  44. permission: killeffect.health
  45. trigger:
  46. if {purchase.health.%player's uuid%} is true:
  47. send "&aYou have selected the &cHealth&c kill effect."
  48. set {speed.%player's uuid%} to false
  49. set {health.%player's uuid%} to true
  50. execute console command "pex user %player% remove killeffect.health"
  51. stop
  52. if player's balance is less than 299:
  53. send "&cYou need 300$ to purchase the &cHealth&c kill effect."
  54. execute console command "pex user %player% remove killeffect.health"
  55. stop
  56. if player's balance is greater than 299:
  57. set {health.%player's uuid%} to true
  58. set {purchase.health.%player's uuid%} to true
  59. execute console command "eco take %player% 300"
  60. send "&cYou have purchased &cHealth&c kill effect for &a300$."
  61. set {speed.%player's uuid%} to false
  62. execute console command "pex user %player% remove killeffect.health"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement