Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.86 KB | None | 0 0
  1. on script load:
  2. add 1 to {zaladowanych}
  3. wait 0.5 seconds
  4. make console execute command "sk enable zrobione/duzypiec"
  5.  
  6. command changedrop [<text>]:
  7. permission: op
  8. aliases: drop
  9. trigger:
  10. if arg 1 isn't set:
  11. wait 2 ticks
  12. close player's inventory
  13. open chest with 4 rows named "zmiendrop" to player
  14. wait 2 ticks
  15. "%inventory name of current inventory of player%" contains "zmiendrop"
  16. format slot 0 of player with 1 of trapped chest named "Zmien drop w skrzynkach" to be unstealable
  17. format slot 2 of player with 1 of chest named "&aKliknij &7aby zmienic drop ogolny" to close then run [make player execute command "changedrop drop.skrzynie"]
  18. format slot 3 of player with 1 of book named "&aKliknij &7aby zmienic drop schematow" to close then run [make player execute command "changedrop schematy.skrzynie"]
  19. format slot 4 of player with 1 of diamond pickaxe named "&aKliknij &7aby zmienic drop broni" to close then run [make player execute command "changedrop bronie.skrzynie"]
  20.  
  21. format slot 9 of player with 1 of melon block named "Zmien drop w beczkach" to be unstealable
  22. format slot 11 of player with 1 of chest named "&aKliknij &7aby zmienic drop ogolny" to close then run [make player execute command "changedrop drop.beczki"]
  23. format slot 12 of player with 1 of book named "&aKliknij &7aby zmienic drop schematow" to close then run [make player execute command "changedrop schematy.beczki"]
  24. format slot 13 of player with 1 of diamond pickaxe named "&aKliknij &7aby zmienic drop broni" to close then run [make player execute command "changedrop bronie.beczki"]
  25.  
  26. format slot 18 of player with 1 of jukebox named "Zmien drop w rad beczkach" to be unstealable
  27. format slot 20 of player with 1 of chest named "&aKliknij &7aby zmienic drop ogolny" to close then run [make player execute command "changedrop drop.radioaktywne"]
  28. format slot 21 of player with 1 of book named "&aKliknij &7aby zmienic drop schematow" to close then run [make player execute command "changedrop schematy.radioaktywne"]
  29. format slot 22 of player with 1 of diamond pickaxe named "&aKliknij &7aby zmienic drop broni" to close then run [make player execute command "changedrop bronie.radioaktywne"]
  30.  
  31. format slot 27 of player with 1 of 35:9 named "Zmien drop w zrzutach" to be unstealable
  32. format slot 29 of player with 1 of chest named "&aKliknij &7aby zmienic drop ogolny" to close then run [make player execute command "changedrop drop.zrzut"]
  33. format slot 30 of player with 1 of book named "&aKliknij &7aby zmienic drop schematow" to close then run [make player execute command "changedrop schematy.zrzut"]
  34. format slot 31 of player with 1 of diamond pickaxe named "&aKliknij &7aby zmienic drop broni" to close then run [make player execute command "changedrop bronie.zrzut"]
  35. else if "%arg 1%" contains ("drop" or "schematy" or "bronie") and ("zrzut" or "beczki" or "radioaktywne" or "skrzynie"):
  36. ("world" parsed as world) has metadata "zmiendrop":
  37. set {_w} to ("world" parsed as world)
  38. "%metadata value ""zmiendrop"" of {_w}%" isn't "%player%"
  39. send "&b&l>> &e%metadata value ""zmiendrop"" of {_w}% &czmienia aktualnie drop! Poczekaj chwile!"
  40. stop
  41. set metadata value "zmiendrop" of ("world" parsed as world) to "%player%"
  42. wait 2 ticks
  43. open chest with 15 rows named "&2Dropik &e%arg 1%" to player
  44. wait 2 ticks
  45. set {_slot} to 0
  46. loop {%arg 1%::*}:
  47. set slot {_slot} of player's current inventory to loop-value
  48. add 1 to {_slot}
  49.  
  50. on inventory close:
  51. "%inventory name of current inventory of player%" contains "&2Dropik"
  52. set {_name::*} to ("%inventory name of current inventory of player%" parsed as text) split at " &e"
  53. delete {%{_name::2}%::*}
  54. set {_nr} to 1
  55. loop all items in player's current inventory:
  56. set {%{_name::2}%::%{_nr}%} to loop-value
  57. add 1 to {_nr}
  58. delete metadata value "zmiendrop" of ("world" parsed as world)
  59. wait 2 ticks
  60. run player command "drop" as op
  61.  
  62. on click on melon block or jukebox:
  63. if player has invisibility:
  64. cancel event
  65. send "&cNie mozesz tego robic bedac ukrytym."
  66. stop
  67. cancel event
  68. add event-location to {beczki.%id of event-block%::*}
  69. if "%metadata value ""ranga"" of player%" contains "vip+" or "youtube":
  70. set {_add.1} to 1
  71. set {_add.2} to 3+{drop.1.%id of event-block%}
  72. set {_add.3} to 2
  73. else if "%metadata value ""ranga"" of player%" contains "vip":
  74. set {_add.1} to 1
  75. set {_add.2} to 1.5+{drop.2.%id of event-block%}
  76. set {_add.3} to 1
  77. else:
  78. set {_add.1} to 0
  79. set {_add.2} to 0
  80. set {_add.3} to 0
  81. if "%metadata value ""reputacja"" of player%" is "-4":
  82. set {_drop.all} to 2
  83. else:
  84. set {_drop.all} to 1
  85. chance of 4%:
  86. run player command "dropcase" as op
  87. if id of event-block is 103:
  88. set {_loopy} to (((random integer between 1 and 3)+({_add.1}-{drop.3.%id of event-block%}))/{_drop.all})
  89. loop {_loopy} times:
  90. set {_dropped} to (random element out of {drop.beczki::*})
  91. if id of {_dropped} is between 298 and 317:
  92. delete {_dalej}
  93. chance of 12%:
  94. set {_dalej} to true
  95. {_dalej} is set
  96. set {_lvl} to random integer between 1 and 5
  97. enchant {_rand} with (unbreaking 1) or (protection 1) or (projectile protection 1)
  98. loop ({_lvl}+1) times:
  99. chance of 25%:
  100. enchant {_rand} with (unbreaking 1) or (unbreaking 3) or (unbreaking 1) or (unbreaking 2) or (unbreaking 1) or (unbreaking 2)
  101. chance of 25%:
  102. enchant {_rand} with (protection 1) or (protection 3) or (protection 1) or (protection 2) or (protection 1) or (protection 2)
  103. chance of 25%:
  104. enchant {_rand} with (projectile protection 1) or (projectile protection 3) or (projectile protection 1) or (projectile protection 2) or (projectile protection 1) or (projectile protection 2)
  105. if id of {_rand} is 301 or 305 or 309 or 313:
  106. chance of 25%:
  107. enchant {_rand} with (feather falling 1) or (feather falling 3) or (feather falling 1) or (feather falling 2) or (feather falling 1) or (feather falling 2)
  108. set {_kolor.5} and {_kolor.1} and {_kolor.2} and {_kolor.3} and {_kolor.4} to "&7"
  109. loop {_lvl} times:
  110. set {_kolor.%loop-value-2%} to "&6"
  111. if {_lvl} is 1:
  112. set {_prefix} to "&8&lCommon"
  113. else if {_lvl} is 2:
  114. set {_prefix} to "&7&lUncommon"
  115. else if {_lvl} is 3:
  116. set {_prefix} to "&2&lRare"
  117. else if {_lvl} is 4:
  118. set {_prefix} to "&b&lUnique"
  119. else if {_lvl} is 5:
  120. set {_prefix} to "&6&lLegendary"
  121. set {_rand} to {_rand} with lore "%lore of {_rand}%|| %{_kolor.1}%✯ %{_kolor.2}%✯ %{_kolor.3}%✯ %{_kolor.4}%✯ %{_kolor.5}%✯ &f&l>> %{_prefix}%"
  122. set {_dropped} to {_rand}
  123. drop {_dropped} at location of event-block
  124. chance of ((22.5+{_add.2}-{drop.5.%id of event-block%})/{_drop.all})%:
  125. drop (random element out of {schematy.beczki::*}) at location of event-block
  126. chance of ((16.5+{_add.3}-({drop.5.%id of event-block%}/2))/{_drop.all})%:
  127. set {_bron} to random element out of {bronie.beczki::*}
  128. "%1st line of lore of {_bron}%" contains "losuj":
  129. chance of 30%:
  130. set {_rand} to 0
  131. else:
  132. chance of 30%:
  133. set {_rand} to 1
  134. else:
  135. chance of 30%:
  136. set {_rand} to 3
  137. else:
  138. chance of 20%:
  139. set {_rand} to 4
  140. else:
  141. chance of 10%:
  142. set {_rand} to 5
  143. else:
  144. set {_rand} to 2
  145. run player command "bron %2th line of lore of {_bron}% %{_rand}%" as op
  146. else:
  147. drop {_bron} over player
  148. else if id of event-block is 84:
  149. set {_loopy} to (((random integer between 1 and 2)+({_add.1}-{drop.3.%id of event-block%}))/{_drop.all})
  150. loop {_loopy} times:
  151. drop (random element out of {drop.radioaktywne::*}) at location of event-block
  152. chance of ((22.5+{_add.2}-{drop.5.%id of event-block%})/{_drop.all})%:
  153. drop (random element out of {schematy.radioaktywne::*}) at location of event-block
  154. chance of ((15.5+{_add.3}-({drop.5.%id of event-block%}/2))/{_drop.all})%:
  155. set {_bron} to random element out of {bronie.radioaktywne::*}
  156. "%1st line of lore of {_bron}%" contains "losuj":
  157. chance of 30%:
  158. set {_rand} to 0
  159. else:
  160. chance of 30%:
  161. set {_rand} to 1
  162. else:
  163. chance of 30%:
  164. set {_rand} to 3
  165. else:
  166. chance of 20%:
  167. set {_rand} to 4
  168. else:
  169. chance of 10%:
  170. set {_rand} to 5
  171. else:
  172. set {_rand} to 2
  173. run player command "bron %2th line of lore of {_bron}% %{_rand}%" as op
  174. else:
  175. drop {_bron} over player
  176. play raw sound "mob.zombie.woodbreak" at location of player with pitch 1 volume 3
  177. set event-block to air
  178.  
  179. command skrzynie:
  180. permission: op
  181. trigger:
  182. #make console execute command "dajinfo 1 pl Skrzynie w lokacjach zostaly odnowione!"
  183. #make console execute command "dajinfo 1 en Chests in rad-towns are restocked!"
  184. loop {skrzynie::*}:
  185. set block at loop-value to trapped chest
  186. remove loop-value from {skrzynie::*}
  187.  
  188. command beczki:
  189. permission: op
  190. trigger:
  191. #make console execute command "dajinfo 1 pl Beczki w lokacjach zostaly odnowione!"
  192. #make console execute command "dajinfo 1 en Barrels in bandit-towns are restocked!"
  193. loop {beczki.103::*}:
  194. set block at loop-value to melon block
  195. remove loop-value from {beczki.103::*}
  196. loop {beczki.84::*}:
  197. set block at loop-value to jukebox
  198. remove loop-value from {beczki.84::*}
  199.  
  200.  
  201. on rightclick on trapped chest:
  202. (block to the right of event-block) and (block to the left of event-block) isn't trapped chest
  203. if player has invisibility:
  204. cancel event
  205. send "&cNie mozesz tego robic bedac ukrytym."
  206. stop
  207. cancel event
  208. add event-location to {skrzynie::*}
  209. set event-block to air
  210. set {_add.1} and {_add.2} and {_add.3} to 0
  211. if "%metadata value ""ranga"" of player%" contains "vip+" or "youtube":
  212. set {_add.1} to (1 or 2 or 3)
  213. set {_add.2} to 8
  214. set {_add.3} to 4
  215. else if "%metadata value ""ranga"" of player%" contains "vip":
  216. set {_add.1} to (1 or 2)
  217. set {_add.2} to 4
  218. set {_add.3} to 2
  219. else:
  220. set {_add.1} to 0
  221. set {_add.2} to 0
  222. set {_add.3} to 0
  223. if "%metadata value ""reputacja"" of player%" is "-4":
  224. set {_drop.all} to 2
  225. else:
  226. set {_drop.all} to 1
  227. chance of 4%:
  228. run player command "dropcase" as op
  229. drop (random element out of {drop.beczki::*}) at location of event-block
  230. loop (((random integer between 2 and 3)+{_add.1})/{_drop.all}) times:
  231. set {_dropped} to (random element out of {drop.beczki::*})
  232. if id of {_dropped} is between 298 and 317:
  233. chance of 12%:
  234. set {_lvl} to random integer between 1 and 5
  235. enchant {_rand} with (unbreaking 1) or (protection 1) or (projectile protection 1)
  236. loop ({_lvl}+1) times:
  237. chance of 25%:
  238. enchant {_rand} with (unbreaking 1) or (unbreaking 3) or (unbreaking 1) or (unbreaking 2) or (unbreaking 1) or (unbreaking 2)
  239. chance of 25%:
  240. enchant {_rand} with (protection 1) or (protection 3) or (protection 1) or (protection 2) or (protection 1) or (protection 2)
  241. chance of 25%:
  242. enchant {_rand} with (projectile protection 1) or (projectile protection 3) or (projectile protection 1) or (projectile protection 2) or (projectile protection 1) or (projectile protection 2)
  243. if id of {_rand} is 301 or 305 or 309 or 313:
  244. chance of 25%:
  245. enchant {_rand} with (feather falling 1) or (feather falling 3) or (feather falling 1) or (feather falling 2) or (feather falling 1) or (feather falling 2)
  246. set {_kolor.5} and {_kolor.1} and {_kolor.2} and {_kolor.3} and {_kolor.4} to "&7"
  247. loop {_lvl} times:
  248. set {_kolor.%loop-value-2%} to "&6"
  249. if {_lvl} is 1:
  250. set {_prefix} to "&8&lCommon"
  251. else if {_lvl} is 2:
  252. set {_prefix} to "&7&lUncommon"
  253. else if {_lvl} is 3:
  254. set {_prefix} to "&2&lRare"
  255. else if {_lvl} is 4:
  256. set {_prefix} to "&b&lUnique"
  257. else if {_lvl} is 5:
  258. set {_prefix} to "&6&lLegendary"
  259. set {_rand} to {_rand} with lore "%lore of {_rand}%|| %{_kolor.1}%✯ %{_kolor.2}%✯ %{_kolor.3}%✯ %{_kolor.4}%✯ %{_kolor.5}%✯ &f&l>> %{_prefix}%"
  260. set {_dropped} to {_rand}
  261. drop {_dropped} at location of event-block
  262. chance of ((35+{_add.2})/{_drop.all})%:
  263. drop (random element out of {schematy.skrzynie::*}) at location of event-block
  264. chance of ((25+{_add.3})/{_drop.all})%:
  265. set {_bron} to random element out of {bronie.skrzynie::*}
  266. if player is player:
  267. "%1st line of lore of {_bron}%" contains "losuj":
  268. chance of 30%:
  269. set {_rand} to 0
  270. else:
  271. chance of 30%:
  272. set {_rand} to 1
  273. else:
  274. chance of 30%:
  275. set {_rand} to 3
  276. else:
  277. chance of 20%:
  278. set {_rand} to 4
  279. else:
  280. chance of 10%:
  281. set {_rand} to 5
  282. else:
  283. set {_rand} to 2
  284. run player command "bron %2th line of lore of {_bron}% %{_rand}%" as op
  285. else:
  286. drop {_bron} over player
  287. play raw sound "mob.zombie.woodbreak" at location of player with pitch 1 volume 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement