command /zaloz [] []: trigger: {m.%player%} is set: send "{@tag} &7Jestes juz czlonkiem gildii!" stop arg 1 is not set: send "{@tag} &7Podaj tag!" stop arg 2 is not set: send "{@tag} &7Podaj nazwe!" stop if player's world is "Survival_Nether": send "{@tag} &7Na tym swiecie nie mozna zalozyc gildii!" stop loop 100 times: send "" wait 2 second send "&7Sprawdzanie &8- &6Tag ..." {guilds.tags::%arg 1%} is set: send "{@tag} &cGildia z takim tagiem juz istnieje!" stop wait 1 second send "{@tag} &aGildia z takim tagiem jeszcze nie istnieje!" set {_tag} to "%arg 1%" replace all "0" with "1" in {_tag} replace all "1" with "1" in {_tag} replace all "2" with "1" in {_tag} replace all "3" with "1" in {_tag} replace all "4" with "1" in {_tag} replace all "5" with "1" in {_tag} replace all "6" with "1" in {_tag} replace all "7" with "1" in {_tag} replace all "8" with "1" in {_tag} replace all "9" with "1" in {_tag} replace all "q" with "1" in {_tag} replace all "w" with "1" in {_tag} replace all "e" with "1" in {_tag} replace all "r" with "1" in {_tag} replace all "t" with "1" in {_tag} replace all "y" with "1" in {_tag} replace all "u" with "1" in {_tag} replace all "i" with "1" in {_tag} replace all "o" with "1" in {_tag} replace all "p" with "1" in {_tag} replace all "a" with "1" in {_tag} replace all "s" with "1" in {_tag} replace all "d" with "1" in {_tag} replace all "f" with "1" in {_tag} replace all "g" with "1" in {_tag} replace all "h" with "1" in {_tag} replace all "j" with "1" in {_tag} replace all "k" with "1" in {_tag} replace all "l" with "1" in {_tag} replace all "z" with "1" in {_tag} replace all "x" with "1" in {_tag} replace all "c" with "1" in {_tag} replace all "v" with "1" in {_tag} replace all "b" with "1" in {_tag} replace all "n" with "1" in {_tag} replace all "m" with "1" in {_tag} length of {_tag} is greater than 5: send "{@tag} &Tag gildii nie moze byc dluzszy niz 5 znakow!" stop length of {_tag} is less than 3: send "{@tag} &7Tag gildii nie moze byc krotszy niz 3 znaki!" stop {_tag} is not "111" or "1111" or "11111": send "{@tag} &7Tag zawiera niewlasciewe znaki!" stop wait 2 second send "&7Sprawdzanie &8- &6Nazwa ..." set {_name} to "%arg 2%" length of {_name} is greater than 16: send "{@tag} &7Nazwa gildii nie moze byc dluzsza niz 15 znakow!" stop {names::%arg 2%} is set: send "{@tag} &6Ta nazwa jest juz zajeta!" stop wait 1 second send "{@tag} &aGildia z taka nazwa jeszcze nie istnieje!" if player's gamemode is not creative: if player has permission "iguilds.stworz.vip": if player doesn't have {@item.zaloz.1.v}: add {@item.zaloz.1.v} to {_req::*} if player doesn't have {@item.zaloz.2.v}: add {@item.zaloz.2.v} to {_req::*} if player doesn't have {@item.zaloz.3.v}: add {@item.zaloz.3.v} to {_req::*} if player doesn't have {@item.zaloz.4.v}: add {@item.zaloz.4.v} to {_req::*} if player doesn't have {@item.zaloz.5.v}: add {@item.zaloz.5.v} to {_req::*} if player doesn't have {@item.zaloz.6.v}: add {@item.zaloz.6.v} to {_req::*} if player doesn't have {@item.zaloz.7.v}: add {@item.zaloz.7.v} to {_req::*} if player doesn't have {@item.zaloz.8.v}: add {@item.zaloz.8.v} to {_req::*} if player doesn't have {@item.zaloz.9.v}: add {@item.zaloz.9.v} to {_req::*} if player doesn't have {@item.zaloz.10.v}: add {@item.zaloz.10.v} to {_req::*} if {_req::*} is set: send "{@tag} &7Nie masz wszystkich wymaganych przedmiotow! Obecnie brakuje Ci: &a%{_req::*}%" stop set {_take.i} to true set {_take.vip} to true else: if player doesn't have {@item.zaloz.1}: add {@item.zaloz.1} to {_req::*} if player doesn't have {@item.zaloz.2}: add {@item.zaloz.2} to {_req::*} if player doesn't have {@item.zaloz.3}: add {@item.zaloz.3} to {_req::*} if player doesn't have {@item.zaloz.4}: add {@item.zaloz.4} to {_req::*} if player doesn't have {@item.zaloz.5}: add {@item.zaloz.5} to {_req::*} if player doesn't have {@item.zaloz.6}: add {@item.zaloz.6} to {_req::*} if player doesn't have {@item.zaloz.8}: add {@item.zaloz.7} to {_req::*} if player doesn't have {@item.zaloz.8}: add {@item.zaloz.8} to {_req::*} if player doesn't have {@item.zaloz.9}: add {@item.zaloz.9} to {_req::*} if player doesn't have {@item.zaloz.10}: add {@item.zaloz.10} to {_req::*} if {_req::*} is set: send "{@tag} &7Nie masz wszystkich wymaganych przedmiotow! Obecnie brakuje Ci: &a%{_req::*}%" stop set {_take.i} to true if {_take.i} is true: if {_take.vip} is true: remove {@item.zaloz.1.v} from player remove {@item.zaloz.2.v} from player remove {@item.zaloz.3.v} from player remove {@item.zaloz.4.v} from player remove {@item.zaloz.5.v} from player remove {@item.zaloz.6.v} from player remove {@item.zaloz.7.v} from player remove {@item.zaloz.8.v} from player remove {@item.zaloz.9.v} from player remove {@item.zaloz.10.v} from player else: remove {@item.zaloz.1} from player remove {@item.zaloz.2} from player remove {@item.zaloz.3} from player remove {@item.zaloz.4} from player remove {@item.zaloz.5} from player remove {@item.zaloz.6} from player remove {@item.zaloz.7} from player remove {@item.zaloz.8} from player remove {@item.zaloz.9} from player remove {@item.zaloz.10} from player set player's tag to "&2[&6%arg 1%&2] &7" set {gildia.tag.%name of player%} to arg 1 set {g-%arg 1%.base} to location of player set {tags::%arg 2%} to "%arg 1%" set {names::%arg 1%} to "%arg 2%" set {g-%arg 1%.tag} to "%arg 1%" set {g-%arg 1%.name} to "%arg 2%" set {g-%arg 1%.leader} to "%player%" set {g-%arg 1%.officers::*} to "%player%" set {m.%player%} to "%arg 1%" set {l.%player%} to "%arg 1%" add "%player%" to {g-%arg 1%.members::*} set {punkty.gildia.%{gildia.tag.%player%}%} to 500 add arg 1 to {IGuilds.list::*} create timed bar with text {@text.zakaldanie.gracz} to all players for {@czas.gracz} seconds stop