command /zaloz [] []: trigger: set {_x1} to x-location of player set {_z1} to z-location of player set {_x2} to x-location of spawnpoint of the world set {_z2} to z-location of spawnpoint of the world set {_dif} to (sqrt of (({_x2}-{_x1})({_x2}-{_x1})+({_z2}-{_z1})({_z2}-{_z1})) {_dif} is less than 300: send "&cJestes za blisko spawnu!" stop if {gildie::%player%::status} is true: send "&7» &cJestes aktualnie w gildii!" stop if arg 1 is not set: send "&7» &7Poprawne uzycie: &3/zaloz " stop if arg 2 is not set: send "&7» &7Poprawne uzycie: &3/zaloz " stop if length of arg 1 is less than 2: send "&7» &cPodany tag gildii jest za krotki!" stop if length of arg 1 is greater than 5: send "&7» &cPodany tag gildii jest zbyt dlugi!" stop if length of arg 2 is less than 16: send "&7» &cPodana nazwa gildii jest za krotka!" stop if length of arg 2 is greater than 48: send "&7» &cPodana nazwa gildii jest zbyt dluga!" stop if {gildie::gildia::%arg 1%::tag} is set: send "&7» &cGildia o podanym tagu juz istnieje!" stop if {gildie::gildia::%arg 1%::nazwa} is set: send "&7» &cGildia o podanej nazwie juz istnieje!" stop if player doesn't have {@guild-items}: send "&7» &cNie posiadasz przedmiotow aby zalozyc gildie!" send "&7» &cAby zalozyc gildie potrzeba: &7%{guild-items-text}%&c." stop remove {@guild-items} from player set {gildie::%player%::status} to true set {gildie::%player%::tag} to "%arg 1%" set {gildie::gildia::%arg 1%::tag} to "%arg 1%" set {gildie::gildia::%arg 1%::nazwa} to "%arg 2%" set {gildie::gildia::%arg 1%::opis} to "Domyslny opis gildii..." set {gildie::gildia::%arg 1%::lider} to "%player%" set {gildie::gildia::%arg 1%::zastepca} to "Brak danych" set {gildie::gildia::%arg 1%::pvp} to false set {gildie::gildia::%arg 1%::dom} to location of player add "%player%" to {gildie::gildia::%arg 1%::czlonkowie::*} "%arg 1%".Region.selectLS{location of player, 50}; set block at player to dragon egg broadcast "&7» &7Gracz &3%player% &7zalozyl gildie o tagu &3%arg 1% &7oraz nazwie &3%arg 2%&7." stop