Advertisement
Winter__

Untitled

Aug 12th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. #KillerCaptains
  2. #By Winter
  3. #There is a few things to set up while doing this, please contact me on skype @ sketchypeanut if you need any help!
  4. #Setup Tutorial
  5.  
  6. options:
  7. P: &8[&6KillerCaptains&8]&c
  8. Op: jdawgiscute.admin
  9. PM: &4You don't have the required permission to use this command.
  10.  
  11. command /resetkillercap:
  12. permission: {@Op}
  13. permission message: {@PM}
  14. trigger:
  15. loop all players:
  16. delete {Captain.%loop-player%::*}
  17. delete {Killer.KillThem::%loop-player%}
  18. delete {Captains::%loop-player%}
  19. delete {death::*}
  20. delete {slayers::*}
  21. set {ICanAttack.yes} to "no"
  22. loop all players:
  23. add loop-player to {death::*}
  24. loop all players:
  25. set {ICanAttack.%loop-player%} to false
  26. broadcast "{@P} has been reset!"
  27. stop
  28.  
  29. command /setkiller <integer> <player>:
  30. permission: {@Op}
  31. permission message: {@PM}
  32. trigger:
  33. #Set Captain
  34. set {_captain} to arg 2
  35. set {_captainnumber} to arg 1
  36. set {Captains::%{CaptainNumber}%} to {_captainnumber}
  37. set {Killer.KillThem::%arg 1%} to {_captainnumber}
  38. add {_captain} to {Captain.%arg 2%::*}
  39. add {_captain} to {slayers::*}
  40. remove {_captain} from {death::*}
  41. broadcast "{@P} %arg 2% is Killer of Team %arg 1%!"
  42.  
  43. #Add Captain
  44. set {_killer} to arg 2
  45. set {_TeamNumber} to arg 1
  46. set {Teams.InTeam::%{_killer}%} to {_TeamNumber}
  47. add {_killer} to {Team.%{_TeamNumber}%::*}
  48. command "/scoreboard teams join UHC%{_TeamNumber}% %{_killer}%"
  49.  
  50. command /tparena:
  51. permission: {@Op}
  52. permission message: {@PM}
  53. trigger:
  54. command sender command "/freeze"
  55. loop {death::*}:
  56. execute console command "/warp deathspawn %loop-value%"
  57. loop {slayers::*}:
  58. execute console command "/warp slayersspawn %loop-value%"
  59. execute console command "/god %loop-value%"
  60. command "/give %loop-value% stone_sword 1"
  61. wait 5 seconds
  62. stop
  63.  
  64. command /startkill:
  65. permission: {@Op}
  66. permission message: {@PM}
  67. trigger:
  68. broadcast "{@P} will start in 10 seconds! Get ready to kill! (Or run!)"
  69. set {slay.inprogress} to true
  70. wait 4 seconds
  71. command sender command "/playsoundkc fireworks.launch"
  72. wait 1 second
  73. broadcast "{@P} 5..."
  74. command sender command "/playsoundkc note.harp"
  75. wait a second
  76. broadcast "{@P} 4..."
  77. command sender command "/playsoundkc note.harp"
  78. wait a second
  79. broadcast "{@P} 3..."
  80. command sender command "/playsoundkc note.harp"
  81. wait a second
  82. broadcast "{@P} 2..."
  83. command sender command "/playsoundkc note.harp"
  84. wait a second
  85. broadcast "{@P} 1..."
  86. command sender command "/freeze"
  87. command sender command "/playsoundkc note.harp"
  88. command "killcapunfreeze"
  89. wait a second
  90. broadcast "{@P} GO! Slay, slay, slay!"
  91. command "/playsoundkc mob.wither.death"
  92.  
  93. command /endkill:
  94. permission: {@Op}
  95. permission message: {@PM}
  96. trigger:
  97. command sender command "/spawn"
  98. command sender command "/tpall"
  99. broadcast "{@P} The slaying has ended! All players have been eliminated!"
  100. loop {slayers::*}:
  101. execute console command "/god %loop-value%"
  102.  
  103. command /killcapunfreeze:
  104. permission: {@Op}
  105. permission message: {@PM}
  106. trigger:
  107. loop all players:
  108. command sender command "effect %loop-player% clear"
  109.  
  110. on death of a player:
  111. if {slay.inprogress} is true:
  112. victim is in "killercaptains"
  113. attacker is in "killercaptains"
  114. if {Killer.KillThem::%attacker%} is set:
  115. set {_Player} to victim
  116. set {_Team} to {Teams.InTeam::%{_Player}%}
  117. remove {_Player} from {Team.%{_Team}%::*}
  118. delete {Teams.InTeam::%{_Player}%}
  119. command "/scoreboard teams leave %{_Player}%"
  120.  
  121. set {_dead} to victim
  122. set {_TeamNumber} to {Killer.KillThem::%attacker%}
  123. set {Teams.InTeam::%{_dead}%} to {_TeamNumber}
  124. add {_dead} to {Team.%{_TeamNumber}%::*}
  125. execute console command "/scoreboard teams join UHC%{_TeamNumber}% %{_dead}%"
  126. set {IAmDead.Dead::%victim%} to true
  127.  
  128. on respawn:
  129. wait 5 ticks
  130. {slay.inprogress} is true
  131. {IAmDead.Dead::%player%} is true
  132. execute console command "/warp killercaptains %player%"
  133. delete {IAmDead.Dead::%player%}
  134.  
  135. command /playsoundkc <text>:
  136. permission: {@Op}
  137. permission message: {@PM}
  138. trigger:
  139. loop all players:
  140. execute console command "playsound %arg 1% %loop-player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement