knugi

Untitled

Oct 8th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.35 KB | None | 0 0
  1. #Autor: MrxJoint
  2. #Wersja: v1.0
  3. #Nazwa: IGuilds
  4. #
  5. # ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
  6. # ¦----------¦--------------¦------¦¦------¦----------¦------¦¦¦¦¦¦¦¦¦------------¦¦¦--------------¦
  7. # ¦----------¦--------------¦------¦¦------¦----------¦------¦¦¦¦¦¦¦¦¦--------------¦--------------¦
  8. # ¦----------¦--------------¦------¦¦------¦----------¦------¦¦¦¦¦¦¦¦¦--------------¦--------------¦
  9. # ¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦------¦¦¦¦¦¦¦¦¦
  10. # ¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦--------------¦
  11. # ¦¦¦------¦¦¦------¦¦------¦------¦¦------¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦--------------¦
  12. # ¦¦¦------¦¦¦------¦¦------¦------¦¦------¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦--------------¦
  13. # ¦¦¦------¦¦¦------¦¦------¦------¦¦------¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦¦¦¦¦¦¦¦¦------¦
  14. # ¦----------¦--------------¦--------------¦----------¦--------------¦--------------¦--------------¦
  15. # ¦----------¦--------------¦--------------¦----------¦--------------¦--------------¦--------------¦
  16. # ¦----------¦--------------¦--------------¦----------¦--------------¦------------¦¦¦--------------¦
  17. # ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
  18. # ----- ------
  19. # ----- ------
  20. # ----- ------
  21. #
  22. # ------ ----- ----- ----- ------ --- ------ -----
  23. # ------ ----- ----- ----- ------ --- ------ -----
  24. # ------ ----- ----- ----- ------ --- ------ -----
  25. #
  26. #
  27. #
  28. #Co wolno co nie wolno!
  29. #1.Czego nie wolno!
  30. # - Kopiowac części skryptu!
  31. # - Zmieniać zmiennych i podawać sie za autora sk!
  32. # -
  33. # -
  34. #2.Co wolno robic!
  35. # - Zmieniać tylko te opcje co są w "options:"!
  36. # - Zmieniać wiadomości!
  37. # - Zmieniać kolory!
  38. #
  39. #
  40. # Narazie tyle jak coś wymyśle dopisze :D
  41. #
  42. #
  43. #
  44. #
  45. #
  46. #
  47. #
  48. options:
  49. tag: &8[&2I&7Guilds&8]
  50. spawn.dystans: 300
  51. teren: 50
  52. block: dragon egg
  53. czas.po.wybuchu: 60 second
  54. color1: &7
  55. color2: &a
  56. item.zaloz.1: 64 diamond
  57. item.zaloz.2: none
  58. item.zaloz.3: none
  59. item.zaloz.4: none
  60. item.zaloz.5: none
  61. item.zaloz.6: none
  62. item.zaloz.7: none
  63. item.zaloz.8: none
  64. item.zaloz.9: none
  65. item.zaloz.10: none
  66.  
  67. powieksz.item.1: 32 diamond
  68. powieksz.item.2: 64 diamond
  69. powieksz.item.3: 98 diamond
  70. powieksz.item.4: 130 diamond
  71. powieksz.item.5: 162 diamond
  72. powieksz.item.6: 194 diamond
  73.  
  74. item.zaloz.1.v: 32 diamond
  75. item.zaloz.2.v: none
  76. item.zaloz.3.v: none
  77. item.zaloz.4.v: none
  78. item.zaloz.5.v: none
  79. item.zaloz.6.v: none
  80. item.zaloz.7.v: none
  81. item.zaloz.8.v: none
  82. item.zaloz.9.v: none
  83. item.zaloz.10.v: none
  84.  
  85. item.dolacz.1: 5 diamond
  86. item.dolacz.2: none
  87. item.dolacz.3: none
  88. item.dolacz.4: none
  89.  
  90. item.losuj.1: 64 diamond
  91. item.losuj.2: none
  92. item.losuj.3: none
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. command /@ <text>:
  103. trigger:
  104. arg 1 is not set:
  105. send "{@tag} &cPrawidlowe uzycie: &a/@ [wiadomosc do gildii]"
  106. stop
  107. if {gildie::wGildii::%player%} is not set:
  108. send "{@tag} &cNie jestes w zadnej gildii!"
  109. stop
  110. set {_tag} to {gildie::wGildii::%name of player%}
  111. {gildie::%{_tag}%.lider::*} is set:
  112. loop {gildie::%{_tag}%.members::*}:
  113. loop all players:
  114. loop-value is loop-player:
  115. send "&8&o[&3%{_tag}%&8&o] &7Lider &a%player%: &a%arg%" to loop-player
  116. stop
  117. stop
  118. set {_tag} to {gildie::wGildii::%name of player%}
  119. {czlonek::gildii::%{_tag}%} is set:
  120. loop {gildie::%{_tag}%.members::*}:
  121. loop all players:
  122. loop-value is loop-player:
  123. send "&8&o[&3%{_tag}%&8&o] &7Czlonek &a%player%: &7%arg%" to loop-player
  124. stop
  125. stop
  126. on damage of player:
  127. if {gildie::wGildii::%attacker%} is set:
  128. if {gildie::wGildii::%victim%} is set:
  129. if {gildie::%{gildie::wGildii::%attacker%}%.members::*} contain victim:
  130. if {gildie::%{gildie::wGildii::%attacker%}%::pvp} is false:
  131. cancel event
  132. stop
  133. if {gildie::%{gildie::wGildii::%victim%}%.members::*} contain attacker:
  134. if {gildie::%{gildie::wGildii::%victim%}%::pvp} is false:
  135. cancel event
  136. stop
  137. command /g [<text>] [<text>] [<text>] [<player>]:
  138. trigger:
  139. if arg 1 is "pomoc" or "help" or "?":
  140. if arg 2 is not set:
  141. send "&8##&7====== {@tag} &7======&8##"
  142. send "&7Strona: &2[1&7/&23]"
  143. send "&2/g zaloz [tag] [nazwa] &7-- Zaklada gildie"
  144. send "&2/g zapros [nick] &7-- Zaprasza graczy"
  145. send "&2/g dolacz [tag &7-- Dolacza do gildii"
  146. send "&2/g info [tag] &7-- Informacje o gildii"
  147. send "&2/g opusc &7-- Opuszcza gildie"
  148. send "&2/g wyrzuc [nick] &7-- Wyrzuca z gildii gracza"
  149. send "&2/g usun &7-- Usuwa gildie"
  150. send "&2/g pomoc 2 &7-- Nastepna strona"
  151. stop
  152. if arg 2 is "2":
  153. send "&8##&7====== {@tag} &7======&8##"
  154. send "&7Strona: &2[2&7/&23]"
  155. send "&2/g baza &7-- Teleportuje do bazy gildii"
  156. send "&2/g powieksz &7-- Powieksza teren gildii"
  157. send "&2/g serce &7-- Teleportuje lidera do serca gildii"
  158. send "&2/g ustawbaze &7-- Ustawia baze gildii"
  159. send "&2/g efekt &7-- Losuje efekt dla gildii za oplata"
  160. send "&2/g pvp &7-- Wlacza/wylacza pvp w gildii"
  161. send "&a/g pomoc admin &8-- Komendy Admina"
  162. stop
  163. if arg 2 is "3":
  164. send "&8##&7====== {@tag} &7======&8##"
  165. send "&7Strona: &2[3&7/&23]"
  166. send "&2/@ [tekst] &7-- Wiadomosc do gildii"
  167. stop
  168. if arg 2 is "admin":
  169. if player has permission "iguilds.admin":
  170. send "&8##&7====== {@tag} &7======&8##"
  171. send "&7Strona: &2[1&7/&22]"
  172. send "&a/g przeladuj &8-- Przeladowanie gildiii"
  173. send "&a/g setspawn &8-- Ustawia spawn na gildii"
  174. else:
  175. send "{@tag} &cNie masz uprawnien!"
  176. stop
  177. arg 1 is "przeladuj":
  178. if player doesn't have permission "iguilds.admin":
  179. send "{@tag} &cNie masz uprawnien!"
  180. stop
  181. execute console command "/sk reload %script%"
  182. send "{@tag} &aPrzeladowano!"
  183. stop
  184. arg 1 is "setspawn":
  185. if player doesn't have permission "iguilds.admin":
  186. send "{@tag} &cNie masz uprawnien!"
  187. stop
  188. set {_loc} to location of player
  189. set {spawn} to {_loc}
  190. send "{@tag} &8Ustawiles spawn dla gildii!"
  191. stop
  192. arg 1 is "pvp":
  193. arg 2 is set:
  194. send "{@tag} &cZa duzo argumentow!"
  195. stop
  196. if {gildie::wGildii::%player%} is not set:
  197. send "{@tag} &cNie jestes w zadnej gildii!"
  198. stop
  199. if {gildie::%{gildie::wGildii::%player%}%.lider} is not set:
  200. send "{@tag} &cNie jestes liderem gildii!"
  201. stop
  202. if {gildie::%{gildie::wGildii::%player%}%::pvp} is true:
  203. send "{@tag} &8P&4v&8P &cw gildi zostalo wylaczone!"
  204. set {gildie::%{gildie::wGildii::%player%}%::pvp} to false
  205. stop
  206. else:
  207. send "{@tag} &8P&4v&8P &cw gildi zostalo wlaczone!"
  208. set {gildie::%{gildie::wGildii::%player%}%::pvp} to true
  209. stop
  210. arg 1 is "zaloz":
  211. if arg 2 is not set:
  212. send "{@tag} &cPodaj TAG gildii!"
  213. stop
  214. if arg 3 is not set:
  215. send "{@tag} &cPodaj nazwe gildii!"
  216. stop
  217. if {gildie::wGildii::%player%} is set:
  218. send "{@tag} &cJestes juz w innej gildii!"
  219. stop
  220. if {gildie::%{gildie::wGildii::%player%}%.lider} is set:
  221. send "{@tag} &cJestes liderem innej gildii!"
  222. stop
  223. if length of arg 2 is less than 3:
  224. send "{@tag} &cTag musi wynosic min 3 znaki!"
  225. stop
  226. if length of arg 2 is greater than 5:
  227. send "{@tag} &cTag musi wynosic max 5 znakow!"
  228. stop
  229. if length of arg 3 is greater than 24:
  230. send "{@tag} &cNazwa musi wynosic mniej niz 25 znakow!"
  231. stop
  232. if length of arg 3 is less than 8:
  233. send "{@tag} &cNazwa musi wynosic wiecej niz 8 znakow!"
  234. stop
  235. if {gildie::gildia::%arg 2%} is set:
  236. send "{@tag} &cGildia z takim TAG'iem juz istnieje"
  237. stop
  238. if distance between {spawn} and location of player is less than {spawn.dystans}+{@teren}/2:
  239. send "{@tag} &cJestes zbyt blisko spawnu!"
  240. stop
  241. loop {gildie::listaTagow::*}:
  242. set {_taggildii} to loop-value parsed as text
  243. if distance between {gildie::lokacja::%{_taggildii}%} and location of player is less than 200:
  244. send "{@tag} &cJestes za blisko innej gildii!"
  245. add 1 to {_gildieinne}
  246. stop
  247. if {_gildieinne} is not set:
  248. if player has permission "iguilds.stworz.vip":
  249. if player doesn't have {item.zaloz.1.v}:
  250. add {item.zaloz.1.v} to {_req::*}
  251. if player doesn't have {@item.zaloz.2.v}:
  252. add {item.zaloz.2.v} to {_req::*}
  253. if player doesn't have {item.zaloz.3.v}:
  254. add {item.zaloz.3.v} to {_req::*}
  255. if player doesn't have {item.zaloz.4.v}:
  256. add {item.zaloz.4.v} to {_req::*}
  257. if player doesn't have {item.zaloz.5.v}:
  258. add {item.zaloz.5.v} to {_req::*}
  259. if player doesn't have {item.zaloz.6.v}:
  260. add {item.zaloz.6.v} to {_req::*}
  261. if player doesn't have {item.zaloz.7.v}:
  262. add {item.zaloz.7.v} to {_req::*}
  263. if player doesn't have {item.zaloz.8.v}:
  264. add {item.zaloz.8.v} to {_req::*}
  265. if player doesn't have {item.zaloz.9.v}:
  266. add {item.zaloz.9.v} to {_req::*}
  267. if player doesn't have {item.zaloz.10.v}:
  268. add {item.zaloz.10.v} to {_req::*}
  269. if {_req::*} is set:
  270. send "{@tag} &7Nie masz wszystkich wymaganych przedmiotow! Obecnie brakuje Ci: &a%{_req::*}%"
  271. stop
  272. set {_take.i} to true
  273. set {_take.vip} to true
  274. else:
  275. if player doesn't have {item.zaloz.1}:
  276. add {item.zaloz.1} to {_req::*}
  277. if player doesn't have {item.zaloz.2}:
  278. add {item.zaloz.2} to {_req::*}
  279. if player doesn't have {item.zaloz.3}:
  280. add {item.zaloz.3} to {_req::*}
  281. if player doesn't have {@item.zaloz.4}:
  282. add {item.zaloz.4} to {_req::*}
  283. if player doesn't have {item.zaloz.5}:
  284. add {item.zaloz.5} to {_req::*}
  285. if player doesn't have {item.zaloz.6}:
  286. add {item.zaloz.6} to {_req::*}
  287. if player doesn't have {item.zaloz.8}:
  288. add {item.zaloz.7} to {_req::*}
  289. if player doesn't have {item.zaloz.8}:
  290. add {item.zaloz.8} to {_req::*}
  291. if player doesn't have {item.zaloz.9}:
  292. add {item.zaloz.9} to {_req::*}
  293. if player doesn't have {item.zaloz.10}:
  294. add {item.zaloz.10} to {_req::*}
  295. if {_req::*} is set:
  296. send "{@tag} &7Nie masz wszystkich wymaganych przedmiotow! Obecnie brakuje Ci: &a%{_req::*}%"
  297. stop
  298. set {_take.i} to true
  299. if {_take.i} is true:
  300. if {_take.vip} is true:
  301. remove {item.zaloz.1.v} from player
  302. remove {item.zaloz.2.v} from player
  303. remove {item.zaloz.3.v} from player
  304. remove {item.zaloz.4.v} from player
  305. remove {item.zaloz.5.v} from player
  306. remove {item.zaloz.6.v} from player
  307. remove {item.zaloz.7.v} from player
  308. remove {item.zaloz.8.v} from player
  309. remove {item.zaloz.9.v} from player
  310. remove {item.zaloz.10.v} from player
  311. else:
  312. remove {item.zaloz.1} from player
  313. remove {item.zaloz.2} from player
  314. remove {item.zaloz.3} from player
  315. remove {item.zaloz.4} from player
  316. remove {item.zaloz.5} from player
  317. remove {item.zaloz.6} from player
  318. remove {item.zaloz.7} from player
  319. remove {item.zaloz.8} from player
  320. remove {item.zaloz.9} from player
  321. remove {item.zaloz.10} from player
  322. #====ZMienne=====#
  323. set {gildie::gildia::%arg 2%} to true
  324. set {gildie::wGildii::%name of player%} to "%arg 2%"
  325. add "%name of player%" to {gildie::%arg 2%.members::*}
  326. add "%arg 2%" to {gildie::listaTagow::*}
  327. add "%arg 2%" to {gildie::listaGildii::*}
  328. add "%arg 2%" to {gcuboidy::%arg 2%}
  329. set {powiekszenie.%arg 2%.1} to false
  330. set {powiekszenie.%arg 2%.2} to false
  331. set {powiekszenie.%arg 2%.3} to false
  332. set {powiekszenie.%arg 2%.4} to false
  333. set {powiekszenie.%arg 2%.5} to false
  334. set {powiekszenie.%arg 2%.6} to false
  335. set {gildie::%{gildie::wGildii::%player%}%::pvp} to true
  336. set {efekt.%player%} to false
  337. set {gildie::%arg 2%.opis} to "To jest domyslny opis gildii..."
  338. set {gildie::%arg 2%.lider} to "%player%"
  339. set {uzycie.%player%} to 0
  340. set {punkty.gildia::%arg 2%} to 500
  341. set {gildie::%arg 2%.tag} to "%arg 3%"
  342. set {serce.gildii.%arg 2%} to location of player
  343. set {_loc} to block at location (x-coordinate of player, y-coordinate of player, z-coordinate of player) in "world"
  344. set {gildie::lokacja::%arg 2%} to {_loc}
  345. set block under player to {@block}
  346. set {_name} to "%arg 2%" #// Nazwa (id) regionu
  347. add {_name} to {regions::*} #// Lista z nazwami (id) regionow
  348. set {region.size.%{_name}%} to 50 #// Jakas tam poczatkowa wielkosc regionu
  349. set {region.center.%{_name}%} to location of player #// Srodek regionu
  350. "%{_name}%".Region.selectLS{{region.center.%{_name}%}, {region.size.%{_name}%}};# // Wyznaczamy
  351. set {gildie::zalozenie::%arg 2%} to now
  352. loop {gildie::%arg 2%.members::*}:
  353. loop all players:
  354. loop-value is loop-player:
  355. make player see loop-player's prefix as "&8[&2%arg 2%&8] &a"
  356. loop-value is not loop-player:
  357. make loop-player see player's prefix as "&8[&2%arg 2%&8] &c"
  358. send "{@tag} &cPvP w gildii zostalo wlaczone!"
  359. send "{@tag} &cPamietaj aby ustawic Baze dla gildii!"
  360. broadcast "{@tag} &7Gildia &a%arg 2% %arg 3% &7zostala zalozona przez &a%player%"
  361. create timed bar with text "&7Gracz &a%player% &7zalozyl gildie &a%arg 2% &2%arg 3%" to all players for 15 seconds
  362. stop
  363. arg 1 is "opis":
  364. if length of arg 2 is greater than 26:
  365. send "{@tag} &cOpis gildii musi zawierac mniej niz 26 znakow!"
  366. stop
  367. arg 2 is not set:
  368. send "{@tag} &cPodaj opis gildii bez spacji!"
  369. stop
  370. arg 3 is set:
  371. send "{@tag} &cZa duzo argumentow!"
  372. stop
  373. arg 4 is set:
  374. send "{@tag} &cZa duzo argumentow!"
  375. stop
  376. else if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
  377. send "{@tag} &cTylko lider gildii moze zmieniac opis!"
  378. stop
  379. set {_tag} to {gildie::wGildii::%player%}
  380. set {gildie::%{_tag}%.opis} to "%arg 2%"
  381. send "{@tag} &7Zmieniles opis na: &a%arg 2%&7."
  382. stop
  383.  
  384. arg 1 is "zapros":
  385. arg 2 is not set:
  386. send "{@tag} &cPodaj nick gracza!"
  387. stop
  388. if {gildie::wGildii::%player%} is not set:
  389. send "{@tag} &7Nie jestes w gildii!"
  390. stop
  391. set {_player} to arg 2 parsed as player
  392. if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
  393. send "{@tag} &7Tylko lider gildii moze zapraszac innych!"
  394. stop
  395. if "%{gildie::wGildii::%name of player%}%" is "%{gildie::wGildii::%arg 2%}%":
  396. send "{@tag} &7Ten gracz juz jest w Twojej gildii!"
  397. stop
  398. set {invite.%{gildie::wGildii::%name of player%}%.%{_player}%} to true
  399. send "{@color1}============= {@color2}%{gildie::wGildii::%player%}%{@color1} =============" to {_player}
  400. send "{@color1}Gildia {@color2}%{gildie::wGildii::%player%}%{@color1} wyslala Ci zaproszenie!" to {_player}
  401. send "{@color1}Wpisz {@color2}/g dolacz %{gildie::wGildii::%player%}%{@color1}, aby zaakceptowac!" to {_player}
  402. send "{@color1}================================" to {_player}
  403. send "{@tag}{@color1} Wyslales zaproszenie do gildii do gracza {@color2}%arg 2%{@color1}!"
  404. wait 1 minute
  405. if {gildie::wGildii::%{_player}%} is not {gildie::wGildii::%name of player%}:
  406. set {invite.%{gildie::wGildii::%name of player%}%.%{_player}%} to false
  407. stop
  408. arg 1 is "dolacz":
  409. if player doesn't have {@item.dolacz.1}:
  410. add {@item.dolacz.1} to {_lista::*}
  411. if player doesn't have {@item.dolacz.2}:
  412. add {@item.dolacz.2} to {_lista::*}
  413. if player doesn't have {@item.dolacz.3}:
  414. add {@item.dolacz.3} to {_lista::*}
  415. if player doesn't have {@item.dolacz.4}:
  416. add {@item.dolacz.4} to {_lista::*}
  417. if {_lista::*} is set:
  418. send "{@tag} &cObecnie brakuje Ci: &a%{_lista::*}%"
  419. stop
  420. if {gildie::wGildii::%player%} is set:
  421. send "{@tag} {@color1}Jestes juz w gildii!"
  422. if arg 2 is not set:
  423. send "{@tag} {@color1}Podaj nazwe gildii!"
  424. stop
  425. if {gildie::gildia::%arg 2%} is not true:
  426. send "{@tag} {@color1}Taka gildia nie istnieje!"
  427. stop
  428. if {invite.%arg 2%.%name of player%} is false:
  429. send "{@tag} {@color1}Nie masz zaproszenia od tej gildii :("
  430. stop
  431.  
  432. set {gildie::wGildii::%name of player%} to "%arg 2%"
  433. add "%name of player%" to {gildie::%arg 2%.members::*}
  434. set {czlonek::gildii::%name of player%} to "%arg 2%"
  435. loop {gildie::%arg 2%.members::*}:
  436. loop all players:
  437. loop-value is not loop-player:
  438. make loop-player see player's prefix as "&8[&2%arg 2%&8] &c"
  439. set {invite.%arg 2%.%name of player%} to false
  440. broadcast "{@tag} {@color1}Gracz {@color2}%player% {@color1}dolaczyl do gildi {@color2}%{gildie::wGildii::%name of player%}%{@color1}!"
  441. create timed bar with text "{@color1}Gracz {@color2}%player% {@color1}dolaczyl do gildi {@color2}%{gildie::wGildii::%name of player%}%{@color1}!" to all players for 15 seconds
  442. remove {@item.dolacz.1} from player
  443. remove {@item.dolacz.2} from player
  444. remove {@item.dolacz.3} from player
  445. remove {@item.dolacz.4} from player
  446. loop {gildie::%arg 2%.members::*}:
  447. loop all players:
  448. loop-value is loop-player:
  449. make player see loop-player's prefix as "&8[&2%arg 2%&8] &a"
  450. stop
  451. stop
  452. arg 1 is "usun":
  453. arg 2 is set:
  454. send "{@tag} &cZa duzo argumentow!"
  455. stop
  456. arg 3 is set:
  457. send "{@tag} &cZa duzo argumentow!"
  458. stop
  459. if {gildie::wGildii::%player%} is not set:
  460. send "{@tag} {@color1}Nie jestes w zadnej gildii!"
  461. stop
  462. if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
  463. send "{@tag} {@color1}Tylko lider gildii moze rozwiazac gildie!"
  464. stop
  465. set {_arg} to {gildie::wGildii::%name of player%}
  466. create timed bar with text "&7Gracz &a%player% &7rozwiazal gildie &a%{gildie::wGildii::%name of player%}% " to all players for 15 seconds
  467. broadcast "{@tag} &7Gracz &a%player% &7rozwiazal gildie &a%{gildie::wGildii::%name of player%}%"
  468. loop {gildie::%{_arg}%.members::*}:
  469. loop all players:
  470. loop-value is "%loop-player%":
  471. clear {gildie::wGildii::%loop-player%}
  472. edit tag of loop-player to " "
  473. make player see loop-player's prefix as ""
  474. make all players see loop-player's prefix as ""
  475. clear {czlonek::gildii::%loop-player%}
  476. clear {gildie::zamknij::%{gildie::wGildii::%name of player%}%}
  477. run player command "/usunpunkty %{_arg}%" as op
  478. clear {gildie::gildia::%{_arg}%}
  479. clear {gildie::%{_arg}%.lider::*}
  480. clear {gildie::%{_arg}%.tag}
  481. clear {gildie::wGildii::%name of player%}
  482. clear {gildie::zalozenie::%{_arg}%}
  483. set block under {serce.gildii.%{_arg}%} to air
  484. clear {serce.gildii.%{_arg}%}
  485. clear {gildie::%{_arg}%.opis}
  486. set {powiekszenie.%{_gildia}%.1} to false
  487. set {powiekszenie.%{_gildia}%.2} to false
  488. set {powiekszenie.%{_gildia}%.3} to false
  489. set {powiekszenie.%{_gildia}%.4} to false
  490. set {powiekszenie.%{_gildia}%.5} to false
  491. set {powiekszenie.%{_gildia}%.6} to false
  492. delete {punkty.gildia::%{_gildia}%}
  493. remove "%{_arg}%" from {gildie::listaTagow::*}
  494. clear {gildie::lokacja::%{_arg}%}
  495. #edit tag of player to ""
  496. remove {_arg} from {gildie::listaGildii::*}
  497. remove {_arg} from {gildie::listaTagow::*}
  498. clear {region.size.%{_arg}%}
  499. clear {region.center.%{_arg}%}
  500. clear {gildie::%{_arg}%.members::*}
  501. "%{_arg}%".Region.delete{};
  502. stop
  503. arg 1 is "opusc":
  504. arg 3 is set:
  505. send "{@tag} &cZa duzo argumentow!"
  506. stop
  507. if {gildie::wGildii::%player%} is not set:
  508. send "{@tag} {@color1}Nie jestes w zadnej gildii!"
  509. stop
  510. if {gildie::%{gildie::wGildii::%player%}%.lider} is player:
  511. send "{@tag} {@color1}Lider nie moze opuscic gildii! Musisz ja usunac!"
  512. stop
  513. if arg 2 is not set:
  514. send "{@tag} {@color1}Potwierdz, ze chcesz odejsc z gildii {@color2}%{gildie::wGildii::%player%}% {@color1}wpisujac {@color2}/opusc %{gildie::wGildii::%player%}%{@color1}!"
  515. stop
  516. else:
  517. broadcast "{@tag} {@color1}Gracz {@color2}%player%{@color1} opuscil gildie {@color2}%{gildie::wGildii::%player%}%{@color1}!"
  518. create timed bar with text "{@color1}Gracz {@color2}%player%{@color1} opuscil gildie {@color2}%{gildie::wGildii::%player%}%{@color1}!" to all players for 15 seconds
  519. loop {gildie::%{_arg}%.members::*}:
  520. loop all players:
  521. loop-value is loop-player:
  522. make player see loop-player's prefix as "&8[&2%arg 2%&8] &c"
  523. make loop-player see player's prefix as " "
  524. remove "%player%" from {gildie::%arg 2%.members::*}
  525. #edit tag of player to ""
  526. clear {gildie::wGildii::%player%}
  527. clear {czlonek::gildii::%name of player%}
  528. stop
  529. arg 1 is "wyrzuc":
  530. if arg 2 is not set:
  531. send "{@tag} {@color1}Wybierz gracza, ktorego chcesz wyrzucic!"
  532. stop
  533. if {gildie::wGildii::%player%} is not set:
  534. send "{@tag} {@color1}Nie jestes w zadnej gildii!"
  535. stop
  536. if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
  537. send "{@tag} {@color1}Tylko lider gildii moze wyrzucac graczy!"
  538. stop
  539. if arg 2 is player:
  540. send "{@tag} {@color1}Lider nie moze wyrzucic siebie z gildii! Musisz ja usunac!"
  541. stop
  542. if "%{gildie::wGildii::%player%}%" is not "%{gildie::wGildii::%arg 2%}%":
  543. send "{@tag} {@color1}Ten gracz nie jest w Twojej gildii!"
  544. stop
  545. else:
  546. broadcast "{@tag} {@color1}Gracz {@color2}%arg 2%{@color1} zostal wyrzucony z gildii {@color2}%{gildie::wGildii::%player%}%{@color1}!"
  547. set {_arg} to arg 2 parsed as player
  548. loop {gildie::%{gildie::wGildii::%player%}%.members::*}:
  549. loop all players:
  550. loop-value is loop-player:
  551. make {_arg} see loop-player's prefix as "&8[&2%{gildie::wGildii::%player%}%&8] &c"
  552. remove "%arg 2%" from {gildie::%{gildie::wGildii::%player%}%.members::*}
  553. clear {gildie::wGildii::%arg 2%}
  554. clear {czlonek::gildii::%arg 2%}
  555. clear {czlonek::gildii::%arg 2%}
  556. stop
  557. arg 1 is "info":
  558. if arg 2 is not set:
  559. if {gildie::wGildii::%name of player%} is set:
  560. run player command "/g info %{gildie::wGildii::%name of player%}%" as op
  561. else:
  562. send "{@tag} {@color1}Nie jestes w zadnej gildii!"
  563. else if {gildie::gildia::%arg 2%} is not set:
  564. if arg 2 is set:
  565. send "{@tag} {@color1}Gildia o TAG'u {@color2}%arg 2%{@color1} nie istnieje!"
  566. else:
  567. set {_size} to "%arg 2%".Region.getSize{};
  568. send "&8-======= {@tag} &8========¬"
  569. send "&8¦ {@color1}TAG: {@color2}%arg 2%"
  570. send "&8¦ {@color1}Nazwa: {@color2}%{gildie::%arg 2%.tag}%"
  571. send "&8¦ {@color1}Opis: {@color2}%{gildie::%arg 2%.opis}%"
  572. send "&8¦ {@color1}Zalozona: {@color2}%{gildie::zalozenie::%arg 2%}%"
  573. send "&8¦ {@color1}Punkty: {@color2}%{punkty.gildia::%arg 2%}%"
  574. send "&8¦ {@color1}Wielkosc terenu: {@color2}%{_size}%"
  575. if {gildie::%arg 2%::pvp} is false:
  576. send "&8¦ {@color1}&8P&4v&8P: {@color2}Wylaczone!"
  577.  
  578. else:
  579. send "&8¦ {@color1}&8P&4v&8P: {@color2}Wlaczone!"
  580.  
  581. if {gildie::%arg 2%.lider} parsed as player is online:
  582. send "&8¦ {@color1}Lider: &a%{gildie::%arg 2%.lider}%"
  583. else:
  584. send "&8¦ {@color1}Lider: &c%{gildie::%arg 2%.lider}%"
  585. set {_} to size of {gildie::%arg 2%.members::*}
  586. if {_} is 0:
  587. send "&8¦ {@color1}Czlonkowie: {@color2}brak!"
  588. send "&8L====================-"
  589. stop
  590. if {_} is greater than 0:
  591. send "&8¦ {@color1}Czlonkowie: {@color2}%{gildie::%arg 2%.members::*}%"
  592. send "&8L====================-"
  593. stop
  594. #loop all players:
  595. #loop-value is loop-player:
  596. # set {_value} to loop-player
  597. # send "&8¦ {@color1}Czlonkowie: {@color2}%loop-player%"
  598. # send "&8L====================-"
  599. # stop
  600. arg 1 is "powieksz":
  601. arg 2 is set:
  602. send "{@tag} &cZa duzo argumentow!"
  603. stop
  604. arg 3 is set:
  605. send "{@tag} &cZa duzo argumentow!"
  606. stop
  607. if {gildie::wGildii::%player%} is not set:
  608. send "{@tag} {@color1}Nie jestes w zadnej gildii!"
  609. stop
  610. if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
  611. send "{@tag} {@color1}Tylko lider gildii moze powiekszac teren!"
  612. stop
  613. set {_gildia} to {gildie::wGildii::%player%}
  614. set {_name} to {gildie::wGildii::%player%}
  615. if {serce.gildii.%{_gildia}%} is location of player:
  616. if {powiekszenie.%{_gildia}%.6} is true:
  617. send "{@tag} &7Osiagnieto maksymalny poziom rozbudowy!"
  618. stop
  619. if {powiekszenie.%{_gildia}%.1} is false:
  620. if player doesn't have {@powieksz.item.1}:
  621. send "{@tag} &7Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.1}"
  622. stop
  623. remove {@powieksz.item.1} from player
  624. #// Aktualizujemy region, czyli np. go powiekszamy
  625. set {region.size.%{_name}%} to 60
  626. "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
  627. set {powiekszenie.%{_gildia}%.1} to true
  628. set {powiekszenie.%{_gildia}%.2} to false
  629. set {gcuboidy::%{_gildia}%} to location of player
  630. send "{@tag} &6Teren zostal zwiekszony do 60 kratek!"
  631. stop
  632. if {powiekszenie.%{_gildia}%.2} is false:
  633. if player doesn't have {@powieksz.item.2}:
  634. send "{@tag} &7Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.2}"
  635. stop
  636. remove {@powieksz.item.2} from player
  637. set {region.size.%{_name}%} to 70
  638. "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
  639. set {powiekszenie.%{_gildia}%.2} to true
  640. set {powiekszenie.%{_gildia}%.3} to false
  641. set {gcuboidy::%{_gildia}%} to location of player
  642. send "{@tag} &6Teren zostal zwiekszony do 70 kratek!"
  643. stop
  644. if {powiekszenie.%{_gildia}%.3} is false:
  645. if player doesn't have {@powieksz.item.3}:
  646. send "{@tag} &7Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.3}"
  647. stop
  648. remove {@powieksz.item.3} from player
  649. set {region.size.%{_name}%} to 80
  650. "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
  651. set {powiekszenie.%{_gildia}%.3} to true
  652. set {powiekszenie.%{_gildia}%.4} to false
  653. set {gcuboidy::%{_gildia}%} to location of player
  654. send "{@tag} &6Teren zostal zwiekszony do 80 kratek!"
  655. stop
  656. if {powiekszenie.%{_gildia}%.4} is false:
  657. if player doesn't have {@powieksz.item.4}:
  658. send "{@tag} &7Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.4}"
  659. stop
  660. remove {@powieksz.item.4} from player
  661. set {region.size.%{_name}%} to 90
  662. "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
  663. set {powiekszenie.%{_gildia}%.4} to true
  664. set {powiekszenie.%{_gildia}%.5} to false
  665. set {gcuboidy::%{_gildia}%} to location of player
  666. send "{@tag} &6Teren zostal zwiekszony do 90 kratek!"
  667. stop
  668. if {powiekszenie.%{_gildia}%.5} is false:
  669. if player doesn't have {@powieksz.item.5}:
  670. send "{@tag} &7Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.5}"
  671. stop
  672. remove {@powieksz.item.5} from player
  673. set {region.size.%{_name}%} to 100
  674. "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
  675. set {powiekszenie.%{_gildia}%.5} to true
  676. set {powiekszenie.%{_gildia}%.6} to false
  677. set {gcuboidy::%{_gildia}%} to location of player
  678. send "{@tag} &6Teren zostal zwiekszony do 100 kratek!"
  679. stop
  680. if {powiekszenie.%{_gildia}%.6} is false:
  681. if player doesn't have {@powieksz.item.6}:
  682. send "{@tag} &&Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.6}"
  683. stop
  684. remove {@powieksz.item.6} from player
  685. set {region.size.%{_name}%} to 110
  686. "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
  687. set {powiekszenie.%{_gildia}%.6} to true
  688. set {gcuboidy::%{_gildia}%} to location of player
  689. send "{@tag} &6Teren zostal zwiekszony do 110 kratek!"
  690. stop
  691. else:
  692. send "{@tag} &7Nie znajdujesz sie w sercu gildii!"
  693. stop
  694. arg 1 is "lista":
  695. arg 2 is set:
  696. send "{@tag} &cZa duzo argumentow!"
  697. stop
  698. arg 3 is set:
  699. send "{@tag} &cZa duzo argumentow!"
  700. stop
  701. if {gildie::listaGildii::*} is not set:
  702. send "&8##&7======= {@tag} &7=======&8##"
  703. send "&cNa tym serwerze nie ma jescze gildii!"
  704. send "&8##&7======= {@tag} &7=======&8##"
  705. stop
  706. set {_g.lista} to "%{gildie::listaGildii::*}%"
  707. send "&8##&7======= {@tag} &7=======&8##"
  708. send "&2Lista gildii:"
  709. loop all players:
  710. replace all "%loop-player%" with "&a%loop-player%" in {_g.lista}
  711. replace all "," with "&a,&6" in {_g.lista}
  712. replace all "and" with "&ai&6" in {_g.lista}
  713. send "&6%{_g.lista}%"
  714. send "&8##&7======= {@tag} &7=======&8##"
  715. arg 1 is "serce":
  716. arg 2 is not set:
  717. arg 3 is not set:
  718. if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
  719. send "{@tag} {@color1}Tylko lider gildii moze teleportowac sie do serca!"
  720. stop
  721. set {_pos} to location of player
  722. send "{@tag} &6Czekaj &a5 sekund&6, nie wolno Ci sie ruszyc!"
  723. if {_pos} isn't location of player:
  724. send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
  725. stop
  726. wait 1 second
  727. send "&65"
  728. if {_pos} isn't location of player:
  729. send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
  730. stop
  731. wait 1 second
  732. send "&64"
  733. if {_pos} isn't location of player:
  734. send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
  735. stop
  736. wait 1 second
  737. send "&63"
  738. if {_pos} isn't location of player:
  739. send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
  740. stop
  741. wait 1 second
  742. send "&62"
  743. if {_pos} isn't location of player:
  744. send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
  745. stop
  746. wait 1 second
  747. send "&61"
  748. # '
  749. if {_pos} is location of player:
  750. set {_tag} to {gildie::wGildii::%name of player%}
  751. teleport player to {serce.gildii.%{_tag}%}
  752. send "{@tag} &6Teleportacja..."
  753. stop
  754. else:
  755. send "{@tag} &7Wykryto ruch, teleportacja anulowana!"
  756. stop
  757. arg 1 is "ustawbaze":
  758. arg 2 is set:
  759. send "{@tag} &cZa duzo argumentow!"
  760. stop
  761. arg 3 is set:
  762. send "{@tag} &cZa duzo argumentow!"
  763. stop
  764. else if {gildie::wGildii::%player%} is not set:
  765. send "{@tag} {@color1}Nie jestes w zadnej gildii!"
  766. else if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
  767. send "{@tag} {@color1}Tylko lider gildii moze ustawiac baze gildii!"
  768. set {_region} to Region.getAt{location of player};
  769. if {_region} is {gildie::wGildii::%name of player%}:
  770. set {_loc} to location of player
  771. set {_tag} to {gildie::wGildii::%name of player%}
  772. set {gildie::baza.%{_tag}%} to {_loc}
  773. send "{@tag} &7Ustawiles wlasnie baze dla gildii: &a%{gildie::wGildii::%name of player%}% &7!"
  774. stop
  775. else:
  776. send "{@tag} &cNie znajdujesz sie na terenie swojej gildii!"
  777. stop
  778. arg 1 is "baza":
  779. arg 2 is set:
  780. send "{@tag} &cZa duzo argumentow!"
  781. stop
  782. arg 3 is set:
  783. send "{@tag} &cZa duzo argumentow!"
  784. stop
  785. else if {gildie::wGildii::%player%} is not set:
  786. send "{@tag} {@color1}Nie jestes w zadnej gildii!"
  787. stop
  788. set {_tag} to {gildie::wGildii::%name of player%}
  789. {gildie::baza.%{_tag}%} is not set:
  790. send "{@tag} &7Gildia nie posiada jeszcze wlasnej bazy!"
  791. stop
  792. set {_pos} to location of player
  793. send "{@tag} &6Czekaj &a5 sekund&6, nie wolno Ci sie ruszyc!"
  794. if {_pos} isn't location of player:
  795. send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
  796. stop
  797. wait 1 second
  798. send "&65"
  799. if {_pos} isn't location of player:
  800. send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
  801. stop
  802. wait 1 second
  803. send "&64"
  804. if {_pos} isn't location of player:
  805. send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
  806. stop
  807. wait 1 second
  808. send "&63"
  809. if {_pos} isn't location of player:
  810. send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
  811. stop
  812. wait 1 second
  813. send "&62"
  814. if {_pos} isn't location of player:
  815. send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
  816. stop
  817. wait 1 second
  818. send "&61"
  819. # '
  820. if {_pos} is location of player:
  821. set {_tag} to {gildie::wGildii::%name of player%}
  822. teleport player to {gildie::baza.%{_tag}%}
  823. send "{@tag} &6Teleportacja..."
  824. stop
  825. else:
  826. send "{@tag} &7Wykryto ruch, teleportacja anulowana!"
  827. stop
  828. arg 1 is "efekt":
  829. arg 2 is set:
  830. send "{@tag} &cZa duzo argumentow!"
  831. stop
  832. arg 3 is set:
  833. send "{@tag} &cZa duzo argumentow!"
  834. stop
  835. if {gildie::%{gildie::wGildii::%player%}%.lider} is not set:
  836. send "{@tag} {@color1}Tylko lider gildii moze losowac effekt dla gildii!"
  837. stop
  838. if {uzycie.%player%} is 0:
  839. if player doesn't have {@item.losuj.1}:
  840. add {@item.losuj.1} to {_losuj::*}
  841. if player doesn't have {@item.losuj.2}:
  842. add {@item.losuj.2} to {_losuj::*}
  843. if player doesn't have {@item.losuj.3}:
  844. add {@item.losuj.3} to {_losuj::*}
  845. if {_losuj::*} is set:
  846. send "{@tag} &cObecnie bakuje Ci: &7%{_losuj::*}%"
  847. stop
  848. remove {@item.losuj.1} from player
  849. remove {@item.losuj.2} from player
  850. remove {@item.losuj.3} from player
  851. loop all players:
  852. {gildie::%{gildie::wGildii::%name of player%}%.members::*} contains loop-player:
  853. chance of 20%:
  854. apply potion of speed of tier 2 to loop-player for 5 minute
  855. set {uzycie.%player%} to 2
  856. set {efekt.%player%} to true
  857. wait 5 minute
  858. set {efekt.%player%} to false
  859. send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 5 minut!"
  860. stop
  861. chance of 15%:
  862. apply potion of Night Vision of tier 2 to loop-player for 6 minute
  863. set {uzycie.%player%} to 2
  864. set {efekt.%player%} to true
  865. wait 5 minute
  866. set {efekt.%player%} to false
  867. send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 6 minut!"
  868. stop
  869. chance of 10%:
  870. apply potion of Water Breathing of tier 2 to loop-player for 4 minute
  871. set {uzycie.%player%} to 2
  872. set {efekt.%player%} to true
  873. wait 5 minute
  874. set {efekt.%player%} to false
  875. send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 4 minuty!"
  876. stop
  877. chance of 12%:
  878. apply potion of Fire Resistance of tier 2 to loop-player for 3 minute
  879. set {uzycie.%player%} to 2
  880. set {efekt.%player%} to true
  881. wait 5 minute
  882. set {efekt.%player%} to false
  883. send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 3 minuty!"
  884. stop
  885. chance of 13%:
  886. apply potion of Regeneration of tier 2 to loop-player for 4 minute
  887. set {uzycie.%player%} to 2
  888. set {efekt.%player%} to true
  889. wait 5 minute
  890. set {efekt.%player%} to false
  891. send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 4 minuty!"
  892. stop
  893. chance of 14%:
  894. apply potion of Jump Boost of tier 2 to loop-player for 2 minute
  895. set {uzycie.%player%} to 2
  896. set {efekt.%player%} to true
  897. wait 5 minute
  898. set {efekt.%player%} to false
  899. send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 2 minuty!"
  900. stop
  901. chance of 15%:
  902. apply potion of Strength of tier 2 to loop-player for 3 minute
  903. set {uzycie.%player%} to 2
  904. set {efekt.%player%} to true
  905. wait 5 minute
  906. set {efekt.%player%} to false
  907. send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 3 minuty!"
  908. stop
  909. chance of 16%:
  910. apply potion of Haste of tier 2 to loop-player for 3 minute
  911. set {uzycie.%player%} to 2
  912. set {efekt.%player%} to true
  913. wait 5 minute
  914. set {efekt.%player%} to false
  915. send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 3 minuty!"
  916. stop
  917. chance of 17%:
  918. apply potion of Instant Health of tier 2 to loop-player for 2 minute
  919. set {uzycie.%player%} to 2
  920. set {efekt.%player%} to true
  921. wait 5 minute
  922. set {efekt.%player%} to false
  923. send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 2 minuty!"
  924. stop
  925. else:
  926. if {uzycie.%player%} is greater than 1:
  927. send "{@tag} &aOdczekaj 2 godziny zanim zalosujesz jeszcze raz!"
  928. on quit:
  929. if {efekt.%player%} is true:
  930. run player command "/effect %player% clear" as op
  931. set {efekt.%player%} to false
  932. stop
  933. every 1 hour:
  934. loop all players:
  935. If {uzycie.%loop-player%} is greater than 1:
  936. Add -1 to {uzycie.%loop-player%}
  937.  
  938. on load: #// Przy zaladowaniu sk
  939. loop {regions::*}: #// Bierzemy nazwy wszystkich regionow
  940. "%loop-value%".Region.selectLS{{region.center.%loop-value%}, {region.size.%loop-value%}};# // Wyznaczamy region ze starych zmiennych
  941.  
  942.  
  943. on right click:
  944. if clicked block is dragon egg:
  945. set {_region} to Region.getAt{location of player};
  946. if {_region} is not set:
  947. stop
  948. if {_region} is set:
  949. cancel event
  950. if {gildie::wGildii::%name of player%} is set:
  951. run player command "/g info %{gildie::wGildii::%name of player%}%" as op
  952. stop
  953. run player command "/g info %{_region}%" as op
  954.  
  955.  
  956. on left click:
  957. if clicked block is dragon egg:
  958. set {_region} to Region.getAt{location of player};
  959. if {_region} is not set:
  960. stop
  961. if {_region} is set:
  962. cancel event
  963. if {gildie::wGildii::%name of player%} is set:
  964. run player command "/g info %{gildie::wGildii::%name of player%}%" as op
  965. stop
  966. run player command "/g info %{_region}%" as op
  967.  
  968.  
  969. on load:
  970. loop 15 times:
  971. set {gildia.chat.%loop-number%} to value "gildia.chat.%loop-number%" get of "plugins/Skript/IGuilds/chat.yml" parsed as text
  972.  
  973. on chat:
  974. set {_chat} to {gildia.chat.1}
  975. loop 15 times:
  976. if player has permission "gildia.chat.%loop-number%":
  977. set {_chat} to {gildia.chat.%loop-number%}
  978. {gildie::wGildii::%player%} is set:
  979. set {_tag} to {gildie::wGildii::%player%}
  980. {gildie::%{gildie::wGildii::%player%}%.lider} is set:
  981. set {_tag} to {gildie::wGildii::%player%}
  982. #{o.%player%} is set:
  983. #set {_tag} to {gildia.tag.%name of player%}
  984. if {_tag} is not set:
  985. replace all "{TAG}" with "" in {_chat}
  986. replace all "{PKT}" with "%{pkt::%player%}%" in {_chat}
  987. #replace all "{RANK}" with "%colored player prefix%" in {_chat}
  988. replace all "{PLAYER}" with "%player%" in {_chat}
  989. replace all "{DISPLAY}" with "%display name of player%" in {_chat}
  990. replace all "{MESSAGE}" with "%message%" in {_chat}
  991. replace all "Â" with "" in {_chat}
  992. send "%{_chat}%" to all players
  993. cancel event
  994. stop
  995. #replace all "{RANK}" with "%colored player prefix%" in {_chat}
  996. replace all "{PLAYER}" with "%player%" in {_chat}
  997. replace all "{PKT}" with "%{pkt::%player%}%" in {_chat}
  998. replace all "{DISPLAY}" with "%display name of player%" in {_chat}
  999. replace all "{MESSAGE}" with "%message%" in {_chat}
  1000. replace all "Â" with "" in {_chat}
  1001. replace all "{TAG}" with "%{_tag}%" in {_chat}
  1002. send "%{_chat}%" to all players
  1003. cancel event
  1004. stop
  1005.  
  1006. on load:
  1007. if folder "plugins/Skript/IGuilds" doesn't exists:
  1008. send "Folder IGuilds not found!" to console
  1009. send "Creating...." to console
  1010. create folder "plugins/Skript/IGuilds"
  1011. send "Folder IGuilds was successfull created!" to console
  1012. Wait 5 seconds
  1013. execute console command "/sk reload %script%"
  1014. if file "plugins/Skript/IGuilds/Chat.yml" doesn't exists:
  1015. send "File Chat.ynl not found!" to console
  1016. send "Creating...." to console
  1017. create file "plugins/Skript/IGuilds/Chat.yml"
  1018. send "Downloading standard content..." to console
  1019. download from "http://pastebin.com/raw.php?i=tpLg2bv5" to file "plugins/Skript/IGuilds/Chat.yml"
  1020. send "File Chat.yml was successfull created!" to console
  1021. Wait 5 ticks
  1022. execute console command "/sk reload %script%"
  1023. if file "plugins/Skript/IGuilds/Config.yml" doesn't exists:
  1024. send "File Config.ynl not found!" to console
  1025. send "Creating...." to console
  1026. create file "plugins/Skript/IGuilds/Config.yml"
  1027. send "Downloading standard content..." to console
  1028. download from "" to file "plugins/Skript/IGuilds/Config.yml"
  1029. send "File Config.yml was successfull created!" to console
  1030. Wait 5 ticks
  1031. execute console command "/sk reload %script%"
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037. on explode:
  1038. set {_gildia} to Region.getAt{location of event-location};
  1039. if {_gildia} is not set:
  1040. stop
  1041. set {_time} to {@czas.po.wybuchu}
  1042. set {gildie::explode::%{_gildia}%} to {_time}
  1043. while {gildie::explode::%{_gildia}%} is greater than 0:
  1044. wait 1 second
  1045. subtract 1 from {gildie::explode::%{_gildia}%}
  1046. stop
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052. on break:
  1053. if player doesn't have permission "iguilds.adminn":
  1054. if location of event-block is in any region:
  1055. set {_region} to Region.getAt{location of player};
  1056. if "%{_region}%" is "%{gildie::wGildii::%name of player%}%":
  1057. stop
  1058. else:
  1059. cancel event
  1060. send "&cTo jest teren innej gildi!"
  1061. stop
  1062.  
  1063. on place:
  1064. if player doesn't have permission "iguilds.adminn":
  1065. if location of event-block is in any region:
  1066. set {_region} to Region.getAt{location of player};
  1067. if "%{_region}%" is "%{gildie::wGildii::%name of player%}%":
  1068. set {_time} to {@czas.po.wybuchu}
  1069. if {gildie::explode::%{gildie::wGildii::%name of player%}%} is set:
  1070. if {gildie::explode::%{gildie::wGildii::%name of player%}%} is less than {_time}:
  1071. send "{@tag} {@color1}Na terenie Twojej gildii wybuchlo {@color2}TNT{@color1}! Nie mozesz budowac jeszcze przez {@color2}%{iguilds::explode::%{iguilds::wGildii::%name of player%}%}%{@color1} sekund!"
  1072. stop
  1073. else:
  1074. clear {gildie::explode::%{gildie::wGildii::%name of player%}%}
  1075. stop
  1076. else:
  1077. cancel event
  1078. send "&cTo jest teren innej gildi!"
  1079. stop
  1080.  
  1081. on anymove:
  1082. if {region.%player%.lastguild} is not set:
  1083. set {region.%player%.lastguild} to "Brak"
  1084. if Region.getAt{location of player} is not set:
  1085. set {_guild} to "Brak"
  1086. else:
  1087. set {_guild} to Region.getAt{location of player}
  1088. if {_guild} is not {region.%player%.lastguild}:
  1089. if {_guild} is "None" or "<none>" or "Brak":
  1090. #send "{@tag}&7Wyszedles z terenu %{region.%player%.lastguild}%"
  1091. create timed bar with text "&6Wyszedles z terenu gildii: &2[&6%{region.%player%.lastguild}%&2]" to player for 15 seconds
  1092. else:
  1093. #send "Weszles na teren %{_guild}%"
  1094. create timed bar with text "&6Wkroczyles na teren gildii: &2[&6%{_guild}%&2]" to player for 15 seconds
  1095. set {region.%player%.lastguild} to {_guild}
  1096. on first join:
  1097. set {godziny.%player%} to 0
  1098. set {dedy.%player%} to 0
  1099. set {kille.%player%} to 0
  1100. set {pkt::%player%} to 1000
  1101. on quit:
  1102. remove 1 from {lista}
  1103. on join:
  1104. if {pkt::%player%} is not set:
  1105. set {pkt::%player%} to 1000
  1106. if {godziny.%player%} is not set:
  1107. set {godziny.%player%} to 0
  1108. if {dedy.%player%} is not set:
  1109. set {dedy.%player%} to 0
  1110. if {kille.%player%} is not set:
  1111. set {kille.%player%} to 0
  1112.  
  1113.  
  1114. #==========================Topki====================================#
  1115. every 1 second:
  1116. loop all players:
  1117. loop {punkty.gildia::*}:
  1118. set {_lista::%loop-index%} to loop-value
  1119.  
  1120. loop 16 times:
  1121. loop {_lista::*}:
  1122. {_v.%loop-number%} is not set:
  1123. set {_v.%loop-number%} to loop-value
  1124. set {_n.%loop-number%} to loop-index
  1125. loop-value is greater than {_v.%loop-number%}:
  1126. set {_v.%loop-number%} to loop-value
  1127. set {_n.%loop-number%} to loop-index
  1128. {_v.%loop-number%} is not 0:
  1129. set {mg.%loop-number%} to {_n.%loop-number%}
  1130. delete {_lista::%{_n.%loop-number%}%}
  1131.  
  1132. set {_num} to size of {pkt::*}
  1133. loop {_num} times:
  1134. loop {pkt::*}:
  1135. {_v.%loop-number%} is not set:
  1136. set {_v.%loop-number%} to loop-value
  1137. set {_n.%loop-number%} to loop-index
  1138. loop-value is greater than {_v.%loop-number%}:
  1139. set {_v.%loop-number%} to loop-value
  1140. set {_n.%loop-number%} to loop-index
  1141. remove {_v.%loop-number%} from {pkt::*}
  1142. loop {_num} times:
  1143. loop-number is less than or equal to 15:
  1144. set {m.%loop-number%} to "%{_n.%loop-number%}%"
  1145. set {pkt::%{_n.%loop-number%}%} to {_v.%loop-number%}
  1146.  
  1147. #======================Tab Lista========================================#
  1148.  
  1149.  
  1150.  
  1151. on join:
  1152. set {_Tab} to "tag"
  1153. "{_Tab}".Tab.set{1, " "};
  1154. "{_Tab}".Tab.set{2, " "};
  1155. "{_Tab}".Tab.set{3, " "};
  1156. "{_Tab}".Tab.set{4, "&8&l>>>>>>>>>>>>>>>>"};
  1157. "{_Tab}".Tab.set{5, "&4&lLinijka 1158 w sk"};
  1158. "{_Tab}".Tab.set{6, "&8&l<<<<<<<<<<<<<<<<"};
  1159. "{_Tab}".Tab.set{7, "&3"};
  1160. set {_max} to max players
  1161. "{_Tab}".Tab.set{8, " &8[&2%number of all players%&8/&2%{_max}%&8]"};
  1162. "{_Tab}".Tab.set{9, "&6"};
  1163. "{_Tab}".Tab.set{10, "&6&lRANKING GILDII:"};
  1164. "{_Tab}".Tab.set{11, "&2"};
  1165. "{_Tab}".Tab.set{12, "&6&lRANKING PVP:"};
  1166. if {mg.1} is set:
  1167. "{_Tab}".Tab.set{13, "&c1. &7%{mg.1}%"};
  1168. else:
  1169. "{_Tab}".Tab.set{13, "&c1. &7---"};
  1170. "{_Tab}".Tab.set{14, " &6&lINFORMACJE:"};
  1171. if {m.1} is set:
  1172. "{_Tab}".Tab.set{15, "&c1. &7%{m.1}%"};
  1173. else:
  1174. "{_Tab}".Tab.set{15, "&c1. &c&7---"};
  1175. if {mg.2} is set:
  1176. "{_Tab}".Tab.set{16, "&c2. &7%{mg.2}%"};
  1177. else:
  1178. "{_Tab}".Tab.set{16, "&c2. &1&7&7---"};
  1179. "{_Tab}".Tab.set{17, "&aNick:"};
  1180. if {m.2} is set:
  1181. "{_Tab}".Tab.set{18, "&c2. &7%{m.2}%"};
  1182. else:
  1183. "{_Tab}".Tab.set{18, "&c2. &2&7---"};
  1184. if {mg.3} is set:
  1185. "{_Tab}".Tab.set{19, "&c3. &7%{mg.3}%"};
  1186. else:
  1187. "{_Tab}".Tab.set{19, "&c3. &3&7---"};
  1188. "{_Tab}".Tab.set{20, "&7%player%"};
  1189. if {m.3} is set:
  1190. "{_Tab}".Tab.set{21, "&c3. &7%{m.3}%"};
  1191. else:
  1192. "{_Tab}".Tab.set{21, "&c3. &4&7---"};
  1193. if {mg.4} is set:
  1194. "{_Tab}".Tab.set{22, "&c4. &7%{mg.4}%"};
  1195. else:
  1196. "{_Tab}".Tab.set{22, "&c4. &5&7---"};
  1197. "{_Tab}".Tab.set{23, "&aZgony:"};
  1198. if {m.4} is set:
  1199. "{_Tab}".Tab.set{24, "&c4. &7%{m.4}%"};
  1200. else:
  1201. "{_Tab}".Tab.set{24, "&c4. &8&7---"};
  1202. if {mg.5} is set:
  1203. "{_Tab}".Tab.set{25, "&c5. &7%{mg.5}%"};
  1204. else:
  1205. "{_Tab}".Tab.set{25, "&c5. &9&7---"};
  1206. "{_Tab}".Tab.set{26, "&7%{dedy.%player%}%"};
  1207. if {m.5} is set:
  1208. "{_Tab}".Tab.set{27, "&c5. &7%{m.5}%"};
  1209. else:
  1210. "{_Tab}".Tab.set{27, "&c5. &e&7---"};
  1211. if {mg.6} is set:
  1212. "{_Tab}".Tab.set{28, "&c6. &7%{mg.6}%"};
  1213. else:
  1214. "{_Tab}".Tab.set{28, "&c6. &d&7---"};
  1215. "{_Tab}".Tab.set{29, "&aZabicia:"};
  1216. if {m.6} is set:
  1217. "{_Tab}".Tab.set{30, "&c6. &7%{m.6}%"};
  1218. else:
  1219. "{_Tab}".Tab.set{30, "&c6. &l&7---"};
  1220. if {mg.7} is set:
  1221. "{_Tab}".Tab.set{31, "&c7. &7%{mg.7}%"};
  1222. else:
  1223. "{_Tab}".Tab.set{31, "&c7. &7&7---"};
  1224. "{_Tab}".Tab.set{32, "&7&7%{kille.%player%}%"};
  1225. if {m.7} is set:
  1226. "{_Tab}".Tab.set{33, "&c7. &7%{m.7}%"};
  1227. else:
  1228. "{_Tab}".Tab.set{33, "&c7. &l&7&7---"};
  1229. if {mg.8} is set:
  1230. "{_Tab}".Tab.set{34, "&c8. &7%{mg.8}%"};
  1231. else:
  1232. "{_Tab}".Tab.set{34, "&c8. &l&7&7---"};
  1233. "{_Tab}".Tab.set{35, "&aPunkty:"};
  1234. if {m.8} is set:
  1235. "{_Tab}".Tab.set{36, "&c8. &7%{m.8}%"};
  1236. else:
  1237. "{_Tab}".Tab.set{36, "&c8. &l&7&7&7---"};
  1238. if {mg.9} is set:
  1239. "{_Tab}".Tab.set{37, "&c9. &7%{mg.9}%"};
  1240. else:
  1241. "{_Tab}".Tab.set{37, "&c9. &2&7---"};
  1242. "{_Tab}".Tab.set{38, "&7%{pkt::%player%}%"};
  1243. if {m.9} is set:
  1244. "{_Tab}".Tab.set{39, "&c9. &7%{m.9}%"};
  1245. else:
  1246. "{_Tab}".Tab.set{39, "&c9. &l&7&7&7&7---"};
  1247. if {mg.10} is set:
  1248. "{_Tab}".Tab.set{40, "&c10. &7%{mg.10}%"};
  1249. else:
  1250. "{_Tab}".Tab.set{40, "&c10. &2&7&7---"};
  1251. "{_Tab}".Tab.set{41, " &2&lI&7&lGuilds:"};
  1252. if {m.10} is set:
  1253. "{_Tab}".Tab.set{42, "&c10. &7%{m.10}%"};
  1254. else:
  1255. "{_Tab}".Tab.set{42, "&c10. &l&7---"};
  1256. if {mg.11} is set:
  1257. "{_Tab}".Tab.set{43, "&c11. &7%{mg.11}%"};
  1258. else:
  1259. "{_Tab}".Tab.set{43, "&c11. &2&7&7---"};
  1260. "{_Tab}".Tab.set{44, "&4Tag:"};
  1261. if {m.11} is set:
  1262. "{_Tab}".Tab.set{45, "&c11. &7%{m.11}%"};
  1263. else:
  1264. "{_Tab}".Tab.set{45, "&c11. &l&7---"};
  1265. if {mg.12} is set:
  1266. "{_Tab}".Tab.set{46, "&c12. &7%{mg.12}%"};
  1267. else:
  1268. "{_Tab}".Tab.set{46, "&c12. &2&7&7---"};
  1269. if {gildie::wGildii::%player%} is set:
  1270. "{_Tab}".Tab.set{47, "&c%{gildie::wGildii::%player%}%"};
  1271. else:
  1272. "{_Tab}".Tab.set{47, "&c---"};
  1273. if {m.12} is set:
  1274. "{_Tab}".Tab.set{48, "&c12. &7%{m.12}%"};
  1275. else:
  1276. "{_Tab}".Tab.set{48, "&c12. &l&7---"};
  1277. if {mg.13} is set:
  1278. "{_Tab}".Tab.set{49, "&c13. &7%{mg.13}%"};
  1279. else:
  1280. "{_Tab}".Tab.set{49, "&c13. &2&7&7---"};
  1281. "{_Tab}".Tab.set{50, "&4Lider:"};
  1282. if {m.13} is set:
  1283. "{_Tab}".Tab.set{51, "&c13. &7%{m.13}%"};
  1284. else:
  1285. "{_Tab}".Tab.set{51, "&c13. &l&7---"};
  1286. if {mg.14} is set:
  1287. "{_Tab}".Tab.set{52, "&c14. &7%{mg.14}%"};
  1288. else:
  1289. "{_Tab}".Tab.set{52, "&c14. &2&7&7---"};
  1290. set {_lider} to {gildie::%{gildie::wGildii::%player%}%.lider}
  1291. if {gildie::wGildii::%player%} is set:
  1292. "{_Tab}".Tab.set{53, "&c%{_lider}%"};
  1293. else:
  1294. "{_Tab}".Tab.set{53, "&c&c---"};
  1295. if {m.14} is set:
  1296. "{_Tab}".Tab.set{54, "&c14. &7%{m.14}%"};
  1297. else:
  1298. "{_Tab}".Tab.set{54, "&c14. &l&7---"};
  1299. if {mg.15} is set:
  1300. "{_Tab}".Tab.set{55, "&c15. &7%{mg.15}%"};
  1301. else:
  1302. "{_Tab}".Tab.set{55, "&c15. &2&7&7---"};
  1303. "{_Tab}".Tab.set{56, "&4Punkty:"};
  1304. if {m.15} is set:
  1305. "{_Tab}".Tab.set{57, "&c15. &7%{m.15}%"};
  1306. else:
  1307. "{_Tab}".Tab.set{57, "&c15. &l&7---"};
  1308. "{_Tab}".Tab.set{58, "&c&c"};
  1309. set {_pkt} to {punkty.gildia::%{gildie::wGildii::%player%}%}
  1310. if {gildie::wGildii::%player%} is set:
  1311. "{_Tab}".Tab.set{59, "&c%{_pkt}%"};
  1312. else:
  1313. "{_Tab}".Tab.set{59, "&c&c&c---"};
  1314. "{_Tab}".Tab.set{60, "&c"};
  1315. "{_Tab}".Tab.send{player};
  1316.  
  1317. every 1 hour:
  1318. loop all players:
  1319. add 1 to {godziny.%loop-player%}
  1320.  
  1321.  
  1322.  
  1323. on death:
  1324. if victim is a player:
  1325. if attacker is a player:
  1326. add 1 to {kille.%attacker%}
  1327. add 1 to {dedy.%victim%}
  1328. if {gildie::wGildii::%victim%} is set:
  1329. if {gildie::wGildii::%attacker%} is set:
  1330. set {_pktattacker} to random integer between 1 and 100
  1331. add {_pktattacker} to {punkty.gildia::%{gildie::wGildii::%attacker%}%}
  1332. add {_pktattacker} to {pkt::%attacker%}
  1333. set {_pktvictim} to random integer between -1 and -50
  1334. add {_pktvictim} to {punkty.gildia::%{gildie::wGildii::%victim%}%}
  1335. add {_pktvictim} to {pkt::%victim%}
  1336. set death message to "&7&l>> &aGracz &8[&2%{gildie::wGildii::%victim%}%&8]&3%victim% &a(&c%{_pktvictim}%&a) &azostal zabity przez &8[&2%{gildie::wGildii::%attacker%}%&8]&3%attacker% &az przedmiotu &3%tool of attacker% &7(&a+%{_pktattacker}%&a)"
  1337. stop
  1338. stop
  1339. if {gildie::wGildii::%attacker%} is set:
  1340. set {_pktattacker} to random integer between 1 and 100
  1341. add {_pktattacker} to {punkty.gildia::%{gildie::wGildii::%attacker%}%}
  1342. add {_pktattacker} to {pkt::%attacker%}
  1343. set {_pktvictim} to random integer between -1 and -50
  1344. add {_pktvictim} to {pkt::%victim%}
  1345. set death message to "&7&l>> &aGracz &3%victim% &a(%{_pktvictim}%) &azostal zabity przez &8[&2%{gildie::wGildii::%attacker%}%&8]&3%attacker% &az przedmiotu &3%tool of attacker% &a(&c+%{_pktattacker}%&a)"
  1346. stop
  1347. if {gildie::wGildii::%victim%} is set:
  1348. set {_pktvictim} to random integer between -1 and -50
  1349. add {_pktvictim} to {punkty.gildia::%{gildie::wGildii::%victim%}%}
  1350. set {_pktattacker} to random integer between 1 and 100
  1351. add {_pktattacker} to {pkt::%attacker%}
  1352. set death message to "&7&l>> &aGracz &8[&2%{gildie::wGildii::%victim%}%&8]&3%victim% &a(&c%{_pktvictim}%&a) &azostal zabity przez &3%attacker% &a(+%{_pktattacker}%) &az przedmiotu &3%tool of attacker%"
  1353. stop
  1354. else:
  1355. set {_pktvictim} to random integer between -1 and -50
  1356. add {_pktvictim} to {pkt::%victim%}
  1357. set {_pktattacker} to random integer between 1 and 100
  1358. add {_pktattacker} to {pkt::%attacker%}
  1359. set death message to "&7&l>> &aGracz &3%victim% &a(%{_pktvictim}%) &azostal zabity przez &3%attacker% &a(+%{_pktattacker}%) &az przedmiotu &3%tool of attacker%"
  1360.  
  1361. else:
  1362. if attacker is a creeper or a zombie or a enderman or a spider or a ghast or a skeleton or a slime or a witch or a cave spider or a wolf or a zombie pigman or a blaze or a magma cube or a silverfish or a wither skeleton:
  1363. strike lightning effect at the player
  1364. add 1 to {dedy.%victim%}
  1365. set death message to "&7&l>> &aGracz &3%victim% &azginal z reki moba :)"
  1366. else:
  1367. if attacker is wither or ender dragon:
  1368. strike lightning effect at the player
  1369. add 1 to {dedy.%victim%}
  1370. set death message to "&7&l>> &aGracz &3%victim% &azginal od &4BOSSA "
  1371. else:
  1372. if damage has been caused by block explosion:
  1373. strike lightning effect at the player
  1374. add 1 to {dedy.%victim%}
  1375. set death message to "&7&l>> &aGracz &3%victim% &awybuchna :)"
  1376. else:
  1377. if damage has been caused by fall:
  1378. strike lightning effect at the player
  1379. add 1 to {dedy.%victim%}
  1380. set death message to "&7&l>> &aGracz &3%victim% &apolamal sobie nogi :("
  1381. else:
  1382. if damage has been caused by fire or burn:
  1383. strike lightning effect at the player
  1384. add 1 to {dedy.%victim%}
  1385. set death message to "&7&l>> &aGracz &3%victim% &aspalil sie"
  1386. else:
  1387. if damage has been caused by lava:
  1388. strike lightning effect at the player
  1389. add 1 to {dedy.%victim%}
  1390. set death message to "&7&l>> &aGracz &3%victim% &awpadl do lavy :D "
  1391. else:
  1392. if damage has been caused by drowning:
  1393. strike lightning effect at the player
  1394. add 1 to {dedy.%victim%}
  1395. set death message to "&7&l>> &aGracz &3%victim% &azapomnial wyplynac :>"
  1396. else:
  1397. if damage has been caused by drowning:
  1398. strike lightning effect at the player
  1399. add 1 to {dedy.%victim%}
  1400. set death message to "&7&l>> &aGracz &3%victim% &azapomnial wyplynac :> "
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407. command /ranking [<player>]:
  1408. aliases: rank, staty, statystyki, r
  1409. trigger:
  1410. arg player is offline:
  1411. send "&cTen gracz jest offline"
  1412. stop
  1413. arg 1 is not set:
  1414. send "&8-======= &6%player% &8========¬"
  1415. send "&8¦&6Punkty: &7%{pkt::%player%}%"
  1416. send "&8¦&6Fragi: &7%{kille.%player%}%"
  1417. send "&8¦&6Zgony: &7%{dedy.%player%}%"
  1418. if {gildie::wGildii::%player%} is not set:
  1419. send "&8¦&6Gildia: &c---"
  1420.  
  1421. else:
  1422. send "&8¦&6Gildia: &7%{gildie::wGildii::%player%}%"
  1423. send "&8¦&6Godziny gry: &7%{godziny.%player%}% h"
  1424. send "&8L====================-"
  1425. stop
  1426. send "&8-======= &6%arg 1% &8========¬"
  1427. send "&8¦&6Punkty: &7%{pkt::%arg 1%}%"
  1428. send "&8¦&6Fragi: &7%{kille.%arg 1%}%"
  1429. send "&8¦&6Zgony: &7%{dedy.%arg 1%}%"
  1430. if {gildie::wGildii::%arg 1%} is set:
  1431. send "&8¦&6Gildia: &7%{gildie::wGildii::%arg player%}%"
  1432.  
  1433. else:
  1434. send "&8¦&6Gildia: &c---"
  1435.  
  1436. send "&8¦&6Godziny gry: &7%{godziny.%arg 1%}% h"
  1437. send "&8L====================-"
  1438. stop
Advertisement
Add Comment
Please, Sign In to add comment