RafiXDD

Untitled

Feb 1st, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.76 KB | None | 0 0
  1. variables:
  2. {motd} = "&l&6Pl by Immakillu"
  3. {na.arenie.%player%} = false
  4. {points.sf.%player%} = 0
  5. {staly.item.tnt.%player%} = false
  6. {tnt.staly.info.%player%} = "&aKliknij aby kupic!"
  7. options:
  8. tag: &3&lSpleef &6»
  9. points: 50
  10. on damage of Villager:
  11. cancel event
  12. send "Jeszcze nie" to attacker
  13. on rightclick on Villager:
  14. cancel event
  15. open chest with 5 row named "&6&lItemy stale" to player
  16. wait 2 tick
  17. format slot 0 of player with 1 of Tnt named "&4Rzucane tnt" with lore "&6Koszt: 1000 punkotow || %{tnt.staly.info.%player%}%" to close then run [execute player command "tntitemstaly"]
  18. format slot 44 of player with 1 of gold ingot named "&eStan konta: &6%{points.sf.%player%}%" to close
  19. command /tntitemstaly:
  20. trigger:
  21. if {points.sf.%player%} is more than 999:
  22. if {tnt.staly.info.%player%} is not "&cPosiadany":
  23. set {staly.item.tnt.%player%} to true
  24. send "&aGratulacje! Zakupiles item staly"
  25. remove 1000 from {points.sf.%player%}
  26. set {tnt.staly.info.%player%} to "&cPosiadany"
  27. else:
  28. send "&cJuz masz ten item staly"
  29. else:
  30. send "&cPotrzebujesz wiecej punkotow zeby kupic ten item"
  31. command /sklep:
  32. trigger:
  33. send "Jeszcze nie"
  34. command /motd [<text>]:
  35. trigger:
  36. if arg 1 is set:
  37. set {motd} to coloured "%arg 1%"
  38. on server list ping:
  39. set motd to "&a%{motd}%"
  40. # On Projectile Hit: #
  41. # if Projectile is snowball: #
  42. # loop blocks in radius 1 around event-location: #
  43. # if loop-block is a snow block: #
  44. # set loop-block to air #
  45. On Explode:
  46. cancel event
  47. loop blocks in radius 3 around event-location:
  48. if loop-block is a snow block:
  49. set loop-block to air
  50. on rightclick with Tnt:
  51. cancel event
  52. if player is holding tnt named "&4Rzucane tnt":
  53. shoot tnt with speed 1.2
  54. if player's gamemode is not creative:
  55. remove 1 Tnt named "&4Rzucane tnt" from player's inventory
  56. on mine of snow:
  57. cancel event
  58. set block to air
  59. command /itemy:
  60. trigger:
  61. give player 1 Tnt named "&4Rzucane tnt"
  62. command /sf [<text>] [<text>]:
  63. trigger:
  64. if arg 1 is not set:
  65. if arg 2 is not set:
  66. send "&b============================="
  67. send "&7/sf stworz <numer-areny>"
  68. send "&7/sf setlobby <numer-areny>"
  69. send "&7/sf setspawn <numer-areny> &6- Miejsce spawnowania graczy na arenie"
  70. send "&7/sf status <numer-areny>"
  71. send "&7/sf nwm"
  72. else if arg 1 is "stworz":
  73. if arg 2 is set:
  74. set {arena.%arg 2%} to "&a✔ Wolna ✔"
  75. set {arena.%arg 2%.count} to 0
  76. send "&7[&3Spleef&7] &6Utworzyles arene %arg 2%"
  77. else if arg 1 is "del":
  78. if arg 2 is set:
  79. delete {arena.%arg 2%}
  80. delete {lobby.arena.%arg 2%}
  81. delete {spawn.arena.%arg 2%}
  82. send "{@tag} Usunales arene %arg 2%"
  83. else if arg 1 is "status":
  84. if arg 2 is set:
  85. if {arena.%arg 2%} is set:
  86. send "{@tag} arena %arg 2% status: %{arena.%arg 2%}%"
  87. else:
  88. send "&cNie ma takiej areny"
  89. else if arg 1 is "setlobby":
  90. if arg 2 is set:
  91. if player has permission "sf.*":
  92. set {lobby.arena.%arg 2%} to location of player
  93. send "{@tag} Ustawiles punkt lobby dla areny %arg 2% %{lobby.arena.%arg 2%}%"
  94. else if arg 1 is "setspawn":
  95. if arg 2 is set:
  96. if player has permission "sf.*":
  97. set {spawn.arena.%arg 2%} to location of player
  98. send "{@tag} Ustawiles spawn dla areny %arg 2%"
  99. else if arg 1 is "reset":
  100. if arg 2 is set:
  101. if executor is console:
  102. set {arena.%arg 2%.count} to 0
  103. set {arena.%arg 2%} to "&aaktywna"
  104. clear {arena.%arg 2%.gracze::*}
  105. loop all players:
  106. if {arena.%loop-player%} is "%arg 2%":
  107. delete {arena.%loop-player%}
  108. if {arena.%loop-player%.%arg 2%} is set:
  109. delete {arena.%loop-player%.%arg 2%}
  110. set {na.arenie.%loop-player%} to false
  111. teleport loop-player to spawn
  112. if executor is console:
  113. send "{@tag} Zresetowano arene %arg 2%"
  114. execute console command "sf restart %arg 2%"
  115. else:
  116. if player has permission "sf.*":
  117. send "{@tag} Zresetowano arene %arg 2%"
  118. execute console command "sf restart %arg 2%"
  119. else:
  120. send "&cNie mozesz tego zrobic"
  121. else if arg 1 is "restart":
  122. if arg 2 is set:
  123. if {arena.%arg 2%} is not "&4&l✖ RESET ✖":
  124. set {arena.%arg 2%} to "&4&l✖ RESET ✖"
  125. loop blocks within {pos1::%arg 2%.1} to {pos2::%arg 2%.1}:
  126. set block at loop-block to snow
  127. wait 1 second
  128. loop blocks within {pos1::%arg 2%.2} to {pos2::%arg 2%.2}:
  129. set block at loop-block to snow
  130. wait 1 second
  131. loop blocks within {pos1::%arg 2%.3} to {pos2::%arg 2%.3}:
  132. set block at loop-block to snow
  133. wait 1 second
  134. loop blocks within {pos1::%arg 2%.4} to {pos2::%arg 2%.4}:
  135. set block at loop-block to snow
  136. wait 1 second
  137. loop blocks within {pos1::%arg 2%.5} to {pos2::%arg 2%.5}:
  138. set block at loop-block to snow
  139. wait 1 second
  140. loop blocks within {pos1::%arg 2%.6} to {pos2::%arg 2%.6}:
  141. set block at loop-block to snow
  142. wait 1 second
  143. loop blocks within {pos1::%arg 2%.7} to {pos2::%arg 2%.7}:
  144. set block at loop-block to snow
  145. set {arena.%arg 2%} to "&a✔ Wolna ✔"
  146. set {arena.%arg 2%.count} to 0
  147. every 1 seconds:
  148. loop all players:
  149. loop all blocks in radius 10 of loop-player:
  150. if loop-block is sign:
  151. if line 1 of loop-block is "&a&lDOLACZ" or "spleef":
  152. set line 3 of loop-block to "&4%{arena.%uncolored line 2 of loop-block%.count}%/10"
  153. set line 4 of loop-block to "%{arena.%uncolored line 2 of loop-block%}%"
  154. if {arena.%uncolored line 2 of loop-block%.count} is less than 0:
  155. execute console command "sf reset %uncolored line 2 of loop-block%"
  156. if line 4 of loop-block is "&4&l✖ RESET ✖":
  157. set line 3 of loop-block to "&4-/-"
  158. on rightclick on sign:
  159. if line 1 is "spleef":
  160. if line 2 is set:
  161. set line 1 to "&a&lDOLACZ"
  162. set line 3 to "&4%{arena.%line 2%.count}%/10"
  163. set line 4 to "%{arena.%line 2%}%"
  164. set line 2 to "&3%line 2%"
  165. on rightclick on sign:
  166. set line 4 to "%{arena.%uncolored line 2%}%"
  167. set line 3 to "&4%{arena.%uncolored line 2%.count}%/10"
  168. if line 1 is set:
  169. if line 2 is set:
  170. if line 3 is set:
  171. if line 4 is "&a✔ Wolna ✔" or "&1&l✔ &1Odliczanie &1&l✔":
  172. if {arena.%uncolored line 2%.count} is less than 10:
  173. if {na.arenie.%player%} is false:
  174. teleport player to {lobby.arena.%uncolored line 2%}
  175. heal player
  176. set player's hunger to 20
  177. set level of player to 0
  178. set player's gamemode to survival
  179. set player's flight mode to false
  180. clear player's inventory
  181. set {na.arenie.%player%} to true
  182. set {arena.%player%} to "%uncolored line 2%"
  183. set {arena.%player%.%uncolored line 2%} to true
  184. add 1 to {arena.%uncolored line 2%.count}
  185. add player to {arena.%uncolored line 2%.gracze::*}
  186. loop all players:
  187. if {arena.%loop-player%.%uncolored line 2%} is true:
  188. send "{@tag} &7%player% &edolaczyl do gry! &e(&b%{arena.%uncolored line 2%.count}%&e/&b10&e&e)" to loop-players
  189. if {arena.%uncolored line 2%.count} is 2:
  190. if {arena.%loop-player%.%uncolored line 2%} is true:
  191. if {arena.%uncolored line 2%.count} is more than 1:
  192. set {odliczanie.arena.%uncolored line 2%} to true
  193. send "{@tag} Gra startuje za &a20 &6sec" to loop-players
  194. if {arena.%uncolored line 2%} is not "&1&l✔ &1Odliczanie &1&l✔":
  195. execute console command "start %uncolored line 2%"
  196. set {arena.%uncolored line 2%} to "&1&l✔ &1Odliczanie &1&l✔"
  197. else:
  198. send "{@tag} &cJestes juz na arenie nr %{arena.%player%}%"
  199. else:
  200. send "{@tag} &cArena jest pelna"
  201. command /start [<text>]:
  202. executable by: console
  203. trigger:
  204. wait 10 real seconds
  205. loop {arena.%arg 1%.gracze::*}:
  206. if {arena.%loop-value%.%arg 1%} is true:
  207. if {arena.%arg 1%.count} is more than 1:
  208. send "{@tag} &6Arena staruje za &510 &6sec" to loop-value
  209. else:
  210. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  211. if {arena.%arg 1%.count} is more than 1:
  212. execute console command "start1 %arg 1%"
  213. else:
  214. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  215. command /start1 [<text>]:
  216. executable by: console
  217. trigger:
  218. wait 5 real seconds
  219. loop {arena.%arg 1%.gracze::*}:
  220. if {arena.%loop-value%.%arg 1%} is true:
  221. if {arena.%arg 1%.count} is more than 1:
  222. send "{@tag} Arena startuje za &c5 &6sec" to loop-value
  223. else:
  224. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  225. if {arena.%arg 1%.count} is more than 1:
  226. execute console command "start2 %arg 1%"
  227. else:
  228. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  229. command /start2 [<text>]:
  230. executable by: console
  231. trigger:
  232. wait 1 real seconds
  233. loop {arena.%arg 1%.gracze::*}:
  234. if {arena.%loop-value%.%arg 1%} is true:
  235. if {arena.%arg 1%.count} is more than 1:
  236. send "{@tag} Arena startuje za &44 &6sec" to loop-value
  237. else:
  238. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  239. if {arena.%arg 1%.count} is more than 1:
  240. execute console command "start3 %arg 1%"
  241. else:
  242. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  243. command /start3 [<text>]:
  244. executable by: console
  245. trigger:
  246. wait 1 real seconds
  247. loop {arena.%arg 1%.gracze::*}:
  248. if {arena.%loop-value%.%arg 1%} is true:
  249. if {arena.%arg 1%.count} is more than 1:
  250. send "{@tag} Arena startuje za &43 &6sec" to loop-value
  251. else:
  252. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  253. if {arena.%arg 1%.count} is more than 1:
  254. execute console command "start4 %arg 1%"
  255. else:
  256. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  257. command /start4 [<text>]:
  258. executable by: console
  259. trigger:
  260. wait 1 real seconds
  261. loop {arena.%arg 1%.gracze::*}:
  262. if {arena.%loop-value%.%arg 1%} is true:
  263. if {arena.%arg 1%.count} is more than 1:
  264. send "{@tag} Arena startuje za &42 &6sec" to loop-value
  265. else:
  266. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  267. if {arena.%arg 1%.count} is more than 1:
  268. execute console command "start5 %arg 1%"
  269. else:
  270. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  271. command /start5 [<text>]:
  272. executable by: console
  273. trigger:
  274. wait 1 real seconds
  275. loop {arena.%arg 1%.gracze::*}:
  276. if {arena.%loop-value%.%arg 1%} is true:
  277. if {arena.%arg 1%.count} is more than 1:
  278. send "{@tag} Arena startuje za &41 &6sec" to loop-value
  279. else:
  280. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  281. if {arena.%arg 1%.count} is more than 1:
  282. execute console command "start6 %arg 1%"
  283. else:
  284. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  285. command /start6 [<text>]:
  286. executable by: console
  287. trigger:
  288. wait 1 real seconds
  289. loop {arena.%arg 1%.gracze::*}:
  290. if {arena.%loop-value%.%arg 1%} is true:
  291. if {arena.%arg 1%.count} is more than 1:
  292. teleport loop-value to {spawn.arena.%arg 1%}
  293. send "{@tag} &aArena wystartowala!" to loop-value
  294. add Diamond shovel of efficiency 1 and unbreaking 10 to loop-value's inventory
  295. if {staly.item.tnt.%loop-value%} is true:
  296. add 3 Tnt named "&4Rzucane tnt" to loop-value's inventory
  297. set {arena.%arg 1%} to "&4&l✖ W trakcie ✖"
  298. else:
  299. set {arena.%arg 1%} to "&a✔ Wolna ✔"
  300.  
  301.  
  302.  
  303. command /leave:
  304. trigger:
  305. if {arena.%player%.%{arena.%player%}%} is set:
  306. delete {arena.%player%.%{arena.%player%}%}
  307. remove 1 from {arena.%{arena.%player%}%.count}
  308. remove player from {arena.%{arena.%player%}%.gracze::*}
  309. set {na.arenie.%player%} to false
  310. clear player's inventory
  311. teleport player to {spawn}
  312. send "{@tag} &eOpusciles arene &3%{arena.%player%}%"
  313. loop all players:
  314. if {arena.%loop-player%.%{arena.%player%}%} is true:
  315. send "{@tag} &7%player% &eopuscil arene! &e(&b%{arena.%{arena.%player%}%.count}%&e/&b10&e)" to loop-players
  316. wait 2 tick
  317. if {arena.%{arena.%player%}%.count} is 1:
  318. if {arena.%{arena.%player%}%} is "&4&l✖ W trakcie ✖":
  319. teleport loop-player to {spawn}
  320. set {arena.%{arena.%player%}%} to "&a✔ Wolna ✔"
  321. set {arena.%loop-player%.%{arena.%player%}%} to false
  322. set {na.arenie.%loop-player%} to false
  323. remove player from {arena.%{arena.%player%}%.gracze::*}
  324. clear loop-player's inventory
  325. add {@points} to {points.sf.%loop-player%}
  326. broadcast "{@tag} &7%loop-player% &9wygral na arenie &6&l%{arena.%loop-player%}% &e(&a+{@points} pkt&e)"
  327. wait 1 tick
  328. execute console command "sf reset %{arena.%player%}%"
  329.  
  330. else:
  331. send "{@tag} &cNie jestes na zadniej arenie!"
  332. on quit:
  333. if {arena.%player%.%{arena.%player%}%} is set:
  334. delete {arena.%player%.%{arena.%player%}%}
  335. remove 1 from {arena.%{arena.%player%}%.count}
  336. remove player from {arena.%{arena.%player%}%.gracze::*}
  337. set {na.arenie.%player%} to false
  338. clear player's inventory
  339. teleport player to {spawn}
  340. send "{@tag} &eOpusciles arene &3%{arena.%player%}%"
  341. loop all players:
  342. if {arena.%loop-player%.%{arena.%player%}%} is true:
  343. send "{@tag} &7%player% &eopuscil arene! &e(&b%{arena.%{arena.%player%}%.count}%&e/&b10&e)" to loop-players
  344. wait 2 tick
  345. if {arena.%{arena.%player%}%.count} is 1:
  346. if {arena.%{arena.%player%}%} is "&4&l✖ W trakcie ✖":
  347. teleport loop-player to {spawn}
  348. set {arena.%{arena.%player%}%} to "&a✔ Wolna ✔"
  349. set {arena.%loop-player%.%{arena.%player%}%} to false
  350. set {na.arenie.%loop-player%} to false
  351. clear loop-player's inventory
  352. remove player from {arena.%{arena.%player%}%.gracze::*}
  353. add {@points} to {points.sf.%loop-player%}
  354. broadcast "{@tag} &7%loop-player% &9wygral na arenie &6&l%{arena.%loop-player%}% &e(&a+{@points} pkt&e)"
  355. wait 1 tick
  356. execute console command "sf reset %{arena.%player%}%"
  357.  
  358. on step on water:
  359. if {arena.%{arena.%player%}%.count} is not 1:
  360. if {arena.%player%.%{arena.%player%}%} is set:
  361. if {arena.%{arena.%player%}%} is "&4&l✖ W trakcie ✖":
  362. delete {arena.%player%.%{arena.%player%}%}
  363. wait 10 tick
  364. remove 1 from {arena.%{arena.%player%}%.count}
  365. set {na.arenie.%player%} to false
  366. clear player's inventory
  367. teleport player to {spawn}
  368. loop all players:
  369. if {arena.%loop-player%.%{arena.%player%}%} is true:
  370. send "{@tag} &7%player% &espadl! &e(&b%{arena.%{arena.%player%}%.count}%&e/&b10&e)" to loop-players
  371. wait 2 tick
  372. if {arena.%{arena.%player%}%.count} is 1:
  373. set {arena.%{arena.%player%}%} to "&a✔ Wolna ✔"
  374. delete {arena.%loop-player%.%{arena.%player%}%}
  375. set {na.arenie.%loop-player%} to false
  376. loop 10 times:
  377. wait 5 tick
  378. launch flickering trailing ball firework colored green at loop-player timed 1
  379. teleport loop-player to {spawn}
  380. clear loop-player's inventory
  381. add {@points} to {points.sf.%loop-player%}
  382. broadcast "{@tag} &7%loop-player% &9wygral na arenie &6&l%{arena.%loop-player%}% &e(&a+{@points} pkt&e)"
  383. if {arena.%{arena.%player%}%.count} is 1:
  384. execute console command "sf reset %{arena.%player%}%"
  385. command /odnawianie [<text>] [<text>] [<text>]:
  386. trigger:
  387. set {pos%arg 2%::%arg 1%.%arg 3%} to location of targeted block
  388. send "Ustawiono %arg 2% dla areny %arg 1% numer %arg 3%"
  389. on damage:
  390. cancel event
  391. command /setspawn:
  392. trigger:
  393. if player has permission "spawn.spawn":
  394. set {spawn} to location of player
  395. send "&aUstawiles spawn na %{spawn}%"
  396. on join:
  397. wait 1 second
  398. if player has permission "Admin.server":
  399. set player's tag to "&7[&4Admin&7]&7 "
  400. else if player has permission "server.vip":
  401. set player's tag to "&7[&6Vip&7]&7 "
  402. else:
  403. set player's tag to "&7"
  404. on break:
  405. if player has permission "server.admin":
  406. set {nic} to ""
  407. else:
  408. if block is not snow:
  409. cancel event
  410. on place:
  411. if player has permission "server.admin":
  412. set {nic} to ""
  413. else:
  414. cancel event
Advertisement
Add Comment
Please, Sign In to add comment