Advertisement
upoupo0201

Untitled

Mar 20th, 2022
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on left click:
  2. if player is holding bow:
  3. if {eshot.%player%} is true:
  4. if {cooldown.%player%} is false:
  5. shoot arrow from player at speed 2
  6. set {explode.%player%} to true
  7. set {cooldown.%player%} to true
  8. wait 3 seconds
  9. set {cooldown.%player%} to false
  10. if {cooldown.%player%} isn't set:
  11. set {cooldown.%player%} to false
  12. if {cooldown.%player%} is true:
  13. if {eshot.%player%} is true:
  14. message "&4you have to wait for %{cooldown.%player%}% seconds"
  15. stop
  16. on projectile hit:
  17. if projectile is an arrow:
  18. if {explode.%shooter%} is true:
  19. create a safe explosion of force 2 at projectile
  20. set {explode.%shooter%} to false
  21. delete projectile
  22. stop
  23.  
  24. on left click:
  25. if player is holding bow:
  26. if {sshot.%player%} is true:
  27. if{cooldown2.%player%} is false:
  28. shoot arrow from player at speed 2
  29. set {stun.%player%} to true
  30. set {cooldown2.%player%} to true
  31. wait 10 seconds
  32. set {cooldown2.%player%} to true
  33. if {cooldown2.%player%} isn't set:
  34. set {cooldown2.%player%} to false
  35. if {cooldown2.%player%} is true:
  36. if {sshot.%player%} is true:
  37. message "&4you have to wait for %{cooldown.%player%}% seconds"
  38. stop
  39.  
  40. on damage:
  41. if event-projectile is arrow:
  42. if {sshot.%attacker%} is true:
  43. apply jump boost 128 for 2 seconds to victim
  44. apply slowness 127 for 2 seconds to victim
  45. apply weakness 128 for 2 seconds to victim
  46.  
  47.  
  48. on join:
  49. set {explode.%player%} to false
  50. set {cooldown.%player%} to false
  51. set {cooldown2.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement