Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # # # # # # # # # # # # # # # #
- # Script by Patek #
- # Name: PVPGuild #
- # Version: 1.5.1 #
- # Skript: 2.1/2.1.2 #
- # # # # # # # # # # # # # # # #
- #=============================================#
- # Licencja PVPGuild by Patek! #
- # + Nie zezwalam na: #
- # - Usuwanie tresci o autorze! #
- # - Udostepnaniu skryptu innym! #
- # - Podszywanie sie pod autora! #
- # - Uzywanie kodu skryptu w swoich skryptach! #
- # - Zarabianie na skrypcie! #
- # + Zezwalam na: #
- # - Dodawanie kodu na swoja potrzebe! #
- # - Modyfikowanie wiadomosci! #
- #=============================================#
- options:
- # Tag wyswietlany przed wiadomosciami skryptu!:
- tag: &7[&4PVP&8Guild&7]
- # Wyglad chatu:
- chat: &7[&6{TAG}&7] {NICK}: &f{MSG}
- # Czy trzeba placic za gildie? (true|false):
- payment-for-guild: true
- # Jaka zaplata ma byc przyjmowana (money|item):
- payment-type: item
- # Ilosc pieniedzy do zalozenia gildi:
- payment-money-amount: 1000
- # Itemki na zalozenie gildii. Jezeli chcesz wiecej niz 5 wystarczy ze 1 jednej linice wpisz np. 3 cobblestone, 2 redstone and 1 torch , a jezeli nic wpisz none|air:
- payment-item-1: 3 stone
- payment-item-2: 2 redstone
- payment-item-3: 5 cobblestone
- payment-item-4: 6 torch
- payment-item-5: air
- on load:
- send "&7[&4PVP&8Guild&7] PVPGuild &aEnabled!" to console
- send "&7[&4PVP&8Guild&7] PVPGuild by Patek" to console
- send "&7[&4PVP&8Guild&7] PVPGuild version 1.5.5" to console
- command /pvpguild [<text>] [<text>] [<text>]:
- aliases: g, guild, gildia
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- execute player command "/pvpguild help"
- stop
- if arg 2 is "2":
- execute player command "/pvpguild help 2"
- stop
- if arg 2 is "1":
- execute player command "/pvpguild help"
- stop
- if arg 1 is "2":
- execute player command "/pvpguild help 2"
- stop
- if arg 1 is "reload":
- if player has permission "pvpguild.admin":
- execute console command "/sk reload %script%"
- send "{@tag} &aPrzeladowano!"
- stop
- send "{@tag} &cNie masz uprwanien do tej komendy!"
- stop
- if arg 1 is "pomoc" or "help" or "?":
- if arg 2 is not set:
- send "&8========&6PVPGuild&8========"
- send "&e/gildia &a- &7Wszystkie komendy dla gildii!"
- send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
- send "&e/gildia usun &a- &7Usuwa gildie!"
- send "&e/gildia info [Nazwa] &a- &7Informacje o gildii!"
- send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildii!"
- send "&e/gildia wypros [Nick] &a- &7Usuwa gracza z gildii!"
- send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildii!"
- send "&e/gildia list &a- &7Lista wszystkich gildiii!"
- send "&e/gildia akceptuj [Nazwa] &a- &7Akceptuje zaproszenie od gildii!"
- stop
- if arg 2 is "1":
- execute player command "/pvpguild help"
- stop
- if arg 2 is "2":
- send "&8========&6PVPGuild&8========"
- send "&e/gildia opusc &a- &7Opuszcza gildie!"
- send "&e/gildia pvp &a- &7Wlacza/Wylacz pvp miedzy czlonkami gildii!"
- send "&e/gildia chat &a- &7Chat gildijny"
- send "&e/gildia degrad [Nick] &a- &7Degraduje gracza z oficera!"
- stop
- if arg 2 is "3" or "4" or "5":
- send "{@tag} &cTa strona nie istnieje!"
- stop
- if arg 1 is "stworz" or "create" or "c":
- if player has permission "pvpguild.create" or "pvpguild.admin" or "pvpguild.gracz":
- if {pvpguild.guild::%arg 3%} is not set:
- if {pvpguild.inguild::%name of player%} is not set:
- if arg 2 is set:
- if length of argument 2 is smaller than 5:
- if arg 3 is set:
- if length of arg 3 is smaller than 21:
- if {@payment-for-guild} is true:
- if "{@payment-type}" is "money":
- set {_amount.money} to {@payment-money-amount}
- if PLAYER'S MONEY is greater than {_amount.money}-1:
- remove {_amount.money} from the player's balance
- set {pvpguild.guild::%arg 3%} to true
- set {pvpguild.%arg 3%.lider} to "%name of player%"
- set {pvpguild.%arg 3%.tag} to "%arg 2%"
- set {pvpguild.inguild::%name of player%} to "%arg 3%"
- add "%arg 2%" to {pvpguild.taglist::*}
- add "%arg 3%" to {pvpguild.guildlist::*}
- broadcast "{@tag} &7%name of player% &aUtworzyl gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
- stop
- send "{@tag} &cNie masz wystarczająco pieniędzy na zalozenie gildii!"
- stop
- if "{@payment-type}" is "item":
- if player has {@payment-item-1}:
- if player has {@payment-item-2}:
- if player has {@payment-item-3}:
- if player has {@payment-item-4}:
- if player has {@payment-item-5}:
- remove {@payment-item-1} from the player
- remove {@payment-item-2} from the player
- remove {@payment-item-3} from the player
- remove {@payment-item-4} from the player
- remove {@payment-item-5} from the player
- set {pvpguild.guild::%arg 3%} to true
- set {pvpguild.%arg 3%.lider} to "%name of player%"
- set {pvpguild.%arg 3%.tag} to "%arg 2%"
- set {pvpguild.inguild::%name of player%} to "%arg 3%"
- add "%arg 2%" to {pvpguild.taglist::*}
- add "%arg 3%" to {pvpguild.guildlist::*}
- broadcast "{@tag} &7%name of player% &aUtworzyÂł gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
- stop
- send "{@tag} &cNie posiadasz odpowiednich itemow!"
- stop
- send "{@tag} &cNie posiadasz odpowiednich itemow!"
- stop
- send "{@tag} &cNie posiadasz odpowiednich itemow!"
- stop
- send "{@tag} &cNie posiadasz odpowiednich itemow!"
- stop
- send "{@tag} &cNie posiadasz odpowiednich itemow!"
- stop
- stop
- set {pvpguild.guild::%arg 3%} to true
- set {pvpguild.%arg 3%.lider} to "%name of player%"
- set {pvpguild.%arg 3%.tag} to "%arg 2%"
- set {pvpguild.inguild::%name of player%} to "%arg 3%"
- add "%arg 2%" to {pvpguild.taglist::*}
- add "%arg 3%" to {pvpguild.guildlist::*}
- broadcast "{@tag} &7%name of player% &aUtworzyÂł gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
- stop
- send "{@tag} &cNazwa gildi nie moze miec wiecej niz 20 znakow!"
- stop
- send "{@tag} &cPodaj nazwe swojej gildi!"
- stop
- send "{@tag} &cTag gildi nie moze miec wiecej niz 4 znaki!"
- stop
- send "{@tag} &cPodaj tag gildi!"
- stop
- send "{@tag} &cAby zalozyc gildie najpierw musisz oposcic aktualna!"
- stop
- send "{@tag} &cTaka gildia juz istnieje!"
- stop
- send "{@tag} &cNie masz uprwanien do tej komendy!"
- stop
- if arg 1 is "info" or "informacje" or "i":
- if player has permission "pvpguild.info" or "pvpguild.admin" or "pvpguild.gracz":
- if arg 2 is set:
- if {pvpguild.guild::%arg 2%} is set:
- if {pvpguild.%arg 2%.members::*} is set:
- if {pvpguild.%arg 2%.oficers::*} is set:
- send "&7Nazwa gildi: &9%arg 2%"
- send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
- send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
- loop {pvpguild.%arg 2%.oficers::*}:
- if loop-value PARSED AS player is online:
- add loop-value to {_online.oficers::*}
- if loop-value parsed as player is offline:
- add loop-value to {_offline.oficers::*}
- if {_online.oficers::*} is set:
- if {_offline.oficers::*} is set:
- send "&7Oficerowie gildi: &a%{_online.oficers::*}% &c%{_offline.oficers::*}%"
- loop {pvpguild.%arg 2%.members::*}:
- if loop-value parsed as player is online:
- add loop-value to {_online.members::*}
- if loop-value parsed as player is offline:
- add loop-value to {_offline.members::*}
- if {_online.members::*} is set:
- if {_offline.members::*} is set:
- send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
- stop
- send "&7Czlonkowie gildi: &a%{_online.members::*}%"
- stop
- send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
- stop
- send "&7Nazwa gildi: &9%arg 2%"
- send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
- send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
- send "&7Oficerowie gildi: &9Brak"
- loop {pvpguild.%arg 2%.members::*}:
- if loop-value parsed as player is online:
- add loop-value to {_online.members::*}
- if loop-value parsed as player is offline:
- add loop-value to {_offline.members::*}
- if {_online.members::*} is set:
- if {_offline.members::*} is set:
- send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
- stop
- send "&7Czlonkowie gildi: &a%{_online.members::*}%"
- stop
- send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
- stop
- send "&7Nazwa gildi: &9%arg 2%"
- send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
- send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
- send "&7Oficerowie gildi: &9Brak"
- send "&7Czlonkowie gildi: &9Brak"
- stop
- send "{@tag} &cTaka gildia nie istnieje!"
- stop
- else:
- if {pvpguild.inguild::%name of player%} is set:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is set:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is set:
- send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
- send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
- send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
- loop {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}:
- if loop-value parsed as player is online:
- add loop-value to {_online.oficers::*}
- if loop-value parsed as player is offline:
- add loop-value to {_offline.oficers::*}
- if {_online.oficers::*} is set:
- if {_offline.oficers::*} is set:
- send "&7Oficerowie gildi: &a%{_online.oficers::*}% &c%{_offline.oficers::*}%"
- stop
- send "&7Oficerowie gildi: &a%{_online.oficers::*}%"
- stop
- send "&7Oficerowie gildi: &c%{_offline.oficers::*}%"
- stop
- loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
- if loop-value parsed as player is online:
- add loop-value to {_online.members::*}
- if loop-value parsed as player is offline:
- add loop-value to {_offline.members::*}
- if {_online.members::*} is set:
- if {_offline.members::*} is set:
- send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
- stop
- send "&7Czlonkowie gildi: &a%{_online.members::*}% "
- stop
- send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
- stop
- send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
- send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
- send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
- send "&7Oficerowie gildi: &9Brak"
- loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
- if loop-value parsed as player is online:
- add loop-value to {_online.members::*}
- if loop-value parsed as player is offline:
- add loop-value to {_offline.members::*}
- if {_online.members::*} is set:
- if {_offline.members::*} is set:
- send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
- stop
- send "&7Czlonkowie gildi: &a%{_online.members::*}% "
- stop
- send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
- stop
- send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
- send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
- send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
- send "&7Oficerowie gildi: &9Brak"
- send "&7Czlonkowie gildi: &9Brak"
- stop
- send "{@tag} &cNie posiadasz gildi!"
- stop
- send "{@tag} &cNie masz uprwanien do tej komendy!"
- stop
- if arg 1 is "usun" or "delete" or "u":
- if player has permission "pvpguild.delete" or "pvpguild.admin" or "pvpguild.gracz":
- if {pvpguild.inguild::%name of player%} is set:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
- remove "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" from {pvpguild.taglist::*}
- remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.guildlist::*}
- broadcast "{@tag} &7%name of player% &aUsunal gildie o nazwie &9%{pvpguild.inguild::%name of player%}% &a i tagu &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
- clear {pvpguild.guild::%{pvpguild.inguild::%name of player%}%}
- clear {pvpguild.%{pvpguild.inguild::%name of player%}%.lider}
- clear {pvpguild.%{pvpguild.inguild::%name of player%}%.tag}
- remove "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" from {pvpguild.taglist::*}
- if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is greater than 0:
- loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
- clear {pvpguild.inguild::%loop-value%}
- remove "%loop-value%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
- if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is greater than 0:
- loop {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}:
- clear {pvpguild.inguild::%loop-value%}
- remove "%loop-value%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
- clear {pvpguild.inguild::%name of player%}
- stop
- send "{@tag} &cTylko lider gildi moze tego uzywac!"
- stop
- send "{@tag} &cNie posiadasz gildi!"
- stop
- send "{@tag} &cNie masz uprwanien do tej komendy!"
- stop
- if arg 1 is "list" or "lista" or "l":
- if player has permission "pvpguild.list" or "pvpguild.admin" or "pvpguild.gracz":
- set {_strona} to arg 2 parsed as number
- if {_strona} is not set:
- set {_strona} to 1
- set {_liczbawpisow} to size of {pvpguild.guildlist::*}
- set {_liczba-stron} to ceil({_liczbawpisow}/10)
- if {_liczba-stron} is smaller than 1:
- set {_liczba-stron} to 1
- if {_strona} is smaller than 1:
- send "{@tag} &cNie ma takiej strony!"
- stop
- if {_strona} is greater than {_liczba-stron}:
- send "{@tag} &cNie ma takiej strony!"
- stop
- if size of {pvpguild.guildlist::*} is smaller than 1:
- send "{@tag} &cBrak gildi!"
- stop
- loop {pvpguild.guildlist::*}:
- add loop-value to {_pvpguild.guildlist::*}
- loop {pvpguild.taglist::*}:
- add loop-value to {_pvpguild.taglist::*}
- send "&8Lista gildii: &2%{_strona}%&6/&2%{_liczba-stron}%"
- loop {_liczbawpisow} times:
- set {_lista} to ({_strona}-1)*10
- add loop-number to {_lista}
- if {_pvpguild.guildlist::%{_lista}%} is not set:
- stop
- if loop-number is 11:
- stop
- send "&8%{_lista}%. &4%{_pvpguild.guildlist::%{_lista}%}% &7[&9%{_pvpguild.taglist::%{_lista}%}%&7]"
- stop
- send "{@tag} &cNie masz uprawnien do tej komendy!"
- stop
- if arg 1 is "invite" or "zapros" or "inv":
- if player has permission "pvpguild.invite" or "pvpguild.admin" or "pvpguild.gracz":
- if {pvpguild.inguild::%name of player%} is set:
- if arg 2 is set:
- set {_player} to arg 2 parsed as player
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
- set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
- send "&8===================================================" to {_player}
- send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
- send "&eWpisz &a/g accept %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
- send "&8===================================================" to {_player}
- send "&8==================================================="
- send "&eZaproszenie zostalo wyslane do &a%{_player}%"
- send "&8==================================================="
- wait 1 minute
- if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
- clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
- stop
- stop
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
- set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
- send "&8===================================================" to {_player}
- send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
- send "&eWpisz &a/g accept %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
- send "&8===================================================" to {_player}
- send "&8==================================================="
- send "&eZaproszenie zostalo wyslane do &a%{_player}%"
- send "&8==================================================="
- wait 1 minute
- if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
- clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
- stop
- stop
- send "{@tag} &cTylko lider/oficer moze zapraszac do gildi!"
- stop
- send "{@tag} &cPodaj nick gracza!"
- stop
- send "{@tag} Musisz być w gildi!"
- stop
- send "{@tag} &cNie masz uprawnien do tej komendy!"
- stop
- if arg 1 is "accept" or "akceptuj" or "acpt":
- if player has permission "pvpguild.accept" or "pvpguild.admin" or "pvpguild.gracz":
- if {pvpguild.inguild::%name of player%} isn't set:
- if arg 2 is set:
- if {pvpguild.guild::%arg 2%} is true:
- if {invite.%arg 2%.%name of player%} is true:
- set {pvpguild.inguild::%name of player%} to "%arg 2%"
- clear {invite.%arg 2%.%name of player%}
- add "%name of player%" to {pvpguild.%arg 2%.members::*}
- broadcast "{@tag} &7%player% &aDolaczyl do gildi &9%arg 2%"
- stop
- send "{@tag} &cNie masz zaproszenia od tej gildi!"
- stop
- send "{@tag} &cTaka gildia nie istnieje!"
- stop
- send "{@tag} &cPodaj nazwe gildi!"
- stop
- send "{@tag} &cNajpierw opusc gildie!"
- stop
- send "{@tag} &cNie masz uprawnien do tej komendy!"
- stop
- if arg 1 is "opusc" or "leave" or "lv":
- if player has permission "pvpguild.leave" or "pvpguild.admin" or "pvpguild.gracz":
- if {pvpguild.inguild::%name of player%} is set:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
- send "{@tag} &cLider nie moze opuscic klanu! Uzyj: &4/g usun"
- stop
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
- remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
- remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
- broadcast "{@tag} &7%player% &aOpuscil gildie &9%{pvpguild.inguild::%name of player%}%"
- clear {pvpguild.inguild::%name of player%}
- stop
- remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
- broadcast "{@tag} &7%player% &aOpuscil gildie &9%{pvpguild.inguild::%name of player%}%"
- clear {pvpguild.inguild::%name of player%}
- stop
- send "{@tag} &cNie masz gildi!"
- stop
- send "{@tag} &cNie masz uprawnien do tej komendy!"
- stop
- if arg 1 is "wyrzuc" or "kick" or "idz":
- if player has permission "pvpguild.kick" or "pvpguild.admin" or "pvpguild.gracz":
- if {pvpguild.inguild::%name of player%} is set:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
- if arg 2 is set:
- loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
- loop-value is argument 2:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer} is loop-value:
- clear {pvpguild.%{pvpguild.inguild::%name of player%}%.%argument 2 parsed as offline player%.oficer}
- clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
- remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
- remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
- broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
- stop
- clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
- remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
- broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
- stop
- send "{@tag} &cTen gracz nie jest w naszej gildi!"
- stop
- send "{@tag} &cPodaj nick gracza!"
- stop
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
- if arg 2 is set:
- loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
- loop-value is argument 2 parsed as offline player:
- loop-value is not {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer}:
- clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
- remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
- broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
- stop
- send "{@tag} &cNie mozesz wyrzucic oficera gildi!"
- stop
- send "{@tag} &cTen gracz nie jest w naszej gildi!"
- stop
- send "{@tag} &cPodaj nick gracza!"
- stop
- send "{@tag} &cTylko lider/oficer gildi może wyrzucac graczy!"
- stop
- send "{@tag} &cNie masz gildi!"
- stop
- send "{@tag} &cNie masz uprwanien do tej komendy!"
- stop
- if arg 1 is "chat":
- if player has permission "pvpguild.chat" or "pvpguild.admin" or "pvpguild.gracz":
- if {pvpguild.inguild::%name of player%} is set:
- if arg 2 is set:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} contain player:
- loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
- set {_p} to loop-value parsed as player
- set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
- if arg 3 is set:
- set {_} to coloured arg 3
- send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_p}
- send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_l}
- stop
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain player:
- loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
- set {_p} to loop-value parsed as player
- set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
- set {_} to ""
- if arg 3 is set:
- set {_} to coloured arg 3
- send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_p}
- send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_l}
- stop
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
- if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is bigger than 0:
- loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
- set {_p} to loop-value parsed as player
- set {_} to ""
- if arg 3 is set:
- set {_} to coloured arg 3
- send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to {_p}
- send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to player
- stop
- send "{@tag} &cW twojej gildi jest za malo czlonkow by wyslac wiadomosc!"
- stop
- send "{@tag} &cPodaj wiadomosc!"
- stop
- send "{@tag} &cMusisz byc w gildi!"
- stop
- send "{@tag} &cNie masz uprwanien do tej komendy!"
- stop
- if arg 1 is "oficer":
- if player has permission "pvpguild.oficer" or "pvpguild.admin" or "pvpguild.gracz":
- if {pvpguild.inguild::%name of player%} is set:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
- if arg 2 is set:
- set {_p} to arg 2 parsed as player
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is not set:
- add "%{_p}%" to {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
- set {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} to {_p}
- send "{@tag} &aGracz &6%{_p}% &ajest oficerem naszej gildi!"
- stop
- send "{@tag} &cTen gracz jest juz oficerem!"
- stop
- send "{@tag} &cTen gracz nie jest w naszej gildi!"
- stop
- send "{@tag} &cLider nie moze zostac oficerem!"
- stop
- send "{@tag} &cPodaj nick gracza!"
- stop
- send "{@tag} &cTylko lider moze mianowac graczy!"
- stop
- send "{@tag} &cNie jestes w gildi!"
- stop
- send "{@tag} &cNie masz uprwanien do tej komendy!"
- stop
- if arg 1 is "pvp":
- if player has permission "pvpguild.pvp" or "pvpguild.admin" or "pvpguild.gracz":
- if {pvpguild.inguild::%name of player%} is set:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is not set:
- set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to false
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is false:
- set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to true
- send "{@tag} &AWlaczyles pvp miedzy czlonkami gildii!"
- stop
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is true:
- set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to false
- send "{@tag} &AWylaczyles pvp miedzy czlonkami gildii!"
- stop
- stop
- send "{@tag} Tylko lider moze wylaczac pvp!"
- stop
- send "{@tag} &cNie posiadasz gildii!"
- stop
- send "{@tag} &cNie masz uprwanien do tej komendy!"
- stop
- if arg 1 is "degrad" or "degraduj":
- if player has permission "pvpguild.degrad" or "pvpguild.admin" or "pvpguild.gracz":
- if {pvpguild.inguild::%name of player%} is set:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
- if arg 2 is set:
- set {_p} to arg 2 parsed as player
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
- if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is {_p}:
- remove "%{_p}%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
- delete {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer}
- send "{@tag} &aGracz &6%{_p}% &azostal zdegradowany z oficera naszej gildi!"
- stop
- send "{@tag} &cTen gracz nie jest oficerem!"
- stop
- send "{@tag} &cTen gracz nie jest w naszej gildi!"
- stop
- send "{@tag} &cLider nie moze byc zdegradowany!"
- stop
- send "{@tag} &cPodaj nick gracza!"
- stop
- send "{@tag} &cTylko lider moze mianowac graczy!"
- stop
- send "{@tag} &cNie jestes w gildi!"
- stop
- send "{@tag} &cNie masz uprwanien do tej komendy!"
- stop
- send "{@tag} &cNieznana komenda! Wpisz &6/g pomoc &c aby uzyskac wszystkie komendy!"
- stop
- on damage of player:
- if {pvpguild.inguild::%name of attacker%} is set:
- if {pvpguild.inguild::%name of victim%} is set:
- if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.members::*} contain victim:
- if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.pvp} is false:
- cancel event
- stop
- if {pvpguild.%{pvpguild.inguild::%name of victim%}%.members::*} contain attacker:
- if {pvpguild.%{pvpguild.inguild::%name of victim%}%.pvp} is false:
- cancel event
- stop
- on chat:
- if {pvpguild.inguild::%name of player%} is set:
- cancel event
- set {_chat} to "{@chat}"
- replace all "{TAG}" with "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" in {_chat}
- replace all "{NICK}" with "%name of player%" in {_chat}
- replace all "{MSG}" with "%message%" in {_chat}
- broadcast "%{_chat}%"
- stop
Advertisement
Add Comment
Please, Sign In to add comment