dodoz012609

Hazard by Dodoz012609

Feb 4th, 2015
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1. options:
  2. t: &4[&aHZ&4]&f
  3. #Tutaj jest szans na potrójny drop.
  4. sz: 5%
  5. command /hazard [<text>] [<number>]:
  6. aliases: hz
  7. permission: hazard.ustaw
  8. trigger:
  9. if arg 1 is "daj":
  10. add 3 wool:1 named "&5Hazard" to the player's inventory
  11. send "{@t} Dostales itemy do stworzenia maszyny"
  12. stop
  13. if arg 1 is "usun":
  14. delete {haz1}
  15. delete {haz2}
  16. delete {haz3}
  17. send "{@t} Maszyna zostala usunieta!"
  18. set {haz.utw} to 0
  19. stop
  20. if arg 1 is "losowanie":
  21. if targeted block is sign:
  22. if arg 2 is set:
  23. if {haz3} is set:
  24. set line 1 of targeted block to "{@t}"
  25. set line 2 of targeted block to "&eLosuj"
  26. set line 3 of targeted block to "&2Koszt:"
  27. set line 4 of targeted block to "%arg 2%"
  28. set {haz.koszt} to arg 2
  29. set {haz.utw} to 1
  30. set {haz.mt} to location of targeted block
  31. stop
  32. send "{@t} Podaj jeszcze cene!"
  33. if arg 1 is "autor":
  34. send "-------------------------"
  35. send "Skrypt zostal stworzony przez:"
  36. send "&lSkript.PL - Dodoz012609"
  37. send "&lMC - Kik21_PL"
  38. send "-------------------------"
  39. if arg 1 is not set:
  40. send " {@t} Komendy "
  41. send "{@t} hazard/hz daj - Daje bloki do stworzenia"
  42. send "{@t} hazard/hz usun - Usuwa caly hazard (bloki, cene itp)"
  43. send "{@t} hazard/hz losowanie |cena bez $| - Ustawia tabliczke i cene"
  44. send "{@t} hazard/hz autor - Ukazuje wiad. o autorze"
  45. stop
  46. on place wool:1:
  47. if name of player's tool is "&5Hazard":
  48. if {haz1} is not set:
  49. set {haz1} to location of event-block
  50. remove 1 wool named "&5Hazard" from player's inventory
  51. stop
  52. if {haz2} is not set:
  53. set {haz2} to event-block
  54. remove 1 wool named "&5Hazard" from player's inventory
  55. stop
  56. if {haz3} is not set:
  57. set {haz3} to event-block
  58. remove 1 wool named "&5Hazard" from player's inventory
  59. stop
  60. send "{@t} Maszyna jest juz ustawiona (%{haz1}%)"
  61. stop
  62. on rightclick on sign:
  63. if player's balance is bigger than {haz.koszt}:
  64. if {haz.utw} is 1:
  65. if location of clicked block is {haz.mt}:
  66. remove {hazard.koszt} from player's balance
  67. set {_b1} to random integer between 0 and 5
  68. set {_b2} to random integer between 0 and 5
  69. set {_b3} to random integer between 0 and 5
  70. send "{@t} Zaczynam Losowanie:"
  71. if {_b1} is 1:
  72. set block at {haz1} to diamond block
  73. if {_b1} is 2:
  74. set block at {haz1} to emerald block
  75. if {_b1} is 3:
  76. set block at {haz1} to iron block
  77. if {_b1} is 4:
  78. set block at {haz1} to gold block
  79. if {_b1} is 5:
  80. set block at {haz1} to wool:5
  81. if {_b2} is 1:
  82. set block at {haz2} to diamond block
  83. if {_b2} is 2:
  84. set block at {haz2} to emerald block
  85. if {_b2} is 3:
  86. set block at {haz2} to iron block
  87. if {_b2} is 4:
  88. set block at {haz2} to gold block
  89. if {_b2} is 5:
  90. set block at {haz2} to wool:5
  91. if {_b3} is 1:
  92. set block at {haz3} to diamond block
  93. if {_b3} is 2:
  94. set block at {haz3} to emerald block
  95. if {_b3} is 3:
  96. set block at {haz3} to iron block
  97. if {_b3} is 4:
  98. set block at {haz3} to gold block
  99. if {_b3} is 5:
  100. set block at {haz3} to wool:5
  101. if block at {haz1} and {haz2} and {haz3} is diamond block:
  102. chance of {@sz}:
  103. set {_blabla} to random integer between 25 and 70
  104. set {_blabla} to ({_blabla}*3)
  105. wait 1 tick
  106. give {_blabla} of diamond to the player's inventory
  107. send "&bBrawo! Wygrales %{_blabla}% diamentow! Jest to 3* wiekszy drop."
  108. stop
  109. set {_blabla} to random integer between 25 and 70
  110. wait 1 tick
  111. give {_blabla} of diamond to the player's inventory
  112. send "&bBrawo! Wygrales %{_blabla}% diamentow!"
  113. stop
  114. if block at {haz1} and {haz2} and {haz3} is emerald block:
  115. chance of {@sz}:
  116. set {_blabla} to random integer between 25 and 100
  117. set {_blabla} to ({_blabla}*3)
  118. wait 1 tick
  119. give {_blabla} of emerald to the player's inventory
  120. send "&bBrawo! Wygrales %{_blabla}% emeraldow! Jest to 3* wiekszy drop."
  121. stop
  122. set {_blabla} to random integer between 25 and 100
  123. wait 1 tick
  124. give {_blabla} of emerald to the player's inventory
  125. send "&bBrawo! Wygrales %{_blabla}% emeraldow!"
  126. stop
  127. if block at {haz1} and {haz2} and {haz3} is iron block:
  128. chance of {@sz}:
  129. set {_blabla} to random integer between 25 and 100
  130. set {_blabla} to ({_blabla}*3)
  131. wait 1 tick
  132. give {_blabla} of iron ingot to the player's inventory
  133. send "&bBrawo! Wygrales %{_blabla}% Zelaza! Jest to 3* wiekszy drop."
  134. stop
  135. set {_blabla} to random integer between 48 and 100
  136. wait 1 tick
  137. give {_blabla} of iron ingot to the player's inventory
  138. send "&bBrawo! Wygrales %{_blabla}% zelaza!"
  139. stop
  140. if block at {haz1} and {haz2} and {haz3} is gold block:
  141. chance of {@sz}:
  142. set {_blabla} to random integer between 25 and 100
  143. set {_blabla} to ({_blabla}*3)
  144. wait 1 tick
  145. give {_blabla} of gold ingot to the player's inventory
  146. send "&bBrawo! Wygrales %{_blabla}% Zlota! Jest to 3* wiekszy drop."
  147. stop
  148. set {_blabla} to random integer between 30 and 100
  149. wait 1 tick
  150. give {_blabla} of gold ingot to the player's inventory
  151. send "&bBrawo! Wygrales %{_blabla}% zlota!"
  152. stop
  153. if block at {haz1} and {haz2} and {haz3} is wool:5:
  154. chance of {@sz}:
  155. set {_blabla} to random integer between 2400 and 5500
  156. set {_blabla} to ({_blabla}*3)
  157. wait 1 tick
  158. add {_blabla} to the player's balance
  159. send "&bBrawo! Wygrales %{_blabla}% Monet! Jest to 3* wiekszy drop."
  160. stop
  161. set {_blabla} to random integer between 2400 and 5500
  162. wait 1 tick
  163. add {_blabla} to the player's balance
  164. send "&bBrawo! Wygrales %{_blabla}% Monet!"
  165. stop
  166. send "{@t} Zakonczylem losowanie. Brak wygranej."
  167. stop
  168. else:
  169. send "{@t} Maszyna nie jest poprawnie skonfigurowana!"
  170. send "Skontaktuj sie z administratorem."
  171. stop
  172. else:
  173. send "{@t} Nie masz pieniedzy aby losowac! (%{haz.koszt}%)"
Advertisement
Add Comment
Please, Sign In to add comment