Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Autor: MrxJoint
- #Wersja: v1.0
- #Nazwa: IGuilds
- #
- # ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
- # ¦----------¦--------------¦------¦¦------¦----------¦------¦¦¦¦¦¦¦¦¦------------¦¦¦--------------¦
- # ¦----------¦--------------¦------¦¦------¦----------¦------¦¦¦¦¦¦¦¦¦--------------¦--------------¦
- # ¦----------¦--------------¦------¦¦------¦----------¦------¦¦¦¦¦¦¦¦¦--------------¦--------------¦
- # ¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦------¦¦¦¦¦¦¦¦¦
- # ¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦--------------¦
- # ¦¦¦------¦¦¦------¦¦------¦------¦¦------¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦--------------¦
- # ¦¦¦------¦¦¦------¦¦------¦------¦¦------¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦--------------¦
- # ¦¦¦------¦¦¦------¦¦------¦------¦¦------¦¦¦------¦¦¦------¦¦¦¦¦¦¦¦¦------¦¦------¦¦¦¦¦¦¦¦¦------¦
- # ¦----------¦--------------¦--------------¦----------¦--------------¦--------------¦--------------¦
- # ¦----------¦--------------¦--------------¦----------¦--------------¦--------------¦--------------¦
- # ¦----------¦--------------¦--------------¦----------¦--------------¦------------¦¦¦--------------¦
- # ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
- # ----- ------
- # ----- ------
- # ----- ------
- #
- # ------ ----- ----- ----- ------ --- ------ -----
- # ------ ----- ----- ----- ------ --- ------ -----
- # ------ ----- ----- ----- ------ --- ------ -----
- #
- #
- #
- #Co wolno co nie wolno!
- #1.Czego nie wolno!
- # - Kopiowac części skryptu!
- # - Zmieniać zmiennych i podawać sie za autora sk!
- # -
- # -
- #2.Co wolno robic!
- # - Zmieniać tylko te opcje co są w "options:"!
- # - Zmieniać wiadomości!
- # - Zmieniać kolory!
- #
- #
- # Narazie tyle jak coś wymyśle dopisze :D
- #
- #
- #
- #
- #
- #
- #
- options:
- tag: &8[&2I&7Guilds&8]
- spawn.dystans: 300
- teren: 50
- block: dragon egg
- czas.po.wybuchu: 60 second
- color1: &7
- color2: &a
- item.zaloz.1: 64 diamond
- item.zaloz.2: none
- item.zaloz.3: none
- item.zaloz.4: none
- item.zaloz.5: none
- item.zaloz.6: none
- item.zaloz.7: none
- item.zaloz.8: none
- item.zaloz.9: none
- item.zaloz.10: none
- powieksz.item.1: 32 diamond
- powieksz.item.2: 64 diamond
- powieksz.item.3: 98 diamond
- powieksz.item.4: 130 diamond
- powieksz.item.5: 162 diamond
- powieksz.item.6: 194 diamond
- item.zaloz.1.v: 32 diamond
- item.zaloz.2.v: none
- item.zaloz.3.v: none
- item.zaloz.4.v: none
- item.zaloz.5.v: none
- item.zaloz.6.v: none
- item.zaloz.7.v: none
- item.zaloz.8.v: none
- item.zaloz.9.v: none
- item.zaloz.10.v: none
- item.dolacz.1: 5 diamond
- item.dolacz.2: none
- item.dolacz.3: none
- item.dolacz.4: none
- item.losuj.1: 64 diamond
- item.losuj.2: none
- item.losuj.3: none
- command /@ <text>:
- trigger:
- arg 1 is not set:
- send "{@tag} &cPrawidlowe uzycie: &a/@ [wiadomosc do gildii]"
- stop
- if {gildie::wGildii::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- set {_tag} to {gildie::wGildii::%name of player%}
- {gildie::%{_tag}%.lider::*} is set:
- loop {gildie::%{_tag}%.members::*}:
- loop all players:
- loop-value is loop-player:
- send "&8&o[&3%{_tag}%&8&o] &7Lider &a%player%: &a%arg%" to loop-player
- stop
- stop
- set {_tag} to {gildie::wGildii::%name of player%}
- {czlonek::gildii::%{_tag}%} is set:
- loop {gildie::%{_tag}%.members::*}:
- loop all players:
- loop-value is loop-player:
- send "&8&o[&3%{_tag}%&8&o] &7Czlonek &a%player%: &7%arg%" to loop-player
- stop
- stop
- on damage of player:
- if {gildie::wGildii::%attacker%} is set:
- if {gildie::wGildii::%victim%} is set:
- if {gildie::%{gildie::wGildii::%attacker%}%.members::*} contain victim:
- if {gildie::%{gildie::wGildii::%attacker%}%::pvp} is false:
- cancel event
- stop
- if {gildie::%{gildie::wGildii::%victim%}%.members::*} contain attacker:
- if {gildie::%{gildie::wGildii::%victim%}%::pvp} is false:
- cancel event
- stop
- command /g [<text>] [<text>] [<text>] [<player>]:
- trigger:
- if arg 1 is "pomoc" or "help" or "?":
- if arg 2 is not set:
- send "&8##&7====== {@tag} &7======&8##"
- send "&7Strona: &2[1&7/&23]"
- send "&2/g zaloz [tag] [nazwa] &7-- Zaklada gildie"
- send "&2/g zapros [nick] &7-- Zaprasza graczy"
- send "&2/g dolacz [tag &7-- Dolacza do gildii"
- send "&2/g info [tag] &7-- Informacje o gildii"
- send "&2/g opusc &7-- Opuszcza gildie"
- send "&2/g wyrzuc [nick] &7-- Wyrzuca z gildii gracza"
- send "&2/g usun &7-- Usuwa gildie"
- send "&2/g pomoc 2 &7-- Nastepna strona"
- stop
- if arg 2 is "2":
- send "&8##&7====== {@tag} &7======&8##"
- send "&7Strona: &2[2&7/&23]"
- send "&2/g baza &7-- Teleportuje do bazy gildii"
- send "&2/g powieksz &7-- Powieksza teren gildii"
- send "&2/g serce &7-- Teleportuje lidera do serca gildii"
- send "&2/g ustawbaze &7-- Ustawia baze gildii"
- send "&2/g efekt &7-- Losuje efekt dla gildii za oplata"
- send "&2/g pvp &7-- Wlacza/wylacza pvp w gildii"
- send "&a/g pomoc admin &8-- Komendy Admina"
- stop
- if arg 2 is "3":
- send "&8##&7====== {@tag} &7======&8##"
- send "&7Strona: &2[3&7/&23]"
- send "&2/@ [tekst] &7-- Wiadomosc do gildii"
- stop
- if arg 2 is "admin":
- if player has permission "iguilds.admin":
- send "&8##&7====== {@tag} &7======&8##"
- send "&7Strona: &2[1&7/&22]"
- send "&a/g przeladuj &8-- Przeladowanie gildiii"
- send "&a/g setspawn &8-- Ustawia spawn na gildii"
- else:
- send "{@tag} &cNie masz uprawnien!"
- stop
- arg 1 is "przeladuj":
- if player doesn't have permission "iguilds.admin":
- send "{@tag} &cNie masz uprawnien!"
- stop
- execute console command "/sk reload %script%"
- send "{@tag} &aPrzeladowano!"
- stop
- arg 1 is "setspawn":
- if player doesn't have permission "iguilds.admin":
- send "{@tag} &cNie masz uprawnien!"
- stop
- set {_loc} to location of player
- set {spawn} to {_loc}
- send "{@tag} &8Ustawiles spawn dla gildii!"
- stop
- arg 1 is "pvp":
- arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {gildie::wGildii::%player%} is not set:
- send "{@tag} &cNie jestes w zadnej gildii!"
- stop
- if {gildie::%{gildie::wGildii::%player%}%.lider} is not set:
- send "{@tag} &cNie jestes liderem gildii!"
- stop
- if {gildie::%{gildie::wGildii::%player%}%::pvp} is true:
- send "{@tag} &8P&4v&8P &cw gildi zostalo wylaczone!"
- set {gildie::%{gildie::wGildii::%player%}%::pvp} to false
- stop
- else:
- send "{@tag} &8P&4v&8P &cw gildi zostalo wlaczone!"
- set {gildie::%{gildie::wGildii::%player%}%::pvp} to true
- stop
- arg 1 is "zaloz":
- if arg 2 is not set:
- send "{@tag} &cPodaj TAG gildii!"
- stop
- if arg 3 is not set:
- send "{@tag} &cPodaj nazwe gildii!"
- stop
- if {gildie::wGildii::%player%} is set:
- send "{@tag} &cJestes juz w innej gildii!"
- stop
- if {gildie::%{gildie::wGildii::%player%}%.lider} is set:
- send "{@tag} &cJestes liderem innej gildii!"
- stop
- if length of arg 2 is less than 3:
- send "{@tag} &cTag musi wynosic min 3 znaki!"
- stop
- if length of arg 2 is greater than 5:
- send "{@tag} &cTag musi wynosic max 5 znakow!"
- stop
- if length of arg 3 is greater than 24:
- send "{@tag} &cNazwa musi wynosic mniej niz 25 znakow!"
- stop
- if length of arg 3 is less than 8:
- send "{@tag} &cNazwa musi wynosic wiecej niz 8 znakow!"
- stop
- if {gildie::gildia::%arg 2%} is set:
- send "{@tag} &cGildia z takim TAG'iem juz istnieje"
- stop
- if distance between {spawn} and location of player is less than {spawn.dystans}+{@teren}/2:
- send "{@tag} &cJestes zbyt blisko spawnu!"
- stop
- loop {gildie::listaTagow::*}:
- set {_taggildii} to loop-value parsed as text
- if distance between {gildie::lokacja::%{_taggildii}%} and location of player is less than 200:
- send "{@tag} &cJestes za blisko innej gildii!"
- add 1 to {_gildieinne}
- stop
- if {_gildieinne} is not set:
- 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
- #====ZMienne=====#
- set {gildie::gildia::%arg 2%} to true
- set {gildie::wGildii::%name of player%} to "%arg 2%"
- add "%name of player%" to {gildie::%arg 2%.members::*}
- add "%arg 2%" to {gildie::listaTagow::*}
- add "%arg 2%" to {gildie::listaGildii::*}
- add "%arg 2%" to {gcuboidy::%arg 2%}
- set {powiekszenie.%arg 2%.1} to false
- set {powiekszenie.%arg 2%.2} to false
- set {powiekszenie.%arg 2%.3} to false
- set {powiekszenie.%arg 2%.4} to false
- set {powiekszenie.%arg 2%.5} to false
- set {powiekszenie.%arg 2%.6} to false
- set {gildie::%{gildie::wGildii::%player%}%::pvp} to true
- set {efekt.%player%} to false
- set {gildie::%arg 2%.opis} to "To jest domyslny opis gildii..."
- set {gildie::%arg 2%.lider} to "%player%"
- set {uzycie.%player%} to 0
- set {punkty.gildia::%arg 2%} to 500
- set {gildie::%arg 2%.tag} to "%arg 3%"
- set {serce.gildii.%arg 2%} to location of player
- set {_loc} to block at location (x-coordinate of player, y-coordinate of player, z-coordinate of player) in "world"
- set {gildie::lokacja::%arg 2%} to {_loc}
- set block under player to {@block}
- set {_name} to "%arg 2%" #// Nazwa (id) regionu
- add {_name} to {regions::*} #// Lista z nazwami (id) regionow
- set {region.size.%{_name}%} to 50 #// Jakas tam poczatkowa wielkosc regionu
- set {region.center.%{_name}%} to location of player #// Srodek regionu
- "%{_name}%".Region.selectLS{{region.center.%{_name}%}, {region.size.%{_name}%}};# // Wyznaczamy
- set {gildie::zalozenie::%arg 2%} to now
- loop {gildie::%arg 2%.members::*}:
- loop all players:
- loop-value is loop-player:
- make player see loop-player's prefix as "&8[&2%arg 2%&8] &a"
- loop-value is not loop-player:
- make loop-player see player's prefix as "&8[&2%arg 2%&8] &c"
- send "{@tag} &cPvP w gildii zostalo wlaczone!"
- send "{@tag} &cPamietaj aby ustawic Baze dla gildii!"
- broadcast "{@tag} &7Gildia &a%arg 2% %arg 3% &7zostala zalozona przez &a%player%"
- create timed bar with text "&7Gracz &a%player% &7zalozyl gildie &a%arg 2% &2%arg 3%" to all players for 15 seconds
- stop
- arg 1 is "opis":
- if length of arg 2 is greater than 26:
- send "{@tag} &cOpis gildii musi zawierac mniej niz 26 znakow!"
- stop
- arg 2 is not set:
- send "{@tag} &cPodaj opis gildii bez spacji!"
- stop
- arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- arg 4 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- else if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
- send "{@tag} &cTylko lider gildii moze zmieniac opis!"
- stop
- set {_tag} to {gildie::wGildii::%player%}
- set {gildie::%{_tag}%.opis} to "%arg 2%"
- send "{@tag} &7Zmieniles opis na: &a%arg 2%&7."
- stop
- arg 1 is "zapros":
- arg 2 is not set:
- send "{@tag} &cPodaj nick gracza!"
- stop
- if {gildie::wGildii::%player%} is not set:
- send "{@tag} &7Nie jestes w gildii!"
- stop
- set {_player} to arg 2 parsed as player
- if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
- send "{@tag} &7Tylko lider gildii moze zapraszac innych!"
- stop
- if "%{gildie::wGildii::%name of player%}%" is "%{gildie::wGildii::%arg 2%}%":
- send "{@tag} &7Ten gracz juz jest w Twojej gildii!"
- stop
- set {invite.%{gildie::wGildii::%name of player%}%.%{_player}%} to true
- send "{@color1}============= {@color2}%{gildie::wGildii::%player%}%{@color1} =============" to {_player}
- send "{@color1}Gildia {@color2}%{gildie::wGildii::%player%}%{@color1} wyslala Ci zaproszenie!" to {_player}
- send "{@color1}Wpisz {@color2}/g dolacz %{gildie::wGildii::%player%}%{@color1}, aby zaakceptowac!" to {_player}
- send "{@color1}================================" to {_player}
- send "{@tag}{@color1} Wyslales zaproszenie do gildii do gracza {@color2}%arg 2%{@color1}!"
- wait 1 minute
- if {gildie::wGildii::%{_player}%} is not {gildie::wGildii::%name of player%}:
- set {invite.%{gildie::wGildii::%name of player%}%.%{_player}%} to false
- stop
- arg 1 is "dolacz":
- if player doesn't have {@item.dolacz.1}:
- add {@item.dolacz.1} to {_lista::*}
- if player doesn't have {@item.dolacz.2}:
- add {@item.dolacz.2} to {_lista::*}
- if player doesn't have {@item.dolacz.3}:
- add {@item.dolacz.3} to {_lista::*}
- if player doesn't have {@item.dolacz.4}:
- add {@item.dolacz.4} to {_lista::*}
- if {_lista::*} is set:
- send "{@tag} &cObecnie brakuje Ci: &a%{_lista::*}%"
- stop
- if {gildie::wGildii::%player%} is set:
- send "{@tag} {@color1}Jestes juz w gildii!"
- if arg 2 is not set:
- send "{@tag} {@color1}Podaj nazwe gildii!"
- stop
- if {gildie::gildia::%arg 2%} is not true:
- send "{@tag} {@color1}Taka gildia nie istnieje!"
- stop
- if {invite.%arg 2%.%name of player%} is false:
- send "{@tag} {@color1}Nie masz zaproszenia od tej gildii :("
- stop
- set {gildie::wGildii::%name of player%} to "%arg 2%"
- add "%name of player%" to {gildie::%arg 2%.members::*}
- set {czlonek::gildii::%name of player%} to "%arg 2%"
- loop {gildie::%arg 2%.members::*}:
- loop all players:
- loop-value is not loop-player:
- make loop-player see player's prefix as "&8[&2%arg 2%&8] &c"
- set {invite.%arg 2%.%name of player%} to false
- broadcast "{@tag} {@color1}Gracz {@color2}%player% {@color1}dolaczyl do gildi {@color2}%{gildie::wGildii::%name of player%}%{@color1}!"
- create timed bar with text "{@color1}Gracz {@color2}%player% {@color1}dolaczyl do gildi {@color2}%{gildie::wGildii::%name of player%}%{@color1}!" to all players for 15 seconds
- remove {@item.dolacz.1} from player
- remove {@item.dolacz.2} from player
- remove {@item.dolacz.3} from player
- remove {@item.dolacz.4} from player
- loop {gildie::%arg 2%.members::*}:
- loop all players:
- loop-value is loop-player:
- make player see loop-player's prefix as "&8[&2%arg 2%&8] &a"
- stop
- stop
- arg 1 is "usun":
- arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {gildie::wGildii::%player%} is not set:
- send "{@tag} {@color1}Nie jestes w zadnej gildii!"
- stop
- if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
- send "{@tag} {@color1}Tylko lider gildii moze rozwiazac gildie!"
- stop
- set {_arg} to {gildie::wGildii::%name of player%}
- create timed bar with text "&7Gracz &a%player% &7rozwiazal gildie &a%{gildie::wGildii::%name of player%}% " to all players for 15 seconds
- broadcast "{@tag} &7Gracz &a%player% &7rozwiazal gildie &a%{gildie::wGildii::%name of player%}%"
- loop {gildie::%{_arg}%.members::*}:
- loop all players:
- loop-value is "%loop-player%":
- clear {gildie::wGildii::%loop-player%}
- edit tag of loop-player to " "
- make player see loop-player's prefix as ""
- make all players see loop-player's prefix as ""
- clear {czlonek::gildii::%loop-player%}
- clear {gildie::zamknij::%{gildie::wGildii::%name of player%}%}
- run player command "/usunpunkty %{_arg}%" as op
- clear {gildie::gildia::%{_arg}%}
- clear {gildie::%{_arg}%.lider::*}
- clear {gildie::%{_arg}%.tag}
- clear {gildie::wGildii::%name of player%}
- clear {gildie::zalozenie::%{_arg}%}
- set block under {serce.gildii.%{_arg}%} to air
- clear {serce.gildii.%{_arg}%}
- clear {gildie::%{_arg}%.opis}
- set {powiekszenie.%{_gildia}%.1} to false
- set {powiekszenie.%{_gildia}%.2} to false
- set {powiekszenie.%{_gildia}%.3} to false
- set {powiekszenie.%{_gildia}%.4} to false
- set {powiekszenie.%{_gildia}%.5} to false
- set {powiekszenie.%{_gildia}%.6} to false
- delete {punkty.gildia::%{_gildia}%}
- remove "%{_arg}%" from {gildie::listaTagow::*}
- clear {gildie::lokacja::%{_arg}%}
- #edit tag of player to ""
- remove {_arg} from {gildie::listaGildii::*}
- remove {_arg} from {gildie::listaTagow::*}
- clear {region.size.%{_arg}%}
- clear {region.center.%{_arg}%}
- clear {gildie::%{_arg}%.members::*}
- "%{_arg}%".Region.delete{};
- stop
- arg 1 is "opusc":
- arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {gildie::wGildii::%player%} is not set:
- send "{@tag} {@color1}Nie jestes w zadnej gildii!"
- stop
- if {gildie::%{gildie::wGildii::%player%}%.lider} is player:
- send "{@tag} {@color1}Lider nie moze opuscic gildii! Musisz ja usunac!"
- stop
- if arg 2 is not set:
- send "{@tag} {@color1}Potwierdz, ze chcesz odejsc z gildii {@color2}%{gildie::wGildii::%player%}% {@color1}wpisujac {@color2}/opusc %{gildie::wGildii::%player%}%{@color1}!"
- stop
- else:
- broadcast "{@tag} {@color1}Gracz {@color2}%player%{@color1} opuscil gildie {@color2}%{gildie::wGildii::%player%}%{@color1}!"
- create timed bar with text "{@color1}Gracz {@color2}%player%{@color1} opuscil gildie {@color2}%{gildie::wGildii::%player%}%{@color1}!" to all players for 15 seconds
- loop {gildie::%{_arg}%.members::*}:
- loop all players:
- loop-value is loop-player:
- make player see loop-player's prefix as "&8[&2%arg 2%&8] &c"
- make loop-player see player's prefix as " "
- remove "%player%" from {gildie::%arg 2%.members::*}
- #edit tag of player to ""
- clear {gildie::wGildii::%player%}
- clear {czlonek::gildii::%name of player%}
- stop
- arg 1 is "wyrzuc":
- if arg 2 is not set:
- send "{@tag} {@color1}Wybierz gracza, ktorego chcesz wyrzucic!"
- stop
- if {gildie::wGildii::%player%} is not set:
- send "{@tag} {@color1}Nie jestes w zadnej gildii!"
- stop
- if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
- send "{@tag} {@color1}Tylko lider gildii moze wyrzucac graczy!"
- stop
- if arg 2 is player:
- send "{@tag} {@color1}Lider nie moze wyrzucic siebie z gildii! Musisz ja usunac!"
- stop
- if "%{gildie::wGildii::%player%}%" is not "%{gildie::wGildii::%arg 2%}%":
- send "{@tag} {@color1}Ten gracz nie jest w Twojej gildii!"
- stop
- else:
- broadcast "{@tag} {@color1}Gracz {@color2}%arg 2%{@color1} zostal wyrzucony z gildii {@color2}%{gildie::wGildii::%player%}%{@color1}!"
- set {_arg} to arg 2 parsed as player
- loop {gildie::%{gildie::wGildii::%player%}%.members::*}:
- loop all players:
- loop-value is loop-player:
- make {_arg} see loop-player's prefix as "&8[&2%{gildie::wGildii::%player%}%&8] &c"
- remove "%arg 2%" from {gildie::%{gildie::wGildii::%player%}%.members::*}
- clear {gildie::wGildii::%arg 2%}
- clear {czlonek::gildii::%arg 2%}
- clear {czlonek::gildii::%arg 2%}
- stop
- arg 1 is "info":
- if arg 2 is not set:
- if {gildie::wGildii::%name of player%} is set:
- run player command "/g info %{gildie::wGildii::%name of player%}%" as op
- else:
- send "{@tag} {@color1}Nie jestes w zadnej gildii!"
- else if {gildie::gildia::%arg 2%} is not set:
- if arg 2 is set:
- send "{@tag} {@color1}Gildia o TAG'u {@color2}%arg 2%{@color1} nie istnieje!"
- else:
- set {_size} to "%arg 2%".Region.getSize{};
- send "&8-======= {@tag} &8========¬"
- send "&8¦ {@color1}TAG: {@color2}%arg 2%"
- send "&8¦ {@color1}Nazwa: {@color2}%{gildie::%arg 2%.tag}%"
- send "&8¦ {@color1}Opis: {@color2}%{gildie::%arg 2%.opis}%"
- send "&8¦ {@color1}Zalozona: {@color2}%{gildie::zalozenie::%arg 2%}%"
- send "&8¦ {@color1}Punkty: {@color2}%{punkty.gildia::%arg 2%}%"
- send "&8¦ {@color1}Wielkosc terenu: {@color2}%{_size}%"
- if {gildie::%arg 2%::pvp} is false:
- send "&8¦ {@color1}&8P&4v&8P: {@color2}Wylaczone!"
- else:
- send "&8¦ {@color1}&8P&4v&8P: {@color2}Wlaczone!"
- if {gildie::%arg 2%.lider} parsed as player is online:
- send "&8¦ {@color1}Lider: &a%{gildie::%arg 2%.lider}%"
- else:
- send "&8¦ {@color1}Lider: &c%{gildie::%arg 2%.lider}%"
- set {_} to size of {gildie::%arg 2%.members::*}
- if {_} is 0:
- send "&8¦ {@color1}Czlonkowie: {@color2}brak!"
- send "&8L====================-"
- stop
- if {_} is greater than 0:
- send "&8¦ {@color1}Czlonkowie: {@color2}%{gildie::%arg 2%.members::*}%"
- send "&8L====================-"
- stop
- #loop all players:
- #loop-value is loop-player:
- # set {_value} to loop-player
- # send "&8¦ {@color1}Czlonkowie: {@color2}%loop-player%"
- # send "&8L====================-"
- # stop
- arg 1 is "powieksz":
- arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {gildie::wGildii::%player%} is not set:
- send "{@tag} {@color1}Nie jestes w zadnej gildii!"
- stop
- if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
- send "{@tag} {@color1}Tylko lider gildii moze powiekszac teren!"
- stop
- set {_gildia} to {gildie::wGildii::%player%}
- set {_name} to {gildie::wGildii::%player%}
- if {serce.gildii.%{_gildia}%} is location of player:
- if {powiekszenie.%{_gildia}%.6} is true:
- send "{@tag} &7Osiagnieto maksymalny poziom rozbudowy!"
- stop
- if {powiekszenie.%{_gildia}%.1} is false:
- if player doesn't have {@powieksz.item.1}:
- send "{@tag} &7Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.1}"
- stop
- remove {@powieksz.item.1} from player
- #// Aktualizujemy region, czyli np. go powiekszamy
- set {region.size.%{_name}%} to 60
- "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
- set {powiekszenie.%{_gildia}%.1} to true
- set {powiekszenie.%{_gildia}%.2} to false
- set {gcuboidy::%{_gildia}%} to location of player
- send "{@tag} &6Teren zostal zwiekszony do 60 kratek!"
- stop
- if {powiekszenie.%{_gildia}%.2} is false:
- if player doesn't have {@powieksz.item.2}:
- send "{@tag} &7Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.2}"
- stop
- remove {@powieksz.item.2} from player
- set {region.size.%{_name}%} to 70
- "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
- set {powiekszenie.%{_gildia}%.2} to true
- set {powiekszenie.%{_gildia}%.3} to false
- set {gcuboidy::%{_gildia}%} to location of player
- send "{@tag} &6Teren zostal zwiekszony do 70 kratek!"
- stop
- if {powiekszenie.%{_gildia}%.3} is false:
- if player doesn't have {@powieksz.item.3}:
- send "{@tag} &7Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.3}"
- stop
- remove {@powieksz.item.3} from player
- set {region.size.%{_name}%} to 80
- "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
- set {powiekszenie.%{_gildia}%.3} to true
- set {powiekszenie.%{_gildia}%.4} to false
- set {gcuboidy::%{_gildia}%} to location of player
- send "{@tag} &6Teren zostal zwiekszony do 80 kratek!"
- stop
- if {powiekszenie.%{_gildia}%.4} is false:
- if player doesn't have {@powieksz.item.4}:
- send "{@tag} &7Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.4}"
- stop
- remove {@powieksz.item.4} from player
- set {region.size.%{_name}%} to 90
- "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
- set {powiekszenie.%{_gildia}%.4} to true
- set {powiekszenie.%{_gildia}%.5} to false
- set {gcuboidy::%{_gildia}%} to location of player
- send "{@tag} &6Teren zostal zwiekszony do 90 kratek!"
- stop
- if {powiekszenie.%{_gildia}%.5} is false:
- if player doesn't have {@powieksz.item.5}:
- send "{@tag} &7Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.5}"
- stop
- remove {@powieksz.item.5} from player
- set {region.size.%{_name}%} to 100
- "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
- set {powiekszenie.%{_gildia}%.5} to true
- set {powiekszenie.%{_gildia}%.6} to false
- set {gcuboidy::%{_gildia}%} to location of player
- send "{@tag} &6Teren zostal zwiekszony do 100 kratek!"
- stop
- if {powiekszenie.%{_gildia}%.6} is false:
- if player doesn't have {@powieksz.item.6}:
- send "{@tag} &&Nie posiadasz wystaraczajacych itemow: &a{@powieksz.item.6}"
- stop
- remove {@powieksz.item.6} from player
- set {region.size.%{_name}%} to 110
- "%{_name}%".Region.selectLS{{region.center.%{_gildia}%}, {region.size.%{_gildia}%}}; #// Aktualizujemy
- set {powiekszenie.%{_gildia}%.6} to true
- set {gcuboidy::%{_gildia}%} to location of player
- send "{@tag} &6Teren zostal zwiekszony do 110 kratek!"
- stop
- else:
- send "{@tag} &7Nie znajdujesz sie w sercu gildii!"
- stop
- arg 1 is "lista":
- arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {gildie::listaGildii::*} is not set:
- send "&8##&7======= {@tag} &7=======&8##"
- send "&cNa tym serwerze nie ma jescze gildii!"
- send "&8##&7======= {@tag} &7=======&8##"
- stop
- set {_g.lista} to "%{gildie::listaGildii::*}%"
- send "&8##&7======= {@tag} &7=======&8##"
- send "&2Lista gildii:"
- loop all players:
- replace all "%loop-player%" with "&a%loop-player%" in {_g.lista}
- replace all "," with "&a,&6" in {_g.lista}
- replace all "and" with "&ai&6" in {_g.lista}
- send "&6%{_g.lista}%"
- send "&8##&7======= {@tag} &7=======&8##"
- arg 1 is "serce":
- arg 2 is not set:
- arg 3 is not set:
- if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
- send "{@tag} {@color1}Tylko lider gildii moze teleportowac sie do serca!"
- stop
- set {_pos} to location of player
- send "{@tag} &6Czekaj &a5 sekund&6, nie wolno Ci sie ruszyc!"
- if {_pos} isn't location of player:
- send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
- stop
- wait 1 second
- send "&65"
- if {_pos} isn't location of player:
- send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
- stop
- wait 1 second
- send "&64"
- if {_pos} isn't location of player:
- send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
- stop
- wait 1 second
- send "&63"
- if {_pos} isn't location of player:
- send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
- stop
- wait 1 second
- send "&62"
- if {_pos} isn't location of player:
- send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
- stop
- wait 1 second
- send "&61"
- # '
- if {_pos} is location of player:
- set {_tag} to {gildie::wGildii::%name of player%}
- teleport player to {serce.gildii.%{_tag}%}
- send "{@tag} &6Teleportacja..."
- stop
- else:
- send "{@tag} &7Wykryto ruch, teleportacja anulowana!"
- stop
- arg 1 is "ustawbaze":
- arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- else if {gildie::wGildii::%player%} is not set:
- send "{@tag} {@color1}Nie jestes w zadnej gildii!"
- else if {gildie::%{gildie::wGildii::%player%}%.lider} is not player:
- send "{@tag} {@color1}Tylko lider gildii moze ustawiac baze gildii!"
- set {_region} to Region.getAt{location of player};
- if {_region} is {gildie::wGildii::%name of player%}:
- set {_loc} to location of player
- set {_tag} to {gildie::wGildii::%name of player%}
- set {gildie::baza.%{_tag}%} to {_loc}
- send "{@tag} &7Ustawiles wlasnie baze dla gildii: &a%{gildie::wGildii::%name of player%}% &7!"
- stop
- else:
- send "{@tag} &cNie znajdujesz sie na terenie swojej gildii!"
- stop
- arg 1 is "baza":
- arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- else if {gildie::wGildii::%player%} is not set:
- send "{@tag} {@color1}Nie jestes w zadnej gildii!"
- stop
- set {_tag} to {gildie::wGildii::%name of player%}
- {gildie::baza.%{_tag}%} is not set:
- send "{@tag} &7Gildia nie posiada jeszcze wlasnej bazy!"
- stop
- set {_pos} to location of player
- send "{@tag} &6Czekaj &a5 sekund&6, nie wolno Ci sie ruszyc!"
- if {_pos} isn't location of player:
- send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
- stop
- wait 1 second
- send "&65"
- if {_pos} isn't location of player:
- send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
- stop
- wait 1 second
- send "&64"
- if {_pos} isn't location of player:
- send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
- stop
- wait 1 second
- send "&63"
- if {_pos} isn't location of player:
- send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
- stop
- wait 1 second
- send "&62"
- if {_pos} isn't location of player:
- send "{@tag} &6Wykryto ruch, teleportacja anulowana!"
- stop
- wait 1 second
- send "&61"
- # '
- if {_pos} is location of player:
- set {_tag} to {gildie::wGildii::%name of player%}
- teleport player to {gildie::baza.%{_tag}%}
- send "{@tag} &6Teleportacja..."
- stop
- else:
- send "{@tag} &7Wykryto ruch, teleportacja anulowana!"
- stop
- arg 1 is "efekt":
- arg 2 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- arg 3 is set:
- send "{@tag} &cZa duzo argumentow!"
- stop
- if {gildie::%{gildie::wGildii::%player%}%.lider} is not set:
- send "{@tag} {@color1}Tylko lider gildii moze losowac effekt dla gildii!"
- stop
- if {uzycie.%player%} is 0:
- if player doesn't have {@item.losuj.1}:
- add {@item.losuj.1} to {_losuj::*}
- if player doesn't have {@item.losuj.2}:
- add {@item.losuj.2} to {_losuj::*}
- if player doesn't have {@item.losuj.3}:
- add {@item.losuj.3} to {_losuj::*}
- if {_losuj::*} is set:
- send "{@tag} &cObecnie bakuje Ci: &7%{_losuj::*}%"
- stop
- remove {@item.losuj.1} from player
- remove {@item.losuj.2} from player
- remove {@item.losuj.3} from player
- loop all players:
- {gildie::%{gildie::wGildii::%name of player%}%.members::*} contains loop-player:
- chance of 20%:
- apply potion of speed of tier 2 to loop-player for 5 minute
- set {uzycie.%player%} to 2
- set {efekt.%player%} to true
- wait 5 minute
- set {efekt.%player%} to false
- send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 5 minut!"
- stop
- chance of 15%:
- apply potion of Night Vision of tier 2 to loop-player for 6 minute
- set {uzycie.%player%} to 2
- set {efekt.%player%} to true
- wait 5 minute
- set {efekt.%player%} to false
- send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 6 minut!"
- stop
- chance of 10%:
- apply potion of Water Breathing of tier 2 to loop-player for 4 minute
- set {uzycie.%player%} to 2
- set {efekt.%player%} to true
- wait 5 minute
- set {efekt.%player%} to false
- send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 4 minuty!"
- stop
- chance of 12%:
- apply potion of Fire Resistance of tier 2 to loop-player for 3 minute
- set {uzycie.%player%} to 2
- set {efekt.%player%} to true
- wait 5 minute
- set {efekt.%player%} to false
- send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 3 minuty!"
- stop
- chance of 13%:
- apply potion of Regeneration of tier 2 to loop-player for 4 minute
- set {uzycie.%player%} to 2
- set {efekt.%player%} to true
- wait 5 minute
- set {efekt.%player%} to false
- send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 4 minuty!"
- stop
- chance of 14%:
- apply potion of Jump Boost of tier 2 to loop-player for 2 minute
- set {uzycie.%player%} to 2
- set {efekt.%player%} to true
- wait 5 minute
- set {efekt.%player%} to false
- send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 2 minuty!"
- stop
- chance of 15%:
- apply potion of Strength of tier 2 to loop-player for 3 minute
- set {uzycie.%player%} to 2
- set {efekt.%player%} to true
- wait 5 minute
- set {efekt.%player%} to false
- send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 3 minuty!"
- stop
- chance of 16%:
- apply potion of Haste of tier 2 to loop-player for 3 minute
- set {uzycie.%player%} to 2
- set {efekt.%player%} to true
- wait 5 minute
- set {efekt.%player%} to false
- send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 3 minuty!"
- stop
- chance of 17%:
- apply potion of Instant Health of tier 2 to loop-player for 2 minute
- set {uzycie.%player%} to 2
- set {efekt.%player%} to true
- wait 5 minute
- set {efekt.%player%} to false
- send "{@tag} &7Gildia wylosowala dla ciebie efekkt na 2 minuty!"
- stop
- else:
- if {uzycie.%player%} is greater than 1:
- send "{@tag} &aOdczekaj 2 godziny zanim zalosujesz jeszcze raz!"
- on quit:
- if {efekt.%player%} is true:
- run player command "/effect %player% clear" as op
- set {efekt.%player%} to false
- stop
- every 1 hour:
- loop all players:
- If {uzycie.%loop-player%} is greater than 1:
- Add -1 to {uzycie.%loop-player%}
- on load: #// Przy zaladowaniu sk
- loop {regions::*}: #// Bierzemy nazwy wszystkich regionow
- "%loop-value%".Region.selectLS{{region.center.%loop-value%}, {region.size.%loop-value%}};# // Wyznaczamy region ze starych zmiennych
- on right click:
- if clicked block is dragon egg:
- set {_region} to Region.getAt{location of player};
- if {_region} is not set:
- stop
- if {_region} is set:
- cancel event
- if {gildie::wGildii::%name of player%} is set:
- run player command "/g info %{gildie::wGildii::%name of player%}%" as op
- stop
- run player command "/g info %{_region}%" as op
- on left click:
- if clicked block is dragon egg:
- set {_region} to Region.getAt{location of player};
- if {_region} is not set:
- stop
- if {_region} is set:
- cancel event
- if {gildie::wGildii::%name of player%} is set:
- run player command "/g info %{gildie::wGildii::%name of player%}%" as op
- stop
- run player command "/g info %{_region}%" as op
- on load:
- loop 15 times:
- set {gildia.chat.%loop-number%} to value "gildia.chat.%loop-number%" get of "plugins/Skript/IGuilds/chat.yml" parsed as text
- on chat:
- set {_chat} to {gildia.chat.1}
- loop 15 times:
- if player has permission "gildia.chat.%loop-number%":
- set {_chat} to {gildia.chat.%loop-number%}
- {gildie::wGildii::%player%} is set:
- set {_tag} to {gildie::wGildii::%player%}
- {gildie::%{gildie::wGildii::%player%}%.lider} is set:
- set {_tag} to {gildie::wGildii::%player%}
- #{o.%player%} is set:
- #set {_tag} to {gildia.tag.%name of player%}
- if {_tag} is not set:
- replace all "{TAG}" with "" in {_chat}
- replace all "{PKT}" with "%{pkt::%player%}%" in {_chat}
- #replace all "{RANK}" with "%colored player prefix%" in {_chat}
- replace all "{PLAYER}" with "%player%" in {_chat}
- replace all "{DISPLAY}" with "%display name of player%" in {_chat}
- replace all "{MESSAGE}" with "%message%" in {_chat}
- replace all "Â" with "" in {_chat}
- send "%{_chat}%" to all players
- cancel event
- stop
- #replace all "{RANK}" with "%colored player prefix%" in {_chat}
- replace all "{PLAYER}" with "%player%" in {_chat}
- replace all "{PKT}" with "%{pkt::%player%}%" in {_chat}
- replace all "{DISPLAY}" with "%display name of player%" in {_chat}
- replace all "{MESSAGE}" with "%message%" in {_chat}
- replace all "Â" with "" in {_chat}
- replace all "{TAG}" with "%{_tag}%" in {_chat}
- send "%{_chat}%" to all players
- cancel event
- stop
- on load:
- if folder "plugins/Skript/IGuilds" doesn't exists:
- send "Folder IGuilds not found!" to console
- send "Creating...." to console
- create folder "plugins/Skript/IGuilds"
- send "Folder IGuilds was successfull created!" to console
- Wait 5 seconds
- execute console command "/sk reload %script%"
- if file "plugins/Skript/IGuilds/Chat.yml" doesn't exists:
- send "File Chat.ynl not found!" to console
- send "Creating...." to console
- create file "plugins/Skript/IGuilds/Chat.yml"
- send "Downloading standard content..." to console
- download from "http://pastebin.com/raw.php?i=tpLg2bv5" to file "plugins/Skript/IGuilds/Chat.yml"
- send "File Chat.yml was successfull created!" to console
- Wait 5 ticks
- execute console command "/sk reload %script%"
- if file "plugins/Skript/IGuilds/Config.yml" doesn't exists:
- send "File Config.ynl not found!" to console
- send "Creating...." to console
- create file "plugins/Skript/IGuilds/Config.yml"
- send "Downloading standard content..." to console
- download from "" to file "plugins/Skript/IGuilds/Config.yml"
- send "File Config.yml was successfull created!" to console
- Wait 5 ticks
- execute console command "/sk reload %script%"
- on explode:
- set {_gildia} to Region.getAt{location of event-location};
- if {_gildia} is not set:
- stop
- set {_time} to {@czas.po.wybuchu}
- set {gildie::explode::%{_gildia}%} to {_time}
- while {gildie::explode::%{_gildia}%} is greater than 0:
- wait 1 second
- subtract 1 from {gildie::explode::%{_gildia}%}
- stop
- on break:
- if player doesn't have permission "iguilds.adminn":
- 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
- on place:
- if player doesn't have permission "iguilds.adminn":
- 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%}%":
- set {_time} to {@czas.po.wybuchu}
- if {gildie::explode::%{gildie::wGildii::%name of player%}%} is set:
- if {gildie::explode::%{gildie::wGildii::%name of player%}%} is less than {_time}:
- send "{@tag} {@color1}Na terenie Twojej gildii wybuchlo {@color2}TNT{@color1}! Nie mozesz budowac jeszcze przez {@color2}%{iguilds::explode::%{iguilds::wGildii::%name of player%}%}%{@color1} sekund!"
- stop
- else:
- clear {gildie::explode::%{gildie::wGildii::%name of player%}%}
- stop
- else:
- cancel event
- send "&cTo jest teren innej gildi!"
- stop
- on anymove:
- if {region.%player%.lastguild} is not set:
- set {region.%player%.lastguild} to "Brak"
- if Region.getAt{location of player} is not set:
- set {_guild} to "Brak"
- else:
- set {_guild} to Region.getAt{location of player}
- if {_guild} is not {region.%player%.lastguild}:
- if {_guild} is "None" or "<none>" or "Brak":
- #send "{@tag}&7Wyszedles z terenu %{region.%player%.lastguild}%"
- create timed bar with text "&6Wyszedles z terenu gildii: &2[&6%{region.%player%.lastguild}%&2]" to player for 15 seconds
- else:
- #send "Weszles na teren %{_guild}%"
- create timed bar with text "&6Wkroczyles na teren gildii: &2[&6%{_guild}%&2]" to player for 15 seconds
- set {region.%player%.lastguild} to {_guild}
- on first join:
- set {godziny.%player%} to 0
- set {dedy.%player%} to 0
- set {kille.%player%} to 0
- set {pkt::%player%} to 1000
- on quit:
- remove 1 from {lista}
- on join:
- if {pkt::%player%} is not set:
- set {pkt::%player%} to 1000
- if {godziny.%player%} is not set:
- set {godziny.%player%} to 0
- if {dedy.%player%} is not set:
- set {dedy.%player%} to 0
- if {kille.%player%} is not set:
- set {kille.%player%} to 0
- #==========================Topki====================================#
- every 1 second:
- loop all players:
- loop {punkty.gildia::*}:
- set {_lista::%loop-index%} to loop-value
- loop 16 times:
- loop {_lista::*}:
- {_v.%loop-number%} is not set:
- set {_v.%loop-number%} to loop-value
- set {_n.%loop-number%} to loop-index
- loop-value is greater than {_v.%loop-number%}:
- set {_v.%loop-number%} to loop-value
- set {_n.%loop-number%} to loop-index
- {_v.%loop-number%} is not 0:
- set {mg.%loop-number%} to {_n.%loop-number%}
- delete {_lista::%{_n.%loop-number%}%}
- set {_num} to size of {pkt::*}
- loop {_num} times:
- loop {pkt::*}:
- {_v.%loop-number%} is not set:
- set {_v.%loop-number%} to loop-value
- set {_n.%loop-number%} to loop-index
- loop-value is greater than {_v.%loop-number%}:
- set {_v.%loop-number%} to loop-value
- set {_n.%loop-number%} to loop-index
- remove {_v.%loop-number%} from {pkt::*}
- loop {_num} times:
- loop-number is less than or equal to 15:
- set {m.%loop-number%} to "%{_n.%loop-number%}%"
- set {pkt::%{_n.%loop-number%}%} to {_v.%loop-number%}
- #======================Tab Lista========================================#
- on join:
- set {_Tab} to "tag"
- "{_Tab}".Tab.set{1, " "};
- "{_Tab}".Tab.set{2, " "};
- "{_Tab}".Tab.set{3, " "};
- "{_Tab}".Tab.set{4, "&8&l>>>>>>>>>>>>>>>>"};
- "{_Tab}".Tab.set{5, "&4&lLinijka 1158 w sk"};
- "{_Tab}".Tab.set{6, "&8&l<<<<<<<<<<<<<<<<"};
- "{_Tab}".Tab.set{7, "&3"};
- set {_max} to max players
- "{_Tab}".Tab.set{8, " &8[&2%number of all players%&8/&2%{_max}%&8]"};
- "{_Tab}".Tab.set{9, "&6"};
- "{_Tab}".Tab.set{10, "&6&lRANKING GILDII:"};
- "{_Tab}".Tab.set{11, "&2"};
- "{_Tab}".Tab.set{12, "&6&lRANKING PVP:"};
- if {mg.1} is set:
- "{_Tab}".Tab.set{13, "&c1. &7%{mg.1}%"};
- else:
- "{_Tab}".Tab.set{13, "&c1. &7---"};
- "{_Tab}".Tab.set{14, " &6&lINFORMACJE:"};
- if {m.1} is set:
- "{_Tab}".Tab.set{15, "&c1. &7%{m.1}%"};
- else:
- "{_Tab}".Tab.set{15, "&c1. &c&7---"};
- if {mg.2} is set:
- "{_Tab}".Tab.set{16, "&c2. &7%{mg.2}%"};
- else:
- "{_Tab}".Tab.set{16, "&c2. &1&7&7---"};
- "{_Tab}".Tab.set{17, "&aNick:"};
- if {m.2} is set:
- "{_Tab}".Tab.set{18, "&c2. &7%{m.2}%"};
- else:
- "{_Tab}".Tab.set{18, "&c2. &2&7---"};
- if {mg.3} is set:
- "{_Tab}".Tab.set{19, "&c3. &7%{mg.3}%"};
- else:
- "{_Tab}".Tab.set{19, "&c3. &3&7---"};
- "{_Tab}".Tab.set{20, "&7%player%"};
- if {m.3} is set:
- "{_Tab}".Tab.set{21, "&c3. &7%{m.3}%"};
- else:
- "{_Tab}".Tab.set{21, "&c3. &4&7---"};
- if {mg.4} is set:
- "{_Tab}".Tab.set{22, "&c4. &7%{mg.4}%"};
- else:
- "{_Tab}".Tab.set{22, "&c4. &5&7---"};
- "{_Tab}".Tab.set{23, "&aZgony:"};
- if {m.4} is set:
- "{_Tab}".Tab.set{24, "&c4. &7%{m.4}%"};
- else:
- "{_Tab}".Tab.set{24, "&c4. &8&7---"};
- if {mg.5} is set:
- "{_Tab}".Tab.set{25, "&c5. &7%{mg.5}%"};
- else:
- "{_Tab}".Tab.set{25, "&c5. &9&7---"};
- "{_Tab}".Tab.set{26, "&7%{dedy.%player%}%"};
- if {m.5} is set:
- "{_Tab}".Tab.set{27, "&c5. &7%{m.5}%"};
- else:
- "{_Tab}".Tab.set{27, "&c5. &e&7---"};
- if {mg.6} is set:
- "{_Tab}".Tab.set{28, "&c6. &7%{mg.6}%"};
- else:
- "{_Tab}".Tab.set{28, "&c6. &d&7---"};
- "{_Tab}".Tab.set{29, "&aZabicia:"};
- if {m.6} is set:
- "{_Tab}".Tab.set{30, "&c6. &7%{m.6}%"};
- else:
- "{_Tab}".Tab.set{30, "&c6. &l&7---"};
- if {mg.7} is set:
- "{_Tab}".Tab.set{31, "&c7. &7%{mg.7}%"};
- else:
- "{_Tab}".Tab.set{31, "&c7. &7&7---"};
- "{_Tab}".Tab.set{32, "&7&7%{kille.%player%}%"};
- if {m.7} is set:
- "{_Tab}".Tab.set{33, "&c7. &7%{m.7}%"};
- else:
- "{_Tab}".Tab.set{33, "&c7. &l&7&7---"};
- if {mg.8} is set:
- "{_Tab}".Tab.set{34, "&c8. &7%{mg.8}%"};
- else:
- "{_Tab}".Tab.set{34, "&c8. &l&7&7---"};
- "{_Tab}".Tab.set{35, "&aPunkty:"};
- if {m.8} is set:
- "{_Tab}".Tab.set{36, "&c8. &7%{m.8}%"};
- else:
- "{_Tab}".Tab.set{36, "&c8. &l&7&7&7---"};
- if {mg.9} is set:
- "{_Tab}".Tab.set{37, "&c9. &7%{mg.9}%"};
- else:
- "{_Tab}".Tab.set{37, "&c9. &2&7---"};
- "{_Tab}".Tab.set{38, "&7%{pkt::%player%}%"};
- if {m.9} is set:
- "{_Tab}".Tab.set{39, "&c9. &7%{m.9}%"};
- else:
- "{_Tab}".Tab.set{39, "&c9. &l&7&7&7&7---"};
- if {mg.10} is set:
- "{_Tab}".Tab.set{40, "&c10. &7%{mg.10}%"};
- else:
- "{_Tab}".Tab.set{40, "&c10. &2&7&7---"};
- "{_Tab}".Tab.set{41, " &2&lI&7&lGuilds:"};
- if {m.10} is set:
- "{_Tab}".Tab.set{42, "&c10. &7%{m.10}%"};
- else:
- "{_Tab}".Tab.set{42, "&c10. &l&7---"};
- if {mg.11} is set:
- "{_Tab}".Tab.set{43, "&c11. &7%{mg.11}%"};
- else:
- "{_Tab}".Tab.set{43, "&c11. &2&7&7---"};
- "{_Tab}".Tab.set{44, "&4Tag:"};
- if {m.11} is set:
- "{_Tab}".Tab.set{45, "&c11. &7%{m.11}%"};
- else:
- "{_Tab}".Tab.set{45, "&c11. &l&7---"};
- if {mg.12} is set:
- "{_Tab}".Tab.set{46, "&c12. &7%{mg.12}%"};
- else:
- "{_Tab}".Tab.set{46, "&c12. &2&7&7---"};
- if {gildie::wGildii::%player%} is set:
- "{_Tab}".Tab.set{47, "&c%{gildie::wGildii::%player%}%"};
- else:
- "{_Tab}".Tab.set{47, "&c---"};
- if {m.12} is set:
- "{_Tab}".Tab.set{48, "&c12. &7%{m.12}%"};
- else:
- "{_Tab}".Tab.set{48, "&c12. &l&7---"};
- if {mg.13} is set:
- "{_Tab}".Tab.set{49, "&c13. &7%{mg.13}%"};
- else:
- "{_Tab}".Tab.set{49, "&c13. &2&7&7---"};
- "{_Tab}".Tab.set{50, "&4Lider:"};
- if {m.13} is set:
- "{_Tab}".Tab.set{51, "&c13. &7%{m.13}%"};
- else:
- "{_Tab}".Tab.set{51, "&c13. &l&7---"};
- if {mg.14} is set:
- "{_Tab}".Tab.set{52, "&c14. &7%{mg.14}%"};
- else:
- "{_Tab}".Tab.set{52, "&c14. &2&7&7---"};
- set {_lider} to {gildie::%{gildie::wGildii::%player%}%.lider}
- if {gildie::wGildii::%player%} is set:
- "{_Tab}".Tab.set{53, "&c%{_lider}%"};
- else:
- "{_Tab}".Tab.set{53, "&c&c---"};
- if {m.14} is set:
- "{_Tab}".Tab.set{54, "&c14. &7%{m.14}%"};
- else:
- "{_Tab}".Tab.set{54, "&c14. &l&7---"};
- if {mg.15} is set:
- "{_Tab}".Tab.set{55, "&c15. &7%{mg.15}%"};
- else:
- "{_Tab}".Tab.set{55, "&c15. &2&7&7---"};
- "{_Tab}".Tab.set{56, "&4Punkty:"};
- if {m.15} is set:
- "{_Tab}".Tab.set{57, "&c15. &7%{m.15}%"};
- else:
- "{_Tab}".Tab.set{57, "&c15. &l&7---"};
- "{_Tab}".Tab.set{58, "&c&c"};
- set {_pkt} to {punkty.gildia::%{gildie::wGildii::%player%}%}
- if {gildie::wGildii::%player%} is set:
- "{_Tab}".Tab.set{59, "&c%{_pkt}%"};
- else:
- "{_Tab}".Tab.set{59, "&c&c&c---"};
- "{_Tab}".Tab.set{60, "&c"};
- "{_Tab}".Tab.send{player};
- every 1 hour:
- loop all players:
- add 1 to {godziny.%loop-player%}
- on death:
- if victim is a player:
- if attacker is a player:
- add 1 to {kille.%attacker%}
- add 1 to {dedy.%victim%}
- if {gildie::wGildii::%victim%} is set:
- if {gildie::wGildii::%attacker%} is set:
- set {_pktattacker} to random integer between 1 and 100
- add {_pktattacker} to {punkty.gildia::%{gildie::wGildii::%attacker%}%}
- add {_pktattacker} to {pkt::%attacker%}
- set {_pktvictim} to random integer between -1 and -50
- add {_pktvictim} to {punkty.gildia::%{gildie::wGildii::%victim%}%}
- add {_pktvictim} to {pkt::%victim%}
- set death message to "&7&l>> &aGracz &8[&2%{gildie::wGildii::%victim%}%&8]&3%victim% &a(&c%{_pktvictim}%&a) &azostal zabity przez &8[&2%{gildie::wGildii::%attacker%}%&8]&3%attacker% &az przedmiotu &3%tool of attacker% &7(&a+%{_pktattacker}%&a)"
- stop
- stop
- if {gildie::wGildii::%attacker%} is set:
- set {_pktattacker} to random integer between 1 and 100
- add {_pktattacker} to {punkty.gildia::%{gildie::wGildii::%attacker%}%}
- add {_pktattacker} to {pkt::%attacker%}
- set {_pktvictim} to random integer between -1 and -50
- add {_pktvictim} to {pkt::%victim%}
- set death message to "&7&l>> &aGracz &3%victim% &a(%{_pktvictim}%) &azostal zabity przez &8[&2%{gildie::wGildii::%attacker%}%&8]&3%attacker% &az przedmiotu &3%tool of attacker% &a(&c+%{_pktattacker}%&a)"
- stop
- if {gildie::wGildii::%victim%} is set:
- set {_pktvictim} to random integer between -1 and -50
- add {_pktvictim} to {punkty.gildia::%{gildie::wGildii::%victim%}%}
- set {_pktattacker} to random integer between 1 and 100
- add {_pktattacker} to {pkt::%attacker%}
- set death message to "&7&l>> &aGracz &8[&2%{gildie::wGildii::%victim%}%&8]&3%victim% &a(&c%{_pktvictim}%&a) &azostal zabity przez &3%attacker% &a(+%{_pktattacker}%) &az przedmiotu &3%tool of attacker%"
- stop
- else:
- set {_pktvictim} to random integer between -1 and -50
- add {_pktvictim} to {pkt::%victim%}
- set {_pktattacker} to random integer between 1 and 100
- add {_pktattacker} to {pkt::%attacker%}
- set death message to "&7&l>> &aGracz &3%victim% &a(%{_pktvictim}%) &azostal zabity przez &3%attacker% &a(+%{_pktattacker}%) &az przedmiotu &3%tool of attacker%"
- 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 {dedy.%victim%}
- set death message to "&7&l>> &aGracz &3%victim% &azginal z reki moba :)"
- else:
- if attacker is wither or ender dragon:
- strike lightning effect at the player
- add 1 to {dedy.%victim%}
- set death message to "&7&l>> &aGracz &3%victim% &azginal od &4BOSSA "
- else:
- if damage has been caused by block explosion:
- strike lightning effect at the player
- add 1 to {dedy.%victim%}
- set death message to "&7&l>> &aGracz &3%victim% &awybuchna :)"
- else:
- if damage has been caused by fall:
- strike lightning effect at the player
- add 1 to {dedy.%victim%}
- set death message to "&7&l>> &aGracz &3%victim% &apolamal sobie nogi :("
- else:
- if damage has been caused by fire or burn:
- strike lightning effect at the player
- add 1 to {dedy.%victim%}
- set death message to "&7&l>> &aGracz &3%victim% &aspalil sie"
- else:
- if damage has been caused by lava:
- strike lightning effect at the player
- add 1 to {dedy.%victim%}
- set death message to "&7&l>> &aGracz &3%victim% &awpadl do lavy :D "
- else:
- if damage has been caused by drowning:
- strike lightning effect at the player
- add 1 to {dedy.%victim%}
- set death message to "&7&l>> &aGracz &3%victim% &azapomnial wyplynac :>"
- else:
- if damage has been caused by drowning:
- strike lightning effect at the player
- add 1 to {dedy.%victim%}
- set death message to "&7&l>> &aGracz &3%victim% &azapomnial wyplynac :> "
- command /ranking [<player>]:
- aliases: rank, staty, statystyki, r
- trigger:
- arg player is offline:
- send "&cTen gracz jest offline"
- stop
- arg 1 is not set:
- send "&8-======= &6%player% &8========¬"
- send "&8¦&6Punkty: &7%{pkt::%player%}%"
- send "&8¦&6Fragi: &7%{kille.%player%}%"
- send "&8¦&6Zgony: &7%{dedy.%player%}%"
- if {gildie::wGildii::%player%} is not set:
- send "&8¦&6Gildia: &c---"
- else:
- send "&8¦&6Gildia: &7%{gildie::wGildii::%player%}%"
- send "&8¦&6Godziny gry: &7%{godziny.%player%}% h"
- send "&8L====================-"
- stop
- send "&8-======= &6%arg 1% &8========¬"
- send "&8¦&6Punkty: &7%{pkt::%arg 1%}%"
- send "&8¦&6Fragi: &7%{kille.%arg 1%}%"
- send "&8¦&6Zgony: &7%{dedy.%arg 1%}%"
- if {gildie::wGildii::%arg 1%} is set:
- send "&8¦&6Gildia: &7%{gildie::wGildii::%arg player%}%"
- else:
- send "&8¦&6Gildia: &c---"
- send "&8¦&6Godziny gry: &7%{godziny.%arg 1%}% h"
- send "&8L====================-"
- stop
Advertisement
Add Comment
Please, Sign In to add comment