Advertisement
Zeldaboy111

Skript Tutorial #32 Blindness

Oct 21st, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. on enable:
  2. set {TrollTitle} to "&4<&cTroll&4>"
  3. set {TrollPermissionMessage} to " &4Je hebt &convoldoende rechten &4om deze command uit te voeren."
  4.  
  5. command /troll [<offline player>] [<text>] [<number>]:
  6. trigger:
  7. if player has permission "troll.*":
  8. if arg 1 is set:
  9. if arg 2 is not set:
  10. execute console command "/ctroll %player% %arg 1% 1"
  11. stop
  12. if arg 2 is "blind" OR "blindness":
  13. if arg 3 is set:
  14. if arg 3 is less than 61:
  15. execute console command "/ctroll %player% %arg 1% blindness %arg 3%"
  16. send "%{TrollTitle}% Je hebt &c%arg 1% blindness &4gegeven voor &c%arg 3% secondes&4."
  17. stop
  18. else:
  19. send "%{TrollTitle}% Je mag maximaal &c60 secondes &4invullen."
  20. stop
  21.  
  22. else:
  23. execute console command "/ctroll %player% %arg 1% blindness 10"
  24. send "%{TrollTitle}% Je hebt &c%arg 1% blindness &4gegeven voor &c10 secondes&4."
  25. stop
  26. else:
  27. send "%{TrollTitle}% Dit is geen bestaande troll"
  28. stop
  29. else:
  30. send "%{TrollTitle}% Je moet nog een &cspeler &4opgeven die je wilt trollen."
  31. stop
  32. else:
  33. send "%{TrollTitle}%%{TrollPermissionMessage}%"
  34. stop
  35.  
  36. command /ctroll <offline player> <offline player> <text> [<number>]:
  37. executable by: console
  38. trigger:
  39. if arg 3 is "1":
  40. wait 3 ticks
  41. open chest with 4 rows named "&c&lTrollmenu %arg 2%" to arg 1
  42.  
  43. format slot 13 of arg 1 with a black wool named "&4Blindness troll" with lore "&7Geeft %arg 2% een blindness effect voor 10 secondes" to close then run [execute console command "/ctroll %arg 1% %arg 2% blindness 10"]
  44.  
  45. format slot 31 of arg 1 with a barrier named "&4Sluit het menu" with lore "&7Sluit het troll menu van %arg 2%" to close
  46. format slot 32 of arg 1 with a arrow named "&4Volgende pagina" with lore "&7Ga naar de volgende pagina met trolls." to close then run [execute console command "/ctroll %arg 1% %arg 2% 2"]
  47. stop
  48. if arg 3 is "2":
  49. wait 3 ticks
  50. open chest with 4 rows named "&c&lTrollmenu %arg 2%" to arg 1
  51.  
  52. format slot 30 of arg 1 with a arrow named "&4Vorige pagina" with lore "&7Ga naar de vorige pagina uit het troll menu" to close then run [execute console command "/ctroll %arg 1% %arg 2% 1"]
  53. format slot 31 of arg 1 with a barrier named "&4Sluit het menu" with lore "&7Sluit het troll menu van %arg 2%" to close
  54. stop
  55.  
  56. if arg 3 is "blindness":
  57. if arg 4 is set:
  58. #apply blindness 1 to arg 2 for {bsec} seconds
  59. execute console command "/effect %arg 2% blindness %arg 4%"
  60. stop
  61. else:
  62. execute console command "/effect %arg 2% blindness 10"
  63. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement