Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. options:
  2. P : &8[&aDolls&8]
  3. Correct: /dolls <set/reset/enable/disable/list/class>
  4. ChatColour: &b
  5. HighlightColour: &e
  6.  
  7. command /dolls [<text>]:
  8. permission: skript.dolls
  9. trigger:
  10. if arg 1 is not set:
  11. message "{@P} {@ChatColour}{@Correct}" to command sender
  12. execute console command "playsound random.break %command sender%"
  13. if arg 1 is "reset":
  14. #Deletes Previous Settings
  15. delete {Team.Bount::*}
  16. delete {Team.Doll::*}
  17. delete {_bount}
  18. delete {_doll}
  19. delete {bounts::*}
  20. delete {dolls::*}
  21. loop all players:
  22. delete {class.%loop-player%::*}
  23. broadcast "{@P} {@ChatColour}Dolls reset!"
  24.  
  25.  
  26. if arg-1 is "set":
  27. #Sets the new Dolls/Bounts
  28. if {Teams::*} is not set:
  29. message "{@P} {@ChatColour}No teams are set!"
  30. broadcast "{@P} {@ChatColour}Setting classes!"
  31. loop {Teams::*}:
  32. set {_PlayerPot.%loop-value%::*} to {Team.%loop-value%::*}
  33.  
  34.  
  35. #Set a Random Bount
  36. set {_bount} to (random element out of {_PlayerPot.%loop-value%::*})
  37. set {Iam.Bount::%{_bount}%} to loop-value
  38. set {Bount.TeamBount::%loop-value%} to {_bount}
  39. remove {_bount} from {_PlayerPot.%loop-value%::*}
  40. add {_bount} to {bounts::*}
  41. remove speed from {_bount}
  42. remove weakness from {_bount}
  43.  
  44.  
  45. #Set a Random Doll
  46. set {_doll} to (random element out of {_PlayerPot.%loop-value%::*})
  47. set {Team.Doll::%{_doll}%} to loop-value
  48. set {Doll.TeamDoll::%loop-value%} to {_doll}
  49. remove {_doll} from {_PlayerPot.%loop-value%::*}
  50. add {_doll} to {dolls::*}
  51. remove resistance from {_doll}
  52. remove strength from {_doll}
  53.  
  54. if arg-1 is "list":
  55. loop {Team.%loop-value%::*}:
  56. set {_Player} to ("%loop-value-2%" parsed as offlineplayer)
  57. if {_Player} is online:
  58. message "{@P} {@ChatColour}Bounts: {@HighlightColour}%{_bount}%" to {_Player}
  59. message "{@P} {@ChatColour}Dolls: {@HighlightColour}%{_doll}%" to {_Player}
  60.  
  61. if arg-1 is "enable":
  62. set {dolls} to true
  63. broadcast "{@P} {@ChatColour}is now enabled!"
  64.  
  65. if arg-1 is "disable":
  66. set {dolls} to false
  67. broadcast "{@P} {@ChatColour}is now disabled!"
  68.  
  69. if arg-1 is "list":
  70. loop {bounts::*}:
  71. message "{@P} &e===={@ChatColour}Bounts&e===="
  72. message "{@P} {@ChatColour}- {@HighlightColour}%loop-value%"
  73. loop {dolls::*}:
  74. message "{@P} &e===={@ChatColour}Dolls&e===="
  75. message "{@P} {@ChatColour}- {@HighlightColour}%loop-value%"
  76.  
  77. if arg-1 is "class":
  78. if player is {bounts::*}:
  79. message "{@P} {@ChatColour}You are the {@HighlightC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement