Guest User

Untitled

a guest
Jun 13th, 2018
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.27 KB | None | 0 0
  1. administracja//
  2. chat//
  3. handel//
  4. kod//
  5. ban//
  6. czyszczenie//
  7. otchlan//
  8. #spr
  9. wezwij//
  10. czysty//
  11. cheaty//
  12. wspolpraca//
  13. help//
  14. ustaw uklatka/spawn//
  15. zakonczenie//
  16. on quit//
  17. on command//
  18. perla//
  19.  
  20. variables:
  21. {chat} = true
  22.  
  23. options:
  24. tag: &8[&9TWOJ TAG&8]
  25. bcmsg: &8[&4Administrator&8]
  26. pexAD: admin
  27. pexMsg: &8>> &cNie masz uprawnien do tej komendy!
  28. logo: &c[Maracana]
  29. pex: spr.1
  30. pex2: spr.2
  31. w.pex: &8>> &cNie masz uprawnien do tej komendy!
  32. tag: &e[Sprawdzanie]
  33. set.czasPrzyznanie: 7d
  34. set.czasCheaty: 10d
  35. set.czasLogout: 60d
  36. set.czasWspolpraca: 30d
  37.  
  38. on script load:
  39. if folder "plugins/Skript/scripts/Maracana" doesn't exists:
  40. create folder "plugins/Skript/scripts/Maracana"
  41. create folder "plugins/Skript/scripts/Maracana/bany"
  42. create folder "plugins/Skript/scripts/Maracana/ipbany"
  43. create folder "plugins/Skript/scripts/Maracana/muty"
  44. broadcast "&6&lPLIKI Maracana zostaly stworzone!"
  45. stop
  46.  
  47.  
  48. command /administracja [<text>]
  49. trigger:
  50. open chest with 3 rows named "&4&lAdministracja" to player
  51. set {_i} to 0
  52. loop 10 times:
  53. format slot {_i} of player with gray glass pane named " " to be unstealable
  54. ad 1 to {_i}
  55. set {_i} to 17
  56. loop 10 times:
  57. format slot {_i} of player with gray glass pane named " " to be unstealable
  58. ad 1 to {_i}
  59. #10-16
  60. format slot 10 with head named "" with lore "" to be unstealable
  61. format slot 11 with head named "" with lore "" to be unstealable
  62. format slot 12 with head named "" with lore "" to be unstealable
  63. format slot 13 with head named "" with lore "" to be unstealable
  64. format slot 14 with head named "" with lore "" to be unstealable
  65. format slot 15 with head named "" with lore "" to be unstealable
  66. format slot 16 with head named "" with lore "" to be unstealable
  67.  
  68. command /chat [<text>] [<text>] [<text>]:
  69. permission: chatPX.sk or op
  70. permission message: {@tag}&c&lNie posiadasz uprawnien aby uzyc tej komendy!
  71. trigger:
  72. if arg 1 is not set:
  73. send "&8**************{@tag}&8*****************"
  74. send "&8/chat &cpomoc &8- &c&l Wyswietla komendy zawarte w skrypcie"
  75. send "&8/chat &con/off &8- &c&l Wlacza/wylacza chat"
  76. send "&8/chat &cclear/c &8- &c&l Czysci chat"
  77. send "&8/chat &cogloszenie/oglo &8- &c&lWysyla ogloszenie"
  78. send "&8/chat &ccenzura dodaj &8- &c&lDodaje cenzure"
  79. send "&8/chat &ccenzura usun &8- &c&lUsuwa cenzure"
  80. send "&8/chat &ccenzura lista &8- &c&lLista cenzur"
  81. send "&8/chat &cemotikony/emoty on/off &8- &c&lWlacza/wylacza emotikony"
  82. send "&8/chat &cspam &8- &c&lWysyla kilkanascie razy wiadomosc"
  83. send "&8/chat &cinfo &8- &c&lInformacje o skrypcie"
  84. send "&8**************{@tag}&8*****************"
  85. stop
  86. if arg 1 is set:
  87. if arg 1 is "pomoc" or "on" or "off" or "clear" or "c" or "ogloszenie" or "oglo" or "cenzura" or "emotikony" or "emoty" or "info":
  88. if arg 1 is "pomoc":
  89. send "&8**************{@tag}&8*****************"
  90. send "&8/chat &cpomoc &8- &c&l Wyswietla komendy zawarte w skrypcie"
  91. send "&8/chat &con/off &8- &c&l Wlacza/wylacza chat"
  92. send "&8/chat &cclear/c &8- &c&l Czysci chat"
  93. send "&8/chat &cogloszenie/oglo &8- &c&lWysyla ogloszenie"
  94. send "&8/chat &ccenzura dodaj &8- &c&lDodaje cenzure"
  95. send "&8/chat &ccenzura usun &8- &c&lUsuwa cenzure"
  96. send "&8/chat &ccenzura lista &8- &c&lLista cenzur"
  97. send "&8/chat &cemotikony/emoty on/off &8- &c&lWlacza/wylacza emotikony"
  98. send "&8/chat &cspam &8- &c&lWysyla kilkanascie razy wiadomosc"
  99. send "&8/chat &cinfo &8- &c&lInformacje o skrypcie"
  100. send "&8**************{@tag}&8*****************"
  101. stop
  102. if arg 1 is "on":
  103. set {chat} to true
  104. send "{@tag} &8>> &c&lWylaczyles chat! &8<<"
  105. broadcast "{@bcmsg} &8>> &c&l%player% wylaczyl czat! &8<<"
  106. if arg 1 is "off":
  107. set {chat} to false
  108. send "{@tag} &8>> &c&lWlaczyles chat! &8<<"
  109. broadcast "{@bcmsg} &8>> &c&l%player% wlaczyl czat! &8<<"
  110. if arg 1 is "clear" or "c":
  111. loop 200 times:
  112. send "" to all players
  113. broadcast "{@bcmsg} &8>> &c&lChat zostal wyczyszczony przez &c%player% &8<<"
  114. stop
  115. if arg 1 is "ogloszenie" or "oglo":
  116. if arg 2 is set:
  117. send "{@bcmsg}%colored arg 2%" to all players
  118. stop
  119. else:
  120. send "{@tag}Napisz cos!" to player
  121. stop
  122. if arg 1 is "cenzura":
  123. if arg 2 is "dodaj":
  124. if arg 3 is set:
  125. if {cenzura.%arg 3%} is not set:
  126. add "%arg 3%" to {censor::*}
  127. set {cenzura.%arg 3%} to "%arg 3%"
  128. send "{@tag} &8>> &6Pomyslnie dodano do cenzury slowo: &c%arg 3% &8<<"
  129. else:
  130. send "{@tag} &8>> &4Blad: &cW spisie cenzur juz jest taka cenzura. &8<<"
  131. else:
  132. send "{@tag} &8>> &4Blad: &cPodaj cenzure! &8<<"
  133. stop
  134. if arg 1 is "cenzura":
  135. if arg 2 is "usun":
  136. if arg 3 is set:
  137. if {cenzura.%arg 3%} is set:
  138. remove "%arg 3%" from {censor::*}
  139. set {cenzura.%arg 3%} to ""
  140. send "{@tag} &8>> &6Pomyslnie usunales slowo: &c%arg 3% &8<<"
  141. else:
  142. send "{@tag} &8>> &4Blad: &cW spisie cenzur nie ma takiej cenzury. &8<<"
  143. else:
  144. send "{@tag} &8>> &4Blad: &cPodaj cenzure! &8<<"
  145. stop
  146. if arg 1 is "cenzura":
  147. if arg 2 is "lista":
  148. if {censor::*} is not set:
  149. send "{@tag} &6Spis cenzur: &cBrak cenzur."
  150. else:
  151. send "{@tag} &6Spis cenzur: &c%{censor::*}%"
  152. stop
  153.  
  154. if arg 1 is "emoty" or "Emotikony":
  155. if arg 2 is "on":
  156. send "&7{@tag}wlaczyles emotikony"
  157. set {Chat::Emotikony} to true
  158. stop
  159. if arg 2 is "off":
  160. send "&7{@tag}wylaczyles emotikony"
  161. set {Chat::Emotikony} to false
  162. stop
  163. if arg 1 is "spam":
  164. if arg 2 is set:
  165. loop 5 times:
  166. send "{@bcmsg}%colored arg 2%" to all players
  167. stop
  168. on chat:
  169. if {Chat::Emotikony} is true:
  170. replace all "<3" with "❤" in the message
  171. replace all ":)" with "☺" in the message
  172. replace all "(music)" with "♫" in the message
  173. replace all "(slonce)" with "☼" in the message
  174. replace all "(like)" with "✌" in the message
  175. replace all "(nice)" with "âś”" in the message
  176. replace all "(boy)" with "♀" in the message
  177. replace all "(girl)" with "♂" in the message
  178. replace all "(peace)" with "☮" in the message
  179. replace all ":(" with "☹" in the message
  180. replace all "(nope)" with "Ă—" in the message
  181. replace all "z/w" with "zaraz wracam" in the message
  182. replace all "z.w" with "zaraz wracam" in the message
  183. replace all "j/j" with "juz jestem" in the message
  184. replace all "j.j" with "juz jestem" in the message
  185. replace all "->" and "*->" in message with "→"
  186. replace all "<-" and "*<-" in message with "←"
  187. replace all "\/" and "*\/" in message with "↓"
  188. replace all "/\" and "*/\" in message with "↑"
  189. replace all ">>" and "*>>" in message with "»"
  190. replace all "<<" and "*<<" in message with "«"
  191. replace all "-_*" in message with "ツ"
  192.  
  193.  
  194. if player doesn't have permission "chat.off" or "op":
  195. if {Chat::Status} is false:
  196. cancel event
  197. send "&cChat jest wylaczony!"
  198.  
  199. command /handel [<text>] [<text>] [<text>]:
  200. trigger:
  201. if arg 1 is not set:
  202. send "&0##=##"
  203. send "&7Komendy wymiany:"
  204. send "&a/handel <gracz> &7- Tworzysz/akceptujesz wymiane z graczem."
  205. send "&a/handel odrzuc &7- Odrzucasz wymiane z graczem."
  206. send "&a/handel odbierz &7- Odbierasz przedmioty z depozytu."
  207. send "&a/handel banknot <integer> &7- tworzysz banknot"
  208. stop
  209. if arg 1 is "banknot":
  210. if arg 2 is set:
  211. set {_int} to "%arg 2%" parsed as integer
  212. if {_int} is integer:
  213. if player's balance is larger than or equal to {_int}:
  214. if player has enough space for 1 paper of unbreaking 1 named "&aBanknot" with lore "&6Nominal:||&c%{_int}%&a$":
  215. give paper of unbreaking 1 named "&aBanknot" with lore "&6Nominal:||&c%{_int}%&a$" to player
  216. remove {_int} from player's balance
  217. send "&c* &7Stworzyles banknot o nominale: &c%{_int}%"
  218. stop
  219. send "&c* &7Nie masz miejsca w ekwipunku."
  220. stop
  221. send "&c* &7Nie masz tyle pieniedzy. &8(&6Stan: &3%player's balance%&8}"
  222. stop
  223. send "&c* &7Podaj liczbe calkowita."
  224. stop
  225. send "&c* &7Banknot, to jest waluta, ktorej mozesz uzywac podczas wymiany.%nl%&7Klikajac prawym na banknot, przywracasz pieniadze do konta."
  226. stop
  227. if arg 1 is "odrzuc":
  228. if {wymiana::%player%.status} is "oczekiwanie" or "gotowy":
  229. if {wymiana::%{wymiana::%player%.with}%.status} is "oczekiwanie" or "gotowy":
  230. send "&c* &7Gracz &6%player% &7odrzucil wymiane z toba." to {wymiana::%player%.with}
  231. send "&c* &7Anulowales wymiane z graczem: &6%{wymiana::%player%.with}%"
  232. clear {wymiana::%{wymiana::%player%.with}%.expire}
  233. clear {wymiana::%{wymiana::%player%.with}%.with}
  234. clear {wymiana::%{wymiana::%player%.with}%.status}
  235. clear {wymiana::%player%.expire}
  236. clear {wymiana::%player%.with}
  237. clear {wymiana::%player%.status}
  238. stop
  239. send "&c* &7Nie masz zadnego zaproszenia."
  240. stop
  241. if arg 1 is "odbierz":
  242. if size of {wymiana::%player%.deposit::*} is larger than 0:
  243. loop {wymiana::%player%.deposit::*}:
  244. if player has enough space for loop-value:
  245. give loop-value to player
  246. remove loop-value from {wymiana::%player%.deposit::*}
  247. send "&c* &7Prosze, odbierz swoje przedmioty."
  248. stop
  249. send "&c* &7Nie masz nic w depozycie."
  250. stop
  251. if arg 1 is "break":
  252. if sender is console:
  253. set {_player} to "%arg 2%" parsed as offlineplayer
  254. set {_player2} to "%arg 3%" parsed as offlineplayer
  255. clear {wymiana::%{_player}%.status}
  256. clear {wymiana::%{_player2}%.status}
  257. clear {wymiana::%{_player}%.with}
  258. clear {wymiana::%{_player2}%.with}
  259. clear {wymiana::%{_player}%.trial}
  260. clear {wymiana::%{_player2}%.trial}
  261. if "%inventory name of {_player2}'s current inventory%" contains "Wymiana z":
  262. set {_i} to 0
  263. loop 18 times:
  264. if {_player2}'s current inventory's slot {_i} is not air:
  265. give {_player2}'s current inventory's slot {_i} to {_player2}
  266. add 1 to {_i}
  267. close {_player2}'s inventory
  268. loop {wymiana::%{_player2}%.items::*}:
  269. give loop-value to {_player2}
  270. clear {wymiana::%{_player}%.items::*}
  271. clear {wymiana::%{_player2}%.items::*}
  272. stop
  273. set {_arg} to "%arg 1%" parsed as offlineplayer
  274. if {_arg} is player:
  275. send "&c* &7Nie mozesz przeprowadzic handlu z samym soba."
  276. stop
  277. if {_arg} is online:
  278. if distance between player and {_arg} is smaller than 5.1:
  279. if "%all items in player's inventory%" is "<none>":
  280. send "&c* &7Masz puste eq."
  281. stop
  282. if "%all items in {_arg}'s inventory%" is "<none>":
  283. send "&c* &7Gracz &6%{_arg}% &7ma puste eq."
  284. stop
  285. if {wymiana::%{_arg}%.status} is not set:
  286. set {wymiana::%{_arg}%.status} to "oczekiwanie"
  287. set {wymiana::%player%.status} to "gotowy"
  288. set {wymiana::%{_arg}%.with} to player
  289. set {wymiana::%player%.with} to {_arg}
  290. set {wymiana::%player%.expire} to 15
  291. set {wymiana::%{_arg}%.expire} to 15
  292. send "&c* &7Wyslales prosbe o handel do gracza: &6%{_arg}%" to player
  293. send "&c* &7Gracz: &6%player% &7wyslal prosbe do Ciebie o handel.%nl%&7Wpisz: &6/handel %player%" to {_arg}
  294. stop
  295. if {wymiana::%{_arg}%.status} is "gotowy":
  296. if {wymiana::%{_arg}%.with} is player:
  297. close {_arg}'s inventory
  298. clear {wymiana::%player%.expire}
  299. clear {wymiana::%{_arg}%.expire}
  300. wait 2 tick
  301. open chest with 2 rows named "&6Wymiana z: &r%{_arg}%" to player
  302. open chest with 2 rows named "&6Wymiana z: &r%player%" to {_arg}
  303. send "&c* &7Wloz przedmioty ktore chcesz dac dla gracza: &6%{_arg}%" to player
  304. send "&c* &7Wloz przedmioty ktore chcesz dac dla gracza: &6%player%" to {_arg}
  305. set {wymiana::%player%.status} to "setting"
  306. set {wymiana::%{_arg}%.status} to "setting"
  307. stop
  308. send "&c* &7Ten gracz juz zaprosil kogos do handlu.%nl%&7Wygasnie za: &c%{wymiana::%{_arg}%.expire}% sekund."
  309. stop
  310. if {wymiana::%{_arg}%.status} is "oczekiwanie":
  311. send "&c* &7Ten gracz juz dostal zaproszenie do handlu.%nl%&7Wygasnie za: &c%{wymiana::%{_arg}%.expire}% sekund."
  312. stop
  313. else:
  314. send "&c* &7Ten gracz juz prowadzi wymiane."
  315. stop
  316. send "&c* &7Ten gracz nie jest kolo Ciebie."
  317. stop
  318. send "&c* &7Tego gracza nie ma na serwerze."
  319. stop
  320. every 1 second:
  321. loop all players:
  322. if {wymiana::%loop-player%.debug} is set:
  323. clear {wymiana::%loop-player%.debug}
  324. if {wymiana::%loop-player%.expire} is larger than 0:
  325. remove 1 from {wymiana::%loop-player%.expire}
  326. else if {wymiana::%loop-player%.expire} is 0:
  327. clear {wymiana::%{wymiana::%loop-player%.with}%.expire}
  328. clear {wymiana::%{wymiana::%loop-player%.with}%.status}
  329. clear {wymiana::%{wymiana::%loop-player%.with}%.with}
  330. clear {wymiana::%loop-player%.expire}
  331. clear {wymiana::%loop-player%.status}
  332. clear {wymiana::%loop-player%.with}
  333. on rightclick with paper:
  334. if name of player's tool is "&aBanknot":
  335. set {_lore::*} to lore of player's tool split at "||"
  336. set {_int} to "%uncoloured {_lore::2}%"
  337. replace all "$" in {_int} with ""
  338. set {_int} to {_int} parsed as integer
  339. add {_int} to player's balance
  340. remove paper of unbreaking 1 named "&aBanknot" with lore "%lore of player's tool%" from player
  341. send "&c* &7Otrzymales &6%{_int}%$ &7z banknotu."
  342. stop
  343. stop
  344. on join:
  345. wait 3 second
  346. clear {wymiana::%player%.trial}
  347. if size of {wymiana::%player%.deposit::*} is larger than 0:
  348. if size of {wymiana::%player%.deposit::*} is 1:
  349. set {_k} to ""
  350. else if size of {wymiana::%player%.deposit::*} is 2 or 3 or 4:
  351. set {_k} to "y"
  352. else:
  353. set {_k} to "ow"
  354. send "&c* &7Masz &c%size of {wymiana::%player%.deposit::*}% &7przedmiot%{_k}% w depozycie.%nl%&7Odbierz je wpisujac: &6/handel odbierz"
  355.  
  356. on quit:
  357. if {wymiana::%player%.status} is "setting" or "waiting" or "accept":
  358. set {_player2} to {wymiana::%player%.with}
  359. clear {wymiana::%{_player2}%.with}
  360. if {wymiana::%{_player2}%.status} is "setting":
  361. set {_i} to 0
  362. loop 18 times:
  363. if {_player2}'s current inventory's slot {_i} is not air:
  364. give {_player2}'s current inventory's slot {_i} to {_player2}
  365. add 1 to {_i}
  366. clear {wymiana::%{_player2}%.items}
  367. else:
  368. loop {wymiana::%{_player2}%.items::*}:
  369. give loop-value to {_player2}
  370. clear {wymiana::%{_player2}%.items::%loop-index%}
  371. clear {wymiana::%{_player2}%.status}
  372. close {_player2}'s inventory
  373. send "&c* &7Gracz &6%player% &7wyszedl z gry." to {_player2}
  374. if {wymiana::%player%.status} is "waiting" or "accept":
  375. loop {wymiana::%player%.items::*}:
  376. add loop-value to {wymiana::%player%.deposit::*}
  377. clear {wymiana::%player%.items::%loop-index%}
  378. if "%inventory name of player's current inventory%" contains "Wymiana z":
  379. set {_i} to 0
  380. loop 18 times:
  381. if player's current inventory's slot {_i} is not air:
  382. add player's current inventory's slot {_i} to {wymiana::%player%.deposit::*}
  383. add 1 to {_i}
  384. clear {wymiana::%player%.items::*}
  385. if {wymiana::%player%.status} is set:
  386. set {_player} to player
  387. set {_player2} to {wymiana::%player%.with}
  388. clear {wymiana::%{_player}%.status}
  389. clear {wymiana::%{_player2}%.status}
  390. clear {wymiana::%{_player}%.with}
  391. clear {wymiana::%{_player2}%.with}
  392. clear {wymiana::%{_player}%.trial}
  393. clear {wymiana::%{_player2}%.trial}
  394. on inventory click:
  395. if "%inventory name of player's current inventory%" contains "Status handlu":
  396. if slot is smaller than 0:
  397. stop
  398. cancel event
  399. #Zmien itemy..
  400. if player's current inventory's slot slot is brown glass:
  401. if name of player's current inventory's slot slot is "&6&lZmien przedmioty":
  402. set {wymiana::%player%.status} to "setting"
  403. wait 2 tick
  404. close player's inventory
  405. wait 2 tick
  406. open chest with 2 rows named "&1Wymiana z: &r%{wymiana::%player%.with}%" to player
  407. wait 2 tick
  408. set {_i} to 0
  409. loop 18 times:
  410. if {wymiana::%player%.items::%loop-number%} is not air:
  411. set player's current inventory's slot {_i} to {wymiana::%player%.items::%loop-number%}
  412. add 1 to {_i}
  413. clear {wymiana::%player%.items::*}
  414. if {wymiana::%{wymiana::%player%.with}%.status} is "waiting" or "accept":
  415. set {_i} to 50
  416. loop 4 times:
  417. set {wymiana::%player%.with}'s current inventory's slot {_i} to yellow glass named "&6&lStatus" with lore "&6Gracz &c%player%:||&c* &aUstawia swoje przedmioty"
  418. add 1 to {_i}
  419. set {_i} to 5
  420. loop 18 times:
  421. set {wymiana::%player%.with}'s current inventory's slot {_i} to air
  422. if "%loop-number / 4%" contains "." or ",":
  423. add 1 to {_i}
  424. else:
  425. add 6 to {_i}
  426. stop
  427. #Accept
  428. if player's current inventory's slot slot is light green glass:
  429. if name of player's current inventory's slot slot is "&a&lZatwierdz":
  430. set {wymiana::%player%.status} to "accept"
  431. if {wymiana::%{wymiana::%player%.with}%.status} is "accept":
  432. #Kod na wysylanie itemow.
  433.  
  434. wf "[%now%] Wymiana %player% z %{wymiana::%player%.with}%:%nl% ##Itemy %player%:" to "plugins/Skript/logs/handel.log"
  435. send "&c* &aPomyslnie wymieniles przedmioty z: &6%{wymiana::%player%.with}%" to player
  436. send "&c* &aPomyslnie wymieniles przedmioty z: &6%player%" to {wymiana::%player%.with}
  437. set {_player} to {wymiana::%player%.with}
  438. loop {wymiana::%player%.items::*}:
  439. if length of "with lore %lore of loop-value%" is larger than 10:
  440. wf " - %loop-value% with lore %lore of loop-value%" to "plugins/Skript/logs/handel.log"
  441. else:
  442. wf " - %loop-value%" to "plugins/Skript/logs/handel.log"
  443. if {_player} has enough space for loop-value:
  444. add loop-value to {_player}
  445. else:
  446. add loop-value to {wymiana::%{_player}%.deposit::*}
  447. send "&c* &7Dodano &6%loop-value% &7do depozytu." to {_player}
  448. clear {wymiana::%player%.items::%loop-index%}
  449. wf " ##Itemy %{wymiana::%player%.with}%" to "plugins/Skript/logs/handel.log"
  450. loop {wymiana::%{_player}%.items::*}:
  451. if length of "with lore %lore of loop-value%" is larger than 10:
  452. wf " - %loop-value% with lore %lore of loop-value%" to "plugins/Skript/logs/handel.log"
  453. else:
  454. wf " - %loop-value%" to "plugins/Skript/logs/handel.log"
  455. if player has enough space for loop-value:
  456. add loop-value to player
  457. else:
  458. add loop-value to {wymiana::%player%.deposit::*}
  459. send "&c* &7Dodano &6%loop-value% &7do depozytu." to player
  460. clear {wymiana::%{_player}%.items::%loop-index%}
  461. clear {wymiana::%player%.status}
  462. clear {wymiana::%{wymiana::%player%.with}%.status}
  463. close player's inventory
  464. close {wymiana::%player%.with}'s inventory
  465. execute console command "handel break %player% %{wymiana::%player%.with}%"
  466. stop
  467. set player's current inventory's slot 46 to light green glass named "&6&lTwoj status" with lore "&aAkceptujesz"
  468. if {wymiana::%{wymiana::%player%.with}%.status} is "waiting":
  469. set {_i} to 50
  470. loop 4 times:
  471. set {wymiana::%player%.with}'s current inventory's slot {_i} to light green glass named "&6&lStatus" with lore "&6Gracz &c%player%:||&c* &aZaakceptowal wymiane"
  472. add 1 to {_i}
  473. #status = {"gotowy", "oczekiwanie", "waiting", "setting", "accept"}
  474. #Odrzuc
  475. if player's current inventory's slot slot is red glass:
  476. if name of player's current inventory's slot slot is "&c&lOdrzuc":
  477. send "&c* &7Gracz &6%player% &7odrzucil wymiane z Toba." to {wymiana::%player%.with}
  478. send "&c* &7Anulowales wymiane z graczem &6%{wymiana::%player%.with}%" to player
  479. loop {wymiana::%player%.items::*}:
  480. if player has enough space for loop-value:
  481. add loop-value to player
  482. else:
  483. add loop-value to {wymiana::%player%.deposit::*}
  484. send "&c* &7Dodano &6%loop-value% &7do depozytu." to player
  485. remove loop-value from {wymiana::%player%.items::*}
  486. loop {wymiana::%{wymiana::%player%.with}%.items::*}:
  487. if {wymiana::%player%.with} has enough space for loop-value:
  488. add loop-value to {wymiana::%player%.with}
  489. else:
  490. add loop-value to {wymiana::%{wymiana::%player%.with}%.deposit::*}
  491. send "&c* &7Dodano &6%loop-value% &7do depozytu." to {wymiana::%player%.with}
  492. remove loop-value from {wymiana::%{wymiana::%player%.with}%.items::*}
  493. clear {wymiana::%{wymiana::%player%.with}%.status}
  494. clear {wymiana::%{wymiana::%player%.with}%.with}
  495. clear {wymiana::%{wymiana::%player%.with}%.items::*}
  496. clear {wymiana::%player%.status}
  497. close {wymiana::%player%.with}'s inventory
  498. clear {wymiana::%player%.with}
  499. clear {wymiana::%player%.items::*}
  500. close player's inventory
  501.  
  502. on inventory close:
  503. set {_l} to "&3>>"
  504. if "%inventory name of player's current inventory%" contains "Wymiana z":
  505. if {wymiana::%player%.status} is "setting":
  506. set {_i} to 0
  507. loop 18 times:
  508. if player's current inventory's slot {_i} is not air:
  509. add player's current inventory's slot {_i} to {wymiana::%player%.items::*}
  510. set {_exists} to true
  511. add 1 to {_i}
  512. if {_exists} is not set:
  513. if {wymiana::%player%.trial} is not set:
  514. set {wymiana::%player%.trial} to 1
  515. else:
  516. add 1 to {wymiana::%player%.trial}
  517. send "&c* &7Musisz cos dac dla gracza. &8(&c%{wymiana::%player%.trial}%/3&8)"
  518. if {wymiana::%player%.trial} is larger than or equal to 3:
  519. if {wymiana::%{wymiana::%player%.with}%.with} is set:
  520. send "&c* &7Gracz %player% &7zakonczyl wymiane z Toba." to {wymiana::%player%.with}
  521. send "&c* &7Zakonczyles wymiane z &6%{wymiana::%player%.with}%" to player
  522. execute console command "handel break %player% %{wymiana::%player%.with}%"
  523. stop
  524. wait 2 tick
  525. open chest with 2 rows named "&6Wymiana z: &r%{wymiana::%player%.with}%" to player
  526. stop
  527. wait 2 tick
  528. open chest with 6 rows named "&1&l&oStatus handlu" to player
  529. wait 2 tick
  530. set {wymiana::%player%.status} to "waiting"
  531. set {_i} to 4
  532. loop 6 times:
  533. set player's current inventory's slot {_i} to blue glass named "&9Przedzialka" with lore "&3<< Twoje Przedmioty||||&3Przedmioty gracza &c%{wymiana::%player%.with}% %{_l}%"
  534. add 9 to {_i}
  535. set {_i} to 50
  536. if {wymiana::%{wymiana::%player%.with}%.status} is "accept":
  537. set {wymiana::%{wymiana::%player%.with}%.status} to "waiting"
  538. set {wymiana::%player%.with}'s current inventory's slot 46 to white glass named "&6&lTwoj status" with lore "&aCzekasz"
  539. loop 4 times:
  540. if {wymiana::%{wymiana::%player%.with}%.status} is not "setting":
  541. set {wymiana::%player%.with}'s current inventory's slot {_i} to white glass named "&6&lStatus" with lore "&6Gracz &c%player%||&c* &aCzeka"
  542. if {wymiana::%{wymiana::%player%.with}%.status} is "setting":
  543. set player's current inventory's slot {_i} to yellow glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aUstawia swoje itemy"
  544. if {wymiana::%{wymiana::%player%.with}%.status} is "waiting":
  545. set player's current inventory's slot {_i} to white glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aCzeka"
  546. if {wymiana::%{wymiana::%player%.with}%.status} is "accept":
  547. set player's current inventory's slot {_i} to light green glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aZaakceptowal wymiane"
  548. add 1 to {_i}
  549. add 1 to {_i}
  550. set player's current inventory's slot 48 to light green glass named "&a&lZatwierdz" with lore "&aKliknij aby:||&c* Zaakceptowac wymiane z graczem &6%{wymiana::%player%.with}%"
  551. set player's current inventory's slot 47 to red glass named "&c&lOdrzuc" with lore "&aKliknij aby:||&c*Odrzucic wymiane z graczem &6%{wymiana::%player%.with}%"
  552. set player's current inventory's slot 45 to brown glass named "&6&lZmien przedmioty" with lore "&aKliknij aby:||&c* Zmienic swoje przedmioty"
  553. set player's current inventory's slot 46 to white glass named "&6&lTwoj status" with lore "&aCzekasz"
  554.  
  555. set {_i} to 0
  556. loop 18 times:
  557. set player's current inventory's slot {_i} to {wymiana::%player%.items::%loop-number%}
  558. if "%loop-number / 4%" contains "." or ",":
  559. add 1 to {_i}
  560. else:
  561. add 6 to {_i}
  562. if {wymiana::%{wymiana::%player%.with}%.status} is not "setting":
  563. set {_i} to 5
  564. loop 18 times:
  565. set {wymiana::%player%.with}'s current inventory's slot {_i} to {wymiana::%player%.items::%loop-number%}
  566. if "%loop-number / 4%" contains "." or ",":
  567. add 1 to {_i}
  568. else:
  569. add 6 to {_i}
  570. set {_i} to 5
  571. loop 18 times:
  572. set player's current inventory's slot {_i} to {wymiana::%{wymiana::%player%.with}%.items::%loop-number%}
  573. if "%loop-number / 4%" contains "." or ",":
  574. add 1 to {_i}
  575. else:
  576. add 6 to {_i}
  577. stop
  578. on inventory close:
  579. set {_l} to "&3>>"
  580. if "%inventory name of player's current inventory%" contains "Status handlu":
  581. if {wymiana::%player%.status} is "waiting" or "accept":
  582. wait 2 tick
  583. open chest with 6 rows named "&1&l&oStatus handlu" to player
  584. wait 2 tick
  585. set {wymiana::%player%.status} to "waiting"
  586. set {_i} to 4
  587. loop 6 times:
  588. set player's current inventory's slot {_i} to blue glass named "&9Przedzialka" with lore "&3<< Twoje Przedmioty||||&3Przedmioty gracza &c%{wymiana::%player%.with}% %{_l}%"
  589. #with lore "&3<< Twoje Przedmioty||||&3Przedmioty gracza &c%{wymiana::%player%.with}% &3>>"
  590. add 9 to {_i}
  591. set {_i} to 50
  592. loop 4 times:
  593. if {wymiana::%{wymiana::%player%.with}%.status} is not "setting":
  594. set {wymiana::%player%.with}'s current inventory's slot {_i} to white glass named "&6&lStatus" with lore "&6Gracz &c%player%||&c* &aCzeka"
  595. if {wymiana::%{wymiana::%player%.with}%.status} is "setting":
  596. set player's current inventory's slot {_i} to yellow glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aUstawia swoje itemy"
  597. if {wymiana::%{wymiana::%player%.with}%.status} is "waiting":
  598. set player's current inventory's slot {_i} to white glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aCzeka"
  599. if {wymiana::%{wymiana::%player%.with}%.status} is "accept":
  600. set player's current inventory's slot {_i} to light green glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aZaakceptowal wymiane"
  601. add 1 to {_i}
  602. add 1 to {_i}
  603. set player's current inventory's slot 48 to light green glass named "&a&lZatwierdz" with lore "&aKliknij aby:||&c* Zaakceptowac wymiane z graczem &6%{wymiana::%player%.with}%"
  604. set player's current inventory's slot 47 to red glass named "&c&lOdrzuc" with lore "&aKliknij aby:||&c*Odrzucic wymiane z graczem &6%{wymiana::%player%.with}%"
  605. set player's current inventory's slot 45 to brown glass named "&6&lZmien przedmioty" with lore "&aKliknij aby:||&c* Zmienic swoje przedmioty"
  606. set {_i} to 0
  607. loop 18 times:
  608. set player's current inventory's slot {_i} to {wymiana::%player%.items::%loop-number%}
  609. if "%loop-number / 4%" contains "." or ",":
  610. add 1 to {_i}
  611. else:
  612. add 6 to {_i}
  613. if {wymiana::%{wymiana::%player%.with}%.status} is not "setting":
  614. set {_i} to 5
  615. loop 18 times:
  616. set {wymiana::%player%.with}'s current inventory's slot {_i} to {wymiana::%player%.items::%loop-number%}
  617. if "%loop-number / 4%" contains "." or ",":
  618. add 1 to {_i}
  619. else:
  620. add 6 to {_i}
  621. set {_i} to 5
  622. loop 18 times:
  623. set player's current inventory's slot {_i} to {wymiana::%{wymiana::%player%.with}%.items::%loop-number%}
  624. if "%loop-number / 4%" contains "." or ",":
  625. add 1 to {_i}
  626. else:
  627. add 6 to {_i}
  628. if {wymiana::%player%.status} is "accept":
  629. set player's current inventory's slot 46 to light green glass named "&6&lTwoj status" with lore "&aAkceptujesz"
  630. if {wymiana::%player%.status} is "waiting":
  631. set player's current inventory's slot 46 to white glass named "&6&lTwoj status" with lore "&aCzekasz"
  632. on drop:
  633. if {wymiana::%player%.status} is "setting":
  634. cancel event
  635.  
  636. command /generuj:
  637. permission: admin.panel
  638. trigger:
  639. set {1} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
  640. set {2} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
  641. set {3} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
  642. set {4} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
  643. set {5} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
  644. set {6} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
  645. set {7} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
  646. set {8} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
  647. set {9} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
  648. set {kod} to "%{1}%%{2}%%{3}%%{4}%%{5}%%{6}%%{7}%%{8}%%{9}%"
  649. send "&7Kto pierwszy wpisze kod, wygrywa! &c&l&o/kod <kod>&7: &c&l&o %{kod}%" to all players
  650.  
  651. command /kod [<text>]:
  652. trigger:
  653. if arg contain "%{kod}%":
  654. delete {kod}
  655. execute console command "give %player% goldenapple:2 1 " or "give %player% goldenapple 1" or "give %player% diamond 1"
  656. send "&7Gracz &c&l&o%player% &7wpisal jako pierwszy kod!" to all players
  657. send "&7Otrzymales nagrode sprawdz ekwipunek!"
  658. else:
  659. send "&7Zle wpisales kod lub jest on juz wykorzystany!"
  660.  
  661. #BANY============================================================================================================
  662. command /ban [<offlineplayer>] [<text>]:
  663. permission: {@pexAD}
  664. permission message: "{@pexMsg}"
  665. trigger:
  666. if arg 1 is set:
  667. if arg 2 is set:
  668. if file "plugins/Skript/scripts/Maracana/bany/%arg 1%.yml" doesn't exists:
  669. create file "plugins/Skript/scripts/Maracana/bany/%arg 1%.yml"
  670. if sender is not console:
  671. set {_b} to "%player%"
  672. else:
  673. set {_b} to "CONSOLE"
  674. set {_powod} to arg 2
  675. set {_player} to arg 1
  676. set {_y} to "%year%"
  677. set {_m} to "%month%"
  678. set {_d} to "%day%"
  679. set {_h} to "%hour%"
  680. set {_m} to "%minute%"
  681. set {_c} to "%{_y}%.%{_m}%.%{_d}% %{_h}%:%{_m}%"
  682. kick arg 1 due to "&8=====%nl%&3Zostales &7permamentnie &3zbanowany!%nl%&3Zbanowal: &7%{_b}%%nl%&3Powod: &7%{_powod}%%nl%&3Data nadania: &7%{_c}%%nl%&8====="
  683. broadcast "{@logo} &eGracz &c%arg 1% &ezostal zbanowany przez &7%player%"
  684. set yaml value "ban.admin" from "Maracana/bany/%arg 1%.yml" to "%{_b}%"
  685. set yaml value "ban.gracz" from "Maracana/bany/%arg 1%.yml" to "%{_player}%"
  686. set yaml value "ban.data" from "Maracana/bany/%arg 1%.yml" to "%{_c}%"
  687. set yaml value "ban.typ" from "Maracana/bany/%arg 1%.yml" to "PERM"
  688. set yaml value "ban.powod" from "Maracana/bany/%arg 1%.yml" to "%{_powod}%"
  689. if offlineplayer-arg 1 is offline:
  690. send "&8>> &bZbanowales gracza &cofline: &7%arg 1% &b za: &7%arg 2%"
  691. else:
  692. send "&8>> &bZbanowales gracza: &7%arg 1% &b za: &7%arg 2%"
  693. stop
  694. else:
  695. send "&8>> &cTen gracz jest juz zbanowany!"
  696. stop
  697. else:
  698. send "&8>> &cPoprawne uzycie: &7/ban <gracz> <powod>"
  699. stop
  700. else:
  701. send "&8>> &cPoprawne uzycie: &7/ban <gracz> <powod>"
  702. stop
  703.  
  704. command /unban [<offlineplayer>] [<text>]:
  705. permission: {@pexAD}
  706. permission message: "{@pexMsg}"
  707. trigger:
  708. if arg 1 is set:
  709. if file "plugins/Skript/scripts/Maracana/bany/%arg 1%.yml" exists:
  710. if sender is not console:
  711. set {_b} to "%player%"
  712. else:
  713. set {_b} to "CONSOLE"
  714. delete file "plugins/Skript/scripts/Maracana/bany/%arg 1%.yml"
  715. send "&8>> &aOdbanowales gracza: &e%arg 1%&a!"
  716. broadcast "&8>> &eGracz &c%arg 1% &ezostal odbanowany przez &7%{_b}%"
  717. stop
  718. else:
  719. send "&8>> &cTen gracz nie jest zbanowany!"
  720. stop
  721. else:
  722. send "&8>> &cMusisz podac nick gracza ktorego chcesz odbanowac!"
  723. stop
  724. #KICK============================================================================================================
  725. command /kick [<offlineplayer>] [<text>]:
  726. permission: {@pexAD}
  727. permission message: "{@pexMsg}"
  728. trigger:
  729. if arg 1 is set:
  730. if arg 1 isn't "%player%":
  731. if offlineplayer-arg 1 is online:
  732. set {_b} to "%player%"
  733. if arg 2 is set:
  734. send "&8>> &3Wyrzuciles gracza &e%arg 1% &3za: &7%arg 2%"
  735. set {_powod} to arg 2
  736. else:
  737. send "&8>> &3Wyrzuciles gracza &e%arg 1% &3bez podanego powodu."
  738. set {_powod} to "Nie podano"
  739. kick offlineplayer-arg due to "&8=====%nl%&3Zostales &7wyrzucony &3z serwera!%nl%&3Wyrzucil: &7%{_b}%%nl%&3Powod: &7%{_powod}%%nl%&8====="
  740. stop
  741. else:
  742. send "&8>> &cPodany gracz jest offline."
  743. stop
  744. else:
  745. send "&8>> &cNie mozesz wyrzucic samego siebie!"
  746. stop
  747. else:
  748. send "&8>> &cMusisz podac kogo chcesz wyrzucic!"
  749. stop
  750.  
  751.  
  752. #MUTY============================================================================================================
  753. command /mute [<offlineplayer>] [<text>]: #todo czasowe
  754. permission: {@pexAD}
  755. permission message: "{@pexMsg}"
  756. trigger:
  757. if arg 1 is set:
  758. if arg 2 is set:
  759. if file "plugins/Skript/scripts/Maracana/muty/%arg 1%.yml" doesn't exists:
  760. if offlineplayer-arg don't have permissions "helper":
  761. if arg 1 isn't "%player%":
  762. create file "plugins/Skript/scripts/Maracana/muty/%arg 1%.yml"
  763. if sender is not console:
  764. set {_b} to "%player%"
  765. else:
  766. set {_b} to "CONSOLE"
  767. set {_y} to "%year%"
  768. set {_m} to "%month%"
  769. set {_d} to "%day%"
  770. set {_h} to "%hour%"
  771. set {_m} to "%minute%"
  772. set {_c} to "%{_y}%.%{_m}%.%{_d}% %{_h}%:%{_m}%"
  773. set yaml value "mute.gracz" from "Maracana/muty/%arg 1%.yml" to "%arg 1%"
  774. set yaml value "mute.admin" from "Maracana/muty/%arg 1%.yml" to "%player%"
  775. set yaml value "mute.powod" from "Maracana/muty/%arg 1%.yml" to "%arg 2%"
  776. set yaml value "mute.data" from "Maracana/muty/%arg 1%.yml" to "%{_c}%"
  777. send "&8>> &3Wyciszyles gracza &e%arg 1% &3z powodem: &7%arg 2%"
  778. send "&8>> &cZostales wyciszony przez &7%{_b}% za: &4&l%arg 2%" to offlineplayer-arg 1
  779. stop
  780. else:
  781. send "&8>> &cNie mozesz wyciszyc samego siebie!"
  782. stop
  783. else:
  784. send "&8>> &cNie mozesz wyciszyc admina!"
  785. send "&8>> &cAdmin &7%player% &cchcial Cie wyciszyc!" to offlineplayer-arg 1
  786. stop
  787. else:
  788. send "&8>> &cTen gracz jest juz wyciszony!"
  789. stop
  790. else:
  791. send "&8>> &cPoprawne uzycie: &7/mute <gracz> <powod>"
  792. stop
  793. else:
  794. send "&8>> &cPoprawne uzycie: &7/mute <gracz> <powod>"
  795. stop
  796. #UNMUTE============================================================================================================
  797. command /unmute [<offlineplayer>] [<text>]:
  798. permission: {@pexAD}
  799. permission message: "{@pexMsg}"
  800. trigger:
  801. if arg 1 is set:
  802. if file "plugins/Skript/scripts/Maracana/muty/%arg 1%.yml" exists:
  803. if sender is not console:
  804. set {_b} to "%player%"
  805. else:
  806. set {_b} to "CONSOLE"
  807. delete file "plugins/Skript/scripts/Maracana/muty/%arg 1%.yml"
  808. send "&8>> &aOdciszyles gracza gracza: &e%arg 1%&a!"
  809. send "&8>> &bMozesz znow mowic dzieki &7%{_b}%!" to offlineplayer-arg 1
  810. stop
  811. else:
  812. send "&8>> &cTen gracz nie jest wyciszony!"
  813. stop
  814. else:
  815. send "&8>> &cMusisz podac nick gracza ktorego chcesz odciszyc!"
  816. stop
  817.  
  818.  
  819. #EVENTY============================================================================================================
  820. #on join
  821.  
  822. on chat:
  823. if player don't have permission "helper":
  824. if file "plugins/Skript/scripts/Maracana/muty/%player%.yml" exists:
  825. send "&8>> &7Jestes aktualnie wyciszony, wiec nie mozesz pisac!"
  826. cancel event
  827.  
  828. command /spr [<text>] [<offlineplayer>]:
  829. aliases: sprawdz
  830. trigger:
  831. if player has permission "{@pex}":
  832. if arg 1 isn't set:
  833. send "&6&m=========="
  834. send "&e/spr help &7- wysyla te wiadomosc"
  835. send "&e/spr wezwij <gracz> &7- wzywa gracza na sprawdzanie"
  836. send "&e/spr czysty <gracz> &7- oznacza gracza jako czystego"
  837. send "&e/spr cheaty <gracz> &7- banuje gracza za cheaty"
  838. send "&e/spr wspolpraca <gracz> &7- banuje gracz za brak wspolpracy"
  839. send "&6&lKOMENDY ADMINA:"
  840. send "&c/spr ustawklatka &7- ustawia miejsce klatki do sprawdzania"
  841. send "&c/spr ustawspawn &7- ustawia miejsce spawnu po sprawdzaniu"
  842. send "&6&m=========="
  843. stop
  844. if arg 1 is "help" or "wezwij" or "czysty" or "cheaty" or "wspolpraca" or "ustawspawn" or "ustawklatka":
  845. if arg 1 is "help":
  846. send "&6&m=========="
  847. send "&e/spr help &7- wysyla te wiadomosc"
  848. send "&e/spr wezwij <gracz> &7- wzywa gracza na sprawdzanie"
  849. send "&e/spr czysty <gracz> &7- oznacza gracza jako czystego"
  850. send "&e/spr cheaty <gracz> &7- banuje gracza za cheaty"
  851. send "&e/spr wspolpraca <gracz> &7- banuje gracz za brak wspolpracy"
  852. send "&6&lKOMENDY ADMINA:"
  853. send "&c/spr ustawklatka &7- ustawia miejsce klatki do sprawdzania"
  854. send "&c/spr ustawspawn &7- ustawia miejsce spawnu po sprawdzaniu"
  855. send "&6&m=========="
  856. stop
  857. if arg 1 is "wezwij":
  858. if arg 2 is set:
  859. set {_sprawdzany} to arg 2
  860. if {_sprawdzany} is online:
  861. if {spr::%arg 2%} isn't set:
  862. if {k.location} is set:
  863. if {s.location} is set:
  864. if arg 2 isn't player:
  865. if {_sprawdzany} don't have permission "{@pex}":
  866. set {skadtp::%arg 2%} to {_sprawdzany}'s location
  867. wait 2 ticks
  868. set {spr::%arg 2%} to true
  869. set {sprawdzajacy::%arg 2%} to player
  870. teleport {_sprawdzany} to {k.location}
  871. teleport player to {k.location}
  872. send "&8>> &eWezwales gracza &7%arg 2% &ena sprawdzanie!" to player
  873. send " " to arg 2
  874. send "&7&m=========%nl%&eJestes sprawdzany!%nl%&cWylogujesz sie = PERM%nl%&7&m=========" to arg 2
  875. send " " to arg 2
  876. send json of "{@tag} &cPrzyznaje &csie &cdo &ccheatow!" tooltip "&7>> &eGdy to nacisniesz zostaniesz zbanowany!" run "/tempban %player% {@set.czasPrzyznanie} Przyznanie(system)" to arg 2
  877. broadcast "{@tag} &eGracz &7%arg 2% &ezostal wezwany na sprawdzanie przez &c%player%"
  878. else:
  879. send "&8>> &cNie mozesz wezwac admina!"
  880. stop
  881. else:
  882. send "&8>> &cNie mozesz wezwac samego siebie!"
  883. stop
  884. else:
  885. send "&8>> &cLokacja spawnu nie jest ustawiona!"
  886. stop
  887. else:
  888. send "&8>> &cLokacja klatki nie jest ustawiona!"
  889. stop
  890. else:
  891. send "&8>> &cTen gracz jest juz sprawdzany"
  892. else:
  893. send "&8>> &cTen gracz jest offline."
  894. stop
  895. else:
  896. send "&8>> &cPoprawne uzycie: &7/spr wezwij <gracz>"
  897. stop
  898. if arg 1 is "czysty":
  899. if arg 2 is set:
  900. if {spr::%arg 2%} is set:
  901. clear {spr::%arg 2%}
  902. clear {sprawdzajacy::%arg 2%}
  903. teleport arg 2 to {skadtp::%arg 2%}
  904. teleport player to {s.location}
  905. send "&8>> &bZostales uznany za &7czystego &bprzez &7%player%" to arg 2
  906. send "&8>> &aUznales gracza &7%arg 2% &aza czystego." to player
  907. broadcast "{@tag} &eGracz &7%arg 2% &ezostal uznany za czystego przez &c%player%"
  908. stop
  909. else:
  910. send "&8>> &cTen gracz nie jest aktualnie sprawdzany!"
  911. stop
  912. else:
  913. send "&8>> &cMusisz podac nick gracza."
  914. stop
  915. if arg 1 is "cheaty":
  916. if arg 2 is set:
  917. if {spr::%arg 2%} is set:
  918. clear {spr::%arg 2%}
  919. clear {sprawdzajacy::%arg 2%}
  920. kill arg 2
  921. teleport arg 2 to {s.location}
  922. teleport player to {s.location}
  923. send "&8>> &aZbanowales gracza &7%arg 2% &aza &ccheaty(sprawdzanie)"
  924. execute console command "/tempban %arg 2% {@set.czasCheaty} Cheaty(sprawdzanie)"
  925. stop
  926. else:
  927. send "&8>> &cTen gracz nie jest aktualnie sprawdzany!"
  928. stop
  929. else:
  930. send "&8>> &cMusisz podac nick gracza."
  931. stop
  932. if arg 1 is "wspolpraca":
  933. if arg 2 is set:
  934. if {spr::%arg 2%} is set:
  935. clear {spr::%arg 2%}
  936. clear {sprawdzajacy::%arg 2%}
  937. kill arg 2
  938. teleport arg 2 to {s.location}
  939. teleport player to {s.location}
  940. send "&8>> &aZbanowales gracza &7%arg 2% &aza &cbrak wspolpracy(sprawdzanie)"
  941. execute console command "/tempban %arg 2% {@set.czasWspolpraca} Brak Wspolpracy(sprawdzanie)"
  942. stop
  943. else:
  944. send "&8>> &cTen gracz nie jest aktualnie sprawdzany!"
  945. stop
  946. else:
  947. send "&8>> &cMusisz podac nick gracza."
  948. stop
  949. if arg 1 is "ustawspawn":
  950. if player has permission "{@pex2}":
  951. set {s.location} to player's location
  952. send "&8>> &aPrawidlowo ustawiles miejsce spawnu."
  953. else:
  954. send "&8>> &cMusisz miec uprawnienie admina."
  955. stop
  956. if arg 1 is "ustawklatka":
  957. if player has permission "{@pex2}":
  958. set {k.location} to player's location
  959. send "&8>> &aPrawidlowo ustawiles miejsce klatki do sprawdzania."
  960. else:
  961. send "&8>> &cMusisz miec uprawnienie admina."
  962. stop
  963. else:
  964. send "&8>> &cAby uzyskac pomoc wpisz &7/spr help"
  965. stop
  966. else:
  967. send "{@w.pex}"
  968. stop
  969. #EVENTY
  970. on rightclick with ender pearl:
  971. if {spr::%player%} is set:
  972. cancel event
  973. send "&8>> &7Nie mozesz uzywac perel podczas sprawdzania"
  974.  
  975. on command:
  976. if {spr::%player%} is set:
  977. if command isn't "msg" or "r" or "helpop":
  978. cancel event
  979. send "&8>> &7Jestes sprawdzany, nie mozesz uzywac komend."
  980.  
  981. on quit:
  982. if {spr::%player%} is set:
  983. send json of "{@tag} &c&lGRACZ &c&lKTOREGO &c&lSPRAWDZASZ WYLOGOWAL SIE" tooltip "&8>> &eNACISNIJ ABY ZBANOWAC" run "/tempban %player% {@set.czasLogout} Logout(sprawdzanie)." to {sprawdzajacy::%player%}
  984.  
  985. command /mlag [<text>] [<text>]:
  986. trigger:
  987. if arg 1 isn't "sprawdz" or "otchlan" or "":
  988. if player doesn't have permission "mlag.admin":
  989. set {Infoz} to {Info}
  990. replace all "|tresc|" in {Infoz} with "mlag.admin"
  991. send "%{Tag}%%{Kolor}% Nie posiadasz uprawnien do tej komendy. %{Infoz}%"
  992. if arg 1 is "czysc":
  993. loop 54 times:
  994. set slot loop-number - 1 of block at {lag::otchlan::ustawiona} to air
  995. set {lag::licznik} to 0
  996. loop all entities:
  997. if loop-entity is a dropped item:
  998. set {_} to items within loop-entity
  999. set {_} to "%loop-entity%" parsed as an item
  1000. set {lag::licznik} to {lag::licznik}+1
  1001. set {lag::item::%{lag::licznik}%} to {_}
  1002. delete loop-entity
  1003. set {lag::otchlan::stan} to true
  1004. set {Infoz} to {Info}
  1005. replace all "|tresc|" in {Infoz} with "%player%"
  1006. broadcast "%{Tag}%%{Kolor}% Zostalo wymuszone usuniecie itemow z ziemi przez administratora. %{Infoz}%"
  1007. broadcast "%{Tag}%%{Kolor}% W otchlani pojawily się usunięte przedmioty. "
  1008. loop {lag::licznik} times:
  1009. add {lag::item::%loop-number%} to inventory of block at {lag::otchlan::ustawiona}
  1010.  
  1011. if arg 1 is "otchlan":
  1012. open the inventory of the block at {lag::otchlan::ustawiona} to the player
  1013. send "%{Tag}%%{Kolor}% Otworzyles otchlan."
  1014.  
  1015. if arg 1 is "ustaw":
  1016. if arg 2 is "skrzynia":
  1017. set {_x} to random integer between 0 and 10000
  1018. set {_y} to 255
  1019. set {_z} to random integer between 1 and 10000
  1020. set {_c} to location at {_x}, {_y}, {_z}
  1021. set block at {_c} to chest
  1022. set block east {_c} to chest
  1023. set {lag::otchlan::ustawiona} to location of {_c}
  1024. send "%{Tag}%%{Kolor}% Skrzynia została postawiona na koordynatach: %{lag::otchlan::ustawiona}%"
  1025.  
  1026. if arg 1 is "sprawdz":
  1027. send "%{Tag}%%{Kolor}% Do nastepnego usuwania itemow pozostało %{lag::czas}% sekund."
  1028.  
  1029. if arg 1 is "reset":
  1030. set {Infoz} to {Info}
  1031. replace all "|tresc|" in {Infoz} with "%{czas}% sekund"
  1032. send "%{Tag}%%{Kolor}% Resetowano czas odliczania %{Infoz}%"
  1033.  
  1034. if arg 1 isn't set:
  1035. send "%{Tag}% %{Kolor}%- &5Skrypt na otchlan by Michma1707" #Jedyny punkt licencji: Zabraniam zmieniania tego nagłówku ;<!#
  1036. send "%{Kolor}%mlag sprawdz &6-%{kolor}% pokazuje czas do nastepnego usuwania itemĂłw"
  1037. send "%{Kolor}%otchlan &6-%{kolor}% otwiera otchlan"
  1038. if player has permission "mlag.admin":
  1039. send "&cKomendy administratora:"
  1040. send "%{Kolor}%mlag ustaw skrzynia &c-%{kolor}% generuje skrzynie do ktorej trafiaja itemy z otchlani"
  1041. send "%{Kolor}%mlag reset &c-%{kolor}% resetuje odliczanie do nastepnego auto odliczania"
  1042. send "%{Kolor}%mlag czysc &c-%{kolor}% wymusza usuwania itemow"
  1043.  
  1044.  
  1045. every 1 seconds:
  1046. if {lag::czas} = 0:
  1047. set {lag::czas} to {Czas} parsed as integer
  1048. broadcast "%{Tag}%%{Kolor}% Za &c10 sekund%{kolor}% itemy lezace na ziemi zostana przeniesione do otchlani"
  1049. wait 10 seconds
  1050. loop 54 times:
  1051. set slot loop-number - 1 of block at {lag::otchlan::ustawiona} to air
  1052. set {lag::licznik} to 0
  1053. loop all entities:
  1054. if loop-entity is a dropped item:
  1055. set {_} to items within loop-entity
  1056. set {_} to "%loop-entity%" parsed as an item
  1057. set {lag::licznik} to {lag::licznik}+1
  1058. set {lag::item::%{lag::licznik}%} to {_}
  1059. delete loop-entity
  1060. set {lag::otchlan::stan} to true
  1061. loop {lag::licznik} times:
  1062. add {lag::item::%loop-number%} to inventory of block at {lag::otchlan::ustawiona}
  1063. broadcast "%{Tag}%%{Kolor}% Do otchlani zostały przeniesione usunięte itemy."
  1064. else:
  1065. set {lag::czas} to {lag::czas}-1
  1066. command /otchlan:
  1067. trigger:
  1068. open the inventory of the block at {lag::otchlan::ustawiona} to the player
  1069. send "%{Tag}%%{Kolor}% Otworzyles otchlan."
  1070. on load:
  1071. if {lag::otchlan::ustawiona} isn't set:
  1072. execute console command "/clearlag ustaw skrzynia"
  1073. #YMl#
  1074. if file "plugins/mOtchlan/config.yml" doesn't exists:
  1075. create file "plugins/mOtchlan/config.yml"
  1076. set "Tag" to "&8[&2m&5Otchlan&8]" in yaml file "plugins/mOtchlan/config.yml"
  1077. set "Kolor" to "&7" in yaml file "plugins/mOtchlan/config.yml"
  1078. set "Czas" to "120" in yaml file "plugins/mOtchlan/config.yml"
  1079. set "Informacja" to "&8(&c|tresc|&8)" in yaml file "plugins/mOtchlan/config.yml"
  1080. set {Tag} to single value "Tag" get of "plugins/mOtchlan/config.yml"
  1081. set {Kolor} to single value "Kolor" get of "plugins/mOtchlan/config.yml"
  1082. set {Czas} to single value "Czas" get of "plugins/mOtchlan/config.yml"
  1083. set {Info} to single value "Informacja" get of "plugins/mOtchlan/config.yml"
Advertisement
Add Comment
Please, Sign In to add comment