Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =================================================
- #
- # skGuilds 1.1.8_FULL
- #
- # =================================================
- # >> OPCJE <<
- # =================================================
- options:
- tag: &8>&7
- guild.reqitems: 5 diamond, 1 emerald and 5 stone
- guild.vip.reqitems: 2 diamond and 2 stone
- guild.item: dragon egg
- guild.aliases: g, guild
- guild.guildradius: 150
- guild.spawnradius: 200
- guild.dolaczitem: 5 diamond
- guild.chat: &8[&e{RANK}&8] {TAG} &6{NICK}&8: &7{MSG}
- guild.tagformat: &8[&2%{_tag}%&8]&f
- teleport.time: 10
- teleport.type: seconds
- powieksz.item.1: 10 diamond
- powieksz.item.2: 20 diamond
- powieksz.item.3: 30 diamond
- powieksz.item.4: 40 diamond
- powieksz.item.5: 50 diamond
- chat.format.lider: &2[&a{TAG}&2]&a&l [**] &2{NICK}: &a{MSG}
- chat.format.normal: &6[&e{TAG}&6]&e&l [*] &2{NICK}: &a{MSG}
- sojusz.enabled: true
- potion.shop.waterbreath: 10 emeralds
- potion.shop.fireresistance: 35 emeralds
- potion.shop.invisible: 150 emeralds
- potion.shop.strength: 100 emeralds
- potion.shop.speed: 50 emeralds
- potion.shop.regeneration: 35 emeralds
- potion.shop.nightvision: 15 emeralds
- tab: true
- tab.info1naglowek: &6Sklepik
- tab.info1: &ewww.serv.pl/is
- tab.info2naglowek: &6Forum
- tab.info2: &ewww.serv.pl/fr
- # =================================================
- # >> Frequency Answered Questions (FAQ) <<
- # =================================================
- # P: EEE RZAL GUFNO PLAGIAT IDE ZGLAŻADŹ TO NA TEMATT
- # O: Dobranoc...
- # P: Dlaczego kod jest podobny do innych skryptow na gildie?
- # O: Spodobala mi sie pewna metoda pisania, (chodzi tu o te dluzsze, ale wygodniejsze pisanie).
- # No i jeżeli niektórych rzeczy nie wiedzialem to "podpatrzylem" od innych skryptów. Ale to jeszcze nie plagiat ;>
- # P: Bedziesz aktualizowal kod?
- # O: Oczywiscie.
- # P: ZAJEBISTY SKRYPT! :DD:D:D:D:D
- # O: Dzieki.
- # P: Dodasz ranking (top10) na tab lub w komendzie?
- # O: Zobaczymy zobaczymy ^^
- # P: Moge uzyc go na swoim serwerze?
- # O: Oczywiscie ze tak ;>
- # P: Podpierdoliles moja funkcje...
- # O: Podaj skype, wyjasnimy sobie, jezeli okaze sie ze to naprawde "TWOJA" funkcja, to ja wywale i zastapie jakas inna... co za problem? :U
- # =================================================
- # >> Changelog <<
- # =================================================
- # 0.0.1_PRE_ALPHA
- # - Pierwsze komendy (zarysy/szkielet)
- # - Pierwsze funkcje (zarysy/szkielet)
- # 0.0.5_PRE_ALPHA
- # - Wiecej komend
- # - Ulepszone funkcje
- # - Usuniete bugi z wersji pierwszej
- # - Inne
- # 0.0.8_PRE_ALPHA
- # - Ulepszone komendy
- # - Usuniecie bledow z funkcjami
- # - Wiele bugow usunietych.
- # - Inne
- # 0.1.5_ALPHA
- # - Zarys tablisty
- # - Dolaczanie / opuszczanie gildii
- # - Informacje na temat gildii
- # - Zarys rankingu.
- # - Inne
- # 0.5.0_BETA
- # - Tablista
- # - Poczatki Rankingu
- # - Usuniecie wielu bledow
- # - Stawianie/niszczenie blokow (blokada)
- # - Inne
- # 0.8.0_BETA
- # - Ulepszone wszystkie funkcje
- # - Komenda administracyjna
- # - Komenda pomocy
- # - Wywalenie bugujacej sie funkcji wybuchu TNT na terenie gildii
- # - Poprawa wielu bledow
- # - Pierwsze pelnoprawne testy skryptu.
- # - Wchodzenie i wychodzenie z gildii (wiadomosci)
- # - Inne
- # 1.0.0_FULL
- # - Wszystkie podstawowe i duzo nie podstawowych komend
- # - Oficjalne udostepnienie dla uzytkownikow.
- # - Dodanie funkcji "on death" (zabijanie graczy/zabijanie siebie)
- # - Ranking gildyjny (pierwsza wersja, buguje sie)
- # - Ukonczenie rankingu graczy
- # - Komenda /g ranking
- # - Intruz w gildii
- # - Ladowanie cuboidow i chatu (brak bugów)
- # - Inne
- # 1.0.2_FULL
- # - Poprawa bledow
- # - Inne
- # 1.0.3_FULL
- # - /g przeladuj i /g setspawn (g setspawn nie dziala poprawnie póki co)
- # - Wyeliminowany blad z mozliwoscia wpisania pierdyliard razy /g baza ;p (tera blokuje na czas teleportu)
- # - Auto update
- # - Poprawa bledow z /g zapros
- # - Poprawa bledow z /g dolacz
- # - Poprawa bledow z /g wyrzuc
- # - Poprawa tagów od /g opusc
- # - Poprawa odleglosci od spawnu
- # - Szkielet intruzow
- # - Inne
- # 1.0.4_FULL
- # - Sojusze
- # - Poprawa bledow
- # - Blad z jajkiem smoka poprawiony
- # - Komenda /g helpme / pomoc
- # - Wykryto blad z tagami nad nickiem :(
- # - inne
- # 1.1_FULL
- # - Poprawki
- # - /g efekt
- # - Od teraz gildie administracji sa w komendzie /ga
- # - /ga zbanuj
- # - Przywileje VIPa! (wystarczy dac perma skguilds.vip)
- # - Komenda /g info w GUI
- # - Komenda /g list w GUI
- # - Ulepszone /g helpme
- # 1.1.6_FULL
- # - Nowa tablista
- # - Top10 graczy
- # - Top10 gildii (zbugowane)
- # - inne
- # 1.1.8_FULL
- # - Podbijanie gildii
- # - Wojny (pierwsza, bugujaca sie wersja)
- # - Poprawki
- # - Nowe przedmioty (Excalibur, nowe Luki i miecze)
- # =================================================
- # >> KOD <<
- # =================================================
- # Lepiej tego nie tykac jak sie nie znasz :D
- # ====================== KOMENDY ===========================
- command /skGuilds:gildia [<text>] [<text>] [<text>] [<text>]:
- aliases: {@guild.aliases}
- trigger:
- if arg 1 is "zaloz" or "create" or "z" or "c":
- if arg 2 is not set:
- send "{@tag} &cWpisz tag gildii."
- stop
- if arg 3 is not set:
- send "{@tag} &cWpisz nazwe gildii."
- stop
- if {skGuilds::inGuild::%player%} is set:
- send "{@tag} &cJestes juz w gildii!"
- stop
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is set:
- send "{@tag} &cJestes liderem innej gildii, usun ja aby stworzyc wlasna!"
- stop
- if length of arg 2 is less than 3:
- send "{@tag} &cTag musi miec minimum 3 liter!"
- stop
- if length of arg 2 is greater than 5:
- send "{@tag} &cTag musi miec maximum 5 liter!"
- stop
- if length of arg 3 is greater than 25:
- send "{@tag} &cNazwa nie moze byc dluzsza niz 25 liter!"
- stop
- if length of arg 3 is less than 10:
- send "{@tag} &cNazwa nie moze byc krotsza niz 10 liter!"
- stop
- if {skGuilds::GildiaTag::%arg 2%} is set:
- send "{@tag} &cGildia o takim tagu juz istnieje!"
- stop
- if {skGuilds::GildiaNazwa::%arg 3%} is set:
- send "{@tag} &cGildia o takiej nazwie juz istnieje!"
- if distance between player and {skGuilds::Spawn} is more than 150:
- if player has permission "skguilds.vip":
- if player doesn't have {@guild.vip.reqitems}:
- send "{@tag} &cNie masz wymaganych itemow na gildie. &6(VIP)"
- send "{@tag} &cPotrzebujesz: &6{@guild.vip.reqitems}"
- else:
- display hologram "&6Gildia &e%arg 3% [%arg 2%]" at location of player for 100 seconds
- remove {@guild.vip.reqitems} from the player
- set {skGuilds::inGuild::%player%} to arg 2
- set {skGuilds::GildiaTag::%arg 2%} to true
- set {skGuilds::GildiaNazwa::%arg 3%} to true
- set {skGuilds::NazwaGildii::%arg 2%} to arg 3
- set {skGuilds::TagGildii::%arg 2%} to arg 2
- set {skGuilds::Zycia::%arg 2%} to 3
- add arg 3 to {skGuilds::Gildie::*}
- add arg 2 to {skGuilds::Tagi::*}
- set {skGuilds::PVP::%arg 2%} to false
- set {skGuilds::%arg 2%::Powieksz::LVL::1} to true
- set {skGuilds::%arg 2%::Powieksz::LVL::2} to true
- set {skGuilds::%arg 2%::Powieksz::LVL::3} to false
- add player to {skGuilds::Czlonkowie::%arg 2%::*}
- set {skGuilds::%arg 2%::Powieksz::LVL::4} to false
- set {skGuilds::%arg 2%::Powieksz::LVL::5} to false
- set {skGuilds::Opis::%arg 2%} to "&eNowa gildia!"
- set {skGuilds::Lider::%arg 2%} to "%player%"
- set {skGuilds::Zabojstwa::%arg 2%} to 0
- set {skGuilds::GuildPoints::%arg 2%} to 1000
- set {_Center} to block at location (x-coordinate of player, y-coordinate of player, z-coordinate of player) in "world"
- set {skGuilds::Baza::%arg 2%} to {_Center}
- set {skGuilds::Polozenie::%arg 2%} to {_Center}
- set block at {_Center} to {@guild.item}
- set {_Gildia} to arg 2
- add {_Gildia} to {skGuilds::Cuboids::*}
- set {skGuilds::Cuboid::Large::%{_Gildia}%} to 70
- set {skGuilds::Cuboid::Center::%{_Gildia}%} to {_Center}
- "%{_Gildia}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%}, {skGuilds::Cuboid::Large::%{_Gildia}%}};
- set {skGuilds::DataZalozenia::%arg 2%} to now
- edit tag of player to "&e[&6%arg 2%&e] &e"
- broadcast "{@tag} Gildia &e%arg 3% &8[&e%arg 2%&8] &7zostala zalozona przez &6[VIP] &e%player%"
- send "{@tag} &6Z racji tego ze jestes VIPem, otrzymujesz na start cuboid o wielkosci 70x70 kratek! Oczywiscie w dalszym stopniu mozesz go powiekszac!"
- stop
- else:
- if player doesn't have {@guild.reqitems}:
- send "{@tag} &cNie masz wymaganych itemow na gildie."
- send "{@tag} &cPotrzebujesz: &7{@guild.reqitems}"
- else:
- remove {@guild.reqitems} from the player
- set {skGuilds::inGuild::%player%} to arg 2
- set {skGuilds::GildiaTag::%arg 2%} to true
- set {skGuilds::GildiaNazwa::%arg 3%} to true
- set {skGuilds::NazwaGildii::%arg 2%} to arg 3
- set {skGuilds::TagGildii::%arg 2%} to arg 2
- set {skGuilds::Zycia::%arg 2%} to 3
- add arg 3 to {skGuilds::Gildie::*}
- add arg 2 to {skGuilds::Tagi::*}
- set {skGuilds::PVP::%arg 2%} to false
- set {skGuilds::%arg 2%::Powieksz::LVL::1} to false
- set {skGuilds::%arg 2%::Powieksz::LVL::2} to false
- set {skGuilds::%arg 2%::Powieksz::LVL::3} to false
- add player to {skGuilds::Czlonkowie::%arg 2%::*}
- set {skGuilds::%arg 2%::Powieksz::LVL::4} to false
- set {skGuilds::%arg 2%::Powieksz::LVL::5} to false
- set {skGuilds::Opis::%arg 2%} to "&eNowa gildia!"
- set {skGuilds::Lider::%arg 2%} to "%player%"
- set {skGuilds::Zabojstwa::%arg 2%} to 0
- set {skGuilds::GuildPoints::%arg 2%} to 1000
- set {_Center} to block at location (x-coordinate of player, y-coordinate of player, z-coordinate of player) in "world"
- set {skGuilds::Baza::%arg 2%} to {_Center}
- set {skGuilds::Polozenie::%arg 2%} to {_Center}
- set block at {_Center} to {@guild.item}
- set {_Gildia} to arg 2
- add {_Gildia} to {skGuilds::Cuboids::*}
- set {skGuilds::Cuboid::Large::%{_Gildia}%} to 50
- set {skGuilds::Cuboid::Center::%{_Gildia}%} to {_Center}
- "%{_Gildia}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%}, {skGuilds::Cuboid::Large::%{_Gildia}%}};
- set {skGuilds::DataZalozenia::%arg 2%} to now
- edit tag of player to "&e[&6%arg 2%&e] &e"
- broadcast "{@tag} Gildia &e%arg 3% &8[&e%arg 2%&8] &7zostala zalozona przez &e%player%"
- stop
- else:
- send "{@tag} &cJestes za blisko spawnu!"
- if arg 1 is "info" or "informacje" or "i":
- if arg 2 is not set:
- if {skGuilds::inGuild::%player%} is set:
- run player command "/g info %{skGuilds::inGuild::%player%}%" as op
- stop
- else:
- send "{@tag} &cWpisz /g info <TAG>!"
- stop
- else if {skGuilds::GildiaTag::%arg 2%} is not set:
- if arg 2 is set:
- send "{@tag} &cGildia o tagu %arg 2% nie istnieje!"
- else:
- if arg 2 is not set:
- set {_g} to {skGuilds::inGuild::%player%}
- open chest with 1 rows named "&cInformacje o gildii &4%{_g}%" to player
- if arg 2 is set:
- open chest with 1 rows named "&cInformacje o gildii &4%arg 2%" to player
- format slot 8 of player with 1 of glowstone dust named "&6Zycia" with lore "&e%{skGuilds::Zycia::%arg 2%}%" to be unstealable
- format slot 0 of player with 1 of glowstone dust named "&6Opis gildii" with lore "&e%{skGuilds::Opis::%arg 2%}%" to be unstealable
- format slot 1 of player with 1 of glowstone dust named "&6Data zalozenia" with lore "&e%{skGuilds::DataZalozenia::%arg 2%}%" to be unstealable
- format slot 2 of player with 1 of glowstone dust named "&6Ranking" with lore "&e%{skGuilds::GuildPoints::%arg 2%}%" to be unstealable
- format slot 3 of player with 1 of glowstone dust named "&6Wielkosc terenu" with lore "&e%{skGuilds::Cuboid::Large::%arg 2%}%" to be unstealable
- if {skGuilds::Sojusz::%arg 2%::*} is set:
- format slot 4 of player with 1 of glowstone dust named "&6Sojusze" with lore "&e%{skGuilds::Sojusz::%arg 2%::*}%" to be unstealable
- else:
- format slot 4 of player with 1 of gunpowder named "&4Sojusze" with lore "&cBrak!" to be unstealable
- if {skGuilds::PVP::%arg 2%} is false:
- format slot 5 of player with 1 of gunpowder named "&4PVP" with lore "&cWylaczone!" to be unstealable
- else:
- format slot 5 of player with 1 of glowstone dust named "&6PVP" with lore "&aWlaczone!" to be unstealable
- if {skGuilds::Lider::%arg 2%} parsed as player is online:
- format slot 6 of player with 1 of glowstone dust named "&6Lider" with lore "&a%{skGuilds::Lider::%arg 2%}%" to be unstealable
- else:
- format slot 6 of player with 1 of gunpowder named "&4PVP" with lore "&c%{skGuilds::Lider::%arg 2%}%" to be unstealable
- set {_} to size of {skGuilds::Czlonkowie::%arg 2%::*}
- if {_} is 0:
- format slot 7 of player with 1 of gunpowder named "&4Czlonkowie" with lore "&cBrak!" to be unstealable
- else:
- format slot 7 of player with 1 of glowstone dust named "&6Czlonkowie" with lore "&e%{skGuilds::Czlonkowie::%arg 2%::*}%" to be unstealable
- stop
- stop
- if arg 1 is "lista" or "l" or "list":
- if arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {skGuilds::Tagi::*} is not set:
- send "{@tag} &cNa tym serwerze nie ma zadnych gildii!"
- stop
- set {_List::*} to "%{skGuilds::Tagi::*}%"
- set {_num} to 0
- open chest with 6 rows named "&cLista gildii:" to player
- loop {_List::*}:
- format slot {_num} of player with 1 of lapis block named "&e%loop-value%" with lore "&6%{skGuilds::NazwaGildii::%loop-value%}%" to run "xxtajne %loop-value%"
- add 1 to {_num}
- if size of {_List::*} is 0:
- send "{@tag} &cNie ma zadnych aktywnych gildii!"
- stop
- while inventory name of current inventory of player is "&cLista gildii:":
- if size of {_List::*} is not 0:
- loop 53 times:
- set {_} to loop-number
- unformat slot {_}-1 of player
- set {_num} to 0
- loop {_List::*}:
- format slot {_num} of player with 1 of lapis block named "&e%loop-value%" with lore "&6%{skGuilds::NazwaGildii::%loop-value%}%" to run "xxtajne %loop-value%"
- add 1 to {_num}
- wait 1 second
- if arg 1 is "baza" or "dom" or "base" or "b" or "d":
- if arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- else if {skGuilds::inGuild::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- if {skGuilds::TPCooldown::%player%} is false:
- set {_pos} to location of player
- set {_index} to {@teleport.time}
- send "{@tag} Zaczekaj &e{@teleport.time} {@teleport.type}&7!"
- set {skGuilds::TPCooldown::%player%} to true
- loop {@teleport.time} times:
- if {_pos} isn't location of player:
- send "{@tag} &cTeleportacja anulowana..."
- stop
- send "&8> &e%{_index}%"
- wait 1 {@teleport.type}
- remove 1 from {_index}
- if {_pos} is location of player:
- set {_g} to {skGuilds::inGuild::%player%}
- teleport player to {skGuilds::Baza::%{_g}%}
- send "{@tag} Teleportacja..."
- show mob spawner flames at the player
- set {skGuilds::TPCooldown::%player%} to false
- stop
- else:
- send "{@tag} &cTeleportacja anulowana..."
- set {skGuilds::TPCooldown::%player%} to false
- stop
- else:
- send "{@tag} &cJuz sie teleportujesz!"
- stop
- if arg 1 is "ustawbaze" or "setbase" or "sethome" or "sh" or "sb" or "ub":
- if arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- else if {skGuilds::inGuild::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- else if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
- send "{@tag} &cNie jestes liderem gildii!"
- set {_rg} to Region.getAt{location of player};
- if {_rg} is {skGuilds::inGuild::%player%}:
- set {_Polozenie} to location of player
- set {_Gildia} to {skGuilds::inGuild::%player%}
- set {skGuilds::Baza::%{_Gildia}%} to {_Polozenie}
- send "{@tag} Nowa baza gildii zostala ustawiona!"
- stop
- else:
- send "{@tag} &cNie jestes na terenie swojej gildii!"
- stop
- if arg 1 is "usun" or "remove" or "delete" or "u" or "r" or "d" or "del" or "rem" or "rozwiaz":
- if arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {skGuilds::inGuild::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
- send "{@tag} &cJedynie Lider moze usunac gildie!"
- stop
- set {_arg2} to {skGuilds::inGuild::%player%}
- set {_arg3} to {skGuilds::NazwaGildii::%{_arg2}%}
- edit tag of player to ""
- delete {skGuilds::GildiaTag::%{_arg2}%}
- delete {skGuilds::GildiaNazwa::%{_arg3}%}
- delete {skGuilds::TagGildii::%{_arg2}%}
- clear {skGuilds::inGuild::%player%}
- remove {_arg3} from {skGuilds::Gildie::*}
- remove {_arg2} from {skGuilds::Tagi::*}
- delete {skGuilds::Czlonkowie::%{_arg2}%::*}
- delete {skGuilds::PVP::%{_arg2}%}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::1}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::2}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::3}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::4}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::5}
- delete {skGuilds::Opis::%{_arg2}%}
- delete {skGuilds::Lider::%{_arg2}%}
- set {skGuilds::GuildPoints::%{_arg2}%} to "Brak!"
- delete {skGuilds::Baza::%{_arg2}%}
- delete {skGuilds::Polozenie::%{_arg2}%}
- delete {skGuilds::PodbiteGildie::%{_arg2}%}
- delete {skGuilds::Podbicia::%{_arg2}%}
- delete {skGuilds::Zabojstwa::%{_arg2}%}
- delete {skGuilds::Zycia::%{_arg2}%}
- set {_Gildia} to {_arg2}
- remove {_Gildia} from {skGuilds::Cuboids::*}
- delete {skGuilds::Cuboid::Large::%{_Gildia}%}
- set block at {skGuilds::Cuboid::Center::%{_Gildia}%} to air
- delete {skGuilds::Cuboid::Center::%{_Gildia}%}
- delete {skGuilds::DataZalozenia::%{_Gildia}%}
- "%{_arg2}%".Region.delete{};
- broadcast "{@tag} Gildia &e%{_arg3}% &8[&e%{_arg2}%&8] &7zostala rozwiazana przez &e%player%"
- stop
- if arg 1 is "opis" or "desc":
- if arg 2 is set:
- if length of arg 2 is greater than 70:
- send "{@tag} &cDlugosc opisu nie moze byc wieksza niz 70 liter!"
- stop
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
- send "{@tag} &cMusisz byc liderem gildii by zmieniac opis!"
- stop
- if arg 3 is set:
- send "{@tag} Nie mozesz podac wiecej niz &e1 argument&7,"
- send "{@tag} ale za to mozesz wpisac &e_ &7poniewaz ten znak"
- send "{@tag} zamieni sie w &espacje&7!"
- stop
- else:
- set {_opis} to "%coloured arg 2%"
- replace all "_" with " " in {_opis}
- set {skGuilds::Opis::%{skGuilds::inGuild::%player%}%} to {_opis}
- send "{@tag} Poprawnie zmieniles opis gildii na: &e%{_opis}%"
- arg 1 is "pvp" or "pv":
- arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {skGuilds::inGuild::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not set:
- send "{@tag} &cNie jestes liderem gildii!"
- stop
- if {skGuilds::PVP::%{skGuilds::inGuild::%player%}%} is true:
- send "{@tag} Ogien sojuszniczy gildii zostal &cwylaczony!"
- set {skGuilds::PVP::%{skGuilds::inGuild::%player%}%} to false
- stop
- else:
- send "{@tag} Ogien sojuszniczy gildii zostal &awlaczony!"
- set {skGuilds::PVP::%{skGuilds::inGuild::%player%}%} to true
- stop
- if arg 1 is "zapros" or "invite" or "inv":
- arg 2 is not set:
- send "{@tag} &cWpisz nick gracza!"
- stop
- if {skGuilds::inGuild::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- set {_player} to arg 2 parsed as player
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
- send "{@tag} &cJedynie lider moze zapraszac graczy!"
- stop
- if "%{skGuilds::inGuild::%player%}%" is "%{skGuilds::inGuild::%{_player}%}%":
- send "{@tag} &cTen gracz juz jest w naszej gildii!"
- stop
- if arg 2 is "%player%":
- send "{@tag} &cNie mozesz zaprosic samego siebie!"
- stop
- set {_g} to {skGuilds::inGuild::%player%}
- set {skGuilds::Zaproszenie::%{_player}%::%{skGuilds::inGuild::%player%}%} to true
- send "{@tag} &eZostales zaproszony do gildii &6%{_g}%&e!" to {_player}
- send "{@tag} &eDolacz, za pomoca komendy &6/g dolacz %{_g}%&e!" to {_player}
- send "{@tag} &eKoszt: &6{@guild.dolaczitem}" to {_player}
- send "{@tag} Wyslano zaproszenie do gracza &e%{_player}%&7!"
- wait 1 minute
- if {skGuilds::inGuild::%{_player}%} is not {skGuilds::inGuild::%player%}:
- set {skGuilds::Zaproszenie::%player%::%{skGuilds::inGuild::%player%}%} to false
- stop
- if arg 1 is "dolacz" or "join":
- if player doesn't have {@guild.dolaczitem}:
- send "{@tag} &cNie masz wymaganych przedmiotow!"
- send "{@tag} &cPotrzebujesz: &7{@guild.dolaczitem}"
- stop
- if {skGuilds::inGuild::%player%} is set:
- send "{@tag} &cJestes juz w gildii!"
- stop
- if arg 2 is not set:
- send "{@tag} &cPodaj nazwe gildii!"
- stop
- if {skGuilds::GildiaTag::%arg 2%} is true:
- if {skGuilds::Zaproszenie::%player%::%arg 2%} is true:
- set {skGuilds::inGuild::%player%} to "%arg 2%"
- add "%player%" to {skGuilds::Czlonkowie::%arg 2%::*}
- edit tag of the player to "&6[&e%arg 2%&6] &e"
- set {skGuilds::Zaproszenie::%player%::%arg 2%} to false
- broadcast "{@tag} Gracz &e%player% &7dolaczyl do gildii &e%arg 2%"
- remove {@guild.dolaczitem} from player
- stop
- else:
- send "{@tag} &cNie jestes zaproszony do tej gildii!"
- else:
- send "{@tag} &cTaka gildia nie istnieje!"
- if arg 1 is "opusc" or "leave":
- if arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {skGuilds::inGuild::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is player:
- send "{@tag} &cLider nie moze opuscic gildii!"
- stop
- else:
- broadcast "{@tag} Gracz &e%player% &7opuscil gildie &e%{skGuilds::inGuild::%player%}%"
- remove "%player%" from {skGuilds::Czlonkowie::%{skGuilds::inGuild::%player%}%::*}
- edit tag of player to ""
- clear {skGuilds::inGuild::%player%}
- stop
- if arg 1 is "wyrzuc" or "kick":
- if arg 2 is not set:
- send "{@tag} &cWpisz nick gracza!"
- stop
- if {skGuilds::inGuild::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
- send "{@tag} &cTylko lider gildii moze wyrzucac graczy!"
- stop
- if arg 2 is player:
- send "{@tag} &cNie mozesz wyrzucic siebie z gildii!"
- stop
- if "%{skGuilds::inGuild::%player%}%" is not "%{skGuilds::inGuild::%arg 2%}%":
- send "{@tag} &cGracz &4%arg 2% &cnie jest w twojej gildii!"
- stop
- else:
- broadcast "{@tag} Gracz &e%arg 2% &7zostal wyrzucony z gildii &e%{skGuilds::inGuild::%player%}%"
- edit tag of arg 2 parsed as player to ""
- remove "%arg 2%" from {skGuilds::Czlonkowie::%{skGuilds::inGuild::%player%}%::*}
- clear {skGuilds::inGuild::%arg 2%}
- stop
- if arg 1 is "powieksz" or "bigger":
- arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {skGuilds::inGuild::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
- send "{@tag} &cTylko lider gildii moze powiekszac teren!"
- stop
- set {_gildia} to {skGuilds::inGuild::%player%}
- set {_name} to {skGuilds::inGuild::%player%}
- set {_rg} to Region.getAt{location of player};
- if {_rg} is {skGuilds::inGuild::%player%}:
- if {skGuilds::%{_gildia}%::Powieksz::LVL::1} is false:
- if player doesn't have {@powieksz.item.1}:
- send "{@tag} &cNie masz wymaganych przedmiotow!"
- send "{@tag} &cPotrzebujesz: &7{@powieksz.item.1}"
- stop
- remove {@powieksz.item.1} from player
- set {skGuilds::Cuboid::Large::%{_Gildia}%} to 60
- "%{_name}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%} , {skGuilds::Cuboid::Large::%{_Gildia}%} };
- set {skGuilds::%{_gildia}%::Powieksz::LVL::1} to true
- set {skGuilds::%{_gildia}%::Powieksz::LVL::2} to false
- send "{@tag} &eTeren gildii zostal powiekszony!"
- send "{@tag} &eObecna wielkosc: &660 kratek"
- send "{@tag} &ePoziom: &61"
- stop
- if {skGuilds::%{_gildia}%::Powieksz::LVL::2} is false:
- if player doesn't have {@powieksz.item.2}:
- send "{@tag} &cNie masz wymaganych przedmiotow!"
- send "{@tag} &cPotrzebujesz: &7{@powieksz.item.2}"
- stop
- remove {@powieksz.item.2} from player
- set {skGuilds::Cuboid::Large::%{_Gildia}%} to 70
- "%{_name}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%} , {skGuilds::Cuboid::Large::%{_Gildia}%} };
- set {skGuilds::%{_gildia}%::Powieksz::LVL::2} to true
- set {skGuilds::%{_gildia}%::Powieksz::LVL::3} to false
- send "{@tag} &eTeren gildii zostal powiekszony!"
- send "{@tag} &eObecna wielkosc: &670 kratek"
- send "{@tag} &ePoziom: &62"
- stop
- if {skGuilds::%{_gildia}%::Powieksz::LVL::3} is false:
- if player doesn't have {@powieksz.item.3}:
- send "{@tag} &cNie masz wymaganych przedmiotow!"
- send "{@tag} &cPotrzebujesz: &7{@powieksz.item.3}"
- stop
- remove {@powieksz.item.3} from player
- set {skGuilds::Cuboid::Large::%{_Gildia}%} to 80
- "%{_name}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%} , {skGuilds::Cuboid::Large::%{_Gildia}%} };
- set {skGuilds::%{_gildia}%::Powieksz::LVL::3} to true
- set {skGuilds::%{_gildia}%::Powieksz::LVL::4} to false
- send "{@tag} &eTeren gildii zostal powiekszony!"
- send "{@tag} &eObecna wielkosc: &680 kratek"
- send "{@tag} &ePoziom: &63"
- stop
- if {skGuilds::%{_gildia}%::Powieksz::LVL::4} is false:
- if player doesn't have {@powieksz.item.4}:
- send "{@tag} &cNie masz wymaganych przedmiotow!"
- send "{@tag} &cPotrzebujesz: &7{@powieksz.item.4}"
- stop
- remove {@powieksz.item.4} from player
- set {skGuilds::Cuboid::Large::%{_Gildia}%} to 90
- "%{_name}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%} , {skGuilds::Cuboid::Large::%{_Gildia}%} };
- set {skGuilds::%{_gildia}%::Powieksz::LVL::4} to true
- set {skGuilds::%{_gildia}%::Powieksz::LVL::5} to false
- send "{@tag} &eTeren gildii zostal powiekszony!"
- send "{@tag} &eObecna wielkosc: &690 kratek"
- send "{@tag} &ePoziom: &64"
- stop
- if {skGuilds::%{_gildia}%::Powieksz::LVL::5} is false:
- if player doesn't have {@powieksz.item.5}:
- send "{@tag} &cNie masz wymaganych przedmiotow!"
- send "{@tag} &cPotrzebujesz: &7{@powieksz.item.5}"
- stop
- remove {@powieksz.item.5} from player
- set {skGuilds::Cuboid::Large::%{_Gildia}%} to 100
- "%{_name}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%} , {skGuilds::Cuboid::Large::%{_Gildia}%} };
- set {skGuilds::%{_gildia}%::Powieksz::LVL::5} to true
- send "{@tag} &eTeren gildii zostal powiekszony!"
- send "{@tag} &eObecna wielkosc: &6100 kratek"
- send "{@tag} &ePoziom: &65 (Ostatni)"
- stop
- else:
- send "{@tag} &cOsiagnales maksymalny rozmiar terenu! (p.5) (100 kratek)"
- else:
- send "{@tag} &cMusisz znajdowac sie na terenie gildii by to zrobic!"
- stop
- if arg 1 is "ranking" or "rank":
- if arg 2 is not set:
- send "&8╔═══════ &6%player% &8════════╗"
- send "&8╠&6 Ranking: &e%{skGuilds::Ranking::%player%}%"
- send "&8╠&6 Zabojstwa: &e%{skGuilds::Zabojstwa::%player%}%"
- send "&8╠&6 Zgony: &e%{skGuilds::Zgony::%player%}%"
- if {skGuilds::inGuild::%player%} is not set:
- send "&8╠&6 Gildia: &cBrak!"
- send "&8╠&6 Ostatnie wejscie: &e%{skGuilds::LastJoin::%player%}%"
- else:
- send "&8╠&6 Gildia: &e%{skGuilds::inGuild::%player%}%"
- send "&8╠&6 Ostatnie wejscie: &e%{skGuilds::LastJoin::%player%}%"
- send "&8╚════════════════════╝"
- stop
- if arg 2 is set:
- if arg 2 parsed as player is online:
- send "&8╔═══════ &6%arg 2% &8════════╗"
- send "&8╠&6 Ranking: &e%{skGuilds::Ranking::%arg 2%}%"
- send "&8╠&6 Zabojstwa: &e%{skGuilds::Zabojstwa::%arg 2%}%"
- send "&8╠&6 Zgony: &e%{skGuilds::Zgony::%arg 2%}%"
- if {skGuilds::inGuild::%arg 2%} is not set:
- send "&8╠&6 Gildia: &cBrak!"
- send "&8╠&6 Ostatnie wejscie: &e%{skGuilds::LastJoin::%arg 2%}%"
- else:
- send "&8╠&6 Gildia: &e%{skGuilds::inGuild::%arg 2%}%"
- send "&8╠&6 Ostatnie wejscie: &e%{skGuilds::LastJoin::%arg 2%}%"
- send "&8╚════════════════════╝"
- stop
- else:
- send "{@tag} &cTen gracz nie jest na serwerze!"
- stop
- if arg 1 is "war" or "wojna" or "bitwa":
- if arg 2 is not set:
- send "{@tag} &cPodaj z jaka gildia chcesz walczyc!"
- stop
- if arg 3 parsed as integer is not set:
- send "{@tag} &cPodaj godzine spotkania!"
- stop
- if arg 4 is not set:
- send "{@tag} &cPodaj dodatkowy tekst!"
- stop
- if {skGuilds::TagGildii::%arg 2%} is not set:
- send "{@tag} &cNie ma takiej gildii!"
- stop
- if {skGuilds::inGuild::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- if {skGuilds::War::%arg 2%} is {skGuilds::inGuild::%player%}:
- send "{@tag} &cTa gildia juz walczy z nami!"
- stop
- if {skGuilds::War::%arg 2%} is not set:
- set {skGuilds::War::%arg 2%} to {skGuilds::inGuild::%player%}
- broadcast "{@tag} &eGildia &6%{skGuilds::inGuild::%player%}%&e wyzwala gildie &6%arg 2% &ena wojne!"
- broadcast "{@tag} &eDodatkowe informacje: &6%arg 4%"
- broadcast "{@tag} &eMiejsce: &6%location of player%"
- broadcast "{@tag} &eGodzina: &6%arg 3%:00"
- loop {skGuilds::Czlonkowie::%arg 2%::*}:
- send "{@tag} &4&lTwoja gildia zostala wyzwana na wojne!" to loop-value
- stop
- wait 25 minutes
- delete {skGuilds::War::%arg 2%}
- broadcast "&cBitwa pomiedzy &4%{skGuilds::inGuild::%player%}% &ca &4%arg 2%&c dobiegla konca!"
- else:
- send "{@tag} &cTa gildia juz jest z kims/z nami w walce!"
- if arg 1 is "efekt" or "effect":
- open chest with 3 rows named "&cEfekty:" to player
- wait 1 tick
- format slot 0 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 1 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 2 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 3 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 4 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 5 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 6 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 7 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 8 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 9 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 10 of player with 1 of potion of:8237 named "&9Oddychanie pod woda" with lore "&eCena: {@potion.shop.waterbreath}" to run "potionshop %player% 1"
- format slot 11 of player with 1 of potion of:8227 named "&4Ochrona przed ogniem" with lore "&eCena: {@potion.shop.fireresistance}" to run "potionshop %player% 2"
- format slot 12 of player with 1 of potion of:8238 named "&bNiewidzialnosc" with lore "&eCena: {@potion.shop.invisible}" to run "potionshop %player% 3"
- format slot 13 of player with 1 of potion of:8201 named "&4Sila" with lore "&eCena: {@potion.shop.strength}" to run "potionshop %player% 4"
- format slot 14 of player with 1 of potion of:8194 named "&bSzybkosc" with lore "&eCena: {@potion.shop.speed}" to run "potionshop %player% 5"
- format slot 15 of player with 1 of potion of:8193 named "&dRegeneracja Zycia" with lore "&eCena: {@potion.shop.regeneration}" to run "potionshop %player% 6"
- format slot 16 of player with 1 of potion of:8230 named "&1Widzenie w ciemnosci" with lore "&eCena: {@potion.shop.nightvision}" to run "potionshop %player% 7"
- format slot 17 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 18 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 19 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 20 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 21 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 22 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 23 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 24 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 25 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 26 of player with 1 of white stained glass pane named "&f" to be unstealable
- format slot 27 of player with 1 of white stained glass pane named "&f" to be unstealable
- stop
- if arg 1 is "pomoc" or "pomocy" or "helpme":
- if arg 2 is not set:
- send "{@tag} &cMusisz podac z jaka gildia walczysz!"
- stop
- if {skGuilds::Wait::%player%} is not set:
- broadcast "{@tag} &6Gracz &e%player% &6potrzebuje pomocy!"
- broadcast "{@tag} &6Walczy z gildia: &e%arg 2%"
- broadcast "{@tag} &6Jego koordynaty: &e%location of player%"
- set {skGuilds::Wait::%player%} to true
- wait 3 minutes
- delete {skGuilds::Wait::%player%}
- send "{@tag} &cJuz mozesz zglosic sie o pomoc!"
- stop
- else:
- send "{@tag} &cZglaszac pomoc mozna co 3 minuty!" to player
- stop
- if arg 1 is "1":
- send "&8============ {@tag} &8============"
- send "&e/g zaloz &8- &7Zaklada gildie."
- send "&e/g zapros &8- &7Zaprasza do gildii."
- send "&e/g dolacz &8- &7Dolacza do gildii."
- send "&e/g wyrzuc &8- &7Wyrzuca z gildii."
- send "&e/g baza &8- &7Teleportuje do bazy."
- send "&e/g ustawbaze &8- &7Zaklada baze gildii."
- send "&e/g info &8- &7Informacje o gildii."
- send "&e/g ranking &8- &7Ranking graczy."
- send "&8============ 1/2 &8============"
- if arg 1 is "2":
- send "&8============ {@tag} &8============"
- send "&e/g lista &8- &7Lista gildii."
- send "&e/g pvp &8- &7Zmienia ogien sojuszniczy."
- send "&e/g opis &8- &7Zmienia opis gildii."
- send "&e/g usun &8- &7Usuwa gildie."
- send "&e/g powieksz &8- &7Powieksza teren gildii."
- send "&e/guildchat &8- &7Chat gildii."
- send "&e/top10 &8- &7Top 10 graczy"
- send "&e/gtop10 &8- &7Top 10 gildii"
- if player has permission "skguilds.admin" or "skguilds.*":
- send "&4/ga resetuj &8- &cResetuje wszystkie zmienne."
- send "&4/ga ustawspawn &8- &cUstawia globalny spawn."
- send "&4/ga przeladuj &8- &cPrzeladowywuje gildie."
- send "&4/ga zbanuj &8- &cBanuje gildie na zawsze."
- send "&8============ 2/2 &8============"
- else:
- send "&8============ 2/2 &8============"
- if arg 1 is not set:
- send "{@tag} &cNie znaleziono komendy!"
- send "{@tag} &cWpisz &e/g 1/2 &caby dowiedziec sie wiecej!"
- stop
- # ====================== GADMIN ========================
- command /gadmin [<text>] [<text>] [<text>]:
- aliases: ga, guildadmin, gildiaadmin, gildiadmin
- trigger:
- if player has permission "skguilds.admin" or "skguilds.*":
- if arg 1 is "przeladuj" or "reload":
- send "{@tag} &ePrzeladowywanie pliku..."
- execute console command "/sk reload %script%"
- wait 10 ticks
- send "{@tag} &ePomyslnie przeladowano plik!"
- if arg 1 is "setspawn" or "ustawspawn":
- set {skGuilds::Spawn} to location of player
- send "{@tag} Pomyslnie ustawiles globalny spawn gildii!"
- stop
- if arg 1 is "clear" or "czysc" or "resetuj" or "reset":
- if arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- if arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- else:
- send "{@tag} Resetowanie &cwszystkich &7danych... zaczekaj chwile."
- wait 2 seconds
- clear {skGuilds::*}
- delete {skGuilds::*}
- kick all players due to "&4[skGuilds] &cResetowanie wszystkich danych skryptu..."
- stop
- if arg 1 is "usun" or "rozwiaz" or "zbanuj":
- if arg 2 is not set:
- send "{@tag} &cMusisz podac gildie!"
- stop
- if arg 3 is not set:
- send "{@tag} &cMusisz podac powod!"
- stop
- if {skGuilds::GildiaTag::%arg 2%} is not set:
- send "{@tag} &cNie ma takiej gildii!"
- stop
- if arg 2 is set:
- if arg 3 is set:
- set {_l} to {skGuilds::Lider::%arg 2%}
- set {_arg2} to arg 2
- set {_arg3} to {skGuilds::NazwaGildii::%{_arg2}%}
- edit tag of {_l} to ""
- delete {skGuilds::GildiaTag::%{_arg2}%}
- delete {skGuilds::GildiaNazwa::%{_arg3}%}
- delete {skGuilds::TagGildii::%{_arg2}%}
- clear {skGuilds::inGuild::%{_l}%}
- remove {_arg3} from {skGuilds::Gildie::*}
- remove {_arg2} from {skGuilds::Tagi::*}
- delete {skGuilds::Czlonkowie::%{_arg2}%::*}
- delete {skGuilds::PVP::%{_arg2}%}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::1}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::2}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::3}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::4}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::5}
- delete {skGuilds::Opis::%{_arg2}%}
- delete {skGuilds::Lider::%{_arg2}%}
- delete {skGuilds::Zycia::%{_arg2}%}
- set {skGuilds::GuildPoints::%{_arg2}%} to "Brak!"
- delete {skGuilds::Baza::%{_arg2}%}
- delete {skGuilds::Polozenie::%{_arg2}%}
- delete {skGuilds::PodbiteGildie::%{_arg2}%}
- delete {skGuilds::Podbicia::%{_arg2}%}
- delete {skGuilds::Zabojstwa::%{_arg2}%}
- set {_Gildia} to {_arg2}
- remove {_Gildia} from {skGuilds::Cuboids::*}
- delete {skGuilds::Cuboid::Large::%{_Gildia}%}
- set block at {skGuilds::Cuboid::Center::%{_Gildia}%} to air
- delete {skGuilds::Cuboid::Center::%{_Gildia}%}
- delete {skGuilds::DataZalozenia::%{_Gildia}%}
- "%{_arg2}%".Region.delete{};
- broadcast ""
- broadcast "&4Gildia %arg 2% zostala zbanowana!"
- broadcast "&4Powod: &c%arg 3%"
- broadcast ""
- send "{@tag} &cPoprawnie zbanowales/usunales gildie!"
- else:
- send "{@tag} &cNie masz do tego uprawnien!"
- # ====================== SOJUSZ ===========================
- command /sojusz [<text>] [<text>]:
- trigger:
- if {skGuilds::inGuild::%player%} is set:
- if arg 1 is not set:
- send "&8============ {@tag} &8============"
- send "&e/sojusz zapros &8- &7Wysyla zaproszenie do sojuszu"
- send "&e/sojusz akceptuj &8- &7Akceptuje zaproszenie do sojuszu"
- send "&e/sojusz zerwij &8- &7Zrywa sojusz z gildia"
- send "&8============ {@tag} &8============"
- stop
- if arg 1 is "zapros" or "invite" or "inv":
- if arg 2 is not set:
- send "{@tag} &cMusisz podac tag gildii!"
- stop
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not set:
- send "{@tag} &cNie jestes liderem zadnej gildii!"
- stop
- if {skGuilds::GildiaTag::%arg 2%} is not set:
- send "{@tag} &cNie ma takiej gildii!"
- stop
- if {skGuilds::ZDS::%arg 2%} is true:
- send "{@tag} &cTa gildia jest juz zaproszona do sojuszu!"
- stop
- if {skGuilds::Sojusz::%{skGuilds::inGuild::%player%}%} is "%arg 2%":
- send "{@tag} &cTa gildia juz jest z wami w sojuszu!"
- stop
- if {skGuilds::Lider::%arg 2%} parsed as player is offline:
- send "{@tag} &cLider gildii %arg 2% nie jest online!"
- stop
- if arg 2 is {skGuilds::inGuild::%player%}:
- send "{@tag} &cNie mozesz zawrzec sojuszu z wlasna gildia!"
- stop
- if {skGuilds::inGuild::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- set {_g} to {skGuilds::inGuild::%player%}
- set {_lider} to {skGuilds::Lider::%arg 2%} parsed as player
- send "{@tag} Wyslales zaproszenie do sojuszu, dla gildii &e%arg 2%"
- send "{@tag} &eTwoja gildia zostala zaproszona do sojuszu!" to {_lider}
- send "{@tag} &eAkceptuj komenda &6/sojusz akceptuj %{_g}%&e!" to {_lider}
- set {skGuilds::ZDS::%arg 2%} to true
- wait 120 second
- set {skGuilds::ZDS::%arg 2%} to false
- stop
- if arg 1 is "akceptuj":
- if arg 2 is not set:
- send "{@tag} &cMusisz podac tag gildii!"
- stop
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not set:
- send "{@tag} &cNie jestes liderem zadnej gildii!"
- stop
- if {skGuilds::GildiaTag::%arg 2%} is not set:
- send "{@tag} &cNie ma takiej gildii!"
- stop
- if {skGuilds::ZDS::%arg 2%} is false:
- send "{@tag} &cNie masz zaproszenia od tej gildii!"
- stop
- if {skGuilds::Sojusz::%{skGuilds::inGuild::%player%}%} is "%arg 2%":
- send "{@tag} &cTa gildia jest juz z wami w sojuszu!"
- stop
- set {_nick} to {skGuilds::Lider::%arg 2%} parsed as player
- set {_g} to {skGuilds::inGuild::%player%}
- set {skGuilds::Sojusz::%{_g}%} to "%arg 2%"
- delete {skGuilds::ZDS::%arg 2%}
- add "%arg 2%" to {skGuilds::Sojusz::%{_g}%::*}
- add "%{_g}%" to {skGuilds::Sojusz::%arg 2%::*}
- broadcast "{@tag} &7Gildia &e%{_g}% &7zawarla sojusz z gildia &e%arg 2%"
- if arg 1 is "zerwij":
- if arg 2 is not set:
- send "{@tag} &cMusisz podac tag gildii!"
- stop
- if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not set:
- send "{@tag} &cNie jestes liderem zadnej gildii!"
- stop
- if {skGuilds::GildiaTag::%arg 2%} is not set:
- send "{@tag} &cTaka gildia nie istnieje!"
- stop
- if {skGuilds::Sojusz::%arg 2%} is not set:
- send "{@tag} &cNie jestes w sojuszu z ta gildia!"
- stop
- set {_nick} to {skGuilds::Lider::%arg 2%} parsed as player
- delete {skGuilds::Sojusz::%arg 2%}
- remove "%arg 2%" from {skGuilds::Sojusz::%{_g}%::*}
- remove "%{_tag}%" from {skGuilds::Sojusz::%arg 2%::*}
- broadcast "{@tag} Gildia &e%{skGuilds::inGuild::%player%}% &7zerwala sojusz z gildia &e%arg 2%"
- else:
- send "{@tag} &cNie masz zadnej gildii!"
- # ====================== CHAT GILDYJNY ===========================
- command /gchat [<text>]:
- aliases: c, chat, gchat, gc
- trigger:
- if arg 1 is not set:
- send "{@tag} &cMusisz podac wiadomosc!"
- stop
- if {skGuilds::inGuild::%player%} is set:
- set {_g} to {skGuilds::inGuild::%player%}
- if {skGuilds::Lider::%{_g}%} is player:
- loop {skGuilds::Czlonkowie::%{_g}%::*}:
- loop all players:
- loop-value is loop-player:
- set {_guildchatlider} to {guildchat.lider}
- replace all "{TAG}" with "%{skGuilds::inGuild::%player%}%" in {_guildchatlider}
- replace all "{NICK}" with "%player%" in {_guildchatlider}
- replace all "{MSG}" with "%arg 1%" in {_guildchatlider}
- send "%{_guildchatlider}%" to loop-player
- stop
- else:
- loop {skGuilds::Czlonkowie::%{_g}%::*}:
- loop all players:
- loop-value is loop-player:
- set {_guildchatnormal} to {guildchat.normal}
- replace all "{TAG}" with "%{skGuilds::inGuild::%player%}%" in {_guildchatnormal}
- replace all "{NICK}" with "%player%" in {_guildchatnormal}
- replace all "{MSG}" with "%arg 1%" in {_guildchatnormal}
- send "%{_guildchatnormal}%" to loop-player
- stop
- else:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- on load:
- set {guildchat.lider} to "{@chat.format.lider}"
- set {guildchat.normal} to "{@chat.format.normal}"
- # ====================== TOP 10 - Pomógł PiratJaskiniowy. Dzięki! ===========================
- command /top10:
- trigger:
- send "{@tag} &8{ &cTOP 10 GRACZY &8}"
- loop {skGuilds::Ranking::*}:
- set {_lista::%loop-index%} to loop-value
- set {_num} to size of {_lista::*}
- loop {_num} times:
- loop {_lista::*}:
- {_value.%loop-number%} is not set:
- set {_value.%loop-number%} to loop-value
- set {_index.%loop-number%} to loop-index
- loop-value is more than {_value.%loop-number%}:
- set {_value.%loop-number%} to loop-value
- set {_index.%loop-number%} to loop-index
- delete {_lista::%{_index.%loop-number%}%}
- loop 10 times:
- if loop-number is less than or equal to {_num}:
- send "&6%loop-number%. &f%{skGuilds::Nick::%{_index.%loop-number%}%}% &8(&e%{_value.%loop-number%}%&8)"
- command /gtop10:
- trigger:
- send "{@tag} &8{ &cTOP 10 GILDII &8}"
- loop {skGuilds::GuildPoints::*}:
- set {_lista::%loop-index%} to loop-value
- set {_num} to size of {_lista::*}
- loop {_num} times:
- loop {_lista::*}:
- {_value.%loop-number%} is not set:
- set {_value.%loop-number%} to loop-value
- set {_index.%loop-number%} to loop-index
- loop-value is more than {_value.%loop-number%}:
- set {_value.%loop-number%} to loop-value
- set {_index.%loop-number%} to loop-index
- delete {_lista::%{_index.%loop-number%}%}
- loop 10 times:
- if loop-number is less than or equal to {_num}:
- send "&6%loop-number%. &f%{skGuilds::TagGildii::%{_index.%loop-number%}%}% &8(&e%{_value.%loop-number%}%&8)"
- every 1 second:
- if {@tab} is true:
- loop {skGuilds::GuildPoints::*}:
- set {_lista::%loop-index%} to loop-value
- set {_num} to size of {_lista::*}
- loop {_num} times:
- loop {_lista::*}:
- {_value.%loop-number%} is not set:
- set {_value.%loop-number%} to loop-value
- set {_index.%loop-number%} to loop-index
- loop-value is more than {_value.%loop-number%}:
- set {_value.%loop-number%} to loop-value
- set {_index.%loop-number%} to loop-index
- delete {_lista::%{_index.%loop-number%}%}
- loop 10 times:
- if loop-number is less than or equal to {_num}:
- set {g.tab.%loop-number%} to "&6%loop-number%. &f%{skGuilds::TagGildii::%{_index.%loop-number%}%}%"
- else:
- set {g.tab.%loop-number%} to "&6%loop-number%. "
- every 1 second:
- if {@tab} is true:
- loop {skGuilds::Ranking::*}:
- set {_lista::%loop-index%} to loop-value
- set {_num} to size of {_lista::*}
- loop {_num} times:
- loop {_lista::*}:
- {_value.%loop-number%} is not set:
- set {_value.%loop-number%} to loop-value
- set {_index.%loop-number%} to loop-index
- loop-value is more than {_value.%loop-number%}:
- set {_value.%loop-number%} to loop-value
- set {_index.%loop-number%} to loop-index
- delete {_lista::%{_index.%loop-number%}%}
- loop 10 times:
- if loop-number is less than or equal to {_num}:
- set {p.tab.%loop-number%} to "&6%loop-number%. &f%{skGuilds::Nick::%{_index.%loop-number%}%}%"
- else:
- set {p.tab.%loop-number%} to "&6%loop-number%. "
- # ====================== TAB ===========================
- on join:
- set {_Tab} to "tab"
- set {_gt} to {skGuilds::inGuild::%player%}
- "{_Tab}".Tab.set{1, "&8&l <<<<<<<<<<<"};
- "{_Tab}".Tab.set{2, "&8&l<><><><><><>"};
- "{_Tab}".Tab.set{3, "&8&l>>>>>>>>>>>"};
- "{_Tab}".Tab.set{4, "&e&lTOP GRACZY"};
- "{_Tab}".Tab.set{5, "&e&l INFORMACJE"};
- "{_Tab}".Tab.set{6, "&e&lTOP GILDII"};
- "{_Tab}".Tab.set{7, "&8&l<<<<<<<<<<<<"};
- "{_Tab}".Tab.set{8, "&8&l <><><><><>"};
- "{_Tab}".Tab.set{9, "&8&l>>>>>>>>>>>>"};
- "{_Tab}".Tab.set{10, ""};
- "{_Tab}".Tab.set{11, ""};
- "{_Tab}".Tab.set{12, ""};
- "{_Tab}".Tab.set{13, "%{p.tab.1}%"};
- "{_Tab}".Tab.set{14, "&3Twoj nick:"};
- "{_Tab}".Tab.set{15, "%{g.tab.1}%&1"};
- "{_Tab}".Tab.set{16, "%{p.tab.2}%"};
- "{_Tab}".Tab.set{17, "&b%player%"};
- "{_Tab}".Tab.set{18, "%{g.tab.2}%&2"};
- "{_Tab}".Tab.set{19, "%{p.tab.3}%"};
- "{_Tab}".Tab.set{20, ""};
- "{_Tab}".Tab.set{21, "%{g.tab.3}%&3"};
- "{_Tab}".Tab.set{22, "%{p.tab.4}%"};
- "{_Tab}".Tab.set{23, "&3Punkty:"};
- "{_Tab}".Tab.set{24, "%{g.tab.4}%&4"};
- "{_Tab}".Tab.set{25, "%{p.tab.5}%"};
- "{_Tab}".Tab.set{26, "&b%{skGuilds::Ranking::%player%}%"};
- "{_Tab}".Tab.set{27, "%{g.tab.5}%&5"};
- "{_Tab}".Tab.set{28, "%{p.tab.6}%"};
- "{_Tab}".Tab.set{29, ""};
- "{_Tab}".Tab.set{30, "%{g.tab.6}%&6"};
- "{_Tab}".Tab.set{31, "%{p.tab.7}%"};
- "{_Tab}".Tab.set{32, "&3Zgony:"};
- "{_Tab}".Tab.set{33, "%{g.tab.7}%&7"};
- "{_Tab}".Tab.set{34, "%{p.tab.8}%"};
- "{_Tab}".Tab.set{35, "&b%{skGuilds::Zgony::%player%}%"};
- "{_Tab}".Tab.set{36, "%{g.tab.8}%&8"};
- "{_Tab}".Tab.set{37, "%{p.tab.9}%"};
- "{_Tab}".Tab.set{38, ""};
- "{_Tab}".Tab.set{39, "%{g.tab.9}%&9"};
- "{_Tab}".Tab.set{40, "%{p.tab.10}%"};
- "{_Tab}".Tab.set{41, "&3Zabojstwa:"};
- "{_Tab}".Tab.set{42, "%{g.tab.10}%&0"};
- "{_Tab}".Tab.set{43, ""};
- "{_Tab}".Tab.set{44, "&b%{skGuilds::Zabojstwa::%player%}%"};
- "{_Tab}".Tab.set{45, ""};
- "{_Tab}".Tab.set{46, "{@tab.info1naglowek}"};
- "{_Tab}".Tab.set{47, ""};
- "{_Tab}".Tab.set{48, "{@tab.info2naglowek}"};
- "{_Tab}".Tab.set{49, "{@tab.info1}"};
- "{_Tab}".Tab.set{50, "&3Aktualna gildia:"};
- "{_Tab}".Tab.set{51, "{@tab.info2}"};
- "{_Tab}".Tab.set{52, ""};
- if {skGuilds::inGuild::%player%} is set:
- "{_Tab}".Tab.set{53, "&b%{skGuilds::inGuild::%player%}%"};
- else:
- "{_Tab}".Tab.set{53, "&bBrak!"};
- "{_Tab}".Tab.set{54, ""};
- "{_Tab}".Tab.set{55, ""};
- "{_Tab}".Tab.set{56, ""};
- "{_Tab}".Tab.set{57, ""};
- "{_Tab}".Tab.set{58, ""};
- "{_Tab}".Tab.set{59, ""};
- "{_Tab}".Tab.set{60, ""};
- "{_Tab}".Tab.send{player};
- command /x [<text>]:
- trigger:
- send "&c%{skGuilds::GuildPoints::%arg 1%}%"
- send "&e%{skGuilds::Ranking::%player%}%"
- # ====================== RELOG ==========================
- on join:
- if {skGuilds::Wait::%player%} is set:
- delete {skGuilds::Wait::%player%}
- stop
- # ====================== LADOWANIE CUBOIDOW I CHATU ===========================
- on load:
- set {guild.chat} to "{@guild.chat}"
- loop {skGuilds::Cuboids::*}:
- "%loop-value%".Region.selectLS{{skGuilds::Cuboid::Center::%loop-value%}, {skGuilds::Cuboid::Large::%loop-value%}};
- # ====================== KLIKANIE / NISZCZENIE BLOKU GILDYJNEGO ===========================
- on rightclick:
- if clicked block is {@guild.item}:
- set {_region} to Region.getAt{location of player};
- if {_region} is not set:
- stop
- if {_region} is set:
- cancel event
- loop {skGuilds::Czlonkowie::%{_region}%::*}:
- if loop-value is not player:
- if {skGuilds::inGuild::%player%} is set:
- if {skGuilds::JuzPodbito::%player%::%{_region}%} is not set:
- if {skGuilds::Zycia::%{_region}%} is 3:
- set {skGuilds::Zycia::%{_region}%} to 2
- set {skGuilds::JuzPodbito::%player%::%{_region}%} to true
- send "{@tag} Podbiles gildie &e%{_region}%&7! Pozostalo jej &6%{skGuilds::Zycia::%{_region}%}%&7 zyc!"
- stop
- if {skGuilds::Zycia::%{_region}%} is 2:
- set {skGuilds::Zycia::%{_region}%} to 1
- set {skGuilds::JuzPodbito::%player%::%{_region}%} to true
- send "{@tag} Podbiles gildie &e%{_region}%&7! Pozostalo jej &6%{skGuilds::Zycia::%{_region}%}%&7 zyc!"
- stop
- if {skGuilds::Zycia::%{_region}%} is 1:
- set {skGuilds::JuzPodbito::%player%::%{_region}%} to true
- set {_l} to {skGuilds::Lider::%{_region}%} parsed as player
- set {_arg2} to {_region}
- set {_arg3} to {skGuilds::NazwaGildii::%{_arg2}%}
- edit tag of {_l} to ""
- delete {skGuilds::GildiaTag::%{_arg2}%}
- delete {skGuilds::GildiaNazwa::%{_arg3}%}
- delete {skGuilds::TagGildii::%{_arg2}%}
- clear {skGuilds::inGuild::%loop-value%}
- remove {_arg3} from {skGuilds::Gildie::*}
- remove {_arg2} from {skGuilds::Tagi::*}
- delete {skGuilds::Czlonkowie::%{_arg2}%::*}
- delete {skGuilds::PVP::%{_arg2}%}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::1}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::2}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::3}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::4}
- delete {skGuilds::%{_arg2}%::Powieksz::LVL::5}
- delete {skGuilds::Opis::%{_arg2}%}
- delete {skGuilds::Lider::%{_arg2}%}
- set {skGuilds::GuildPoints::%{_arg2}%} to "Brak!"
- delete {skGuilds::Baza::%{_arg2}%}
- delete {skGuilds::Polozenie::%{_arg2}%}
- delete {skGuilds::PodbiteGildie::%{_arg2}%}
- delete {skGuilds::Podbicia::%{_arg2}%}
- delete {skGuilds::Zabojstwa::%{_arg2}%}
- set {_Gildia} to {_arg2}
- remove {_Gildia} from {skGuilds::Cuboids::*}
- delete {skGuilds::Cuboid::Large::%{_Gildia}%}
- set block at {skGuilds::Cuboid::Center::%{_Gildia}%} to air
- delete {skGuilds::Cuboid::Center::%{_Gildia}%}
- delete {skGuilds::DataZalozenia::%{_Gildia}%}
- "%{_arg2}%".Region.delete{};
- broadcast "{@tag} &3Gildia &b%{_arg3}% [%{_region}%] &3zostala podbita przez &b%player%&3!"
- stop
- else:
- send "{@tag} &cJuz podbiles ta gildie!"
- else:
- send "{@tag} &cMusisz byc w gildii!"
- else:
- send "{@tag} &cNie mozesz podbic wlasnej gildii!"
- command /h:
- trigger:
- send "%{skGuilds::Zycia::VOOT}%"
- on leftclick:
- if clicked block is {@guild.item}:
- cancel event
- on break of {@guild.item}:
- cancel event
- # ====================== WIADOMOSCI PO WEJSCIU DO GILDII + INTRUZ ===========================
- on anymove:
- if {skGuilds::%player%::Gildia} is not set:
- set {skGuilds::%player%::Gildia} to "&cBRAK DANYCH :("
- if Region.getAt{location of player} is not set:
- set {_guild} to "&cBRAK DANYCH :("
- else:
- set {_guild} to Region.getAt{location of player}
- if {_guild} is not {skGuilds::%player%::Gildia}:
- if {_guild} is "None" or "<none>" or "&cBRAK DANYCH :(":
- set {_lider} to {skGuilds::Lider::%{skGuilds::%player%::Gildia}%}
- send "{@tag} Wyszedles z terenu gildii &e%{skGuilds::%player%::Gildia}%" to player
- send "{@tag} &4Intruz na terenie gildii! &c(%player%)" to {_lider}
- else:
- set {_lider} to {skGuilds::Lider::%{_guild}%}
- send "{@tag} Wszedles na teren gildii &e%{_guild}%" to player
- send "{@tag} &4Intruz na terenie gildii! &c(%player%)" to {_lider}
- set {skGuilds::%player%::Gildia} to {_guild}
- # ====================== NISZCZENIE OBSYDIANU :) ===========================
- # COMING SOON
- # ====================== CHAT, CZYLI COS, CZYM MOGE SIE POCHWALIC :) ===========================
- on chat:
- set {_chat} to {guild.chat}
- {skGuilds::inGuild::%player%} is set:
- set {_tag} to {skGuilds::inGuild::%player%}
- {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is set:
- set {_tag} to {skGuilds::inGuild::%player%}
- if {_tag} is not set:
- replace all "{RANK}" with "%{skGuilds::Ranking::%player%}%" in {_chat}
- replace all "{NICK}" with "%player%" in {_chat}
- replace all "{MSG}" with "%message%" in {_chat}
- replace all "{TAG}" with "" in {_chat}
- replace all "Â" with "" in {_chat}
- broadcast "%{_chat}%"
- cancel event
- stop
- replace all "{RANK}" with "%{skGuilds::Ranking::%player%}%" in {_chat}
- replace all "{NICK}" with "%player%" in {_chat}
- replace all "{MSG}" with "%message%" in {_chat}
- replace all "Â" with "" in {_chat}
- replace all "{TAG}" with "{@guild.tagformat}" in {_chat}
- broadcast "%{_chat}%"
- cancel event
- stop
- # ====================== NISZCZENIE KLOCKOW ===========================
- on break:
- if player doesn't have permission "skguilds.admin":
- if location of event-block is in any region:
- set {_region} to Region.getAt{location of player};
- if "%{_region}%" is "%{gildie::wGildii::%name of player%}%":
- stop
- else:
- cancel event
- send "&cTo jest teren innej gildi!"
- stop
- # ====================== STAWIANIE KLOCKOW ===========================
- on place:
- if player doesn't have permission "skguilds.admin":
- if location of event-block is in any region:
- set {_region} to Region.getAt{location of player};
- if "%{_region}%" is "%{gildie::wGildii::%name of player%}%":
- stop
- else:
- cancel event
- send "&cTo jest teren innej gildi!"
- stop
- # ====================== STONIARKA W KILOFIE (ADDON) ===========================
- on join:
- set {SKSP::Mode::%player%} to true
- on rightclick with pickaxe:
- if player has permission "skstonepick.use":
- if {SKSP::Mode::%player%} is true:
- if {SKSP::Cooldown::%player%} is false:
- set {SKSP::Cooldown::%player%} to true
- set {SKSP::Mode::%player%} to false
- send "{@tag} Wlaczyles tryb: &aSTONE"
- wait 1 second
- set {SKSP::Cooldown::%player%} to false
- else:
- if {SKSP::Cooldown::%player%} is false:
- set {SKSP::Cooldown::%player%} to true
- set {SKSP::Mode::%player%} to true
- send "{@tag} Wlaczyles tryb: &cNORMAL"
- wait 1 second
- set {SKSP::Cooldown::%player%} to false
- on mine a stone:
- if {SKSP::Mode::%player%} is false:
- wait 3 second
- set event-block to stone
- # ====================== PVP W GILDII ===========================
- on damage of player:
- if {skGuilds::inGuild::%attacker%} is set:
- if {skGuilds::inGuild::%victim%} is set:
- if {skGuilds::Czlonkowie::%{skGuilds::inGuild::%attacker%}%::*} contain victim:
- if {skGuilds::PVP::%{skGuilds::inGuild::%attacker%}%} is false:
- cancel event
- send "{@tag} &cNie mozesz uderzac graczy z gildii!" to attacker
- stop
- if {skGuilds::Czlonkowie::%{skGuilds::inGuild::%victim%}%::*} contain attacker:
- if {skGuilds::PVP::%{skGuilds::inGuild::%victim%}%} is false:
- cancel event
- send "{@tag} &cNie mozesz uderzac graczy z gildii!" to attacker
- stop
- # ====================== RANKING / ON DEATH ===========================
- on death:
- if victim is a player:
- if attacker is a player:
- add 1 to {skGuilds::Zabojstwa::%attacker%}
- add 1 to {skGuilds::Zgony::%victim%}
- set {_agt} to {skGuilds::inGuild::%attacker%}
- set {_vgt} to {skGuilds::inGuild::%victim%}
- if {skGuilds::inGuild::%victim%} is set:
- if {skGuilds::inGuild::%attacker%} is set:
- set {_pktattacker} to random integer between 1 and 100
- add {_pktattacker} to {skGuilds::GuildPoints::%{_agt}%}
- add {_pktattacker} to {skGuilds::Ranking::%attacker%}
- set {_pktvictim} to random integer between -1 and -50
- add {_pktvictim} to {skGuilds::GuildPoints::%{_vgt}%}
- add {_pktvictim} to {skGuilds::Ranking::%victim%}
- set death message to "&cGracz %victim% [%{_vgt}%] zostal zabity przez %attacker% [%{_agt}%] (%{_pktattacker}%)"
- stop
- stop
- if {skGuilds::inGuild::%attacker%} is set:
- set {_pktattacker} to random integer between 1 and 100
- add {_pktattacker} to {skGuilds::GuildPoints::%{_agt}%}
- add {_pktattacker} to {skGuilds::Ranking::%attacker%}
- set {_pktvictim} to random integer between -1 and -50
- add {_pktvictim} to {skGuilds::Ranking::%victim%}
- set death message to "&cGracz %victim% zostal zabity przez %attacker% [%{_agt}%] (%{_pktattacker}%)"
- stop
- if {skGuilds::inGuild::%victim%} is set:
- set {_pktvictim} to random integer between -1 and -50
- add {_pktvictim} to {skGuilds::GuildPoints::%{_vgt}%}
- add {_pktvictim} to {skGuilds::Ranking::%victim%}
- set {_pktattacker} to random integer between 1 and 100
- add {_pktattacker} to {skGuilds::Ranking::%attacker%}
- set death message to "&cGracz %victim% [%{_vgt}%] zostal zabity przez %attacker% (%{_pktattacker}%)"
- stop
- else:
- set {_pktvictim} to random integer between -1 and -50
- add {_pktvictim} to {skGuilds::Ranking::%victim%}
- set {_pktattacker} to random integer between 1 and 100
- add {_pktattacker} to {skGuilds::Ranking::%attacker%}
- set death message to "&cGracz %victim% zostal zabity przez %attacker% (%{_pktattacker}%)"
- else:
- 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:
- strike lightning effect at the player
- add 1 to {skGuilds::Zgony::%victim%}
- add -30 to {skGuilds::GuildPoints::%{_vgt}%}
- add -30 to {skGuilds::Ranking::%victim%}
- set death message to "{@tag} %victim% umarl..."
- else:
- strike lightning effect at the player
- add 1 to {skGuilds::Zgony::%victim%}
- add -30 to {skGuilds::GuildPoints::%{_vgt}%}
- add -30 to {skGuilds::Ranking::%victim%}
- set death message to "{@tag} %victim% umarl..."
- # ====================== POTION SHOP ===========================
- command /potionshop [<player>] [<text>]:
- executable by: console
- trigger:
- if arg 1 is set:
- if arg 2 is "1":
- if player-arg has {@potion.shop.waterbreath}:
- remove {@potion.shop.waterbreath} from the player-arg
- apply water breathing to player-arg for 3 minutes
- send "{@tag} Kupiles efekt: &9Oddychanie pod woda" to player-arg
- else:
- send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
- stop
- if arg 2 is "2":
- if player-arg has {@potion.shop.fireresistance}:
- remove {@potion.shop.fireresistance} from the player-arg
- apply fire resistance to player-arg for 3 minutes
- send "{@tag} Kupiles efekt: &4Ochrona przed ogniem" to player-arg
- else:
- send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
- stop
- if arg 2 is "3":
- if player-arg has {@potion.shop.invisible}:
- remove {@potion.shop.invisible} from the player-arg
- apply invisibility to player-arg for 3 minutes
- send "{@tag} Kupiles efekt: &bNiewidzialnosc" to player-arg
- else:
- send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
- stop
- if arg 2 is "4":
- if player-arg has {@potion.shop.strength}:
- remove {@potion.shop.strength} from the player-arg
- apply strength to player-arg for 3 minutes
- send "{@tag} Kupiles efekt: &4Sila" to player-arg
- else:
- send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
- stop
- if arg 2 is "5":
- if player-arg has {@potion.shop.speed}:
- remove {@potion.shop.speed} from the player-arg
- apply speed to player-arg for 3 minutes
- send "{@tag} Kupiles efekt: &bSzybkosc" to player-arg
- else:
- send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
- stop
- if arg 2 is "6":
- if player-arg has {@potion.shop.regeneration}:
- remove {@potion.shop.regeneration} from the player-arg
- apply regeneration to player-arg for 45 seconds
- send "{@tag} Kupiles efekt: &dRegeneracja Zycia" to player-arg
- else:
- send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
- stop
- if arg 2 is "7":
- if player-arg has {@potion.shop.nightvision}:
- remove {@potion.shop.nightvision} from the player-arg
- apply night vision to player-arg for 3 minutes
- send "{@tag} Kupiles efekt: &1Widzenie w ciemnosci" to player-arg
- else:
- send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
- stop
- # ====================== NOWE PRZEDMIOTY ===========================
- on load:
- register new shaped recipe for bow of power 6 and flame 6 and punch 6 named "&eLuk Wyslannikow" with lore "&8~ skGuilds" using diamond block, blaze rod, air, gold block, nether star, blaze rod, emerald block, blaze rod, air
- register new shaped recipe for bow of unbreaking 10 named "&eLuk Zniszczenia" with lore "&8~ skGuilds" using tnt, blaze rod, air, tnt, nether star, blaze rod, tnt, blaze rod, air
- register new shaped recipe for diamond sword of knockback 10 named "&eMiecz Piekielnego Odrzutu" with lore "&8~ skGuilds" using air, diamond, air, string, diamond, string, air, blaze rod, air
- register new shaped recipe for diamond sword of sharpness 6 named "&eExcalibur" with lore "&8~ skGuilds" using air, diamond block, air, nether star, diamond block, nether star, air, blaze rod, air
- on projectile hit:
- if shooter's tool is bow of power 6 and flame 6 and punch 6 named "&eLuk Wyslannikow":
- spawn zombie at location of projectile
- set last spawned entity's display name to "&c&lWyslannik"
- apply speed 4 to last spawned entity for 10 seconds
- apply strength 2 to last spawned entity for 5 seconds
- damage shooter's tool by 5
- stop
- if shooter's tool is bow of unbreaking 10:
- create an explosion of force 2 at location of projectile
- damage shooter's tool by 10
- stop
- on damage:
- if attacker's tool is diamond sword of knockback 10:
- push the victim upwards at speed 0.2
- on rightclick with diamond sword of sharpness 6:
- heal player
- spawn 350 of particle fireworks Spark:1 at location of player
- loop 10 times:
- wait 5 ticks
- spawn 350 of particle heart at location of player
- # ====================== ZAPISYWANIE/ODPISYWANIE ISTNIEJACEGO GRACZA ===========================
- on join:
- if {skGuilds::Gracze::*} contains player:
- stop
- else:
- add player to {skGuilds::Gracze::*}
- on quit:
- remove player from {skGuilds::Gracze::*}
- # ====================== FUNKCJE GRACZA ===========================
- on first join:
- set {skGuilds::Ranking::%player%} to 1000
- set {skGuilds::Zgony::%player%} to 0
- set {skGuilds::Zabojstwa::%player%} to 0
- delete {skGuilds::inGuild::%player%}
- send "{@tag} Ten serwer uzywa skryptu &eskGuilds&7 by &eAdamGrzegorz&7!" to player
- stop
- on join:
- if {skGuilds::Ranking::%player%} is not set:
- set {skGuilds::Ranking::%player%} to 1000
- if {skGuilds::Zgony::%player%} is not set:
- set {skGuilds::Zgony::%player%} to 0
- if {skGuilds::Zabojstwa::%player%} is not set:
- set {skGuilds::Zabojstwa::%player%} to 0
- if {skGuilds::inGuild::%player%} is not set:
- clear {skGuilds::inGuild::%player%}
- set {skGuilds::LastJoin::%player%} to now
- set {skGuilds::TPCooldown::%player%} to false
- if {skGuilds::inGuild::%player%} is set:
- edit tag of the player to "&6[&e%{skGuilds::inGuild::%player%}%&6] &e"
- stop
- on join:
- set {skGuilds::Nick::%player%} to player
- stop
- #[] ===========================================================================[]
- #[] ========================== KONIEC SKRYPTU =================================[]
- #[] ===========================================================================[]
- # (this) Script by AdamGrzegorz (c) skGuilds Copyright - All Rights Reserved
- #[] ===========================================================================[]
- #[] ===========================================================================[]
Advertisement
Add Comment
Please, Sign In to add comment