frapsik

blebleble

Feb 15th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.29 KB | None | 0 0
  1. #---------[Zmienne]---------#
  2. variables:
  3. {pk.start.%player%} = false
  4. {pk.dolacz.%player%} = false
  5. {pk.timer.%player%.mili} = 0
  6. {pk.timer.%player%.sec} = 0
  7. {event.parkour} = false
  8. {event.parkour.start} = false
  9. {exp.%player%} = 0
  10. {lvl.%player%} = 0
  11. {punkty::%player%} = 0
  12. {1x180.%player%.done} = false
  13. {1x180.%player%.dolacz} = false
  14. {2x180.%player%.done} = false
  15. {2x180.%player%.dolacz} = false
  16. {3x180.%player%.done} = false
  17. {3x180.%player%.dolacz} = false
  18. {4kratki.%player%.done} = false
  19. {4kratki.%player%.dolacz} = false
  20. {check.%player%} = false
  21. {jump.%player%} = false
  22. {speed.%player%} = false
  23. {pk.timer.%player%.sec} = 0
  24.  
  25. #---------[Koniec zmiennych]---------#
  26. options:
  27. #---------[Opcje]---------#
  28.  
  29. tag: &5&l§nCraft&4&l§nJump
  30. pex: &4&lNie posiadasz uprawnien!
  31. bloki: grass or dirt or sand or stone or cobblestone or wooden planks or wood or netherrack or hardened clay or wool or leaves or water or lava or nether quartz ore or soul sand
  32. chat: &8[&7{LVL}&8] &7%display name of player%&8: &7%message%
  33. name_pex: pk.*
  34.  
  35. #---------[Ca³y Kod]---------#
  36. #---------[Nieznasz sie to nie ruszaj!]---------#
  37.  
  38. command /parkour [<text>] [<offlineplayer>]:
  39. aliases: pk, park, p
  40. trigger:
  41. if arg 1 is not set:
  42. if player has permission "{@name_pex}":
  43. send "&8>=========================<"
  44. send "&8> &6/pk zaloz <nazwa> &8- &7Zaklada pk"
  45. send "&8> &6/pk usun <nazwa> &8- &7Usuwa pk"
  46. send "&8> &6/pk lista &8- &7Lista dostepnych pk"
  47. send "&8> &6/pk dolacz <nazwa> &8- &7Dolaczasz do pk"
  48. send "&8> &6/pk opusc &8- &7Opuszczasz pk"
  49. send "&8> &6/pk top10 <arena> &8- &7Gracze top10"
  50. send "&8>=========================<"
  51. stop
  52. else:
  53. send "{@tag} {@pex}"
  54. if arg 1 is "zaloz" or "create":
  55. if player has permission "{@name_pex}":
  56. if arg-offlineplayer is set:
  57. if {pk.nazwa.%arg-offlineplayer%} is not set:
  58. set {pk.nazwa.%arg-offlineplayer%} to true
  59. set {pk.spawn.%arg-offlineplayer%} to location of player
  60. set {parkour::arena::%arg-2%} to arg 2
  61. add arg-offlineplayer to {pk.lista::*}
  62.  
  63. send "{@tag} &7Stworzyles parkour o nazwie: &6%arg-offlineplayer%"
  64. stop
  65. else:
  66. send "{@tag} &7Parkour o nazwie: &6%arg-offlineplayer% &7juz istnieje!"
  67. stop
  68. else:
  69. send "{@tag} &7Poprawne uzycie: &6/pk create <nazwa>"
  70. stop
  71. else:
  72. send "{@pex}"
  73. stop
  74. if arg 1 is "usun" or "remove":
  75. if player has permission "{@name_pex}":
  76. if arg-offlineplayer is set:
  77. if {pk.nazwa.%arg-offlineplayer%} is set:
  78. set {_arena} to arg-2
  79. clear {pk.nazwa.%arg-offlineplayer%}
  80. clear {pk.spawn.%arg-offlineplayer%}
  81. clear {parkour::arena::%arg-2%}
  82. clear {top1::%{_arena}%::time}
  83. remove arg-offlineplayer from {pk.lista::*}
  84. clear {top1::%{_arena}%::player}
  85. send "{@tag} &7Usunales parkour o nazwie: &6%arg-offlineplayer%"
  86. stop
  87. else:
  88. send "{@tag} &7Parkour o nazwie &6%arg-offlineplayer% &7nie istnieje!"
  89. stop
  90. else:
  91. send "{@tag} &7Poprawne uzycie: &6/pk remove <nazwa>"
  92. stop
  93. else:
  94. send "{@pex}"
  95. stop
  96. if arg 1 is "lista" or "list":
  97. if size of {pk.lista::*} is 0:
  98. send "{@tag} &7Nie ma zadnych parkourow!"
  99. stop
  100. else:
  101. send "{@tag} &7Lista parkourow: &6[&7%size of {pk.lista::*}%&6] &7%{pk.lista::*}%"
  102. stop
  103. if arg 1 is "dolacz" or "join":
  104. if arg-offlineplayer is set:
  105. if player has permission "pku":
  106. if {pk.nazwa.%arg-offlineplayer%} is set:
  107. set {pk.start.%player%} to false
  108. set level of the player to 0
  109. set level progress of the player to 0.0
  110. set {pk.timer.%player%.mili} to 0
  111. set {pk.timer.%player%.sec} to 0
  112. set {%player%.event} to false
  113. remove player from {event.status::*}
  114. clear {pk.%player%}
  115. remove bossbar from player
  116. teleport player to {pk.spawn.%arg-offlineplayer%}
  117. set {pk.dolacz.%player%} to true
  118. wait 5 tick
  119. set {pk.%player%} to location of player
  120. set {%player%::arena} to arg-2
  121. set {_arena} to arg-2
  122. set {pk::timer::%player%::top} to 0
  123. set {_top} to {top1::%{_arena}%::time}*0.1
  124. display "&6&lRekord mapy ustanowil &4&l%{top1::%{_arena}%::player}% &5&l%{_top}% &4&lsek." on bossbar with 50 percent by 5 seconds for player
  125. send "{@tag} &fDolaczyles do parkoura &a&l%arg-offlineplayer%&7."
  126. stop
  127. else:
  128. send "{@tag} &5&7Ten parkour nie zostal jeszcze zbudowany!"
  129. stop
  130. else:
  131. send "{@tag} &7Poprawne uzycie: &6/pk join <nazwa>"
  132. stop
  133. if arg 1 is "opusc" or "leave" or "wyjdz":
  134. if {pk.dolacz.%player%} is true:
  135. set {pk.dolacz.%player%} to false
  136. set {pk.start.%player%} to false
  137. set level of the player to 0
  138. set level progress of the player to 0.0
  139. set {pk.timer.%player%.mili} to 0
  140. set {pk.timer.%player%.sec} to 0
  141. set {pk::timer::%player%::top} to 0
  142. clear {pk.%player%}
  143. remove jump boost from player
  144. remove speed from player
  145. teleport player to {spawn.spawn}
  146. remove bossbar from player
  147. stop
  148. else:
  149. send "{@tag} &7Nie jestes na zadnym parkourze!"
  150. stop
  151. if arg 1 is "top":
  152. send "&7<&6*&7>&c========== &a> &b&lTop 10 [Parkour] &a< &c==========&7<&6*&7>" to player
  153. set {_num} to size of {punkty::*}
  154. loop {_num} times:
  155. loop {punkty::*}:
  156. {_v.%loop-number%} is not set:
  157. set {_v.%loop-number%} to loop-value
  158. set {_n.%loop-number%} to loop-index
  159. loop-value is greater than {_v.%loop-number%}:
  160. set {_v.%loop-number%} to loop-value
  161. set {_n.%loop-number%} to loop-index
  162. remove {_v.%loop-number%} from {punkty::*}
  163. loop {_num} times:
  164. loop-number is less than or equal to 10:
  165. send "&c&l%loop-number%. &3&l%{_n.%loop-number%}% &8&l(%{_v.%loop-number%}%)"
  166. set {punkty::%{_n.%loop-number%}%} to {_v.%loop-number%}
  167. {_num} is less than 10:
  168. set {_r} to {_num}
  169. loop 10 - {_num} times:
  170. add 1 to {_r}
  171. send "&c&l%{_r}%. &3&lbrak"
  172. if arg 1 is "toptime":
  173. if {parkour::arena::%arg-2%} is set:
  174. set {_arena} to arg-2
  175. set {_top} to {top1::%{_arena}%::time}*0.1
  176. send "&6&lTop 1 mapy &3&l%arg 2%&6&l!"
  177. send "&7&l1.&4&l%{top1::%{_arena}%::player}% &5&l%{_top}% &4&lsek."
  178.  
  179. #---------[Start JUMP]---------#
  180. on walk on green stained clay:
  181. if block underneath event-block is sponge:
  182. if {pk.dolacz.%player%} is true:
  183. remove bossbar from player
  184. set {pk.timer.%player%.mili} to 0
  185. execute console command "playsound random.pop %player%"
  186. set {pk.timer.%player%.sec} to 0
  187. set {pk::timer::%player%::top} to 0
  188. set level of the player to 0
  189. set level progress of the player to 0.0
  190. set {pk.start.%player%} to true
  191. apply jump boost 10 to the player
  192. set {jump.%player%} to true
  193. set {czas.%player%} to 0
  194. stop
  195.  
  196. #---------[Start SPEED]---------#
  197. on walk on green stained clay:
  198. if block underneath event-block is ice:
  199. if {pk.dolacz.%player%} is true:
  200. remove bossbar from player
  201. set {pk.timer.%player%.mili} to 0
  202. execute console command "playsound random.pop %player%"
  203. set {pk.timer.%player%.sec} to 0
  204. set {pk::timer::%player%::top} to 0
  205. set level of the player to 0
  206. set level progress of the player to 0.0
  207. set {pk.start.%player%} to true
  208. apply speed 2 to the player
  209. set {speed.%player%} to true
  210. set {czas.%player%} to 0
  211. stop
  212.  
  213. #---------[Start]---------#
  214.  
  215. on walk on green stained clay:
  216. if {pk.dolacz.%player%} is true:
  217. remove bossbar from player
  218. set {pk.timer.%player%.mili} to 0
  219. execute console command "playsound random.pop %player%"
  220. set {pk.timer.%player%.sec} to 0
  221. set {pk::timer::%player%::top} to 0
  222. set level of the player to 0
  223. set level progress of the player to 0.0
  224. set {czas.%player%} to 0
  225. set {pk.start.%player%} to true
  226. stop
  227.  
  228.  
  229. on walk on red stained clay:
  230. if block below event-block is sign:
  231. set {_block} to block under event-block
  232. if {_block} is sign:
  233. set {_1} to line 1 of {_block}
  234. set {_2} to line 2 of {_block}
  235. set {_o} to line 3 of {_block}
  236. if {_1} is "&8[&6PK&8]":
  237. if {_2} is "&c&lStop":
  238. if {pk.dolacz.%player%} is true:
  239. if {pk.start.%player%} is true:
  240. teleport player to {pk.%player%}
  241. execute console command "playsound random.pop %player%"
  242. set {pk.start.%player%} to false
  243. remove jump boost from player
  244. remove speed from player
  245. set {jump.%player%} to false
  246. set {speed.%player%} to false
  247. if {check.%player%} is false:
  248. add {_o} to {exp.%player%}
  249. add {_o} to {punkty::%player%}
  250. remove bossbar from player
  251. display "&5&lTwój czas na mapie to: &6&l%{pk.timer.%player%.sec}%,%{pk.timer.%player%.mili}%&4&ls &4&l[&5&l%{_o}%&4&l] &5&lexp" on bossbar with 50 percent by 5 seconds for player
  252. if {top1::%{_arena}%::time} is not set:
  253. set {top1::%{_arena}%::player} to player
  254. set {top1::%{_arena}%::time} to {pk::timer::%player%::top}
  255. send "&8>&2&lUstanowiles nowy rekord na arenie %{_arena}%!"
  256. broadcast "&8>&2&lGracz ustanowil nowy rekord na arenie %{_arena}%!"
  257. stop
  258. if {top1::%{_arena}%::time} is set:
  259. if {top1::%{_arena}%::time} is more than {pk::timer::%player%::top}:
  260. set {top1::%{_arena}%::player} to player
  261. set {top1::%{_arena}%::time} to {pk::timer::%player%::top}
  262. send "&8>&2&lPobile rekord na arenie %{_arena}%!"
  263. broadcast "&8>&2&lGracz pobil rekord na arenie %{_arena}%!"
  264. set {pk.timer.%player%.mili} to 0
  265. set {pk.timer.%player%.sec} to 0
  266. set {pk::timer::%player%::top} to 0
  267. clear {%player%::arena}
  268. if {check.%player%} is true:
  269. teleport player to {pk.%player%}
  270. set {_x} to {_o}*0.3
  271. add {_x} to {exp.%player%}
  272. add {_x} to {punkty::%player%}
  273. remove bossbar from player
  274. display "&5&lUzyles zapisu i czas nie byl liczony&4&l[&5&l%{_x}%&4&l] &5&lexp" on bossbar with 50 percent by 5 seconds for player
  275. execute console command "playsound random.pop %player%"
  276. set {pk.timer.%player%.mili} to 0
  277. set {pk.timer.%player%.sec} to 0
  278. set {pk::timer::%player%::top} to 0
  279. set level of the player to 0
  280. set level progress of the player to 0.0
  281. set {pk.start.%player%} to false
  282. remove jump boost from player
  283. remove speed from player
  284. set {jump.%player%} to false
  285. set {speed.%player%} to false
  286. set {check.%player%} to false
  287. if {exp.%player%} is more than 10:
  288. if {lvl.%player%} is 0:
  289. add 1 to {lvl.%player%}
  290. send "&8> &aAwansowales na &f&l1&alvl !"
  291. stop
  292. if {exp.%player%} is more than 20:
  293. if {lvl.%player%} is 1:
  294. add 1 to {lvl.%player%}
  295. send "&8> &aAwansowales na &f&l2&alvl !"
  296. stop
  297. if {exp.%player%} is more than 50:
  298. if {lvl.%player%} is 2:
  299. add 1 to {lvl.%player%}
  300. send "&8> &aAwansowales na &f&l3&alvl !"
  301. stop
  302. if {exp.%player%} is more than 91:
  303. if {lvl.%player%} is 3:
  304. add 1 to {lvl.%player%}
  305. send "&8> &aAwansowales na &f&l4&alvl !"
  306. stop
  307. if {exp.%player%} is more than 148:
  308. if {lvl.%player%} is 4:
  309. add 1 to {lvl.%player%}
  310. send "&8> &aAwansowales na &f&l5&alvl !"
  311. stop
  312. if {exp.%player%} is more than 211:
  313. if {lvl.%player%} is 5:
  314. add 1 to {lvl.%player%}
  315. send "&8> &aAwansowales na &f&l6&alvl !"
  316. stop
  317. if {exp.%player%} is more than 295:
  318. if {lvl.%player%} is 6:
  319. add 1 to {lvl.%player%}
  320. send "&8> &aAwansowales na &f&l7&alvl !"
  321. stop
  322. if {exp.%player%} is more than 385:
  323. if {lvl.%player%} is 7:
  324. add 1 to {lvl.%player%}
  325. send "&8> &aAwansowales na &f&l8&alvl !"
  326. stop
  327. if {exp.%player%} is more than 479:
  328. if {lvl.%player%} is 8:
  329. add 1 to {lvl.%player%}
  330. send "&8> &aAwansowales na &f&l9&alvl !"
  331. stop
  332. if {exp.%player%} is more than 630:
  333. if {lvl.%player%} is 9:
  334. add 1 to {lvl.%player%}
  335. send "&8> &aAwansowales na &f&l10&alvl !"
  336. stop
  337. if {exp.%player%} is more than 847:
  338. if {lvl.%player%} is 10:
  339. add 1 to {lvl.%player%}
  340. send "&8> &aAwansowales na &f&l11&alvl !"
  341. stop
  342. if {exp.%player%} is more than 996:
  343. if {lvl.%player%} is 11:
  344. add 1 to {lvl.%player%}
  345. send "&8> &aAwansowales na &f&l12&alvl !"
  346. stop
  347. if {exp.%player%} is more than 1206:
  348. if {lvl.%player%} is 12:
  349. add 1 to {lvl.%player%}
  350. send "&8> &aAwansowales na &f&l13&alvl !"
  351. stop
  352. if {exp.%player%} is more than 1480:
  353. if {lvl.%player%} is 13:
  354. add 1 to {lvl.%player%}
  355. send "&8> &aAwansowales na &f&l14&alvl !"
  356. stop
  357. if {exp.%player%} is more than 1726:
  358. if {lvl.%player%} is 14:
  359. add 1 to {lvl.%player%}
  360. send "&8> &aAwansowales na &f&l15&alvl !"
  361. stop
  362. if {exp.%player%} is more than 1999:
  363. if {lvl.%player%} is 15:
  364. add 1 to {lvl.%player%}
  365. send "&8> &aAwansowales na &f&l16&alvl !"
  366. stop
  367. if {exp.%player%} is more than 2401:
  368. if {lvl.%player%} is 16:
  369. add 1 to {lvl.%player%}
  370. send "&8> &aAwansowales na &f&l17&alvl !"
  371. stop
  372. if {exp.%player%} is more than 2730:
  373. if {lvl.%player%} is 17:
  374. add 1 to {lvl.%player%}
  375. send "&8> &aAwansowales na &f&l18&alvl !"
  376. stop
  377. if {exp.%player%} is more than 3101:
  378. if {lvl.%player%} is 18:
  379. add 1 to {lvl.%player%}
  380. send "&8> &aAwansowales na &f&l19alvl !"
  381. stop
  382. if {exp.%player%} is more than 3702:
  383. if {lvl.%player%} is 19:
  384. add 1 to {lvl.%player%}
  385. send "&8> &aAwansowales na &f&l20&alvl !"
  386. stop
  387. if {exp.%player%} is more than 4208:
  388. if {lvl.%player%} is 20:
  389. add 1 to {lvl.%player%}
  390. send "&8> &aAwansowales na &f&l21&alvl !"
  391. stop
  392. if {exp.%player%} is more than 4791:
  393. if {lvl.%player%} is 21:
  394. add 1 to {lvl.%player%}
  395. send "&8> &aAwansowales na &f&l22&alvl !"
  396. stop
  397. if {exp.%player%} is more than 5555:
  398. if {lvl.%player%} is 22:
  399. add 1 to {lvl.%player%}
  400. send "&8> &aAwansowales na &f&l23&alvl !"
  401. stop
  402. if {exp.%player%} is more than 6291:
  403. if {lvl.%player%} is 23:
  404. add 1 to {lvl.%player%}
  405. send "&8> &aAwansowales na &f&l24&alvl !"
  406. stop
  407. if {exp.%player%} is more than 6890:
  408. if {lvl.%player%} is 24:
  409. add 1 to {lvl.%player%}
  410. send "&8> &aAwansowales na &f&l25&alvl !"
  411. stop
  412. if {exp.%player%} is more than 7503:
  413. if {lvl.%player%} is 25:
  414. add 1 to {lvl.%player%}
  415. send "&8> &aAwansowales na &f&l26&alvl !"
  416. stop
  417. if {exp.%player%} is more than 8601:
  418. if {lvl.%player%} is 26:
  419. add 1 to {lvl.%player%}
  420. send "&8> &aAwansowales na &f&l27&alvl !"
  421. stop
  422. if {exp.%player%} is more than 9400:
  423. if {lvl.%player%} is 27:
  424. add 1 to {lvl.%player%}
  425. send "&8> &aAwansowales na &f&l28&alvl !"
  426. stop
  427. if {exp.%player%} is more than 10000:
  428. if {lvl.%player%} is 28:
  429. add 1 to {lvl.%player%}
  430. send "&8> &aAwansowales na &f&l29&alvl !"
  431. stop
  432. if {exp.%player%} is more than 12000:
  433. if {lvl.%player%} is 29:
  434. add 1 to {lvl.%player%}
  435. send "&8> &aAwansowales na &f&l30&alvl !"
  436. stop
  437. else:
  438. send "{@tag} &7Nie ukonczono parkoura."
  439. teleport player to {pk.%player%}
  440. remove bossbar from player
  441. set {pk.timer.%player%.mili} to 0
  442. add 1 to {exp.%player%}
  443. set {pk.timer.%player%.sec} to 0
  444. set {pk::timer::%player%::top} to 0
  445. set level of the player to 0
  446. set level progress of the player to 0.0
  447. set {pk.start.%player%} to false
  448. set {jump.%player%} to false
  449. set {speed.%player%} to false
  450. stop
  451.  
  452. #---------[Upadki]---------#
  453. on walk on {@bloki}:
  454. Loop blocks below player:
  455. Loop-block is command block:
  456. if {pk.dolacz.%player%} is true:
  457. if {pk.start.%player%} is true:
  458. if {check.%player%} is true:
  459. if {jump.%player%} is true:
  460. teleport player to {zapis.%player%}
  461. set level of the player to 0
  462. set level progress of the player to 0.0
  463. set {pk.timer.%player%.mili} to 0
  464. set {pk.timer.%player%.sec} to 0
  465. set {pk::timer::%player%::top} to 0
  466. set {pk.start.%player%} to true
  467. remove bossbar from player
  468. apply jump boost 10 to the player
  469. stop
  470. else:
  471. teleport player to {zapis.%player%}
  472. set level of the player to 0
  473. set level progress of the player to 0.0
  474. set {pk.timer.%player%.mili} to 0
  475. set {pk.timer.%player%.sec} to 0
  476. set {pk::timer::%player%::top} to 0
  477. set {pk.start.%player%} to true
  478. remove bossbar from player
  479. stop
  480. if {speed.%player%} is true:
  481. teleport player to {zapis.%player%}
  482. set level of the player to 0
  483. set level progress of the player to 0.0
  484. set {pk.timer.%player%.mili} to 0
  485. set {pk.timer.%player%.sec} to 0
  486. set {pk::timer::%player%::top} to 0
  487. set {pk.start.%player%} to true
  488. remove bossbar from player
  489. apply speed 2 to the player
  490. stop
  491. else:
  492. teleport player to {zapis.%player%}
  493. set level of the player to 0
  494. set level progress of the player to 0.0
  495. set {pk.timer.%player%.mili} to 0
  496. set {pk.timer.%player%.sec} to 0
  497. set {pk::timer::%player%::top} to 0
  498. set {pk.start.%player%} to true
  499. set {czas.%player%} to 0
  500. stop
  501. else:
  502. if {jump.%player%} is true:
  503. teleport player to {pk.%player%}
  504. set level of the player to 0
  505. set level progress of the player to 0.0
  506. set {pk.timer.%player%.mili} to 0
  507. set {pk.timer.%player%.sec} to 0
  508. set {pk::timer::%player%::top} to 0
  509. set {pk.start.%player%} to false
  510. remove bossbar from player
  511. apply jump boost 10 to the player
  512. stop
  513. else:
  514. teleport player to {pk.%player%}
  515. set level of the player to 0
  516. set level progress of the player to 0.0
  517. set {pk.timer.%player%.mili} to 0
  518. set {pk.timer.%player%.sec} to 0
  519. set {pk::timer::%player%::top} to 0
  520. set {pk.start.%player%} to false
  521. remove bossbar from player
  522. stop
  523. if {speed.%player%} is true:
  524. teleport player to {pk.%player%}
  525. set level of the player to 0
  526. set level progress of the player to 0.0
  527. set {pk.timer.%player%.mili} to 0
  528. set {pk.timer.%player%.sec} to 0
  529. set {pk::timer::%player%::top} to 0
  530. set {pk.start.%player%} to false
  531. remove bossbar from player
  532. apply speed 2 to the player
  533. stop
  534. else:
  535. teleport player to {pk.%player%}
  536. set level of the player to 0
  537. set level progress of the player to 0.0
  538. set {pk.timer.%player%.mili} to 0
  539. set {pk.timer.%player%.sec} to 0
  540. set {pk::timer::%player%::top} to 0
  541. set {pk.start.%player%} to false
  542. remove bossbar from player
  543. stop
  544. every 0.1 second:
  545. loop all players:
  546. if {pk.dolacz.%loop-player%} is true:
  547. set {_arena} to {%loop-player%::arena}
  548. set {_top} to {top1::%{_arena}%::time}*0.1
  549. display board named "&6===Top &5&l[&6%{_arena}%&5&l]===" to loop-player
  550. make score "=&4&l%{_top}%&6[S]" in board of loop-player to 1
  551. make score "&71.&4&l%{top1::%{_arena}%::player}%" in board of loop-player to 2
  552. move display of loop-player to sidebar
  553.  
  554. #---------[Tabliczki]---------#
  555.  
  556. on sign change:
  557. if player has permission "{@name_pex}":
  558. if line 1 is "[pk]" or "[PK]":
  559. set line 1 to "&4&l[PK]"
  560. if line 1 is "[parkour]" or "[PARKOUR]":
  561. set line 1 to "&4&l[Parkour]"
  562. if line 2 is "dolacz" or "DOLACZ":
  563. set line 2 to "&6Dolacz"
  564. if line 2 is "join" or "JOIN":
  565. set line 2 to "&6Join"
  566. if line 3 is set:
  567. if {pk.nazwa.%line 3%} is set:
  568. set line 3 to "&5&l%line 3%"
  569. if line 2 is "opusc" or "OPUSC":
  570. set line 2 to "&&5&lOpusc"
  571. if line 2 is "leave" or "LEAVE":
  572. set line 2 to "&5&lLeave"
  573. if line 2 is "wyjdz" or "wyjdz":
  574. set line 2 to "&5&lWyjdz"
  575.  
  576. on rightclick on sign:
  577. if line 1 of clicked block is "&4&l[Parkour]" or "&4&l[PK]":
  578. if line 2 of clicked block is "&5&lLeave" or "&5&lWyjdz" or "&5&lOpusc":
  579. execute player command "pk leave"
  580. stop
  581. else if line 2 of clicked block is "&6Join" or "&6Dolacz":
  582. execute player command "pk join %uncoloured line 3 of clicked block%"
  583. stop
  584.  
  585. #---------[Timer]---------#
  586.  
  587. every 0.1 second:
  588. loop all players:
  589. if {pk.dolacz.%loop-player%} is true:
  590. if {pk.start.%loop-player%} is true:
  591. add 1 to {pk.timer.%loop-player%.mili}
  592. add 1 to {pk::timer::%loop-player%::top}
  593. add 0.1 to level progress of the loop-player
  594. if {pk.timer.%loop-player%.mili} is 10:
  595. set level progress of the loop-player to 0.0
  596. set {pk.timer.%loop-player%.mili} to 0
  597. add 1 to {pk.timer.%loop-player%.sec}
  598. set the loop-player's level to {pk.timer.%loop-player%.sec}
  599. display "&5&lTwoj czas to &6%{pk.timer.%loop-player%.sec}%,%{pk.timer.%loop-player%.mili}% &5&lsek" on bossbar with 100 percent by 0.1 seconds for loop-player
  600.  
  601.  
  602. on join:
  603. set {pk.dolacz.%player%} to false
  604. set {pk.start.%player%} to false
  605. set level of the player to 0
  606. set level progress of the player to 0.0
  607. set {pk.timer.%player%.mili} to 0
  608. set {pk.timer.%player%.sec} to 0
  609. set {pk::timer::%player%::top} to 0
  610. set {pk::timer::%player%::event} to 0
  611. set {pk::timer::%player%::ev} to 0
  612. set {check.%player%} to false
  613. set {jump.%player%} to false
  614. set {speed.%player%} to false
  615. set {event.parkour.start} to false
  616. set {event.parkour} to false
  617. set {event.dolacz::%player%} to false
  618. clear {pk.%player%}
  619. clear {pokaz.%player%::*}
  620. set {particle::%player%::active} to false
  621. teleport player to {spawn.spawn}
  622. remove bossbar from player
  623. clear player's inventory
  624. add 1 chest named "&6★ &9&lLista &6&lParkourow &6★" to player's inventory
  625. add 1 blaze rod named "&6★ &9&lTeleport na &6&lSpawn &6★" to player's inventory
  626. add 1 nether star named "&6★ &9&lTeleport na &6&lEvent &6★" to player's inventory
  627. add 1 cactus green named "&6★ &9&lGracze &a&lpokazani &6★" to player's inventory
  628. add 1 bed named "&6★ &9&lCheck point &6★" to player's inventory
  629. add 1 blaze powder named "&6★ &9&lEfekty&6★" to player's inventory
  630. add 1 book named "&6Lista map" with lore " &6Otwiera menu parkourow" to player's inventory
  631.  
  632.  
  633. stop
  634.  
  635. command /gui [<text>] [<player>]:
  636. trigger:
  637. if arg 1 is "start":
  638. wait 2 tick
  639. open chest with 1 rows named "&6★ &9&lLista &6★" to arg 2
  640. wait 2 tick
  641. format slot 0 of arg 2 with 1 of green wool named "&2&lEasy" with lore "&6★ &9&lLista Parkourow &2&lEasy &6★" to run "gui easy %arg-2%"
  642. format slot 1 of arg 2 with 1 of orange wool named "&6&lMedium" with lore "&6★ &9&lLista Parkourow &6&lMedium &6★" to run "gui medium %arg-2%"
  643. format slot 2 of arg 2 with 1 of red wool named "&4&lHard" with lore "&6★ &9&lLista Parkourow &4&lHard &6★" to run "gui hard %arg-2%"
  644. format slot 8 of arg 2 with 1 of blue wool named "&9&lOsiagniecia" with lore "&6★ &9&lZdobadz &a&losiagniecia &6★" to run "gui osiagniecia %arg-2%"
  645. format slot 6 of arg 2 with 1 of splash potion of swiftness named "&9&lEfektowe" with lore "&6★ &9&lMapy z efektami potek &6★" to run "gui ef %arg-2%"
  646. if arg 1 is "easy":
  647. open chest with 6 rows named "&6★ &2&lMapy Easy &6★" to arg 2
  648. wait 2 tick
  649. format slot 0 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 1 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 1 %arg-2%"
  650. format slot 1 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 2 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 2 %arg-2%"
  651. format slot 2 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 3 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 3 %arg-2%"
  652. format slot 3 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 4 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 4 %arg-2%"
  653. format slot 4 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 5 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 5 %arg-2%"
  654. format slot 5 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 6 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 6 %arg-2%"
  655. format slot 6 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 7 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 7 %arg-2%"
  656. format slot 7 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 8 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 8 %arg-2%"
  657. format slot 8 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 9 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 9 %arg-2%"
  658. format slot 9 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 10 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 10 %arg-2%"
  659. format slot 53 of arg 2 with 1 of arrow named "&6? &4&lPowrot &6◄" with lore "&6&lKliknij by powrocic" to run "gui start %arg-2%"
  660. if arg 1 is "medium":
  661. wait 2 tick
  662. open chest with 6 rows named "&6★ &6&lMapy Medium &6★" to arg 2
  663. wait 2 tick
  664. format slot 0 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 1 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 1 %arg-2%"
  665. format slot 1 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 2 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 2 %arg-2%"
  666. format slot 2 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 3 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 3 %arg-2%"
  667. format slot 3 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 4 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 4 %arg-2%"
  668. format slot 4 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 5 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 5 %arg-2%"
  669. format slot 5 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 6 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 6 %arg-2%"
  670. format slot 6 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 7 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 7 %arg-2%"
  671. format slot 7 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 8 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 8 %arg-2%"
  672. format slot 8 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 9 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 9 %arg-2%"
  673. format slot 9 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 10 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 10 %arg-2%"
  674. format slot 53 of arg 2 with 1 of arrow named "&6► &4&lPowrot &6◄" with lore "&6&lKliknij by powrocic" to run "gui start %arg-2%"
  675. if arg 1 is "hard":
  676. wait 2 tick
  677. open chest with 6 rows named "&6★ &4&lMapy Hard &6★" to arg 2
  678. wait 2 tick
  679. format slot 0 of arg 2 with 1 of red stained clay named "&6► &6&lHard 1 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 1 %arg-2%"
  680. format slot 1 of arg 2 with 1 of red stained clay named "&6► &6&lHard 2 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 2 %arg-2%"
  681. format slot 2 of arg 2 with 1 of red stained clay named "&6► &6&lHard 3 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 3 %arg-2%"
  682. format slot 3 of arg 2 with 1 of red stained clay named "&6► &6&lHard 4 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 4 %arg-2%"
  683. format slot 4 of arg 2 with 1 of red stained clay named "&6► &6&lHard 5 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 5 %arg-2%"
  684. format slot 5 of arg 2 with 1 of red stained clay named "&6► &6&lHard 6 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 6 %arg-2%"
  685. format slot 6 of arg 2 with 1 of red stained clay named "&6► &6&lHard 7 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 7 %arg-2%"
  686. format slot 7 of arg 2 with 1 of red stained clay named "&6► &6&lHard 8 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 8 %arg-2%"
  687. format slot 8 of arg 2 with 1 of red stained clay named "&6► &6&lHard 9 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 9 %arg-2%"
  688. format slot 9 of arg 2 with 1 of red stained clay named "&6► &6&lHard 10 &6" with lore "&6&lKliknij by dolaczyc" to run "hard 10 %arg-2%"
  689. format slot 53 of arg 2 with 1 of arrow named "&6► &4&lPowrot &6◄" with lore "&6&lKliknij by powrocic" to run "gui start %arg-2%"
  690. if arg 1 is "ef":
  691. wait 2 tick
  692. open chest with 6 rows named "&6★ &4&lMapy efektowe &6★" to arg 2
  693. wait 2 tick
  694. format slot 2 of arg 2 with 1 of sugar named "&6► &4&lSpeed 1 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 1 %arg-2%"
  695. format slot 3 of arg 2 with 1 of sugar named "&6► &4&lSpeed 2 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 2 %arg-2%"
  696. format slot 4 of arg 2 with 1 of sugar named "&6► &4&lSpeed 3 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 3 %arg-2%"
  697. format slot 5 of arg 2 with 1 of sugar named "&6► &4&lSpeed 4 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 4 %arg-2%"
  698. format slot 6 of arg 2 with 1 of sugar named "&6► &4&lSpeed 5 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 5 %arg-2%"
  699. format slot 11 of arg 2 with 1 of feather named "&6► &d&lJump 1 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 6 %arg-2%"
  700. format slot 12 of arg 2 with 1 of feather named "&6► &d&lJump 2 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 7 %arg-2%"
  701. format slot 13 of arg 2 with 1 of feather named "&6► &d&lJump 3 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 8 %arg-2%"
  702. format slot 14 of arg 2 with 1 of feather named "&6► &d&lJump 4 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 9 %arg-2%"
  703. format slot 15 of arg 2 with 1 of feather named "&6► &d&lJump 5 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 10 %arg-2%"
  704. format slot 53 of arg 2 with 1 of arrow named "&6► &4&lPowrot &6◄" with lore "&6&lKliknij by powrocic" to run "gui start %arg-2%"
  705. if arg 1 is "osiagniecia":
  706. wait 2 tick
  707. open chest with 6 rows named "&6★ &9&lTwoje Osiagniecia &6★" to arg 2
  708. wait 2 tick
  709. format slot 53 of arg 2 with 1 of arrow named "&6► &4&lPowrot &6◄" with lore "&6&lKliknij by powrocic" to run "gui start %arg-2%"
  710. if {1x180.%arg-2%.done} is false:
  711. format slot 3 of arg 2 with 1 of red stained clay named "&d&l1x180" with lore "&6► &fWykonaj &a&l180'tke &6◄" to run "osiagi 1 %arg-2%"
  712. else:
  713. format slot 3 of arg 2 with 1 of green stained clay named "&d&l1x180" with lore "&6► &a&l✔ Wykonano! &6◄" to run "gui start %arg-2%"
  714. if {2x180.%arg-2%.done} is false:
  715. format slot 4 of arg 2 with 1 of red stained clay named "&d&l2x180" with lore "&6► &fWykonaj &a&lpodwojna 180'tke &6◄" to run "osiagi 2 %arg-2%"
  716. else:
  717. format slot 4 of arg 2 with 1 of green stained clay named "&d&l2x180" with lore "&6► &a&l✔ Wykonano! &6◄" to run "gui start %arg-2%"
  718. if {3x180.%arg-2%.done} is false:
  719. format slot 5 of arg 2 with 1 of red stained clay named "&d&l3x180" with lore "&6► &fWykonaj &a&lpotrojna 180'tke &6◄" to run "osiagi 3 %arg-2%"
  720. else:
  721. format slot 5 of arg 2 with 1 of green stained clay named "&d&l3x180" with lore "&6► &a&l✔ Wykonano! &6◄" to run "gui start %arg-2%"
  722. if {4kratki.%arg-2%.done} is false:
  723. format slot 12 of arg 2 with 1 of red stained clay named "&d&lSkok na 4 kratki" with lore "&6► &fWykonaj &a&lskok na 4 kratki &6◄" to run "osiagi 3 %arg-2%"
  724. else:
  725. format slot 12 of arg 2 with 1 of green stained clay named "&d&lSkok na 4 kratki" with lore "&6► &a&lWykonano! &6◄" to run "gui start %arg-2%"
  726.  
  727.  
  728.  
  729. on right click with chest:
  730. if name of player's tool is "&6★ &9&lLista &6&lParkourow &6★":
  731. execute player command "/gui start %player%"
  732. stop
  733.  
  734. on place chest:
  735. if name of player's tool is "&6★ &9&lLista &6&lParkourow &6★":
  736. cancel event
  737.  
  738. command /znajomy [<text>] [<offlineplayer>]:
  739. trigger:
  740. if arg 1 is not set:
  741. send "&a&l/znajomy dodaj/usun <nick>"
  742. stop
  743. if arg 1 is "dodaj" or "add":
  744. if arg 2 is set:
  745. if arg 2 is online:
  746. add arg 2 to {znajomy.parkour::*}
  747. send "&fDodales gracza &a&l%arg 2%&f do znajomych!"
  748. stop
  749. else:
  750. send "&fGracza &a&l%arg 2% &fNie ma na serwerze!"
  751. stop
  752. else:
  753. send "&fPodaj gracza!&a /znajomy dodaj <nick>"
  754. stop
  755. if arg 1 is "remove" or "usun":
  756. if arg 2 is set:
  757. if arg 2 is online:
  758. if arg 2 is {znajomy.parkour::*}:
  759. remove arg 2 from {znajomy.parkour::*}
  760. send "&fUsunales gracza &a&l%arg 2% &fze znajomych!"
  761. stop
  762. else:
  763. send "&fGracza &a&l%arg 2% &fnie ma w twoich znajomych!"
  764. stop
  765. if arg 1 is "list" or "lista":
  766. if arg 2 is not set:
  767. if size of {znajomy.parkour::*} is 0:
  768. send "&fNie masz znajomych!"
  769. stop
  770. else:
  771. send "&fTwoi znajomi &a[&2%size of {znajomy.parkour::*}%&a]&f: &a&l{znajomy.%player%::*}"
  772. stop
  773.  
  774. command /list:
  775. trigger:
  776. open chest with 6 rows named "&a&lOnlin&a&le:" to player
  777. wait 1 tick
  778. loop all players:
  779. add 1 to {_online}
  780. if player is an op:
  781. format slot {_online}-1 of player with 1 of red wool named "%loop-player%" to close
  782. else:
  783. format slot {_online}-1 of player with 1 of light green wool named "%loop-player%" to close
  784.  
  785. on right click with cactus green:
  786. if name of player's tool is "&6★ &9&lGracze &a&lpokazani &6★":
  787. cancel event
  788. hide all players from player
  789. wait 1 tick
  790. set player's tool to orange dye
  791. set name of the player's tool to "&6★ &9&lGracze &6&lznajomi &6★"
  792. send "&6Pokazales znajomych"
  793. stop
  794.  
  795. on right click with orange dye:
  796. if name of player's tool is "&6★ &9&lGracze &6&lZnajomi &6★":
  797. cancel event
  798. hide all players from player
  799. reveal {znajomi.parkour::*} to player
  800. wait 1 tick
  801. set player's tool to rose red
  802. set name of the player's tool to "&6★ &9&lGracze &c&lukryci &6★"
  803. send "&cUkryles graczy"
  804. stop
  805.  
  806. on right click with rose red:
  807. if name of player's tool is "&6★ &9&lGracze &c&lukryci &6★":
  808. cancel event
  809. reveal all players to player
  810. wait 1 tick
  811. set player's tool to cactus green
  812. set name of the player's tool to "&6★ &9&lGracze &a&lpokazani &6★"
  813. send "&aPokazales graczy"
  814. stop
  815.  
  816. command /event [<text>] [<player>]:
  817. trigger:
  818. if player has permission "{@name_pex}":
  819. if arg 1 is not set:
  820. send "&3&l/event spawn &f- ustawia spawn na mapie eventowej"
  821. stop
  822. if arg 1 is "ustaw" or "spawn":
  823. set {event.spawn} to location of player
  824. send "&1Ustawiles spawn dla mapy eventowej!"
  825. stop
  826. if arg 1 is "start":
  827. if arg 2 is set:
  828. set {event.parkour} to true
  829. set {event.parkour.start} to true
  830. display "&5&l§nEvent od &6&l########&4&l%arg-2%&6&l########" on bossbar with 100 percent by 5 seconds for player
  831. stop
  832.  
  833. every 1800 second:
  834. if {event.parkour} is false:
  835. set {event.parkour} to true
  836. broadcast "{@tag} &fEvent rozpocznie sie za &a&l30s&f!"
  837. wait 10 seconds
  838. broadcast "{@tag} &fEvent rozpocznie sie za &a&l20s&f!"
  839. wait 10 seconds
  840. broadcast "{@tag} &fEvent rozpocznie sie za &a&l10s&f!"
  841. wait 5 seconds
  842. broadcast "{@tag} &fEvent rozpocznie sie za &a&l5s&f!"
  843. play raw sound "random.pop" at {spawn.spawn} with pitch 1 volume 5
  844. wait 1 seconds
  845. broadcast "{@tag} &fEvent rozpocznie sie za &a&l4s&f!"
  846. play raw sound "random.pop" at {spawn.spawn} with pitch 1 volume 5
  847. wait 1 seconds
  848. broadcast "{@tag} &fEvent rozpocznie sie za &a&l3s&f!"
  849. play raw sound "random.pop" at {spawn.spawn} with pitch 1 volume 5
  850. wait 1 seconds
  851. broadcast "{@tag} &fEvent rozpocznie sie za &a&l2s&f!"
  852. play raw sound "random.pop" at {spawn.spawn} with pitch 1 volume 5
  853. wait 1 seconds
  854. broadcast "{@tag} &fEvent rozpocznie sie za &a&l1s&f!"
  855. play raw sound "random.pop" at {spawn.spawn} with pitch 1 volume 5
  856. wait 1 seconds
  857. if {event.parkour} is true:
  858. set {event.parkour.start} to true
  859. broadcast "{@tag} &fEvent wystartowal!"
  860. stop
  861.  
  862. on right click with nether star:
  863. if name of player's tool is "&6★ &9&lTeleport na &6&lEvent &6★":
  864. if {event.parkour} is true:
  865. add player to {event.status::*}
  866. teleport player to {event.spawn}
  867. set {pk.dolacz.%player%} to false
  868. set {pk.start.%player%} to false
  869. set level of the player to 0
  870. set level progress of the player to 0.0
  871. set {pk.timer.%player%.mili} to 0
  872. set {pk.timer.%player%.sec} to 0
  873. set {pk.timer.%player%.mili} to 0
  874. set {pk.timer.%player%.event} to 0
  875. set {pk.timer.%player%.ev} to 0
  876. set {event.dolacz::%player%} to true
  877. clear {pk.%player%}
  878. remove bossbar from player
  879. set {_l} to size of {event.status::*}
  880. send "{@tag} &fGracz &a&l%player% &2[&a%{_l}%&2] &fdolaczyl do eventu!" to {event.status::*}
  881. stop
  882. else:
  883. send "{@tag} &fAktualnie nie ma zadnego eventu!"
  884. stop
  885.  
  886. every 0.1 second:
  887. loop all players:
  888. if {event.parkour} is true:
  889. if {event.dolacz::%loop-player%} is true:
  890. add 1 to {pk::timer::%loop-player%::event}
  891. add 0.1 to level progress of the loop-player
  892. if {pk.timer.%loop-player%.event} is 10:
  893. set level progress of the loop-player to 0.0
  894. set {pk.timer.%loop-player%.event} to 0
  895. add 1 to {pk.timer.%loop-player%.ev}
  896. set the loop-player's level to {pk.timer.%loop-player%.ev}
  897. display "&5&lTwoj czas to &6%{pk.timer.%loop-player%.ev}%,%{pk.timer.%loop-player%.event}% &5&lsek" on bossbar with 100 percent by 0.1 seconds for loop-player
  898.  
  899. on walk on {@bloki}:
  900. Loop blocks below player:
  901. Loop-block is end stone:
  902. if {event.parkour} is true:
  903. if {event.dolacz::%player%} is true:
  904. teleport player to {event.spawn}
  905. set {pk.timer.%player%.event} to 0
  906. set {pk.timer.%player%.ev} to 0
  907.  
  908.  
  909. on any move:
  910. if player is {event.status::*}:
  911. if {event.parkour} is true:
  912. if {event.parkour.start} is false:
  913. teleport player to {event.spawn}
  914.  
  915. on walking on blue wool:
  916. if block underneath event-block is sponge:
  917. if {event.parkour.start} is true:
  918. set {event.parkour} to false
  919. set {event.parkour.start} to false
  920. set {event.dolacz::*} to false
  921. teleport {event.status::*} to {spawn.spawn}
  922. clear {event.status::*}
  923. set {_r} to random integer between 15 and 150
  924. add {_r} to {exp.%player%}
  925. add {_r} to {punkty::%player%}
  926. broadcast "{@tag} &fEvent zakonczony! Wygrywa &a&l%player% &2[&a%{_r}%&2]&fexp"
  927. display "&5&lEvent zakonczony! Wygrywa &4&l%player% &6[&c%{_r}%&6]&4&lexp" on bossbar with 100 percent by 5 seconds for player
  928. stop
  929.  
  930. command /daj:
  931. trigger:
  932. if player have permission "{@name_pex}":
  933. clear player's inventory
  934. add 1 cactus green named "&6★ &9&lGracze &a&lpokazani &6★" to player's inventory
  935. add 1 chest named "&6★ &9&lLista &6&lParkourow &6★" to player's inventory
  936. add 1 blaze rod named "&6★ &9&lTeleport na &6&lSpawn &6★" to player's inventory
  937. add 1 nether star named "&6★ &9&lTeleport na &6&lEvent &6★" to player's inventory
  938. add 1 bed named "&6★ &9&lCheck point &6★" to the player's inventory
  939. add 1 blaze powder named "&6★ &9&lEfekty&6★" to player's inventory
  940. stop
  941.  
  942. on right click with blaze rod:
  943. if name of player's tool is "&6★ &9&lTeleport na &6&lSpawn &6★":
  944. set {pk.dolacz.%player%} to false
  945. set {pk.start.%player%} to false
  946. set level of the player to 0
  947. set level progress of the player to 0.0
  948. set {pk.timer.%player%.mili} to 0
  949. set {pk.timer.%player%.sec} to 0
  950. set {event.parkour} to false
  951. set {event.parkour.start} to false
  952. set {check.%player%} to false
  953. remove player from {event.status::*}
  954. clear {pk.%player%}
  955. teleport player to {spawn.spawn}
  956. remove bossbar from player
  957. display board named "&6===Top &5&l[&6%{_arena}%&5&l]===" to player
  958. stop
  959.  
  960. on drop:
  961. cancel event
  962. stop
  963.  
  964. command /osiagniecia [<text>] [<text>] [<player>]:
  965. aliases: o
  966. trigger:
  967. if arg 1 is "1x180":
  968. if arg 2 is "spawn":
  969. if arg 3 is not set:
  970. set {1x180.parkour} to location of player
  971. send "&8> &7Ustawiles spawn dla osiagniecia &61x180'tka"
  972. stop
  973. else:
  974. send "&8> &7Uzycie: &6/o 1x180 spawn"
  975. stop
  976. if arg 2 is "dolacz":
  977. if arg 3 is set:
  978. teleport arg 3 to {1x180.parkour}
  979. set {1x180.%arg-3%.dolacz} to true
  980. else:
  981. teleport player to {1x180.parkour}
  982. set {1x180.%player%.dolacz} to true
  983. if arg 2 is "opusc":
  984. if arg 3 is set:
  985. set {1x180.%arg-3%.dolacz} to false
  986. else:
  987. set {1x180.%player%.dolacz} to false
  988. if arg 1 is "2x180":
  989. if arg 2 is "spawn":
  990. if arg 3 is not set:
  991. set {2x180.parkour} to location of player
  992. send "&8> &7Ustawiles spawn dla osiagniecia &62x180'tka"
  993. stop
  994. else:
  995. send "&8> &7Uzycie: &6/o 2x180 spawn"
  996. stop
  997. if arg 2 is "dolacz":
  998. if arg 3 is set:
  999. teleport arg 3 to {2x180.parkour}
  1000. set {2x180.%arg-3%.dolacz} to true
  1001. else:
  1002. teleport player to {2x180.parkour}
  1003. set {2x180.%player%.dolacz} to true
  1004. if arg 2 is "opusc":
  1005. if arg 3 is set:
  1006. set {2x180.%arg-3%.dolacz} to false
  1007. else:
  1008. set {2x180.%player%.dolacz} to false
  1009. if arg 1 is "3x180":
  1010. if arg 2 is "spawn":
  1011. if arg 3 is not set:
  1012. set {3x180.parkour} to location of player
  1013. send "&8> &7Ustawiles spawn dla osiagniecia &63x180'tka"
  1014. stop
  1015. else:
  1016. send "&8> &7Uzycie: &6/o 3x180 spawn"
  1017. stop
  1018. if arg 2 is "dolacz":
  1019. if arg 3 is set:
  1020. teleport arg 3 to {3x180.parkour}
  1021. set {3x180.%arg-3%.dolacz} to true
  1022. else:
  1023. teleport player to {3x180.parkour}
  1024. set {3x180.%player%.dolacz} to true
  1025. if arg 2 is "opusc":
  1026. if arg 3 is set:
  1027. set {3x180.%arg-3%.dolacz} to false
  1028. else:
  1029. set {3x180.%player%.dolacz} to false
  1030. if arg 1 is "4kratki":
  1031. if arg 2 is "spawn":
  1032. if arg 3 is not set:
  1033. set {4kratki.parkour} to location of player
  1034. send "&8> &7Ustawiles spawn dla osiagniecia 4 Kratki"
  1035. stop
  1036. else:
  1037. send "&8> &7Uzycie: &6/o 4kratki spawn"
  1038. stop
  1039. if arg 2 is "dolacz":
  1040. if arg 3 is set:
  1041. teleport arg 3 to {4kratki.parkour}
  1042. set {4kratki.%arg-3%.dolacz} to true
  1043. else:
  1044. teleport player to {4kratki.parkour}
  1045. set {4kratki.%player%.dolacz} to true
  1046. if arg 2 is "opusc":
  1047. if arg 3 is set:
  1048. set {4kratki.%arg-3%.dolacz} to false
  1049. else:
  1050. set {4kratki.%player%.dolacz} to false
  1051.  
  1052. on walk on green stained clay:
  1053. if block underneath event-block is sponge:
  1054. if {1x180.%player%.dolacz} is true:
  1055. if {1x180.%player%.done} is false:
  1056. set {1x180.%player%.done} to true
  1057. set {1x180.%player%.dolacz} to false
  1058. teleport player to {spawn.spawn}
  1059. send "&fZdobyto osiagniecie &a&l180'tka"
  1060. stop
  1061.  
  1062. on walk on yellow stained clay:
  1063. if block underneath event-block is sponge:
  1064. if {2x180.%player%.dolacz} is true:
  1065. if {2x180.%player%.done} is false:
  1066. set {2x180.%player%.done} to true
  1067. set {2x180.%player%.dolacz} to false
  1068. teleport player to {spawn.spawn}
  1069. send "&fZdobyto osiagniecie &a&lpodwojna 180'tka"
  1070. stop
  1071.  
  1072. on walk on red stained clay:
  1073. if block underneath event-block is sponge:
  1074. if {3x180.%player%.dolacz} is true:
  1075. if {3x180.%player%.done} is false:
  1076. set {3x180.%player%.done} to true
  1077. set {3x180.%player%.dolacz} to false
  1078. teleport player to {spawn.spawn}
  1079. send "&fZdobyto osiagniecie &a&lpotrojna 180'tka"
  1080. stop
  1081.  
  1082. on walk on wood:
  1083. if block underneath event-block is sponge:
  1084. if {3x180.%player%.dolacz} is true:
  1085. teleport player to {3x180.parkour}
  1086. send "&5Upssss! Spad³es!"
  1087. stop
  1088. if {2x180.%player%.dolacz} is true:
  1089. teleport player to {2x180.parkour}
  1090. send "&5Upssss! Spad³es!"
  1091. stop
  1092. if {1x180.%player%.dolacz} is true:
  1093. teleport player to {1x180.parkour}
  1094. send "&5Upssss! Spad³es!"
  1095. stop
  1096. if {4kratki.%player%.dolacz} is true:
  1097. teleport player to {1x180.parkour}
  1098. send "&5Upssss! Spad³es!"
  1099. stop
  1100. # if {cos tam} is more than liczba
  1101. command /zeroj [<text>] [<player>]:
  1102. trigger:
  1103. if player has permission "parkour.*":
  1104. if arg 1 is "1x180":
  1105. set {1x180.%arg-2%.done} to false
  1106. send "&l&2>>>>&4z zerowano 1x180 gracza &5%arg-2%"
  1107. stop
  1108. if arg 1 is "2x180":
  1109. set {2x180.%arg-2%.done} to false
  1110. send "&l&2>>>>&4z zerowano 2x180 gracza &5%arg-2%"
  1111. stop
  1112. if arg 1 is "3x180":
  1113. set {3x180.%arg-2%.done} to false
  1114. send "&l&2>>>>&4z zerowano 3x180 gracza &5%arg-2%"
  1115. stop
  1116. if arg 1 is "4kratki":
  1117. set {4kratki.%arg-2%.done} to false
  1118. send "&l&2>>>>&4z zerowano Skok na 4 kratki gracza &5%arg-2%"
  1119. Stop
  1120. if arg 1 is "staty":
  1121. clear {punkty::%arg-2%}
  1122. clear {lvl.%arg-2%}
  1123. clear {exp.%arg-2%}
  1124. send "&l&2>>>>&4z zerowano statystyki gracza &5%arg-2%"
  1125. Stop
  1126. if arg 1 is "all":
  1127. set {3x180.%arg-2%.done} to false
  1128. set {2x180.%arg-2%.done} to false
  1129. set {1x180.%arg-2%.done} to false
  1130. set {4kratki.%arg-2%.done} to false
  1131. send "&l&2>>>>&4z zerowano wszystkie osi¹gniêcia gracza &5%arg-2%"
  1132. stop
  1133. command /setspawn:
  1134. trigger:
  1135. if player has permission "essentials.*":
  1136. set {spawn.spawn} to location of player
  1137. send "&6&lUstawiles spawn dla graczy"
  1138. stop
  1139.  
  1140. command /lvl [<offlineplayer>] [<text>] [<integer>]:
  1141. trigger:
  1142. if arg 1 is not set:
  1143. send "&f&l>======================="
  1144. send "&f&l> &aPosiadasz: &f&l%{exp.%player%}% &aexpa"
  1145. send "&f&l> &alvl: &f&l%{lvl.%player%}%"
  1146. send "&f&l>======================="
  1147. stop
  1148. if arg 1 is set:
  1149. if arg 2 is not set:
  1150. send "&f&l>======================="
  1151. send "&f&l> &aGracz &f&l%arg 1%&a:"
  1152. send "&f&l> &aexp: &f&l%{exp.%arg 1%}%"
  1153. send "&f&l> &alvl: &f&l%{lvl.%arg 1%}%"
  1154. send "&f&l>======================="
  1155. stop
  1156. if arg 2 is "set" or "ustaw":
  1157. if arg 3 is not set:
  1158. if player has permission "{@name_pex}":
  1159. send "&f&l> &aPodaj liczbe expa!"
  1160. stop
  1161. else:
  1162. send "{@pex}"
  1163. stop
  1164. if arg 3 is set:
  1165. if player has permission "{@name_pex}":
  1166. set {lvl.%arg 1%} to 0
  1167. set {exp.%arg 1%} to 0
  1168. add arg 3 to {lvl.%arg 1%}
  1169. send "&f&l> &aUstawiles &f%arg 3% &alvl dla gracza &f%arg 1%"
  1170. stop
  1171. else:
  1172. send "{@pex}"
  1173. stop
  1174. if arg 2 is "remove" or "usun":
  1175. if arg 3 is not set:
  1176. if player has permission "{@name_pex}":
  1177. set {lvl.%arg 1%} to 0
  1178. set {exp.%arg 1%} to 0
  1179. send "&f&l> &aUsunales lvl dla gracza &f&l%arg 1%"
  1180. stop
  1181. else:
  1182. send "{@pex}"
  1183. stop
  1184. else:
  1185. send "&f&l> &a/lvl %arg 1% remove"
  1186. stop
  1187. if arg 2 is "add" or "dodaj":
  1188. if arg 3 is set:
  1189. if player has permission "{@name_pex}":
  1190. add arg 3 to {lvl.%arg 1%}
  1191. send "&f&l> &aDodales &f&l%arg 3% &alvl dla gracza &f&l%arg 1%"
  1192. stop
  1193. else:
  1194. send "{@pex}"
  1195. stop
  1196. else:
  1197. send "&f&l> &aPodaj liczbe expa!"
  1198. stop
  1199.  
  1200. on chat:
  1201. if {lvl.%player%} < 3:
  1202. cancel event
  1203. send "&cMozesz pisac od 3 lvl!"
  1204. stop
  1205. if {lvl.%player%} > 2:
  1206. cancel event
  1207. set {_chat} to "{@chat}"
  1208. replace all "{DISPLAY}" with "%display name of player%" in {_chat}
  1209. replace all "{MESSAGE}" with "%message%" in {_chat}
  1210. replace all "{LVL}" with "%{lvl.%player%}%" in {_chat}
  1211. send "%{_chat}%" to all players
  1212.  
  1213. command /easy [<text>] [<player>]:
  1214. trigger:
  1215. if arg 1 is "1":
  1216. execute arg 2 command "/pk join easy1"
  1217. if arg 1 is "2":
  1218. execute arg 2 command "/pk join easy2"
  1219. if arg 1 is "3":
  1220. execute arg 2 command "/pk join easy3"
  1221. if arg 1 is "4":
  1222. execute arg 2 command "/pk join easy4"
  1223. if arg 1 is "5":
  1224. execute arg 2 command "/pk join easy5"
  1225. if arg 1 is "6":
  1226. execute arg 2 command "/pk join easy6"
  1227. if arg 1 is "7":
  1228. execute arg 2 command "/pk join easy7"
  1229. if arg 1 is "8":
  1230. execute arg 2 command "/pk join easy8"
  1231. if arg 1 is "9":
  1232. execute arg 2 command "/pk join easy9"
  1233. if arg 1 is "10":
  1234. execute arg 2 command "/pk join easy10"
  1235.  
  1236. command /medium [<text>] [<player>]:
  1237. trigger:
  1238. if arg 1 is "1":
  1239. execute arg 2 command "/pk join medium1"
  1240. if arg 1 is "2":
  1241. execute arg 2 command "/pk join medium2"
  1242. if arg 1 is "3":
  1243. execute arg 2 command "/pk join medium3"
  1244. if arg 1 is "4":
  1245. execute arg 2 command "/pk join medium4"
  1246. if arg 1 is "5":
  1247. execute arg 2 command "/pk join medium5"
  1248. if arg 1 is "6":
  1249. execute arg 2 command "/pk join medium6"
  1250. if arg 1 is "7":
  1251. execute arg 2 command "/pk join medium7"
  1252. if arg 1 is "8":
  1253. execute arg 2 command "/pk join medium8"
  1254. if arg 1 is "9":
  1255. execute arg 2 command "/pk join medium9"
  1256. if arg 1 is "10":
  1257. execute arg 2 command "/pk join medium10"
  1258.  
  1259. command /hard [<text>] [<player>]:
  1260. trigger:
  1261. if arg 1 is "1":
  1262. execute arg 2 command "/pk join hard1"
  1263. if arg 1 is "2":
  1264. execute arg 2 command "/pk join hard2"
  1265. if arg 1 is "3":
  1266. execute arg 2 command "/pk join hard3"
  1267. if arg 1 is "4":
  1268. execute arg 2 command "/pk join hard4"
  1269. if arg 1 is "5":
  1270. execute arg 2 command "/pk join hard5"
  1271. if arg 1 is "6":
  1272. execute arg 2 command "/pk join hard6"
  1273. if arg 1 is "7":
  1274. execute arg 2 command "/pk join hard7"
  1275. if arg 1 is "8":
  1276. execute arg 2 command "/pk join hard8"
  1277. if arg 1 is "9":
  1278. execute arg 2 command "/pk join hard9"
  1279. if arg 1 is "10":
  1280. execute arg 2 command "/pk join hard10"
  1281. command /osiagi [<text>] [<player>]:
  1282. trigger:
  1283. if arg 1 is "1":
  1284. execute arg 2 command "/osiagniecia 1x180 dolacz %arg-2%"
  1285. if arg 1 is "2":
  1286. execute arg 2 command "/osiagniecia 2x180 dolacz %arg-2%"
  1287. if arg 1 is "3":
  1288. execute arg 2 command "/osiagniecia 3x180 dolacz %arg-2%"
  1289. if arg 1 is "4":
  1290. execute arg 2 command "/osiagniecia 4kratki dolacz %arg-2%"
  1291. command /ef [<text>] [<player>]:
  1292. trigger:
  1293. if arg 1 is "1":
  1294. execute arg 2 command "/pk join speed"
  1295. if arg 1 is "2":
  1296. execute arg 2 command "/pk join speed2"
  1297. if arg 1 is "3":
  1298. execute arg 2 command "/pk join speed3"
  1299. if arg 1 is "4":
  1300. execute arg 2 command "/pk join speed4"
  1301. if arg 1 is "5":
  1302. execute arg 2 command "/pk join speed5"
  1303. if arg 1 is "6":
  1304. execute arg 2 command "/pk join jump1"
  1305. if arg 1 is "7":
  1306. execute arg 2 command "/pk join jump2"
  1307. if arg 1 is "8":
  1308. execute arg 2 command "/pk join jump3"
  1309. if arg 1 is "9":
  1310. execute arg 2 command "/pk join jump4"
  1311. if arg 1 is "10":
  1312. execute arg 2 command "/pk join jump5"
  1313.  
  1314. on place bed:
  1315. if name of player's tool is "&6★ &9&lCheck point &6★":
  1316. cancel event
  1317.  
  1318. on right click with bed:
  1319. if name of player's tool is "&6★ &9&lCheck point &6★":
  1320. if {pk.start.%player%} is true:
  1321. set {zapis.%player%} to location of player
  1322. set {check.%player%} to true
  1323. message "&1&lUstawiono checkpoint"
  1324. else:
  1325. send "&4&lNie jestes na pakurze"
  1326.  
  1327. On hunger meter change:
  1328. cancel event
  1329.  
  1330. on damage:
  1331. cancel event
  1332. stop
  1333. on sign change:
  1334. if line 1 of event-block is "pk":
  1335. set line 1 of event-block to "&8[&6PK&8]"
  1336. if line 2 of event-block is "stop":
  1337. set line 2 of event-block to "&c&lStop"
  1338. if block above event-block is not air:
  1339. send "&6Ustawiono &c&lStop"
  1340. else:
  1341. send "&cPostaw nad tabliczka blok!"
Advertisement
Add Comment
Please, Sign In to add comment