Guest User

Untitled

a guest
Jun 25th, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.95 KB | None | 0 0
  1. Options:
  2. # UWAGA #
  3. # Jesli nie chcesz uzywac wszystkich pol (maks. 10),
  4. # wpisz w to miejsce none
  5. # P.S. piszemy po angielsku
  6. # np 10 jablek to 10 apples
  7. item.zaloz.1: 64 golden apples
  8. item.zaloz.2: 64 obsidian
  9. item.zaloz.3: 64 diamonds
  10. item.zaloz.4: 64 emeralds
  11. item.zaloz.5: 16 tnt
  12. item.zaloz.6: none
  13. item.zaloz.7: none
  14. item.zaloz.8: none
  15. item.zaloz.9: none
  16. item.zaloz.10: none
  17.  
  18. item.zmien.1: 32 emeralds
  19. item.zmien.2: none
  20. item.zmien.3: none
  21. item.zmien.4: none
  22. item.zmien.5: none
  23. item.zmien.6: none
  24. item.zmien.7: none
  25. item.zmien.8: none
  26. item.zmien.9: none
  27. item.zmien.10: none
  28.  
  29. item.lider.1: 64 golden apples
  30. item.lider.2: none
  31. item.lider.3: none
  32.  
  33. item.zastepca.1: 32 golden apples
  34. item.zastepca.2: none
  35. item.zastepca.3: none
  36.  
  37. item.zapros.zabierz.przy.zapraszaniu: false
  38. item.zapros.zabierz.przy.zabierania.zaproszenia: false
  39. item.zapros.1: 10 diamond
  40. item.zapros.2: 10 golden apples
  41. item.zapros.3: none
  42.  
  43. teren.n: 25
  44. teren.s: 24
  45. teren.w: 25
  46. teren.e: 24
  47. teren.nw: 25
  48. teren.ne: 24
  49. teren.sw: 25
  50. teren.se: 24
  51. #Teren pokazywany (O_o)
  52. teren: 50
  53.  
  54. #Na srodku cuboida gildii ma byc blok ustawiony ponizej?
  55. setblock: true
  56. #To tutaj ustawiasz blok ;p
  57. setblock.type: sponge
  58. #Uprawnienie, potrzebne do usuwania tego bloku (bo moze byc to cub) (musisz miec tez gm)
  59. setblock.perm: mineguildblock.Admin
  60.  
  61. #Czy mozna otwierac skrzynki na terenach gildii
  62. chest: true
  63.  
  64. #wyrzucenie czyli usuniecie zaproszenia?
  65. kick=delete-invite: true
  66. #odejscie czyli usuniecie zaproszenia?
  67. leave=delete-invite: true
  68.  
  69. #Informacje po wejsciu i wyjsciu z gildii
  70. greeting: true
  71. farewell: true
  72.  
  73. #Wiadomosci - Nie skonczone#
  74. jestes-juz-czlonkiem-gildii: &cJestes juz czlonkiem gildii.
  75. przy-zakladaniu-gildii-musisz-podac-tag: &cPrzy zakladaniu gildii musisz podac tag.
  76. przy-zakladaniu-gildii-musisz-podac-nazwe: &cPrzy zakladaniu gildii musisz podac nazwe.
  77. nie-jestes-czlonkiem-zadnej-gildii: &cNie jestes czlonkiem zadnej gildii.
  78. nie-ma-takiej-gildii: &cNie ma takiej gildii.
  79. gildia-z-takim-tagiem-jest-juz-zalozona: &cGildia z takim tagiem jest juz zalozona.
  80. gildia-z-taka-nazwa-jest-juz-zalozona: &cGildia z taka nazwa jest juz zalozona.
  81. tag-gildii-nie-moze-byc-dluzszy-niz-5-znakow: &cTag gildii nie moze byc dluzszy niz 5 znakow.
  82. tag-gildii-nie-moze-byc-krotszy-niz-3-znaki: &cTag gildii nie moze byc krotszy niz 3 znaki.
  83. tag-gildii-zawiera-nieprawidlowe-znaki: &cTag zawiera nieprawidlowe znaki.
  84. nazwa-gildii-nie-moze-byc-dluzsza-niz-15-znakow: &cNazwa gildii nie moze byc dluzsza niz 16 znakow.
  85. obecny-teren-nalezy-do-gildii: &7Obecny teren nalezy do gildii: &c[&g%arg 2%&c]
  86. opuszczono-teren-gildii: &7Opuszczono teren gildii: &c[&g%arg 2%&c]
  87. gracz-zalozyl-gildie: &cGracz &6%player% &czalozyl gildie o nazwie &3%arg 2% &ci tagu &3%arg 1%&c.
  88. brak-itemow-na-gildie: &cBrakuje Ci itemow na gildie, sprawdz czy masz je pod komenda /itemy
  89. nazwa-dluzsza-niz-16-znakow: &cNazwa nie moze byc dluzsza niz 16 znakow.
  90. nazwa-zajeta: &cNazwa %arg 1% jest zajeta.
  91. nazwa-wolna: &aNazwa %arg 1% jest wolna.
  92. podaj-nazwe-do-sprawdzenia: &cPodaj nazwe do sprawdzenia.
  93. tag-zajety: &cTag %arg 1% jest zajety.
  94. tag-wolny: &aTag %arg 1% jest wolny.
  95. tag-dluzszy-niz-5-znakow: &cTag nie moze byc dluzszy niz 5 znakow.
  96. tag-krotszy-niz-3-znaki: &cTag nie moze byc krotszy niz 3 znaki.
  97. tag-zawiera-nieprawidlowe-znaki: &cTag zawiera nieprawidlowe znaki.
  98. podaj-tag-do-sprawdzenia: &cPodaj tag do sprawdzenia.
  99. opusciles-swoja-gildie: &aOpusciles swoja gildie.
  100. nie-mozesz-opuscic-swojej-gildii-jestes-liderem: &cJestes liderem w swojej gildii, nie mozesz jej opuscic.
  101. nie-jestes-liderem-swojej-gildii: &cNie jestes liderem swojej gildii.
  102. nie-jestes-zastepca-swojej-gildii: &cNie jestes zastepca swojej gildii.
  103. nie-jestes-zastepca-ani-liderem-swojej-gildii: &cNie jestes zastepca, ani liderem swojej gildii.
  104. nie-jestes-zaproszony-do-tej-gildii: &cNie jestes zaproszony do tej gildii.
  105. zostales-zaproszony-do-gildii: &aZostales zaproszony do gildii %{m.%player%}%.
  106. twoje-zaproszenie-do-gildii-zostalo-usuniete: &aTwoje zaproszenie do gildii %{m.%player%}% zostalo usuniete.
  107. gracz-dolaczyl-do-twojej-gildii: &aGracz %player% dolaczyl do twojej gildii.
  108. dolaczyles-do-gildii: &aDolaczyles do gildii %{g-%arg 1%.tag}%.
  109. gracz-opuscil-twoja-gildie: &aGracz %player% opuscil twoja gildie.
  110. gracz-zostal-zaproszony-do-twojej-gildii: &aGracz %arg 1% zostal zaproszony do twojej gildii.
  111. zaproszenie-gracza-do-twojej-gildii-zostalo-usuniete: &aZaproszenie gracza %arg 1% do twojej gildii zostalo usuniete.
  112. gildia-zostala-rozwiazana: &cGildia %{_guild}% zostala rozwiazana!
  113. twoja-gildia-zostala-rozwiazana: &cTwoja gildia zostala rozwiazana.
  114. zostaniesz-przeteleportowany-do-bazy-swojej-gildii: &aZa 10 sekund zostaniesz przeteleportowany do bazy swojej gildii.
  115. teleportacja: &aTeleportacja do bazy twojej gildii.
  116. nie-mozna-zniszczyc-setblock.type-cub: &cNie mozna zniszczyc %{_setblock.type}%, moze byc to blok pokazujacy srodek cuboida gildii.
  117. zniszczyles-setblock.type: &cZniszczyles %{_setblock.type}%, moze byc to blok pokazujacy srodek cuboida gildii.
  118. aby-zniszczyc-setblock.type-musisz-wlaczyc-tryb-kreatywny: &cAby zniszczyc %{_setblock.type}% musisz wlaczyc tryb kreatywny, moze byc to blok pokazujacy srodek cuboida gildii.
  119. nazwa-i-tag-twojej-gildii-zostalo-zmienione: &cNazwa i tag twojej gildii zostalo zmienione.
  120. gildia-zmienila-swoj-tag-i-nazwe-na: &cGildia %{_guild_name}% zmienila swoja nazwe na %arg 2% i swoj tag %{_guild}% na %arg 1%.
  121. ten-tag-gildii-jest-juz-ustawiony-w-waszej-gildii: &cTen tag gildii juz jest ustawiony w waszej gildii.
  122. ten-tag-gildii-jest-juz-ustawiony-w-innej-gildii: &cTen tag gildii jest juz ustawiony w innej gildii.
  123. ta-nazwa-gildii-jest-juz-ustawiony-w-waszej-gildii: &cTa nazwa gildii juz jest ustawiona w waszej gildii.
  124. ta-nazwa-gildii-jest-juz-ustawiona-w-innej-gildii: &cTa nazwa gildii jest juz ustawiona w innej gildii.
  125. brak-itemow-na-zmiane-nazwy-i-tagu-gildii: &cBrakuje Ci itemow na zmiane nazwy i tagu gildii.
  126. przy-zmianie-tagu-i-nazwy-gildii-musisz-podac-tag: &cPodaj tag, ktory ma byc tagiem gildii.
  127. przy-zmianie-tagu-i-nazwy-gildii-musisz-podac-nazwe: &cPodaj nazwe, ktora ma byc nazwa gildii.
  128. podaj-tag-gildii-do-ktorej-chcesz-dolaczyc: &cPodaj tag gildii, do ktorej chcesz dolaczyc.
  129. zostal-wyrzucony-z-twojej-gildii-nie-jest-juz-zaproszony: &c%arg 1% zostal wyrzucony z twojej gildii, nie jest on juz zaproszony do twojej gildii.
  130. opuscil-twoja-gildie-nie-jest-juz-zaproszony: &c%player% opuscil twoja gildie, nie ma juz on zaproszenia do twojej gildii.
  131. zostal-wyrzucony-z-twojej-gildii-i-nie-ma-juz-zaproszenia: &c%arg 1% zostal wyrzucony z twojej gildii i nie ma juz zaproszenia do twojej gildii.
  132. zostal-wyrzucony-z-twojej-gildii: &c%arg 1% zostal wyrzucony z twojej gildii.
  133. nie-mozesz-wyrzucic-siebie-z-gildii: &cNie mozesz wyrzucic siebie z gildii.
  134. zostales-wyrzucony-z-gildii: &cZostales wyrzucony z gildii.
  135. zostales-zaatakowany-zatrzymuje-teleportacje: &cZostales zaatakowany, wiec teleportacja zostala zatrzymana.
  136. nie-masz-itemow-na-zaproszenie-gracza-do-gildii: &cNie masz itemow na zaproszenie gracza do gildii.
  137. nie-masz-itemow-na-usuniecie-zaproszenia-gracza-do-gildii: &cNie masz itemow na usuniecie zaproszenia gracza do gildii.
  138. podaj-gracza-ktorego-chcesz-zaprosic: &cPodaj nick gracza, ktorego chcesz zaprosic.
  139. nie-mozesz-zaprosic-siebie-do-gildii: &cNie mozesz zaprosic siebie do gildii.
  140. nie-mozesz-opuscic-swojej-gildii-jestes-zastepca: &cNie mozesz opuscic swojej gildii, jestes zastepca.
  141. podczas-zmieniania-nazwy-nie-mozesz-sie-poruszac: &cPodczas zmiany nazwy gildii nie mozesz sie poruszac.
  142. podaj-nick-gracza-ktoremu-chcesz-dac-lidera: &cPodaj nick gracza, ktoremu chcesz oddac lidera.
  143. zostal-nowym-liderem-w-twojej-gildii: &a%arg 1% zostal nowym liderem w twojej gildii.
  144. zostal-zastepca-w-twojej-gildii: &a%arg 1% zostal zastepca w twojej gildii.
  145. nie-jest-juz-zastepca-w-twojej-gildii: &a%arg 1% nie jest juz zastepca w twojej gildii.
  146. ten-gracz-nie-jest-w-twojej-gildii: &cTen gracz nie jest w twojej gildii.
  147. nie-masz-itemow-na-zmiane-lidera: &cNie masz itemow na zmiane lidera twojej gildii.
  148. nie-mozesz-dac-sobie-lidera: &cNie mozesz dac sobie lidera.
  149. nie-mozesz-dac-sobie-zastepcy: &cNie mozesz dac sobie zastepcy.
  150. nie-masz-itemow-na-zmiane-zastepcy: &cNie masz itemow na zmiane zastepcy.
  151. podaj-nick-gracza-ktoremu-chcesz-dac-zastepce: &cPodaj nick gracza, ktoremu chcesz dac zastepce (lub zabrac).
  152. nie-jestes-zastepca-swojej-gildii: &cNie jestes zastepca swojej gildii.
  153. podaj-wiadomosc-do-czatu-swojej-gildii: &cPodaj wiadomosc do czatu swojej gildii.
  154. nie-mozesz-wyrzucic-lidera-z-gildii-jestes-zastepca: &cNie mozesz wyrzucic lidera z gildii, jestes zastepca.
  155. gildia-zerwala-prosbe-sojuszu-z-twoja-gildia: &aGildia %{m.%player%}% zerwala prosbe sojuszu z twoja gildia.
  156. twoja-gildia-zerwala-prosbe-sojuszu-z-gildia: &aTwoja gildia zerwala prosbe sojuszu z gildia %arg%.
  157. gildia-zerwala-sojusz-z-twoja-gildia: &aGildia %{m.%player%}% zerwala sojusz z twoja gildia.
  158. twoja-gildia-zerwala-sojusz-z-gildia: &aTwoja gildia zerwala sojusz z gildia %arg%.
  159. nie-mozesz-zerwac-sojuszu-ze-swoja-gildia: &cNie mozesz zerwac sojuszu ze swoja gildia.
  160. nie-mozesz-zawrzec-sojuszu-ze-swoja-gildia: &cNie mozesz zawrzec sojuszu ze swoja gildia.
  161. macie-juz-prosbe-sojuszu-z-ta-gildia: &cMacie juz prosbe sojuszu z ta gildia.
  162. macie-juz-sojusz-z-ta-gildia: &cMacie juz sojusz z ta gildia.
  163. twoja-gildia-zawarla-sojusz-z-gildia: &aTwoja gildia zawarla sojusz z gildia %arg%.
  164. gildia-zawarla-sojusz-z-twoja-gildia: &aGildia %{m.%player%}% zawarla sojusz z twoja gildia.
  165. twoja-gildia-zawarla-prosbe-sojuszu-z-gildia: &aTwoja gildia zawarla prosbe sojuszu z gildia %arg%.
  166. gildia-zawarla-prosbe-sojuszu-z-twoja-gildia: &aGildia %{m.%player%}% zawarla prosbe sojuszu z twoja gildia.
  167. podaj-tag-gildii-z-ktora-chcesz-zawrzec-sojusz: &cPodaj tag gildii, z ktora chcesz zawrzec sojusz.
  168. podaj-tag-gildii-z-ktora-chcesz-zerwac-sojusz: &cPodaj tag gildii, z ktora chcesz zerwac sojusz.
  169.  
  170. # Nie edytowac :(
  171. sk: xGuilds
  172. ver: 0.6.0
  173. author: tpacce
  174. # Koniec nie edytowania
  175. ChangeLog: true
  176. 0.6.0: Poprawienie kodu, w koncu oczekiwany system Sojuszy ;3
  177. On join:
  178. player has permission "*":
  179. set {_xGuilds.new_version} to result of connect to "http://pastebin.com/raw.php?i=BM8AhmDe"
  180. set {_xGuilds.old_version} to "{@ver}"
  181. {_xGuilds.old_version} is not {_xGuilds.new_version}:
  182. wait 5 ticks
  183. send "&8&o############################################"
  184. send "&8&o## &6&oDostepna aktualizacja!"
  185. send "&8&o## &6&oTwoja wersja %{xGuilds.old_version}%, nowa wersja %{xGuilds.new_version}%"
  186. send "&8&o############################################"
  187. stop
  188. On script load:
  189. set {_author} to result of connect to "http://pastebin.com/raw.php?i=3fed5b7h"
  190. {_author} is not "{@author}":
  191. send "####" to console
  192. send "## Szkoda ze usunales mnie z autora, no ale coz ;C" to console
  193. send "####" to console
  194. set {_xGuilds.new_version} to result of connect to "http://pastebin.com/raw.php?i=BM8AhmDe"
  195. set {_xGuilds.old_version} to "{@ver}"
  196. {_xGuilds.old_version} is not {_xGuilds.new_version}:
  197. send "############################################" to console
  198. send "## Dostepna aktualizacja!" to console
  199. send "## Twoja wersja %{_xGuilds.old_version}%, nowa wersja %{_xGuilds.new_version}%" to console
  200. send "############################################" to console
  201. set {_ver} to skript version
  202. set {_need} to "2.1.2"
  203. if {_ver} is {_need}:
  204. send "####" to console
  205. send "##xGuilds&8 wymaga Skript %{_need}% ... Na serwerze znajduje sie poprawna wersja!" to the console
  206. send "####" to console
  207. if {_ver} is not {_need}:
  208. send "####" to console
  209. send "##xGuilds&c wymaga Skript %{_need}% ... Na serwerze znajduje sie inna wersja pluginu Skript (%{_ver}%)!" to the console
  210. send "####" to console
  211.  
  212. set {xGuilds.zapros.zaproszenie} to "{@item.zapros.zabierz.przy.zapraszaniu}"
  213. set {xGuilds.zapros.zabranie.zaproszenia} to "{@item.zapros.zabierz.przy.zabierania.zaproszenia}"
  214.  
  215. set {xGuilds.setblock} to "{@setblock}"
  216.  
  217. set {xGuilds.chest} to "{@chest}"
  218.  
  219. set {xGuilds.kick} to "{@kick=delete-invite}"
  220. set {xGuilds.leave} to "{@leave=delete-invite}"
  221.  
  222. set {xGuilds.greeting} to "{@greeting}"
  223. set {xGuilds.farewell} to "{@farewell}"
  224.  
  225. set {_xGuilds.ver} to "{@ver}"
  226. set {_xGuilds.changelog} to "{@ChangeLog}"
  227. set {_xGuilds.0.6.0} to "{@0.6.0}"
  228.  
  229. send "&8&o####" to console
  230. send "&8&o## &7Skrypt: {@sk}" to console
  231. send "&8&o## &7Autor: {@author}" to console
  232. send "&8&o## &7Wersja: {@ver}" to console
  233. if {_xGuilds.changelog} is "true":
  234. send "&8&o## &7ChangeLog: %{_xGuilds.%{_xGuilds.ver}%}%" to console
  235. send "&8&o####" to console
  236. on break {@setblock.type}:
  237. set {_setblock.type} to "{@setblock.type}"
  238. player has permission "{@setblock.perm}":
  239. if player's gamemode is creative:
  240. send "{@zniszczyles-setblock.type}"
  241. stop
  242. send "{@aby-zniszczyc-setblock.type-musisz-wlaczyc-tryb-kreatywny}"
  243. cancel event
  244. stop
  245. cancel event
  246. send "{@nie-mozna-zniszczyc-setblock.type-cub}"
  247. stop
  248. Command /itemy [<text>=pomoc]:
  249. trigger:
  250. arg is "pomoc":
  251. send "&8&oDostepne:"
  252. send "&8&ozaloz"
  253. send "&8&ozmien"
  254. send "&8&ozapros"
  255. send "&8&olider"
  256. send "&8&ozastepca"
  257. arg is "zaloz":
  258. send "&8&onone = nic"
  259. send "&8&oItem 1: &7&o{@item.zaloz.1}"
  260. send "&8&oItem 2: &7&o{@item.zaloz.2}"
  261. send "&8&oItem 3: &7&o{@item.zaloz.3}"
  262. send "&8&oItem 4: &7&o{@item.zaloz.4}"
  263. send "&8&oItem 5: &7&o{@item.zaloz.5}"
  264. send "&8&oItem 6: &7&o{@item.zaloz.6}"
  265. send "&8&oItem 7: &7&o{@item.zaloz.7}"
  266. send "&8&oItem 8: &7&o{@item.zaloz.8}"
  267. send "&8&oItem 9: &7&o{@item.zaloz.9}"
  268. send "&8&oItem 10: &7&o{@item.zaloz.10}"
  269. arg is "zmien":
  270. send "&8&onone = nic"
  271. send "&8&oItem 1: &7&o{@item.zmien.1}"
  272. send "&8&oItem 2: &7&o{@item.zmien.2}"
  273. send "&8&oItem 3: &7&o{@item.zmien.3}"
  274. send "&8&oItem 4: &7&o{@item.zmien.4}"
  275. send "&8&oItem 5: &7&o{@item.zmien.5}"
  276. send "&8&oItem 6: &7&o{@item.zmien.6}"
  277. send "&8&oItem 7: &7&o{@item.zmien.7}"
  278. send "&8&oItem 8: &7&o{@item.zmien.8}"
  279. send "&8&oItem 9: &7&o{@item.zmien.9}"
  280. send "&8&oItem 10: &7&o{@item.zmien.10}"
  281. arg is "zapros":
  282. send "&8&onone = nic"
  283. send "&8&oItem 1: &7&o{@item.zapros.1}"
  284. send "&8&oItem 2: &7&o{@item.zapros.2}"
  285. send "&8&oItem 3: &7&o{@item.zapros.3}"
  286. arg is "lider":
  287. send "&8&onone = nic"
  288. send "&8&oItem 1: &7&o{@item.lider.1}"
  289. send "&8&oItem 2: &7&o{@item.lider.2}"
  290. send "&8&oItem 3: &7&o{@item.lider.3}"
  291. arg is "zastepca":
  292. send "&8&onone = nic"
  293. send "&8&oItem 1: &7&o{@item.zastepca.1}"
  294. send "&8&oItem 2: &7&o{@item.zastepca.2}"
  295. send "&8&oItem 3: &7&o{@item.zastepca.3}"
  296. command /@ <text>:
  297. usage: &7/@ <wiadomosc do gildii>
  298. trigger:
  299. arg is not set:
  300. send "{@podaj-wiadomosc-do-czatu-swojej-gildii}"
  301. stop
  302. {m.%player%} is not set:
  303. send ""
  304. stop
  305. {l.%player%} is set:
  306. loop {g-%{m.%player%}%.members::*}:
  307. loop all players:
  308. loop-value is loop-player:
  309. send "&8&o[&3Gildia&8&o] &7Lider &o%player%: &a%arg%" to loop-player
  310. stop
  311. {o.%player%} is set:
  312. loop {g-%{m.%player%}%.members::*}:
  313. loop all players:
  314. loop-value is loop-player:
  315. send "&8&o[&3Gildia&8&o] &7Zastepca &o%player%: &a%arg%" to loop-player
  316. stop
  317. loop {g-%{m.%player%}%.members::*}:
  318. loop all players:
  319. loop-value is loop-player:
  320. send "&8&o[&3Gildia&8&o] &7Czlonek &o%player%: &a%arg%" to loop-player
  321. stop
  322. Command /zaloz [<text>] [<text>]:
  323. trigger:
  324. {m.%player%} is set:
  325. send "{@jestes-juz-czlonkiem-gildii}"
  326. stop
  327. arg 1 is not set:
  328. send "{@przy-zakladaniu-gildii-musisz-podac-tag}"
  329. stop
  330. arg 2 is not set:
  331. send "{@przy-zakladaniu-gildii-musisz-podac-nazwe}"
  332. stop
  333. player has {@item.zaloz.1} and {@item.zaloz.2} and {@item.zaloz.3} and {@item.zaloz.4} and {@item.zaloz.5} and {@item.zaloz.6} and {@item.zaloz.7} and {@item.zaloz.8} and {@item.zaloz.9} and {@item.zaloz.10}:
  334. send "&7Sprawdzanie &8- &aTag ..."
  335. {guilds.tags::%arg 1%} is set:
  336. send "{@gildia-z-takim-tagiem-jest-juz-zalozona}"
  337. stop
  338. set {_tag} to "%arg 1%"
  339. replace all "0" with "1" in {_tag}
  340. replace all "1" with "1" in {_tag}
  341. replace all "2" with "1" in {_tag}
  342. replace all "3" with "1" in {_tag}
  343. replace all "4" with "1" in {_tag}
  344. replace all "5" with "1" in {_tag}
  345. replace all "6" with "1" in {_tag}
  346. replace all "7" with "1" in {_tag}
  347. replace all "8" with "1" in {_tag}
  348. replace all "9" with "1" in {_tag}
  349. replace all "q" with "1" in {_tag}
  350. replace all "w" with "1" in {_tag}
  351. replace all "e" with "1" in {_tag}
  352. replace all "r" with "1" in {_tag}
  353. replace all "t" with "1" in {_tag}
  354. replace all "y" with "1" in {_tag}
  355. replace all "u" with "1" in {_tag}
  356. replace all "i" with "1" in {_tag}
  357. replace all "o" with "1" in {_tag}
  358. replace all "p" with "1" in {_tag}
  359. replace all "a" with "1" in {_tag}
  360. replace all "s" with "1" in {_tag}
  361. replace all "d" with "1" in {_tag}
  362. replace all "f" with "1" in {_tag}
  363. replace all "g" with "1" in {_tag}
  364. replace all "h" with "1" in {_tag}
  365. replace all "j" with "1" in {_tag}
  366. replace all "k" with "1" in {_tag}
  367. replace all "l" with "1" in {_tag}
  368. replace all "z" with "1" in {_tag}
  369. replace all "x" with "1" in {_tag}
  370. replace all "c" with "1" in {_tag}
  371. replace all "v" with "1" in {_tag}
  372. replace all "b" with "1" in {_tag}
  373. replace all "n" with "1" in {_tag}
  374. replace all "m" with "1" in {_tag}
  375. length of {_tag} is greater than 5:
  376. send "{@tag-gildii-nie-moze-byc-dluzszy-niz-5-znakow}"
  377. stop
  378. length of {_tag} is less than 3:
  379. send "{@tag-gildii-nie-moze-byc-krotszy-niz-3-znaki}"
  380. stop
  381. {_tag} is not "111" or "1111" or "11111":
  382. send "{@tag-gildii-zawiera-nieprawidlowe-znaki}"
  383. stop
  384. send "&7Sprawdzanie &8- &aNazwa ..."
  385. set {_name} to "%arg 2%"
  386. length of {_name} is greater than 16:
  387. send "{@nazwa-gildii-nie-moze-byc-dluzsza-niz-15-znakow}"
  388. stop
  389. {names::%arg 2%} is set:
  390. send "{@gildia-z-taka-nazwa-jest-juz-zalozona}"
  391. stop
  392. player cannot build at block under player:
  393. send "&cNie mozna tutaj stworzyc terenu gildii! Teren pod Toba jest juz zabezpieczony"
  394. stop
  395. player cannot build at block {@teren.nw} meters northwest:
  396. send " &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-zachod stad jest juz zabezpieczony"
  397. stop
  398. player cannot build at block {@teren.n} meters north:
  399. send " &cNie mozna tutaj stworzyc terenu gildii! Teren na polnoc stad jest juz zabezpieczony"
  400. stop
  401. player cannot build at block {@teren.ne} meters northeast:
  402. send " &cNie mozna tutaj stworzyc terenu gildii! Teren na polnocny-wschod stad jest juz zajety"
  403. stop
  404. player cannot build at block {@teren.w} meters west:
  405. send " &cNie mozna tutaj stworzyc terenu gildii! Teren na zachod stad jest juz zajety"
  406. stop
  407. player cannot build at block {@teren.e} meters east:
  408. send " &cNie mozna tutaj stworzyc terenu gildii! Teren na wschod stad jest juz zajety"
  409. stop
  410. player cannot build at block {@teren.sw} meters southwest:
  411. send " &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-zachod stad jest juz zajety"
  412. stop
  413. player cannot build at block {@teren.s} meters south:
  414. send " &cNie mozna tutaj stworzyc terenu gildii! Teren na poludnie stad jest juz zajety"
  415. stop
  416. player cannot build at block {@teren.se} meters southeast:
  417. send " &cNie mozna tutaj stworzyc terenu gildii! Teren na poludniowy-wschod stad jest juz zajety"
  418. stop
  419. send " &7Zabezpieczenie &8- &aTworzenie ..."
  420. remove {@item.zaloz.1} and {@item.zaloz.2} and {@item.zaloz.3} and {@item.zaloz.4} and {@item.zaloz.5} and {@item.zaloz.6} and {@item.zaloz.7} and {@item.zaloz.8} and {@item.zaloz.9} and {@item.zaloz.10} from player
  421. set {g-%arg 1%.base} to location of player
  422. {xGuilds.setblock} is "true":
  423. set block under player to {@setblock.type}
  424. run player command "//pos1" as op
  425. run player command "//pos2" as op
  426. run player command "//expand {@teren.n} n" as op
  427. run player command "//expand {@teren.s} s" as op
  428. run player command "//expand {@teren.w} w" as op
  429. run player command "//expand {@teren.e} e" as op
  430. run player command "//expand vert" as op
  431. run player command "region define g-%arg 1%" as op
  432. run player command "region addowner g-%arg 1% %player%" as op
  433. set {tags::%arg 1%} to "%arg 2%"
  434. set {names::%arg 2%} to "%arg 1%"
  435. {xGuilds.greeting} is "true":
  436. run player command "region flag g-%arg 1% greeting {@obecny-teren-nalezy-do-gildii}" as op
  437. {xGuilds.farewell} is "true":
  438. run player command "region flag g-%arg 1% farewell {@opuszczono-teren-gildii}" as op
  439. {xGuilds.chest} is "true":
  440. run player command "region flag g-%arg 1% chest-access deny" as op
  441. {xGuilds.chest} is "false":
  442. run player command "region flag g-%arg 1% chest-access allow" as op
  443. set {g-%arg 1%.tag} to "%arg 1%"
  444. set {g-%arg 1%.name} to "%arg 2%"
  445. set {g-%arg 1%.leader} to "%player%"
  446. set {g-%arg 1%.officers::*} to "%player%"
  447. set {m.%player%} to "%arg 1%"
  448. set {l.%player%} to "%arg 1%"
  449. add "%player%" to {g-%arg 1%.members::*}
  450. loop 100 times:
  451. send ""
  452. send " &7Zabezpieczenie &8- &aStworzone ..."
  453. send " &8Srodek cuba gildii wyznacza gabka"
  454. send " &8Cub gildii ma rozmiary &c50 &8x &c50&8.&8 Mozesz go powiekszac za oplata."
  455. send " &8Wiecej informacji pod komenda &c/gildie&8."
  456. broadcast "{@gracz-zalozyl-gildie}"
  457. else:
  458. send "{@brak-itemow-na-gildie}"
  459. stop
  460. command /zmien [<text>] [<text>]:
  461. trigger:
  462. {m.%player%} is not set:
  463. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  464. stop
  465. {o.%player%} is not set:
  466. send "{@nie-jestes-zastepca-swojej-gildii}"
  467. stop
  468. {l.%player%} is not set:
  469. send "{@nie-jestes-liderem-swojej-gildii}"
  470. stop
  471. arg 2 is not set:
  472. send "{@przy-zmianie-tagu-i-nazwy-gildii-musisz-podac-nazwe}"
  473. stop
  474. arg 1 is not set:
  475. send "{@przy-zmianie-tagu-i-nazwy-gildii-musisz-podac-tag}"
  476. stop
  477. player has {@item.zmien.1} and {@item.zmien.2} and {@item.zmien.3} and {@item.zmien.4} and {@item.zmien.5} and {@item.zmien.6} and {@item.zmien.7} and {@item.zmien.8} and {@item.zmien.9} and {@item.zmien.10}:
  478. {tags::%arg 1%} is set:
  479. {g-%{m.%player%}%.tag} is "%arg 1%":
  480. send "{@ten-tag-gildii-jest-juz-ustawiony-w-waszej-gildii}"
  481. else:
  482. send "{@ten-tag-gildii-jest-juz-ustawiony-w-innej-gildii}"
  483. stop
  484. {names::%arg 2%} is set:
  485. {g-%{m.%player%}%.name} is "%arg 2%":
  486. send "{@ta-nazwa-gildii-jest-juz-ustawiony-w-waszej-gildii}"
  487. else:
  488. send "{@ta-nazwa-gildii-jest-juz-ustawiona-w-innej-gildii}"
  489. stop
  490. set {_guild} to "%{m.%player%}%"
  491. set {_guild_name} to "%{g-%{m.%player%}%.name}%"
  492. send "&7Sprawdzanie &8- &aTag ..."
  493. set {_tag} to "%arg 1%"
  494. replace all "0" with "1" in {_tag}
  495. replace all "1" with "1" in {_tag}
  496. replace all "2" with "1" in {_tag}
  497. replace all "3" with "1" in {_tag}
  498. replace all "4" with "1" in {_tag}
  499. replace all "5" with "1" in {_tag}
  500. replace all "6" with "1" in {_tag}
  501. replace all "7" with "1" in {_tag}
  502. replace all "8" with "1" in {_tag}
  503. replace all "9" with "1" in {_tag}
  504. replace all "q" with "1" in {_tag}
  505. replace all "w" with "1" in {_tag}
  506. replace all "e" with "1" in {_tag}
  507. replace all "r" with "1" in {_tag}
  508. replace all "t" with "1" in {_tag}
  509. replace all "y" with "1" in {_tag}
  510. replace all "u" with "1" in {_tag}
  511. replace all "i" with "1" in {_tag}
  512. replace all "o" with "1" in {_tag}
  513. replace all "p" with "1" in {_tag}
  514. replace all "a" with "1" in {_tag}
  515. replace all "s" with "1" in {_tag}
  516. replace all "d" with "1" in {_tag}
  517. replace all "f" with "1" in {_tag}
  518. replace all "g" with "1" in {_tag}
  519. replace all "h" with "1" in {_tag}
  520. replace all "j" with "1" in {_tag}
  521. replace all "k" with "1" in {_tag}
  522. replace all "l" with "1" in {_tag}
  523. replace all "z" with "1" in {_tag}
  524. replace all "x" with "1" in {_tag}
  525. replace all "c" with "1" in {_tag}
  526. replace all "v" with "1" in {_tag}
  527. replace all "b" with "1" in {_tag}
  528. replace all "n" with "1" in {_tag}
  529. replace all "m" with "1" in {_tag}
  530. length of {_tag} is greater than 5:
  531. send "{@tag-gildii-nie-moze-byc-dluzszy-niz-5-znakow}"
  532. stop
  533. length of {_tag} is less than 3:
  534. send "{@tag-gildii-nie-moze-byc-krotszy-niz-3-znaki}"
  535. stop
  536. {_tag} is not "111" or "1111" or "11111":
  537. send "{@tag-gildii-zawiera-nieprawidlowe-znaki}"
  538. stop
  539. send "&7Sprawdzanie &8- &aNazwa ..."
  540. set {_name} to "%arg 2%"
  541. length of {_name} is greater than 16:
  542. send "{@nazwa-gildii-nie-moze-byc-dluzsza-niz-15-znakow}"
  543. stop
  544. teleport player to {g-%{_guild}%.base}
  545. player's location is not {g-%{_guild}%.base}:
  546. send "{@podczas-zmieniania-nazwy-nie-mozesz-sie-poruszac}"
  547. stop
  548. run player command "region remove g-%{_guild}%" as op
  549. run player command "//pos1" as op
  550. run player command "//pos2" as op
  551. run player command "//expand {@teren.n} n" as op
  552. run player command "//expand {@teren.s} s" as op
  553. run player command "//expand {@teren.w} w" as op
  554. run player command "//expand {@teren.e} e" as op
  555. run player command "//expand vert" as op
  556. run player command "region define g-%arg 1%" as op
  557. run player command "region addowner g-%arg 1% %player%" as op
  558. {xGuilds.greeting} is "true":
  559. run player command "region flag g-%arg 1% greeting {@obecny-teren-nalezy-do-gildii}" as op
  560. {xGuilds.farewell} is "true":
  561. run player command "region flag g-%arg 1% farewell {@opuszczono-teren-gildii}" as op
  562. {xGuilds.chest} is "true":
  563. run player command "region flag g-%arg 1% chest-access deny" as op
  564. {xGuilds.chest} is "false":
  565. run player command "region flag g-%arg 1% chest-access allow" as op
  566. delete {tags::%{_guild}%}
  567. delete {names::%{_guild_name}%}
  568. set {tags::%arg 1%} to "%arg 2%"
  569. set {names::%arg 2%} to "%arg 1%"
  570. set {g-%arg 1%.tag} to "%arg 1%"
  571. set {g-%arg 1%.name} to "%arg 2%"
  572. set {g-%arg 1%.leader} to "%{g-%{_guild}%.leader}%"
  573. set {g-%arg 1%.officers::*} to "%{g-%{_guild}%.officers::*}%"
  574. set {g-%arg 1%.base} to {g-%{_guild}%.base}
  575. set {g-%arg 1%.members::*} to {g-%{_guild}%.members::*}
  576. set {g-%arg 1%.invites::*} to {g-%{_guild}%.invites::*}
  577. set {l.%{g-%arg 1%.leader}%} to "%arg 1%"
  578. loop 100 times:
  579. send ""
  580. loop {g-%{_guild}%.officers::*}:
  581. loop-value is "%loop-value%":
  582. set {o.%loop-value%} to "%arg 1%"
  583. loop {g-%{_guild}%.members::*}:
  584. loop-value is "%loop-value%":
  585. set {m.%loop-value%} to "%arg 1%"
  586. run player command "region addmember g-%arg 1% %loop-value%" as op
  587. loop all players:
  588. {m.%loop-player%} is "%{m.%player%}%":
  589. send "{@nazwa-i-tag-twojej-gildii-zostalo-zmienione}" to loop-player
  590. remove {@item.zmien.1} and {@item.zmien.2} and {@item.zmien.3} and {@item.zmien.4} and {@item.zmien.5} and {@item.zmien.6} and {@item.zmien.7} and {@item.zmien.8} and {@item.zmien.9} and {@item.zmien.10} from player
  591. broadcast "{@gildia-zmienila-swoj-tag-i-nazwe-na}"
  592. else:
  593. send "{@brak-itemow-na-zmiane-nazwy-i-tagu-gildii}"
  594. stop
  595. command /sprawdztag [<text>]:
  596. trigger:
  597. arg is not set:
  598. send "{@podaj-tag-do-sprawdzenia}"
  599. stop
  600. set {_tag} to "%arg%"
  601. replace all "0" with "1" in {_tag}
  602. replace all "1" with "1" in {_tag}
  603. replace all "2" with "1" in {_tag}
  604. replace all "3" with "1" in {_tag}
  605. replace all "4" with "1" in {_tag}
  606. replace all "5" with "1" in {_tag}
  607. replace all "6" with "1" in {_tag}
  608. replace all "7" with "1" in {_tag}
  609. replace all "8" with "1" in {_tag}
  610. replace all "9" with "1" in {_tag}
  611. replace all "q" with "1" in {_tag}
  612. replace all "w" with "1" in {_tag}
  613. replace all "e" with "1" in {_tag}
  614. replace all "r" with "1" in {_tag}
  615. replace all "t" with "1" in {_tag}
  616. replace all "y" with "1" in {_tag}
  617. replace all "u" with "1" in {_tag}
  618. replace all "i" with "1" in {_tag}
  619. replace all "o" with "1" in {_tag}
  620. replace all "p" with "1" in {_tag}
  621. replace all "a" with "1" in {_tag}
  622. replace all "s" with "1" in {_tag}
  623. replace all "d" with "1" in {_tag}
  624. replace all "f" with "1" in {_tag}
  625. replace all "g" with "1" in {_tag}
  626. replace all "h" with "1" in {_tag}
  627. replace all "j" with "1" in {_tag}
  628. replace all "k" with "1" in {_tag}
  629. replace all "l" with "1" in {_tag}
  630. replace all "z" with "1" in {_tag}
  631. replace all "x" with "1" in {_tag}
  632. replace all "c" with "1" in {_tag}
  633. replace all "v" with "1" in {_tag}
  634. replace all "b" with "1" in {_tag}
  635. replace all "n" with "1" in {_tag}
  636. replace all "m" with "1" in {_tag}
  637. length of arg is greater than 5:
  638. send "{@tag-dluzszy-niz-5-znakow}"
  639. stop
  640. length of arg is less than 3:
  641. send "{@tag-krotszy-niz-3-znaki}"
  642. stop
  643. {_tag} is not "111" or "1111" or "11111":
  644. send "{@tag-zawiera-nieprawidlowe-znaki}"
  645. stop
  646. {tags::%arg%} is set:
  647. send "{@tag-zajety}"
  648. stop
  649. {tags::%arg%} is not set:
  650. send "{@tag-wolny}"
  651. stop
  652. command /sprawdznazwe [<text>]:
  653. trigger:
  654. arg is not set:
  655. send "{@podaj-nazwe-do-sprawdzenia}"
  656. stop
  657. length of arg is greater than 16:
  658. send "{@nazwa-dluzsza-niz-16-znakow}"
  659. stop
  660. {names::%arg%} is set:
  661. send "{@nazwa-zajeta}"
  662. stop
  663. {names::%arg%} is not set:
  664. send "{@nazwa-wolna}"
  665. stop
  666. command /gildia [<text>]:
  667. trigger:
  668. arg 1 is set:
  669. {tags::%arg%} is set:
  670. send "&9[&a%{g-%arg%.tag}%&9] &6- &9%{g-%arg%.name}%."
  671. send "&9Lider: &a%{g-%arg%.leader}%"
  672. set {_g-%arg%.officers} to "%{g-%arg%.officers::*}%"
  673. loop all players:
  674. replace all "%loop-player%" with "&a%loop-player%" in {_g-%arg%.officers}
  675. replace all "," with "&9,&c" in {_g-%arg%.officers}
  676. replace all "and" with "&9i&c" in {_g-%arg%.officers}
  677. send "&9Zastepcy: &c%{_g-%arg%.officers}%"
  678. send "&9Cub: &a{@teren} &9x &a{@teren}"
  679. set {_g-%arg%.members} to "%{g-%arg%.members::*}%"
  680. loop all players:
  681. replace all "%loop-player%" with "&a%loop-player%" in {_g-%arg%.members}
  682. replace all "," with "&9,&c" in {_g-%arg%.members}
  683. replace all "and" with "&9i&c" in {_g-%arg%.members}
  684. send "&9Czlonkowie: &c%{_g-%arg%.members}%"
  685. set {_g-%arg%.allies} to "&a%{g-%arg%.allies::*}%"
  686. replace all "," with "&9,&a" in {_g-%arg%.allies}
  687. replace all "and" with "&9i&a" in {_g-%arg%.allies}
  688. send "&9Sojusznicy: &c%{_g-%arg%.allies}%"
  689. stop
  690. send "{@nie-ma-takiej-gildii}"
  691. stop
  692. arg 1 is not set:
  693. {m.%player%} is set:
  694. send "&9[&a%{g-%{m.%player%}%.tag}%&9] &6- &9%{g-%{m.%player%}%.name}%."
  695. send "&9Lider: &a%{g-%{m.%player%}%.leader}%"
  696. set {_g-%{m.%player%}%.officers} to "%{g-%{m.%player%}%.officers::*}%"
  697. loop all players:
  698. replace all "%loop-player%" with "&a%loop-player%" in {_g-%{m.%player%}%.officers}
  699. replace all "," with "&9,&c" in {_g-%{m.%player%}%.officers}
  700. replace all "and" with "&9i&c" in {_g-%{m.%player%}%.officers}
  701. send "&9Zastepcy: &c%{_g-%{m.%player%}%.officers}%"
  702. send "&9Cub: &a{@teren} &9x &a{@teren}"
  703. set {_g-%{m.%player%}%.members} to "%{g-%{m.%player%}%.members::*}%"
  704. loop all players:
  705. replace all "%loop-player%" with "&a%loop-player%" in {_g-%{m.%player%}%.members}
  706. replace all "," with "&9,&c" in {_g-%{m.%player%}%.members}
  707. replace all "and" with "&9i&c" in {_g-%{m.%player%}%.members}
  708. send "&9Czlonkowie: &c%{_g-%{m.%player%}%.members}%"
  709. set {_g-%{m.%player%}%.allies} to "&a%{g-%{m.%player%}%.allies::*}%"
  710. replace all "," with "&9,&a" in {_g-%{m.%player%}%.allies}
  711. replace all "and" with "&9i&a" in {_g-%{m.%player%}%.allies}
  712. send "&9Sojusznicy: &c%{_g-%{m.%player%}%.allies}%"
  713. stop
  714. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  715. stop
  716. command /lider [<text>]:
  717. trigger:
  718. arg 1 is "%player%":
  719. send "{@nie-mozesz-dac-sobie-lidera}"
  720. stop
  721. {m.%player%} is not set:
  722. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  723. stop
  724. {l.%player%} is not set:
  725. send "{@nie-jestes-liderem-swojej-gildii}"
  726. stop
  727. arg 1 is not set:
  728. send "{@podaj-nick-gracza-ktoremu-chcesz-dac-lidera}"
  729. stop
  730. player has {@item.lider.1}, {@item.lider.2} and {@item.lider.3}:
  731. {m.%player%} is {m.%arg 1%}:
  732. set {l.%arg 1%} to "%{m.%arg 1%}%"
  733. delete {l.%player%}
  734. set {g-%{m.%player%}%.leader} to "%arg 1%"
  735. loop all players:
  736. {m.%loop-player%} is "%{m.%player%}%":
  737. send "{@zostal-nowym-liderem-w-twojej-gildii}" to loop-player
  738. stop
  739. send "{@ten-gracz-nie-jest-w-twojej-gildii}"
  740. stop
  741. send "{@nie-masz-itemow-na-zmiane-lidera}"
  742. stop
  743. command /zastepca [<text>]:
  744. trigger:
  745. arg 1 is "%player%":
  746. send "{@nie-mozesz-dac-sobie-zastepcy}"
  747. stop
  748. {m.%player%} is not set:
  749. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  750. stop
  751. {o.%player%} is not set:
  752. {l.%player%} is set:
  753. wait 1 tick
  754. else:
  755. send "{@nie-jestes-zastepca-ani-liderem-swojej-gildii}"
  756. stop
  757. arg 1 is not set:
  758. send "{@podaj-nick-gracza-ktoremu-chcesz-dac-zastepce}"
  759. stop
  760. player has {@item.zastepca.1}, {@item.zastepca.2} and {@item.zastepca.3}:
  761. {m.%player%} is {m.%arg 1%}:
  762. loop {g-%{m.%player%}%.officers::*}:
  763. loop-value is arg:
  764. loop all players:
  765. {m.%loop-player%} is "%{m.%player%}%":
  766. send "{@nie-jest-juz-zastepca-w-twojej-gildii}" to loop-player
  767. delete {o.%arg 1%}
  768. remove "%arg 1%" from {g-%{m.%player%}%.officers::*}
  769. stop
  770. loop all players:
  771. {m.%loop-player%} is "%{m.%player%}%":
  772. send "{@zostal-zastepca-w-twojej-gildii}" to loop-player
  773. set {o.%arg 1%} to "%{m.%player%}%"
  774. add "%arg 1%" to {g-%{m.%player%}%.officers::*}
  775. stop
  776. send "{@ten-gracz-nie-jest-w-twojej-gildii}"
  777. stop
  778. send "{@nie-masz-itemow-na-zmiane-zastepcy}"
  779. stop
  780. command /dolacz [<text>]:
  781. trigger:
  782. arg is not set:
  783. send "{@podaj-tag-gildii-do-ktorej-chcesz-dolaczyc}"
  784. stop
  785. {m.%player%} is set:
  786. send "{@jestes-juz-czlonkiem-gildii}"
  787. stop
  788. loop {g-%arg%.invites::*}:
  789. loop-value is "%player%":
  790. set {m.%player%} to "%{g-%arg%.tag}%"
  791. loop all players:
  792. {m.%loop-player%} is "%{m.%{m.%player%}%}%":
  793. send "{@gracz-dolaczyl-do-twojej-gildii}" to loop-player
  794. add "%player%" to {g-%{m.%player%}%.members::*}
  795. run player command "rg addmember g-%{m.%player%}% %player%" as op
  796. send "{@dolaczyles-do-gildii}"
  797. stop
  798. send "{@nie-jestes-zaproszony-do-tej-gildii}"
  799. stop
  800. command /zapros [<text>]:
  801. trigger:
  802. arg is not set:
  803. send "{@podaj-gracza-ktorego-chcesz-zaprosic}"
  804. stop
  805. {m.%player%} is not set:
  806. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  807. stop
  808. {o.%player%} is not set:
  809. {l.%player%} is set:
  810. wait 1 tick
  811. else:
  812. send "{@nie-jestes-zastepca-ani-liderem-swojej-gildii}"
  813. stop
  814. arg is "%player%":
  815. send "{@nie-mozesz-zaprosic-siebie-do-gildii}"
  816. stop
  817. loop {g-%{m.%player%}%.invites::*}:
  818. loop-value is "%arg%":
  819. {xGuilds.zapros.zabranie.zaproszenia} is "true":
  820. player has {@item.zapros.1} and {@item.zapros.2} and {@item.zapros.3}:
  821. wait 1 tick
  822. else:
  823. send "{@nie-masz-itemow-na-usuniecie-zaproszenia-gracza-do-gildii}"
  824. stop
  825. remove {@item.zapros.1} and {@item.zapros.2} and {@item.zapros.3} from player
  826. remove "%arg%" from {g-%{m.%player%}%.invites::*}
  827. loop all players:
  828. {m.%loop-player%} is "%{m.%player%}%":
  829. send "{@zaproszenie-gracza-do-twojej-gildii-zostalo-usuniete}" to loop-player
  830. loop-player is "%arg%":
  831. send "{@twoje-zaproszenie-do-gildii-zostalo-usuniete}" to loop-player
  832. stop
  833. {xGuilds.zapros.zaproszenie} is "true":
  834. player has {@item.zapros.1} and {@item.zapros.2} and {@item.zapros.3}:
  835. wait 1 tick
  836. else:
  837. send "{@nie-masz-itemow-na-zaproszenie-gracza-do-gildii}"
  838. stop
  839. remove {@item.zapros.1} and {@item.zapros.2} and {@item.zapros.3} from player
  840. add "%arg%" to {g-%{m.%player%}%.invites::*}
  841. loop all players:
  842. {m.%loop-player%} is "%{m.%player%}%":
  843. send "{@gracz-zostal-zaproszony-do-twojej-gildii}" to loop-player
  844. loop-player is "%arg%":
  845. send "{@zostales-zaproszony-do-gildii}" to loop-player
  846. stop
  847. command /wyrzuc [<text>]:
  848. trigger:
  849. {m.%player%} is not set:
  850. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  851. stop
  852. arg is "%player%":
  853. send "{@nie-mozesz-wyrzucic-siebie-z-gildii}"
  854. stop
  855. {m.%arg%} is "%{m.%player%}%":
  856. {o.%player%} is set:
  857. {l.%arg%} is set:
  858. send "{@nie-mozesz-wyrzucic-lidera-z-gildii-jestes-zastepca}"
  859. stop
  860. {o.%player%} is not set:
  861. {l.%player%} is set:
  862. wait 1 tick
  863. else:
  864. send "{@nie-jestes-zastepca-ani-liderem-swojej-gildii}"
  865. stop
  866. {m.%arg%} is "%{m.%player%}%":
  867. delete {m.%arg%}
  868. delete {o.%arg%}
  869. loop all players:
  870. {m.%loop-player%} is "%{m.%player%}%":
  871. {xGuilds.kick} is "true":
  872. send "{@zostal-wyrzucony-z-twojej-gildii-i-nie-ma-juz-zaproszenia}" to loop-player
  873. else:
  874. send "{@zostal-wyrzucony-z-twojej-gildii}" to loop-player
  875. {xGuilds.kick} is "true":
  876. remove "%arg%" from {g-%{m.%player%}%.invites::*}
  877. remove "%arg%" from {g-%{m.%player%}%.members::*}
  878. remove "%arg%" from {g-%{m.%player%}%.officers::*}
  879. loop all players:
  880. loop-player is "%arg%":
  881. send "{@zostales-wyrzucony-z-gildii}" to loop-player
  882. stop
  883. command /opusc:
  884. trigger:
  885. {m.%player%} is not set:
  886. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  887. stop
  888. {l.%player%} is set:
  889. send "{@nie-mozesz-opuscic-swojej-gildii-jestes-liderem}"
  890. stop
  891. {m.%player%} is set:
  892. loop all players:
  893. {m.%loop-player%} is "%{m.%player%}%":
  894. {xGuilds.leave} is "true":
  895. send "{@opuscil-twoja-gildie-nie-jest-juz-zaproszony}" to loop-player
  896. else:
  897. send "{@gracz-opuscil-twoja-gildie}" to loop-player
  898. run player command "rg removemember g-%{m.%player%}% %player%" as op
  899. {xGuilds.leave} is "true":
  900. remove "%player%" from {g-%{m.%player%}%.invites::*}
  901. remove "%player%" from {g-%{m.%player%}%.officers::*}
  902. remove "%player%" from {g-%{m.%player%}%.members::*}
  903. delete {m.%player%}
  904. delete {o.%player%}
  905. send "{@opusciles-swoja-gildie}"
  906. stop
  907. command /rozwiaz:
  908. trigger:
  909. {m.%player%} is not set:
  910. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  911. stop
  912. {l.%player%} is not set:
  913. send "{@nie-jestes-liderem-swojej-gildii}"
  914. stop
  915. set {_guild} to "%{m.%player%}%"
  916. set {_guild_name} to "%{g-%{_guild}%.name}%"
  917. loop all players:
  918. {m.%loop-player%} is "%{m.%player%}%":
  919. send "{@twoja-gildia-zostala-rozwiazana}" to loop-player
  920. loop {g-%{_guild}%.members::*}:
  921. loop-value is "%loop-value%":
  922. delete {l.%loop-value%}
  923. delete {o.%loop-value%}
  924. delete {m.%loop-value%}
  925. delete {m.%player%}
  926. delete {l.%player%}
  927. set {_officer} to "%{g-%{_guild}%.officer}%"
  928. delete {o.%{_officer}%}
  929. delete {tags::%{_guild}%}
  930. delete {names::%{_guild_name}%}
  931. delete {g-%{_guild}%.name}
  932. delete {g-%{_guild}%.leader}
  933. delete {g-%{_guild}%.officer}
  934. delete {g-%{_guild}%.base}
  935. delete {g-%{_guild}%.members::*}
  936. delete {g-%{_guild}%.invites::*}
  937. run player command "/rg remove g-%{_guild}%" as op
  938. broadcast "{@gildia-zostala-rozwiazana}"
  939. stop
  940. command /sojusz [<text>]:
  941. trigger:
  942. arg is not set:
  943. send "{@podaj-tag-gildii-z-ktora-chcesz-zawrzec-sojusz}"
  944. stop
  945. {m.%player%} is not set:
  946. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  947. stop
  948. {tags::%arg%} is not set:
  949. send "{@nie-ma-takiej-gildii}"
  950. stop
  951. arg is "%{g-%{m.%player%}%.tag}%":
  952. send "{@nie-mozesz-zawrzec-sojuszu-ze-swoja-gildia}"
  953. stop
  954. {o.%player%} is not set:
  955. {l.%player%} is set:
  956. wait 1 tick
  957. else:
  958. send "{@nie-jestes-zastepca-ani-liderem-swojej-gildii}"
  959. stop
  960. loop {g-%{m.%player%}%.inv-allies::*}:
  961. loop-value-1 is arg:
  962. send "{@macie-juz-prosbe-sojuszu-z-ta-gildia}"
  963. stop
  964. loop {g-%{m.%player%}%.allies::*}:
  965. loop-value-1 is arg:
  966. send "{@macie-juz-sojusz-z-ta-gildia}"
  967. stop
  968. loop {g-%arg%.inv-allies::*}:
  969. loop-value-1 is "%{m.%player%}%":
  970. add "%arg%" to {g-%{m.%player%}%.allies::*}
  971. add "%arg%" to {g-%arg%.allies::*}
  972. loop {g-%{m.%player%}%.members::*}:
  973. loop all players:
  974. loop-value-2 is loop-player:
  975. send "{@twoja-gildia-zawarla-sojusz-z-gildia}" to loop-player
  976. loop {g-%arg%.members::*}:
  977. loop all players:
  978. loop-value-2 is loop-player:
  979. send "{@gildia-zawarla-sojusz-z-twoja-gildia}" to loop-player
  980. stop
  981. add "%arg%" to {g-%{m.%player%}%.inv-allies::*}
  982. loop {g-%{m.%player%}%.members::*}:
  983. loop all players:
  984. loop-value-1 is loop-player:
  985. send "{@twoja-gildia-zawarla-prosbe-sojuszu-z-gildia}" to loop-player
  986. loop {g-%arg%.members::*}:
  987. loop all players:
  988. loop-value-1 is loop-player:
  989. send "{@gildia-zawarla-prosbe-sojuszu-z-twoja-gildia}" to loop-player
  990. stop
  991. command /zerwijsojusz [<text>]:
  992. trigger:
  993. arg is not set:
  994. send "{@podaj-tag-gildii-z-ktora-chcesz-zerwac-sojusz}"
  995. stop
  996. {m.%player%} is not set:
  997. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  998. stop
  999. {tags::%arg%} is not set:
  1000. send "{@nie-ma-takiej-gildii}"
  1001. stop
  1002. arg is "%{g-%{m.%player%}%.tag}%":
  1003. send "{@nie-mozesz-zerwac-sojuszu-ze-swoja-gildia}"
  1004. stop
  1005. {o.%player%} is not set:
  1006. {l.%player%} is set:
  1007. wait 1 tick
  1008. else:
  1009. send "{@nie-jestes-zastepca-ani-liderem-swojej-gildii}"
  1010. stop
  1011. loop {g-%{m.%player%}%.allies::*}:
  1012. loop-value-1 is arg:
  1013. remove "%arg%" from {g-%{m.%player%}%.allies::*}
  1014. remove "%arg%" from {g-%{m.%player%}%.inv-allies::*}
  1015. remove "%arg%" from {g-%arg%.allies::*}
  1016. remove "%arg%" from {g-%arg%.inv-allies::*}
  1017. loop {g-%{m.%player%}%.members::*}:
  1018. loop all players:
  1019. loop-value-2 is loop-player:
  1020. send "{@twoja-gildia-zerwala-sojusz-z-gildia}" to loop-player
  1021. loop {g-%arg%.members::*}:
  1022. loop all players:
  1023. loop-value-2 is loop-player:
  1024. send "{@gildia-zerwala-sojusz-z-twoja-gildia}" to loop-player
  1025. stop
  1026. loop {g-%{m.%player%}%.inv-allies::*}:
  1027. loop-value-1 is arg:
  1028. remove "%arg%" from {g-%{m.%player%}%.inv-allies::*}
  1029. remove "%arg%" from {g-%arg%.inv-allies::*}
  1030. loop {g-%{m.%player%}%.members::*}:
  1031. loop all players:
  1032. loop-value-2 is loop-player:
  1033. send "{@twoja-gildia-zerwala-prosbe-sojuszu-z-gildia}" to loop-player
  1034. loop {g-%arg%.members::*}:
  1035. loop all players:
  1036. loop-value-2 is loop-player:
  1037. send "{@gildia-zerwala-prosbe-sojuszu-z-twoja-gildia}" to loop-player
  1038. stop
  1039. command /baza:
  1040. trigger:
  1041. {m.%player%} is not set:
  1042. send "{@nie-jestes-czlonkiem-zadnej-gildii}"
  1043. stop
  1044. set {tp.baza.%player%} to "true"
  1045. send "{@zostaniesz-przeteleportowany-do-bazy-swojej-gildii}"
  1046. {damage.%player%} is set:
  1047. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1048. stop
  1049. wait 1 second
  1050. send "&a9"
  1051. {damage.%player%} is set:
  1052. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1053. stop
  1054. wait 1 second
  1055. send "&a8"
  1056. {damage.%player%} is set:
  1057. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1058. stop
  1059. wait 1 second
  1060. send "&a7"
  1061. {damage.%player%} is set:
  1062. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1063. stop
  1064. wait 1 second
  1065. send "&a6"
  1066. {damage.%player%} is set:
  1067. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1068. stop
  1069. wait 1 second
  1070. send "&a5"
  1071. {damage.%player%} is set:
  1072. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1073. stop
  1074. wait 1 second
  1075. send "&a4"
  1076. {damage.%player%} is set:
  1077. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1078. stop
  1079. wait 1 second
  1080. send "&a3"
  1081. {damage.%player%} is set:
  1082. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1083. stop
  1084. wait 1 second
  1085. send "&a2"
  1086. {damage.%player%} is set:
  1087. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1088. stop
  1089. wait 1 second
  1090. send "&a1"
  1091. {damage.%player%} is set:
  1092. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1093. stop
  1094. wait 1 second
  1095. send "{@teleportacja}"
  1096. {damage.%player%} is set:
  1097. send "{@zostales-zaatakowany-zatrzymuje-teleportacje}"
  1098. stop
  1099. delete {tp.baza.%player%}
  1100. teleport player to {g-%{m.%player%}%.base}
  1101. stop
  1102. on damage:
  1103. {m.%attacker%} is not set:
  1104. stop
  1105. {m.%victim%} is not set:
  1106. stop
  1107. attacker is player
  1108. {tp.baza.%attacker%} is set:
  1109. set {damage.%attacker%} to "true"
  1110. {tp.baza.%victim%} is set:
  1111. set {damage.%victim%} to "true"
  1112. {m.%attacker%} is {m.%victim%}:
  1113. {tp.baza.%attacker%} is set:
  1114. set {damage.%attacker%} to "true"
  1115. {tp.baza.%victim%} is set:
  1116. set {damage.%victim%} to "true"
  1117. attacker's tool is a sword of knockback 1:
  1118. set the damage to 0
  1119. stop
  1120. attacker's tool is a sword of knockback 2:
  1121. set the damage to 0
  1122. stop
  1123. cancel event
  1124. stop
  1125. loop {g-%{m.%attacker%}%.allies::*}:
  1126. loop-value is "%{m.%victim%}%":
  1127. attacker's tool is a sword of knockback 1:
  1128. set the damage to 0
  1129. stop
  1130. attacker's tool is a sword of knockback 2:
  1131. set the damage to 0
  1132. stop
  1133. cancel event
  1134. stop
  1135. loop {g-%{m.%victim%}%.allies::*}:
  1136. loop-value is "%{m.%attacker%}%":
  1137. attacker's tool is a sword of knockback 1:
  1138. set the damage to 0
  1139. stop
  1140. attacker's tool is a sword of knockback 2:
  1141. set the damage to 0
  1142. stop
  1143. cancel event
  1144. stop
  1145. #loop {g-%m.%attacker%}%.enemies::*}:
  1146. #if loop-value is "%{m.%victim%}%":
Advertisement
Add Comment
Please, Sign In to add comment