# ======================================= # === Konfiguracja === #======================================== # ======================================= # === Itemy na Gildie === # ======================================= options: pay1: 64 diamond pay2: 64 emerald pay3: 64 golden apple pay4: 64 golden carrot pay5: 64 anvil pay6: 16 ender pearl # ======================================= # === Tekst Przy Ladowaniu Skryptu === # ======================================= on script load: send "===========================" to the console send "== NewGuild ==" to the console send "== version: v0.2 ==" to the console send "===========================" to the console # ======================================= # === Kod Skryptu === # ======================================= command /gildia [] [] []: aliases: g permission: guild.default trigger: if arg 1 is not set: send "&l================================================" send "&3/gildia zaloz &2- Zaklada Gildie" send "&3/gildia usun &2- Usuwa Gildie" send "&3/gildia zapros &2- Zaprasza Gracza Do Gildii" send "&3/gildia wyrzuc &2- Wyrzuca Gracza Z Gildii" send "&3/gildia awansuj &2- Awansuje gracza na moderatora" send "&3/gildia degraduj &2- Degraduje moderatora na czlonka" send "&l================================================" if player is op: send "&l================================================" send "&3/gildia zaloz &2- Zaklada Gildie" send "&3/gildia usun &2- Usuwa Gildie" send "&3/gildia zapros &2- Zaprasza Gracza Do Gildii" send "&3/gildia wyrzuc &2- Wyrzuca Gracza Z Gildii" send "&3/gildia awansuj &2- Awansuje gracza na moderatora" send "&3/gildia degraduj &2- Degraduje moderatora na czlonka" send "&l=========== &cKomendy Admina &f&l===============" send "&c/gildia przeladuj &2- reloaduje skrypt" send "&l================================================" if arg 1 is "przeladuj": send "&2Rozpoczato przeladowywanie NewGuild..." execute console command "sk reload newguild" send "&2NewGuild przeladowano" stop if arg 1 is "itemy": send "&2Potrzebujesz: &c{@pay1}, {@pay2}, {@pay3}, {@pay4}, {@pay5}, {@pay6}" stop if arg 1 is "zaloz": if arg 2 is set: if arg 3 is set: if player has {@pay1}: if player has {@pay2}: if player has {@pay3}: if player has {@pay4}: if player has {@pay5}: if player has {@pay6}: if arg 2 is set: set {nazwa.%player%} to arg 2 if arg 3 is set: set {tag.%player%} to arg 3 send " &7 Zabezpieczenie &8- &aTworzenie ..." set {pos%player%} to location of player set {pos1%player%} to {pos%player%} send "&c&l Nie ruszaj kamera przez 2 sekundy!" wait 1 second if {_pos} isn't location of player: send " &c&lWykryto ruch, zakladanie anulowane !!" stop wait 1 second set block 0.1 meter above player to dragon egg execute console command "//pos1" execute console command "//pos2" execute console command "//expand 50 n" execute console command "//expand 49 s" execute console command "//expand 50 w" execute console command "//expand 49 e" execute console command "//expand vert" execute console command "rg define %name of player%" execute console command "rg addowner -w world %name of player% %name of player%" set {owner%player%} to 1 send "" send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send "x" send "" send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send "" send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send "x" send "" send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send "" send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send "x" send "" send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " " send " Zabezpieczenie &8- &aStworzone ..." send " &8Srodek gildii wyznacza smocze jajko" send " &8Dzialka ma rozmiary &c50 x 50.&8 Mozesz ja powiekszac za oplata." send " &8Wiecej informacji pod komenda &a&l/gildia&8." remove {@pay1} from player remove {@pay2} from player remove {@pay3} from player remove {@pay4} from player remove {@pay5} from player remove {@pay6} from player broadcast "&cGracz &6%player% &cZalozyl gildie o nazwie &3%{nazwa.%player%}% &c[&2%{tag.%player%}%]" set the player's display name to "&6[&c%{tag.%player%}%&6]&7 %name of player%" set the player's tablist name to "&c[%{tag.%player%}%]%name of player%" add 1 to {limit%player%} stop else: send "&cNie posiadasz {@pay6}" else: send "&cNie posiadasz {@pay5}" else: send "&cNie posiadasz {@pay4}" else: send "&cNie posiadasz {@pay3}" else: send "&c Nie posiadsz {@pay2}" else: send "&cNie posiadasz {@pay1}" if arg 3 is not set: send "&cPodaj tag gildii" if arg 2 is not set: send "&cPodaj nazwe gildii" if arg 1 is "zapros": if {owner%player%} or {moderator%player%} is 1: if arg 2 is player: execute player command "rg addmember %arg 2%" send "&2Zaprosiles gracza &7%arg 2% do gildii" broadcast "&2Gracz &7%arg 2% &2zostal zaproszony do gildii &c%{nazwa.%player%}%" set the player's display name to "&6[&c%{tag.%player%}%&6]&7 %name of player%" set the player's tablist name to "&c[%{tag.%player%}%]%name of player%" set {czlonek%arg 2%%{nazwa%player%}%} to 1 send {tag.%player%} to {tag.%arg 2%} else: send "&cPodales bledny nick, lub gracz nie jest online" if arg 2 is not set: send "&cPodaj nick gracza" stop if arg 1 is "wyrzuc": if {owner%player%} or {moderator%player%} is 1: if arg 2 is player: execute player command "rg removemember %arg 2%" send "&2Wyrzuciles gracza &7%arg 2% &2z gildii" broadcast "&2Gracz &7%arg 2% &2zostal wyrzucony z gildii &c%{nazwa.%player%}%" set the player's display name to "&7%name of player%" set the player's tablist name to "&7%name of player%" set {czlonek%arg 2%%{nazwa%player%}%} to 0 else: send "&cPodales bledny nick, lub gracz nie jest online" if arg 2 is not set: send "&cPodaj nick gracza" stop if arg 1 is "usun": if {owner%player%} is 1: execute console command "rg del %name of player%" send "&cUsunoles gildie" broadcast "&2Gracz &7%player% &2usunol gildie &c%{nazwa.%player%}%" broadcast "&2Koordy terenu usunietej gildii to &6%{pos1%player%}%" set the player's display name to "&7%name of player%" set the player's tablist name to "&7%name of player%" set {limit%player%} to 0 set {owner%player%} to 0 else: send "&cNie posiadasz gildii" stop if arg 1 is "awansuj": if {owner%player%} is 1: if arg 2 is player: set {moderator%arg 2%} to 1 send "Awansowales %arg 2% na moderatora gildii" else: send "&cPodales bledny nick gracza, lub gracz nie jest online" if arg 2 is not set: send "&cPodaj nick gracza" else: send "&cNie jestes zalozycielem gildii" if arg 1 is "degraduj": if {owner%player%} is 1: if arg 2 is player: if {czlonek%arg 2%%{nazwa%player%}%} is 1: if {moderator%arg 2%} is 1: set {moderator%arg 2%} to 0 send "&cDegradowales %arg 2% do rangi czlonka" else: send "&cGracz nie jest moderatorem gildii" else: send "&cGracz nie jest czlonkiem twojej gildi" else: send "&cPodales bledny nick gracza, lub gracz nie jest online" else: send "7cNie jestes zalozycielem gildii" if {owner%player%} is 0: send "&cNie posiadasz gildii" on command "/gildia zaloz": if {owner%player%} is 1: if {limit%player%} is 1: send "&cMasz juz jedna gilide" cancel event