Guest User

Untitled

a guest
Nov 17th, 2014
2,349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. #author=mcwnuq
  2. #ver=2.1
  3. variables:
  4. {rainbow} = false
  5. {rainbow.%player%} = false
  6. on enable:
  7. send "&7&l[&c&lT&e&lE&a&lC&9&lZ&d&lA&7&l]&f&lWlaczanie..." to console
  8. wait 20 ticks
  9. set {rainbow} to true
  10. set {red} to 255
  11. set {blue} to 0
  12. set {green} to 0
  13. wait 20 ticks
  14. send "&7&l[&c&lT&e&lE&a&lC&9&lZ&d&lA&7&l]&2&lWlaczony pomyslnie!" to console
  15. while {rainbow} is true:
  16. if {rainbow} is true:
  17. loop 255 times:
  18. if {rainbow} is true:
  19. add 1 to {green}
  20. wait a tick
  21. else:
  22. stop
  23. else:
  24. stop
  25. if {rainbow} is true:
  26. loop 255 times:
  27. if {rainbow} is true:
  28. remove 1 from {red}
  29. wait a tick
  30. else:
  31. stop
  32. else:
  33. stop
  34. if {rainbow} is true:
  35. loop 255 times:
  36. if {rainbow} is true:
  37. add 1 to {blue}
  38. wait a tick
  39. else:
  40. stop
  41. else:
  42. stop
  43. if {rainbow} is true:
  44. loop 255 times:
  45. if {rainbow} is true:
  46. remove 1 from {green}
  47. wait a tick
  48. else:
  49. stop
  50. else:
  51. stop
  52. if {rainbow} is true:
  53. loop 255 times:
  54. if {rainbow} is true:
  55. add 1 to {red}
  56. wait a tick
  57. else:
  58. stop
  59. else:
  60. stop
  61. if {rainbow} is true:
  62. loop 255 times:
  63. if {rainbow} is true:
  64. remove 1 from {blue}
  65. wait a tick
  66. else:
  67. stop
  68. else:
  69. stop
  70. stop
  71. on disable:
  72. send "&7&l[&c&lT&e&lE&a&lC&9&lZ&d&lA&7&l]&f&lWylaczanie..." to console
  73. set {rainbow} to false
  74. set {red} to 255
  75. set {blue} to 0
  76. set {green} to 0
  77. send "&7&l[&c&lT&e&lE&a&lC&9&lZ&d&lA&7&l]&2&lWlaczony pomyslnie!" to console
  78. stop
  79. command /rainbow [<text>]:
  80. permission: rainbow.use
  81. permission message: Nieznane polecenie. Wpisz "/pomoc" aby uzyskac pomoc.
  82. executable by: players
  83. trigger:
  84. if arg 1 is not set:
  85. send ""
  86. send "&3/rainbow on &7- &3wlacza efekt teczy"
  87. send "&3/rainbow off &7- &3wylacza efekt teczy"
  88. send "&3/rainbow set &7- &3daje darmowego, skorzanego seta"
  89. send ""
  90. if arg 1 is "set":
  91. if player has permission "rainbow.set":
  92. if {cooldown.%player%} is set:
  93. set {_roznica.tecza.set} to difference between {cooldown.%player%} and now
  94. if {_roznica.tecza.set} is greater than 86400 seconds:
  95. if player can hold 1 leather helmet:
  96. give 1 leather helmet of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
  97. else:
  98. drop 1 leather helmet of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
  99. if player can hold 1 leather chestplate:
  100. give 1 leather chestplate of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
  101. else:
  102. drop 1 leather chestplate of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
  103. if player can hold 1 leather leggings:
  104. give 1 leather leggings of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
  105. else:
  106. drop 1 leather leggings of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
  107. if player can hold 1 leather boots:
  108. give 1 leather boots of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
  109. else:
  110. drop 1 leather boots of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
  111. set {cooldown.%player%} to now
  112. else:
  113. send "&4Musisz odczekac jeszcze %difference between 86400 seconds and {_roznica.tecza.set}%"
  114. else:
  115. if player can hold 1 leather helmet:
  116. give 1 leather helmet of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
  117. else:
  118. drop 1 leather helmet of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
  119. if player can hold 1 leather chestplate:
  120. give 1 leather chestplate of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
  121. else:
  122. drop 1 leather chestplate of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
  123. if player can hold 1 leather leggings:
  124. give 1 leather leggings of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
  125. else:
  126. drop 1 leather leggings of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
  127. if player can hold 1 leather boots:
  128. give 1 leather boots of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
  129. else:
  130. drop 1 leather boots of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
  131. set {cooldown.%player%} to now
  132. else:
  133. send "Nieznane polecenie. Wpisz ""/pomoc"" aby uzyskac pomoc."
  134. if arg 1 is "on":
  135. if {rainbow.%player%} is false:
  136. if player is wearing leather armour:
  137. send "&a&lWlaczyles efekt teczy..."
  138. set {rainbow.%player%} to true
  139. while player is wearing leather armour:
  140. dye player's helmet ({red}, {green}, {blue})
  141. dye player's chestplate ({red}, {green}, {blue})
  142. dye player's legs ({red}, {green}, {blue})
  143. dye player's boots ({red}, {green}, {blue})
  144. wait a tick
  145. else:
  146. send "&4Musisz miec na sobie skorzany set!"
  147. else:
  148. send "&4Masz juz wlaczony efekt teczy!"
  149. if arg 1 is "off":
  150. if {rainbow.%player%} is true:
  151. set {rainbow.%player%} to false
  152. send "&c&lWylaczyles efekt teczy..."
  153. else:
  154. send "&4Nie masz wlaczonego efektu teczy! Aby go wlaczyc wpisz &a&l/rainbow on"
  155. on quit:
  156. if {rainbow.%player%} is true:
  157. set {rainbow.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment