ShooterowyPL

CS:GO CASE OPENING

Apr 4th, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.40 KB | None | 0 0
  1. options:
  2. cloud_boots: 0%
  3. casedrop: 10% #Drop skrzynki ze stone
  4. miecz_sharp_5: 0%
  5. koxy: 0%
  6. helm_prot_5: 0%
  7. klata_prot_5: 0%
  8. spodnie_prot_5: 0%
  9. buty_prot_5: 0%
  10. kilof_fortune_3: 0%
  11. gold_kilof_eff_6: 0%
  12. refy: 0%
  13. variables:
  14. {losowanie::%player%} = false
  15. on script load:
  16. clear {itemy::*}
  17. add diamond to {itemy::*}
  18. add iron ingot to {itemy::*}
  19. add golden ingot to {itemy::*}
  20. add redstone to {itemy::*}
  21. add tnt block to {itemy::*}
  22.  
  23. on rightclick holding chest:
  24. if name of player's tool is "&3&lCS:GO CASE":
  25. cancel event
  26. if player has name tag named "&3&lCS:GO CASE KEY":
  27. remove name tag named "&3&lCS:GO CASE KEY" from player
  28. set {losowanie::%player%} to true
  29. open chest with 3 rows named "%name of player's tool%" to player
  30. remove chest named "&3&lCS:GO CASE" from player
  31. format slot 0 of player with red glass pane to be unstealable
  32. format slot 1 of player with red glass pane to be unstealable
  33. format slot 2 of player with red glass pane to be unstealable
  34. format slot 3 of player with red glass pane to be unstealable
  35. format slot 4 of player with green glass pane to be unstealable
  36. format slot 5 of player with red glass pane to be unstealable
  37. format slot 6 of player with red glass pane to be unstealable
  38. format slot 7 of player with red glass pane to be unstealable
  39. format slot 8 of player with red glass pane to be unstealable
  40. format slot 9 of player with red glass pane to be unstealable
  41. format slot 17 of player with red glass pane to be unstealable
  42. format slot 18 of player with red glass pane to be unstealable
  43. format slot 19 of player with red glass pane to be unstealable
  44. format slot 20 of player with red glass pane to be unstealable
  45. format slot 21 of player with red glass pane to be unstealable
  46. format slot 22 of player with green glass pane to be unstealable
  47. format slot 23 of player with red glass pane to be unstealable
  48. format slot 24 of player with red glass pane to be unstealable
  49. format slot 25 of player with red glass pane to be unstealable
  50. format slot 26 of player with red glass pane to be unstealable
  51.  
  52. set {_10} to random element out of {itemy::*}
  53. set {_11} to random element out of {itemy::*}
  54. set {_12} to random element out of {itemy::*}
  55. set {_13} to random element out of {itemy::*}
  56. set {_14} to random element out of {itemy::*}
  57. set {_15} to random element out of {itemy::*}
  58. set {_16} to random element out of {itemy::*}
  59.  
  60. format slot 10 of player with {_10} to be unstealable
  61. format slot 11 of player with {_11} to be unstealable
  62. format slot 12 of player with {_12} to be unstealable
  63. format slot 13 of player with {_13} to be unstealable
  64. format slot 14 of player with {_14} to be unstealable
  65. format slot 15 of player with {_15} to be unstealable
  66. format slot 16 of player with {_16} to be unstealable
  67.  
  68. wait 10 ticks
  69.  
  70. loop random integer between 17 and 20 times:
  71. wait 2 ticks
  72. set {_16} to {_15}
  73. set {_15} to {_14}
  74. set {_14} to {_13}
  75. set {_13} to {_12}
  76. set {_12} to {_11}
  77. set {_11} to {_10}
  78. chance of {@cloud_boots}:
  79. set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
  80. else if chance of {@gold_kilof_eff_6}:
  81. set {_10} to golden pickaxe of efficiency 6
  82. else if chance of {@miecz_sharp_5}:
  83. set {_10} to diamond sword of sharpness 5
  84. else if chance of {@helm_prot_5}:
  85. set {_10} to diamond helmet of protection 5
  86. else if chance of {@klata_prot_5}:
  87. set {_10} to diamond chestplate of protection 5
  88. else if chance of {@spodnie_prot_5}:
  89. set {_10} to diamond leggings of protection 5
  90. else if chance of {@buty_prot_5}:
  91. set {_10} to diamond boots of protection 5
  92. else if chance of {@kilof_fortune_3}:
  93. set {_10} to diamond pickaxe of fortune 3
  94. else if chance of {@koxy}:
  95. set {_10} to 2 enchanted golden apple
  96. else if chance of {@refy}:
  97. set {_10} to random integer between 1 and 5 of golden apple
  98. else:
  99. set {_10} to random element out of {itemy::*}
  100. set {_10} to random integer between 1 and 4 of {_10}
  101. format slot 10 of player with {_10} to be unstealable
  102. format slot 11 of player with {_11} to be unstealable
  103. format slot 12 of player with {_12} to be unstealable
  104. format slot 13 of player with {_13} to be unstealable
  105. format slot 14 of player with {_14} to be unstealable
  106. format slot 15 of player with {_15} to be unstealable
  107. format slot 16 of player with {_16} to be unstealable
  108.  
  109. loop random integer between 13 and 16 times:
  110. wait 3 ticks
  111. set {_16} to {_15}
  112. set {_15} to {_14}
  113. set {_14} to {_13}
  114. set {_13} to {_12}
  115. set {_12} to {_11}
  116. set {_11} to {_10}
  117. chance of {@cloud_boots}:
  118. set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
  119. else if chance of {@gold_kilof_eff_6}:
  120. set {_10} to golden pickaxe of efficiency 6
  121. else if chance of {@miecz_sharp_5}:
  122. set {_10} to diamond sword of sharpness 5
  123. else if chance of {@helm_prot_5}:
  124. set {_10} to diamond helmet of protection 5
  125. else if chance of {@klata_prot_5}:
  126. set {_10} to diamond chestplate of protection 5
  127. else if chance of {@spodnie_prot_5}:
  128. set {_10} to diamond leggings of protection 5
  129. else if chance of {@buty_prot_5}:
  130. set {_10} to diamond boots of protection 5
  131. else if chance of {@kilof_fortune_3}:
  132. set {_10} to diamond pickaxe of fortune 3
  133. else if chance of {@koxy}:
  134. set {_10} to 2 enchanted golden apple
  135. else if chance of {@refy}:
  136. set {_10} to random integer between 1 and 5 of golden apple
  137. else:
  138. set {_10} to random element out of {itemy::*}
  139. set {_10} to random integer between 1 and 4 of {_10}
  140. format slot 10 of player with {_10} to be unstealable
  141. format slot 11 of player with {_11} to be unstealable
  142. format slot 12 of player with {_12} to be unstealable
  143. format slot 13 of player with {_13} to be unstealable
  144. format slot 14 of player with {_14} to be unstealable
  145. format slot 15 of player with {_15} to be unstealable
  146. format slot 16 of player with {_16} to be unstealable
  147.  
  148. loop random integer between 9 and 12 times:
  149. wait 4 ticks
  150. set {_16} to {_15}
  151. set {_15} to {_14}
  152. set {_14} to {_13}
  153. set {_13} to {_12}
  154. set {_12} to {_11}
  155. set {_11} to {_10}
  156. chance of {@cloud_boots}:
  157. set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
  158. else if chance of {@gold_kilof_eff_6}:
  159. set {_10} to golden pickaxe of efficiency 6
  160. else if chance of {@miecz_sharp_5}:
  161. set {_10} to diamond sword of sharpness 5
  162. else if chance of {@helm_prot_5}:
  163. set {_10} to diamond helmet of protection 5
  164. else if chance of {@klata_prot_5}:
  165. set {_10} to diamond chestplate of protection 5
  166. else if chance of {@spodnie_prot_5}:
  167. set {_10} to diamond leggings of protection 5
  168. else if chance of {@buty_prot_5}:
  169. set {_10} to diamond boots of protection 5
  170. else if chance of {@kilof_fortune_3}:
  171. set {_10} to diamond pickaxe of fortune 3
  172. else if chance of {@koxy}:
  173. set {_10} to 2 enchanted golden apple
  174. else if chance of {@refy}:
  175. set {_10} to random integer between 1 and 5 of golden apple
  176. else:
  177. set {_10} to random element out of {itemy::*}
  178. set {_10} to random integer between 1 and 4 of {_10}
  179. format slot 10 of player with {_10} to be unstealable
  180. format slot 11 of player with {_11} to be unstealable
  181. format slot 12 of player with {_12} to be unstealable
  182. format slot 13 of player with {_13} to be unstealable
  183. format slot 14 of player with {_14} to be unstealable
  184. format slot 15 of player with {_15} to be unstealable
  185. format slot 16 of player with {_16} to be unstealable
  186.  
  187. loop random integer between 5 and 8 times:
  188. wait 5 ticks
  189. set {_16} to {_15}
  190. set {_15} to {_14}
  191. set {_14} to {_13}
  192. set {_13} to {_12}
  193. set {_12} to {_11}
  194. set {_11} to {_10}
  195. chance of {@cloud_boots}:
  196. set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
  197. else if chance of {@gold_kilof_eff_6}:
  198. set {_10} to golden pickaxe of efficiency 6
  199. else if chance of {@miecz_sharp_5}:
  200. set {_10} to diamond sword of sharpness 5
  201. else if chance of {@helm_prot_5}:
  202. set {_10} to diamond helmet of protection 5
  203. else if chance of {@klata_prot_5}:
  204. set {_10} to diamond chestplate of protection 5
  205. else if chance of {@spodnie_prot_5}:
  206. set {_10} to diamond leggings of protection 5
  207. else if chance of {@buty_prot_5}:
  208. set {_10} to diamond boots of protection 5
  209. else if chance of {@kilof_fortune_3}:
  210. set {_10} to diamond pickaxe of fortune 3
  211. else if chance of {@koxy}:
  212. set {_10} to 2 enchanted golden apple
  213. else if chance of {@refy}:
  214. set {_10} to random integer between 1 and 5 of golden apple
  215. else:
  216. set {_10} to random element out of {itemy::*}
  217. set {_10} to random integer between 1 and 4 of {_10}
  218. format slot 10 of player with {_10} to be unstealable
  219. format slot 11 of player with {_11} to be unstealable
  220. format slot 12 of player with {_12} to be unstealable
  221. format slot 13 of player with {_13} to be unstealable
  222. format slot 14 of player with {_14} to be unstealable
  223. format slot 15 of player with {_15} to be unstealable
  224. format slot 16 of player with {_16} to be unstealable
  225.  
  226. loop random integer between 3 and 4 times:
  227. wait 10 ticks
  228. set {_16} to {_15}
  229. set {_15} to {_14}
  230. set {_14} to {_13}
  231. set {_13} to {_12}
  232. set {_12} to {_11}
  233. set {_11} to {_10}
  234. chance of {@cloud_boots}:
  235. set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
  236. else if chance of {@gold_kilof_eff_6}:
  237. set {_10} to golden pickaxe of efficiency 6
  238. else if chance of {@miecz_sharp_5}:
  239. set {_10} to diamond sword of sharpness 5
  240. else if chance of {@helm_prot_5}:
  241. set {_10} to diamond helmet of protection 5
  242. else if chance of {@klata_prot_5}:
  243. set {_10} to diamond chestplate of protection 5
  244. else if chance of {@spodnie_prot_5}:
  245. set {_10} to diamond leggings of protection 5
  246. else if chance of {@buty_prot_5}:
  247. set {_10} to diamond boots of protection 5
  248. else if chance of {@kilof_fortune_3}:
  249. set {_10} to diamond pickaxe of fortune 3
  250. else if chance of {@koxy}:
  251. set {_10} to 2 enchanted golden apple
  252. else if chance of {@refy}:
  253. set {_10} to random integer between 1 and 5 of golden apple
  254. else:
  255. set {_10} to random element out of {itemy::*}
  256. set {_10} to random integer between 1 and 4 of {_10}
  257. format slot 10 of player with {_10} to be unstealable
  258. format slot 11 of player with {_11} to be unstealable
  259. format slot 12 of player with {_12} to be unstealable
  260. format slot 13 of player with {_13} to be unstealable
  261. format slot 14 of player with {_14} to be unstealable
  262. format slot 15 of player with {_15} to be unstealable
  263. format slot 16 of player with {_16} to be unstealable
  264.  
  265. loop random integer between 1 and 3 times:
  266. wait 20 ticks
  267. set {_16} to {_15}
  268. set {_15} to {_14}
  269. set {_14} to {_13}
  270. set {_13} to {_12}
  271. set {_12} to {_11}
  272. set {_11} to {_10}
  273. chance of {@cloud_boots}:
  274. set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
  275. else if chance of {@gold_kilof_eff_6}:
  276. set {_10} to golden pickaxe of efficiency 6
  277. else if chance of {@miecz_sharp_5}:
  278. set {_10} to diamond sword of sharpness 5
  279. else if chance of {@helm_prot_5}:
  280. set {_10} to diamond helmet of protection 5
  281. else if chance of {@klata_prot_5}:
  282. set {_10} to diamond chestplate of protection 5
  283. else if chance of {@spodnie_prot_5}:
  284. set {_10} to diamond leggings of protection 5
  285. else if chance of {@buty_prot_5}:
  286. set {_10} to diamond boots of protection 5
  287. else if chance of {@kilof_fortune_3}:
  288. set {_10} to diamond pickaxe of fortune 3
  289. else if chance of {@koxy}:
  290. set {_10} to 2 enchanted golden apple
  291. else if chance of {@refy}:
  292. set {_10} to random integer between 1 and 5 of golden apple
  293. else:
  294. set {_10} to random element out of {itemy::*}
  295. set {_10} to random integer between 1 and 4 of {_10}
  296. format slot 10 of player with {_10} to be unstealable
  297. format slot 11 of player with {_11} to be unstealable
  298. format slot 12 of player with {_12} to be unstealable
  299. format slot 13 of player with {_13} to be unstealable
  300. format slot 14 of player with {_14} to be unstealable
  301. format slot 15 of player with {_15} to be unstealable
  302. format slot 16 of player with {_16} to be unstealable
  303. wait 2 seconds
  304. if {losowanie::%player%} is true:
  305. if {_13} is diamond boots of unbreaking 3 named "&3&lCloud Boots":
  306. broadcast "&b%player% &azdobyl nastepujacy przedmiot: &6Cloud Boots&a!"
  307. else:
  308. broadcast "&b%player% &azdobyl nastepujacy przedmiot: &6%{_13}%&a!"
  309. set {losowanie::%player%} to false
  310. if player can hold {_13}:
  311. add {_13} to player
  312. else:
  313. drop {_13} at player
  314. close player's inventory
  315. stop
  316. stop
  317. else:
  318. send "&cPotrzebujesz klucz aby otworzyc ta skrzynke."
  319. command /dajklucz [<player=%player%>] [<integer=1>]:
  320. trigger:
  321. if player has permissions "csgocase.givekey":
  322. add integer-arg of name tag named "&3&lCS:GO CASE KEY" to player-arg
  323. Send "&aOtrzymales &c%integer-arg%x &aklucz do skrzynki &3&lCS:GO CASE&a." to player-arg
  324. stop
  325. else:
  326. send "&cNie masz uprawnien do tej komendy!"
  327. stop
  328.  
  329. on mine of stone:
  330. chance of {@casedrop}:
  331. drop chest named "&3&lCS:GO CASE" at event-block
  332. send "&aZnalazles skrzynke &3&lCS:GO CASE&a."
  333.  
  334. on rightclick with a diamond boots:
  335. if player's tool is diamond boots named "<aqua><bold>Cloud Boots":
  336. wait a tick
  337. if player's tool is air:
  338. apply jump boost 5 to the player for 999999999 seconds
  339. apply speed 2 to the player for 999999999 seconds
  340. set {cloudbootsy.%player%.zalozone} to 1
  341. on inventory close:
  342. if boots of player is not diamond boots named "<aqua><bold>Cloud Boots":
  343. if {cloudbootsy.%player%.zalozone} is set:
  344. remove jump boost from the player
  345. remove speed from the player
  346. delete {cloudbootsy.%player%.zalozone}
  347. else:
  348. apply jump boost 5 to the player for 999999999 seconds
  349. apply speed 2 to the player for 999999999 seconds
  350. set {cloudbootsy.%player%.zalozone} to 1
  351. if {losowanie::%player%} is true:
  352. send "&cOpusciles losowanie. Losowanie zostalo przerwane!"
  353. add name tag named "&3CS:GO CASE KEY" to player
  354. set {losowanie::%player%} to false
  355. on damage:
  356. if boots of victim is diamond boots named "<aqua><bold>Cloud Boots":
  357. if {cloudbootsy.%victim%.zalozone} is not set:
  358. apply jump boost 5 to the victim for 999999999 seconds
  359. apply speed 2 to the victim for 999999999 seconds
  360. set {cloudbootsy.%victim%.zalozone} to 1
  361. damage cause is fall
  362. spawn 17 of particle smoke offset by 1, 1, 1 at location of victim
  363. spawn 17 of particle fireworks spark offset by 1, 1, 1 at location of victim
  364. spawn 17 of particle instant spell offset by 1, 1, 1 at location of victim
  365. spawn 17 of particle magic crit offset by 1, 1, 1 at location of victim
  366. spawn 17 of particle spell offset by 1, 1, 1 at location of victim
  367. cancel event
  368. else:
  369. if {cloudbootsy.%victim%.zalozone} is set:
  370. remove jump boost from the victim
  371. remove speed from the victim
  372. delete {cloudbootsy.%victim%.zalozone}
Add Comment
Please, Sign In to add comment