patison234

PVPGuild 1.6

Jul 7th, 2014
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 37.51 KB | None | 0 0
  1. # # # # # # # # # # # # # # # #
  2. # Script by Patek             #
  3. # Name: PVPGuild              #
  4. # Version: 1.6                #
  5. # Skript: 2.1/2.1.2           #
  6. # # # # # # # # # # # # # # # #
  7.  
  8.  
  9.  
  10. #=============================================#
  11. #  Licencja PVPGuild by Patek!                #
  12. # + Nie zezwalam na:                          #
  13. # - Usuwanie tresci o autorze!                #
  14. # - Udostepnaniu skryptu innym!               #
  15. # - Podszywanie sie pod autora!               #
  16. # - Uzywanie kodu skryptu w swoich skryptach! #
  17. # - Zarabianie na skrypcie!                   #
  18. # + Zezwalam na:                              #
  19. # - Dodawanie kodu na swoja potrzebe!         #
  20. # - Modyfikowanie wiadomosci!                 #
  21. #=============================================#
  22. options:
  23.  
  24.     # Tag wyswietlany przed wiadomosciami skryptu!:
  25.     tag: &7[&4PVP&8Guild&7]
  26.    
  27.     # Wyglad chatu:
  28.     chat: &7[&6{TAG}&7] {NICK}: &f{MSG}
  29.    
  30.     # Czy trzeba placic za gildie? (true|false):
  31.     payment-for-guild: false
  32.    
  33.     # Jaka zaplata ma byc przyjmowana (money|item):
  34.     payment-type: item
  35.    
  36.     # Ilosc pieniedzy do zalozenia gildi:
  37.     payment-money-amount: 1000
  38.    
  39.     # 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:
  40.     payment-item-1: 3 stone
  41.     payment-item-2: 2 redstone
  42.     payment-item-3: 5 cobblestone
  43.     payment-item-4: 6 torch
  44.     payment-item-5: air
  45. on load:
  46.     send "&7[&4PVP&8Guild&7] PVPGuild &aEnabled!" to console
  47.     send "&7[&4PVP&8Guild&7] PVPGuild by Patek" to console
  48.     send "&7[&4PVP&8Guild&7] PVPGuild version 1.6" to console
  49.  
  50. command /pvpguild [<text>] [<text>] [<text>]:
  51.     aliases: g, guild, gildia
  52.     trigger:
  53.         if arg 1 is not set:
  54.             if arg 2 is not set:
  55.                 send "&8========&6PVPGuild&8========"
  56.                 send "&e/gildia &a- &7Wszystkie komendy dla gildii!"
  57.                 send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  58.                 send "&e/gildia usun &a- &7Usuwa gildie!"
  59.                 send "&e/gildia info [Nazwa] &a- &7Informacje o gildii!"
  60.                 send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildii!"
  61.                 send "&e/gildia wyrzuc [Nick] &a- &7Usuwa gracza z gildii!"
  62.                 send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildii!"
  63.                 send "&e/gildia list &a- &7Lista wszystkich gildiii!"
  64.                 send "&e/gildia dolacz [Nazwa] &a- &7Akceptuje zaproszenie od gildii!"
  65.                 stop
  66.             if arg 2 is "1":
  67.                 send "&8========&6PVPGuild&8========"
  68.                 send "&e/gildia &a- &7Wszystkie komendy dla gildii!"
  69.                 send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  70.                 send "&e/gildia usun &a- &7Usuwa gildie!"
  71.                 send "&e/gildia info [Nazwa] &a- &7Informacje o gildii!"
  72.                 send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildii!"
  73.                 send "&e/gildia wyrzuc [Nick] &a- &7Usuwa gracza z gildii!"
  74.                 send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildii!"
  75.                 send "&e/gildia list &a- &7Lista wszystkich gildiii!"
  76.                 send "&e/gildia dolacz [Nazwa] &a- &7Akceptuje zaproszenie od gildii!"
  77.                 stop
  78.             if arg 2 is "2":
  79.                 send "&8========&6PVPGuild&8========"
  80.                 send "&e/gildia opusc &a- &7Opuszcza gildie!"
  81.                 send "&e/gildia pvp &a- &7Wlacza/Wylacz pvp miedzy czlonkami gildii!"
  82.                 send "&e/gildia chat &a- &7Chat gildijny"
  83.                 send "&e/gildia degrad [Nick] &a- &7Degraduje gracza z oficera!"
  84.                 send "&e/gildia sojusz [Nazwa] &a- &7Wysyla zaproszenie do sojuszu!"
  85.                 send "&e/gildia asojusz [Nazwa] &a- &7Akceptuje sojusz od gildii!"
  86.                 stop
  87.             if arg 2 is "3" or "4" or "5":
  88.                 send "{@tag} &cTa strona nie istnieje!"
  89.                 stop
  90.         if arg 1 is "reload":
  91.             if player has permission "pvpguild.admin":
  92.                 execute console command "/sk reload %script%"
  93.                 send "{@tag} &aPrzeladowano!"
  94.                 stop
  95.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  96.             stop
  97.         if arg 1 is "pomoc" or "help" or "?":
  98.             if arg 2 is not set:
  99.                 send "&8========&6PVPGuild&8========"
  100.                 send "&e/gildia &a- &7Wszystkie komendy dla gildii!"
  101.                 send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  102.                 send "&e/gildia usun &a- &7Usuwa gildie!"
  103.                 send "&e/gildia info [Nazwa] &a- &7Informacje o gildii!"
  104.                 send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildii!"
  105.                 send "&e/gildia wypros [Nick] &a- &7Usuwa gracza z gildii!"
  106.                 send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildii!"
  107.                 send "&e/gildia list &a- &7Lista wszystkich gildiii!"
  108.                 send "&e/gildia dolacz [Nazwa] &a- &7Akceptuje zaproszenie od gildii!"
  109.                 stop
  110.             if arg 2 is "1":
  111.                 send "&8========&6PVPGuild&8========"
  112.                 send "&e/gildia &a- &7Wszystkie komendy dla gildii!"
  113.                 send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  114.                 send "&e/gildia usun &a- &7Usuwa gildie!"
  115.                 send "&e/gildia info [Nazwa] &a- &7Informacje o gildii!"
  116.                 send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildii!"
  117.                 send "&e/gildia wypros [Nick] &a- &7Usuwa gracza z gildii!"
  118.                 send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildii!"
  119.                 send "&e/gildia list &a- &7Lista wszystkich gildiii!"
  120.                 send "&e/gildia dolacz [Nazwa] &a- &7Akceptuje zaproszenie od gildii!"
  121.                 stop
  122.             if arg 2 is "2":
  123.                 send "&8========&6PVPGuild&8========"
  124.                 send "&e/gildia opusc &a- &7Opuszcza gildie!"
  125.                 send "&e/gildia pvp &a- &7Wlacza/Wylacz pvp miedzy czlonkami gildii!"
  126.                 send "&e/gildia chat &a- &7Chat gildijny"
  127.                 send "&e/gildia degrad [Nick] &a- &7Degraduje gracza z oficera!"
  128.                 send "&e/gildia sojusz [Nazwa] &a- &7Wysyla zaproszenie do sojuszu!"
  129.                 send "&e/gildia asojusz [Nazwa] &a- &7Akceptuje sojusz od gildii!"
  130.                 stop
  131.             if arg 2 is "3" or "4" or "5":
  132.                 send "{@tag} &cTa strona nie istnieje!"
  133.                 stop
  134.         if arg 1 is "stworz" or "create" or "c":
  135.             if player has permission "pvpguild.create" or "pvpguild.admin" or "pvpguild.gracz":
  136.                 if {pvpguild.guild::%arg 3%} is not set:
  137.                     if {pvpguild.inguild::%name of player%} is not set:
  138.                         if arg 2 is set:
  139.                             if length of argument 2 is smaller than 5:
  140.                                 if arg 3 is set:
  141.                                     if length of arg 3 is smaller than 21:
  142.                                         if {@payment-for-guild} is true:
  143.                                             if "{@payment-type}" is "money":
  144.                                                 set {_amount.money} to {@payment-money-amount}
  145.                                                 if PLAYER'S MONEY is greater than {_amount.money}-1:
  146.                                                     remove {_amount.money} from the player's balance
  147.                                                     set {pvpguild.guild::%arg 3%} to true
  148.                                                     set {pvpguild.%arg 3%.lider} to "%name of player%"
  149.                                                     set {pvpguild.%arg 3%.tag} to "%arg 2%"
  150.                                                     set {pvpguild.inguild::%name of player%} to "%arg 3%"
  151.                                                     add "%arg 2%" to {pvpguild.taglist::*}
  152.                                                     add "%arg 3%" to {pvpguild.guildlist::*}
  153.                                                     broadcast "{@tag} &7%name of player% &aUtworzyl gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  154.                                                     stop
  155.                                                 send "{@tag} &cNie masz wystarczająco pieniędzy na zalozenie gildii!"
  156.                                                 stop
  157.                                             if "{@payment-type}" is "item":
  158.                                                 if player has {@payment-item-1}:
  159.                                                     if player has {@payment-item-2}:
  160.                                                         if player has {@payment-item-3}:
  161.                                                             if player has {@payment-item-4}:
  162.                                                                 if player has {@payment-item-5}:
  163.                                                                     remove {@payment-item-1} from the player
  164.                                                                     remove {@payment-item-2} from the player
  165.                                                                     remove {@payment-item-3} from the player
  166.                                                                     remove {@payment-item-4} from the player
  167.                                                                     remove {@payment-item-5} from the player
  168.                                                                     set {pvpguild.guild::%arg 3%} to true
  169.                                                                     set {pvpguild.%arg 3%.lider} to "%name of player%"
  170.                                                                     set {pvpguild.%arg 3%.tag} to "%arg 2%"
  171.                                                                     set {pvpguild.inguild::%name of player%} to "%arg 3%"
  172.                                                                     add "%arg 2%" to {pvpguild.taglist::*}
  173.                                                                     add "%arg 3%" to {pvpguild.guildlist::*}
  174.                                                                     broadcast "{@tag} &7%name of player% &aUtworzyÂł gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  175.                                                                     stop
  176.                                                                 send "{@tag} &cNie posiadasz odpowiednich itemow!"
  177.                                                                 stop
  178.                                                             send "{@tag} &cNie posiadasz odpowiednich itemow!"
  179.                                                             stop
  180.                                                         send "{@tag} &cNie posiadasz odpowiednich itemow!"
  181.                                                         stop
  182.                                                     send "{@tag} &cNie posiadasz odpowiednich itemow!"
  183.                                                     stop
  184.                                                 send "{@tag} &cNie posiadasz odpowiednich itemow!"
  185.                                                 stop
  186.                                             stop
  187.                                         set {pvpguild.guild::%arg 3%} to true
  188.                                         set {pvpguild.%arg 3%.lider} to "%name of player%"
  189.                                         set {pvpguild.%arg 3%.tag} to "%arg 2%"
  190.                                         set {pvpguild.inguild::%name of player%} to "%arg 3%"
  191.                                         add "%arg 2%" to {pvpguild.taglist::*}
  192.                                         add "%arg 3%" to {pvpguild.guildlist::*}
  193.                                         broadcast "{@tag} &7%name of player% &aUtworzyÂł gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  194.                                         stop
  195.                                     send "{@tag} &cNazwa gildi nie moze miec wiecej niz 20 znakow!"
  196.                                     stop
  197.                                 send "{@tag} &cPodaj nazwe swojej gildi!"
  198.                                 stop
  199.                             send "{@tag} &cTag gildi nie moze miec wiecej niz 4 znaki!"
  200.                             stop
  201.                         send "{@tag} &cPodaj tag gildi!"
  202.                         stop
  203.                     send "{@tag} &cAby zalozyc gildie najpierw musisz oposcic aktualna!"
  204.                     stop
  205.                 send "{@tag} &cTaka gildia juz istnieje!"
  206.                 stop
  207.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  208.             stop
  209.         if arg 1 is "info" or "informacje" or "i":
  210.             if player has permission "pvpguild.info" or "pvpguild.admin" or "pvpguild.gracz":
  211.                 if arg 2 is set:
  212.                     if {pvpguild.guild::%arg 2%} is set:
  213.                         if {pvpguild.%arg 2%.members::*} is set:
  214.                             if {pvpguild.%arg 2%.oficers::*} is set:
  215.                                 send "&7Nazwa gildi: &9%arg 2%"
  216.                                 send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  217.                                 send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
  218.                                 set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  219.                                 if {_} is 0:
  220.                                     send  "&7Sojusze: &9Brak"
  221.                                 if {_} is greater than 0:
  222.                                     send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  223.                                 loop {pvpguild.%arg 2%.oficers::*}:
  224.                                     if loop-value PARSED AS player is online:
  225.                                         add loop-value to {_online.oficers::*}
  226.                                     if loop-value parsed as player is offline:
  227.                                         add loop-value to {_offline.oficers::*}
  228.                                 if {_online.oficers::*} is set:
  229.                                     if {_offline.oficers::*} is set:
  230.                                         send "&7Oficerowie gildi: &a%{_online.oficers::*}% &c%{_offline.oficers::*}%"
  231.                                 loop {pvpguild.%arg 2%.members::*}:
  232.                                     if loop-value parsed as player is online:
  233.                                         add loop-value to {_online.members::*}
  234.                                     if loop-value parsed as player is offline:
  235.                                         add loop-value to {_offline.members::*}
  236.                                 if {_online.members::*} is set:
  237.                                     if {_offline.members::*} is set:
  238.                                         send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  239.                                         stop
  240.                                     send "&7Czlonkowie gildi: &a%{_online.members::*}%"
  241.                                     stop
  242.                                 send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  243.                                 stop
  244.                             send "&7Nazwa gildi: &9%arg 2%"
  245.                             send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  246.                             send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
  247.                             send "&7Oficerowie gildi: &9Brak"                      
  248.                             set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  249.                             if {_} is 0:
  250.                                 send  "&7Sojusze: &9Brak"
  251.                             if {_} is greater than 0:
  252.                                 send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  253.                             loop {pvpguild.%arg 2%.members::*}:
  254.                                 if loop-value parsed as player is online:
  255.                                     add loop-value to {_online.members::*}
  256.                                 if loop-value parsed as player is offline:
  257.                                     add loop-value to {_offline.members::*}
  258.                             if {_online.members::*} is set:
  259.                                 if {_offline.members::*} is set:
  260.                                     send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  261.                                     stop
  262.                                 send "&7Czlonkowie gildi: &a%{_online.members::*}%"
  263.                                 stop
  264.                             send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  265.                             stop                               
  266.                         send "&7Nazwa gildi: &9%arg 2%"
  267.                         send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  268.                         send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
  269.                         send "&7Oficerowie gildi: &9Brak"
  270.                         send "&7Czlonkowie gildi: &9Brak"
  271.                         set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  272.                         if {_} is 0:
  273.                             send  "&7Sojusze: &9Brak"
  274.                             stop
  275.                         send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  276.                         stop
  277.                     send "{@tag} &cTaka gildia nie istnieje!"
  278.                     stop
  279.                 else:
  280.                     if {pvpguild.inguild::%name of player%} is set:
  281.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is set:
  282.                             if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is set:
  283.                                 send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  284.                                 send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  285.                                 send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  286.                                 set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  287.                                 if {_} is 0:
  288.                                     send "&7Sojusze: &9Brak"
  289.                                 if {_} is greater than 0:
  290.                                     send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  291.                                 loop {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}:
  292.                                     if loop-value parsed as player is online:
  293.                                         add loop-value to {_online.oficers::*}
  294.                                     if loop-value parsed as player is offline:
  295.                                         add loop-value to {_offline.oficers::*}
  296.                                 if {_online.oficers::*} is set:
  297.                                     if {_offline.oficers::*} is set:
  298.                                         send "&7Oficerowie gildi: &a%{_online.oficers::*}% &c%{_offline.oficers::*}%"
  299.                                         stop
  300.                                     send "&7Oficerowie gildi: &a%{_online.oficers::*}%"
  301.                                     stop
  302.                                 send "&7Oficerowie gildi: &c%{_offline.oficers::*}%"
  303.                                 stop
  304.                                 loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  305.                                     if loop-value parsed as player is online:
  306.                                         add loop-value to {_online.members::*}
  307.                                     if loop-value parsed as player is offline:
  308.                                         add loop-value to {_offline.members::*}
  309.                                 if {_online.members::*} is set:
  310.                                     if {_offline.members::*} is set:
  311.                                         send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  312.                                         stop
  313.                                     send "&7Czlonkowie gildi: &a%{_online.members::*}% "
  314.                                     stop                                       
  315.                                 send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  316.                                 stop                                                                       
  317.                             send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  318.                             send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  319.                             send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  320.                             send "&7Oficerowie gildi: &9Brak"
  321.                             set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  322.                             if {_} is 0:
  323.                                 send "&7Sojusze: &9Brak"
  324.                             if {_} is greater than 0:
  325.                                 send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  326.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  327.                                 if loop-value parsed as player is online:
  328.                                     add loop-value to {_online.members::*}
  329.                                 if loop-value parsed as player is offline:
  330.                                     add loop-value to {_offline.members::*}
  331.                             if {_online.members::*} is set:
  332.                                 if {_offline.members::*} is set:
  333.                                     send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  334.                                     stop
  335.                                 send "&7Czlonkowie gildi: &a%{_online.members::*}% "
  336.                                 stop                                       
  337.                             send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  338.                             stop   
  339.                         send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  340.                         send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  341.                         send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  342.                         send "&7Oficerowie gildi: &9Brak"
  343.                         send "&7Czlonkowie gildi: &9Brak"
  344.                         set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  345.                         if {_} is 0:
  346.                             send "&7Sojusze: &9Brak"
  347.                             stop
  348.                         send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  349.                         stop
  350.                     send "{@tag} &cNie posiadasz gildi!"
  351.                     stop
  352.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  353.             stop
  354.         if arg 1 is "usun" or "delete" or "u":
  355.             if player has permission "pvpguild.delete" or "pvpguild.admin" or "pvpguild.gracz":
  356.                 if {pvpguild.inguild::%name of player%} is set:
  357.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  358.                         remove "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" from {pvpguild.taglist::*}
  359.                         remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.guildlist::*}
  360.                         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}%"
  361.                         clear {pvpguild.guild::%{pvpguild.inguild::%name of player%}%}
  362.                         clear {pvpguild.%{pvpguild.inguild::%name of player%}%.lider}
  363.                         clear {pvpguild.%{pvpguild.inguild::%name of player%}%.tag}
  364.                         remove "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" from {pvpguild.taglist::*}
  365.                         if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is greater than 0:
  366.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  367.                                 clear {pvpguild.inguild::%loop-value%}
  368.                                 remove "%loop-value%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  369.                         if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is greater than 0:
  370.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}:
  371.                                 clear {pvpguild.inguild::%loop-value%}
  372.                                 remove "%loop-value%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}  
  373.                         clear {pvpguild.inguild::%name of player%}
  374.                         stop
  375.                     send "{@tag} &cTylko lider gildi moze tego uzywac!"
  376.                     stop   
  377.                 send "{@tag} &cNie posiadasz gildi!"
  378.                 stop
  379.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  380.             stop   
  381.         if arg 1 is "list" or "lista" or "l":
  382.             if player has permission "pvpguild.list" or "pvpguild.admin" or "pvpguild.gracz":
  383.                 set {_strona} to arg 2 parsed as number
  384.                 if {_strona} is not set:
  385.                     set {_strona} to 1
  386.                 set {_liczbawpisow} to size of {pvpguild.guildlist::*}
  387.                 set {_liczba-stron} to ceil({_liczbawpisow}/10)
  388.                 if {_liczba-stron} is smaller than 1:
  389.                     set {_liczba-stron} to 1
  390.                 if {_strona} is smaller than 1:
  391.                     send "{@tag} &cNie ma takiej strony!"
  392.                     stop
  393.                 if {_strona} is greater than {_liczba-stron}:
  394.                     send "{@tag} &cNie ma takiej strony!"
  395.                     stop
  396.                 if size of {pvpguild.guildlist::*} is smaller than 1:
  397.                     send "{@tag} &cBrak gildi!"
  398.                     stop
  399.                 loop {pvpguild.guildlist::*}:
  400.                     add loop-value to {_pvpguild.guildlist::*}
  401.                 loop {pvpguild.taglist::*}:
  402.                     add loop-value to {_pvpguild.taglist::*}
  403.                 send "&8Lista gildii: &2%{_strona}%&6/&2%{_liczba-stron}%"
  404.                 loop {_liczbawpisow} times:
  405.                     set {_lista} to ({_strona}-1)*10
  406.                     add loop-number to {_lista}
  407.                     if {_pvpguild.guildlist::%{_lista}%} is not set:
  408.                         stop
  409.                     if loop-number is 11:
  410.                         stop
  411.                     send "&8%{_lista}%. &4%{_pvpguild.guildlist::%{_lista}%}% &7[&9%{_pvpguild.taglist::%{_lista}%}%&7]"
  412.             stop
  413.             send "{@tag} &cNie masz uprawnien do tej komendy!"
  414.             stop
  415.         if arg 1 is "invite" or "zapros" or "inv":
  416.             if player has permission "pvpguild.invite" or "pvpguild.admin" or "pvpguild.gracz":
  417.                 if {pvpguild.inguild::%name of player%} is set:
  418.                     if arg 2 is set:
  419.                         set {_player} to arg 2 parsed as player
  420.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  421.                             set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
  422.                             send "&8===================================================" to {_player}
  423.                             send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
  424.                             send "&eWpisz &a/g dolacz %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  425.                             send "&8===================================================" to {_player}
  426.                             send "&8==================================================="
  427.                             send "&eZaproszenie zostalo wyslane do &a%{_player}%"
  428.                             send "&8==================================================="
  429.                             wait 1 minute
  430.                             if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
  431.                                 clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
  432.                                 stop
  433.                             stop
  434.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  435.                             set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
  436.                             send "&8===================================================" to {_player}
  437.                             send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
  438.                             send "&eWpisz &a/g dolacz %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  439.                             send "&8===================================================" to {_player}
  440.                             send "&8==================================================="
  441.                             send "&eZaproszenie zostalo wyslane do &a%{_player}%"
  442.                             send "&8==================================================="
  443.                             wait 1 minute
  444.                             if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
  445.                                 clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
  446.                                 stop
  447.                             stop
  448.                         send "{@tag} &cTylko lider/oficer moze zapraszac do gildi!"
  449.                         stop
  450.                     send "{@tag} &cPodaj nick gracza!"
  451.                     stop
  452.                 send "{@tag} Musisz być w gildi!"
  453.                 stop
  454.             send "{@tag} &cNie masz uprawnien do tej komendy!"
  455.             stop   
  456.         if arg 1 is "dolacz":
  457.             if player has permission "pvpguild.dolacz" or "pvpguild.admin" or "pvpguild.gracz":            
  458.                 if {pvpguild.inguild::%name of player%} isn't set:                         
  459.                     if arg 2 is set:
  460.                         if {pvpguild.guild::%arg 2%} is true:
  461.                             if {invite.%arg 2%.%name of player%} is true:
  462.                                 set {pvpguild.inguild::%name of player%} to "%arg 2%"
  463.                                 clear {invite.%arg 2%.%name of player%}
  464.                                 add "%name of player%" to {pvpguild.%arg 2%.members::*}
  465.                                 broadcast "{@tag} &7%player% &aDolaczyl do gildi &9%arg 2%"
  466.                                 stop
  467.                             send "{@tag} &cNie masz zaproszenia od tej gildi!"
  468.                             stop
  469.                         send "{@tag} &cTaka gildia nie istnieje!"
  470.                         stop
  471.                     send "{@tag} &cPodaj nazwe gildi!"
  472.                     stop
  473.                 send "{@tag} &cNajpierw opusc gildie!"
  474.                 stop
  475.             send "{@tag} &cNie masz uprawnien do tej komendy!"
  476.             stop   
  477.         if arg 1 is "opusc" or "leave" or "lv":
  478.             if player has permission "pvpguild.leave" or "pvpguild.admin" or "pvpguild.gracz":
  479.                 if {pvpguild.inguild::%name of player%} is set:
  480.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  481.                         send "{@tag} &cLider nie moze opuscic klanu! Uzyj: &4/g usun"
  482.                         stop
  483.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  484.                         remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  485.                         remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  486.                         broadcast "{@tag} &7%player% &aOpuscil gildie &9%{pvpguild.inguild::%name of player%}%"
  487.                         clear {pvpguild.inguild::%name of player%}
  488.                         stop                       
  489.                     remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}  
  490.                     broadcast "{@tag} &7%player% &aOpuscil gildie &9%{pvpguild.inguild::%name of player%}%"
  491.                     clear {pvpguild.inguild::%name of player%}
  492.                     stop    
  493.                 send "{@tag} &cNie masz gildi!"
  494.                 stop
  495.             send "{@tag} &cNie masz uprawnien do tej komendy!"
  496.             stop
  497.         if arg 1 is "wyrzuc" or "kick" or "idz":
  498.             if player has permission "pvpguild.kick" or "pvpguild.admin" or "pvpguild.gracz":
  499.                 if {pvpguild.inguild::%name of player%} is set:
  500.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  501.                         if arg 2 is set:
  502.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  503.                                 loop-value is argument 2:
  504.                                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer} is loop-value:
  505.                                         clear {pvpguild.%{pvpguild.inguild::%name of player%}%.%argument 2 parsed as offline player%.oficer}
  506.                                         clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  507.                                         remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  508.                                         remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  509.                                         broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  510.                                         stop
  511.                                     clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  512.                                     remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  513.                                     broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  514.                                     stop
  515.                             send "{@tag} &cTen gracz nie jest w naszej gildi!"
  516.                             stop
  517.                         send "{@tag} &cPodaj nick gracza!"
  518.                         stop                               
  519.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  520.                         if arg 2 is set:
  521.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  522.                                 loop-value is argument 2 parsed as offline player:
  523.                                     loop-value is not {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer}:
  524.                                         clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  525.                                         remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}   
  526.                                         broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  527.                                         stop
  528.                                     send "{@tag} &cNie mozesz wyrzucic oficera gildi!"
  529.                                     stop
  530.                             send "{@tag} &cTen gracz nie jest w naszej gildi!"
  531.                             stop
  532.                         send "{@tag} &cPodaj nick gracza!"
  533.                         stop
  534.                     send "{@tag} &cTylko lider/oficer gildi może wyrzucac graczy!"
  535.                     stop
  536.                 send "{@tag} &cNie masz gildi!"
  537.                 stop
  538.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  539.             stop
  540.         if arg 1 is "chat":
  541.             if player has permission "pvpguild.chat" or "pvpguild.admin" or "pvpguild.gracz":          
  542.                 if {pvpguild.inguild::%name of player%} is set:
  543.                     if arg 2 is set:
  544.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} contain player:
  545.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  546.                                 set {_p} to loop-value parsed as player
  547.                                 set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  548.                                 if arg 3 is set:
  549.                                     set {_} to coloured arg 3
  550.                                 send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  551.                                 send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_l}
  552.                             stop
  553.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain player:
  554.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  555.                                 set {_p} to loop-value parsed as player
  556.                                 set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  557.                                 set {_} to ""
  558.                                 if arg 3 is set:
  559.                                     set {_} to coloured arg 3
  560.                                 send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_p}
  561.                                 send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_l}
  562.                             stop
  563.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  564.                             if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is bigger than 0:
  565.                                 loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  566.                                     set {_p} to loop-value parsed as player
  567.                                     set {_} to ""
  568.                                     if arg 3 is set:
  569.                                         set {_} to coloured arg 3
  570.                                     send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  571.                                     send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to player
  572.                                 stop       
  573.                             send "{@tag} &cW twojej gildi jest za malo czlonkow by wyslac wiadomosc!"
  574.                             stop
  575.                     send "{@tag} &cPodaj wiadomosc!"
  576.                     stop
  577.                 send "{@tag} &cMusisz byc w gildi!"
  578.                 stop
  579.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  580.             stop
  581.         if arg 1 is "oficer":
  582.             if player has permission "pvpguild.oficer" or "pvpguild.admin" or "pvpguild.gracz":
  583.                 if {pvpguild.inguild::%name of player%} is set:
  584.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  585.                         if arg 2 is set:
  586.                             set {_p} to arg 2 parsed as player
  587.                             if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
  588.                                 if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
  589.                                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is not set:
  590.                                         add "%{_p}%" to {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  591.                                         set {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} to {_p}
  592.                                         send "{@tag} &aGracz &6%{_p}% &ajest oficerem naszej gildi!"
  593.                                         stop
  594.                                     send "{@tag} &cTen gracz jest juz oficerem!"
  595.                                     stop
  596.                                 send "{@tag} &cTen gracz nie jest w naszej gildi!"
  597.                                 stop
  598.                             send "{@tag} &cLider nie moze zostac oficerem!"
  599.                             stop
  600.                         send "{@tag} &cPodaj nick gracza!"
  601.                         stop
  602.                     send "{@tag} &cTylko lider moze mianowac graczy!"
  603.                     stop
  604.                 send "{@tag} &cNie jestes w gildi!"
  605.                 stop
  606.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  607.             stop       
  608.         if arg 1 is "pvp":
  609.             if player has permission "pvpguild.pvp" or "pvpguild.admin" or "pvpguild.gracz":
  610.                 if {pvpguild.inguild::%name of player%} is set:
  611.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  612.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is not set:
  613.                             set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to false
  614.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is false:
  615.                             set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to true
  616.                             send "{@tag} &AWlaczyles pvp miedzy czlonkami gildii!"
  617.                             stop
  618.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is true:
  619.                             set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to false
  620.                             send "{@tag} &AWylaczyles pvp miedzy czlonkami gildii!"
  621.                             stop   
  622.                         stop
  623.                     send "{@tag} Tylko lider moze wylaczac pvp!"
  624.                     stop
  625.                 send "{@tag} &cNie posiadasz gildii!"
  626.                 stop
  627.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  628.             stop   
  629.         if arg 1 is "degrad" or "degraduj":
  630.             if player has permission "pvpguild.degrad" or "pvpguild.admin" or "pvpguild.gracz":
  631.                 if {pvpguild.inguild::%name of player%} is set:
  632.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  633.                         if arg 2 is set:
  634.                             set {_p} to arg 2 parsed as player
  635.                             if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
  636.                                 if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
  637.                                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is {_p}:
  638.                                         remove "%{_p}%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  639.                                         delete {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer}
  640.                                         send "{@tag} &aGracz &6%{_p}% &azostal zdegradowany z oficera naszej gildi!"
  641.                                         stop
  642.                                     send "{@tag} &cTen gracz nie jest oficerem!"
  643.                                     stop
  644.                                 send "{@tag} &cTen gracz nie jest w naszej gildi!"
  645.                                 stop
  646.                             send "{@tag} &cLider nie moze byc zdegradowany!"
  647.                             stop
  648.                         send "{@tag} &cPodaj nick gracza!"
  649.                         stop
  650.                     send "{@tag} &cTylko lider moze mianowac graczy!"
  651.                     stop
  652.                 send "{@tag} &cNie jestes w gildi!"
  653.                 stop
  654.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  655.             stop
  656.         if arg 1 is "sojusz":
  657.             if player has permission "pvpguild.sojusz" or "pvpguild.admin" or "pvpguild.gracz":
  658.                 if {pvpguild.inguild::%name of player%} is set:
  659.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  660.                         if arg 2 is set:   
  661.                             if {pvpguild.guild::%arg 2%} is set:
  662.                                 if {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} is not set:
  663.                                     if {pvpguild.%arg 2%.lider} parsed as player is online:
  664.                                         set {pvpguild.invite.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} to true
  665.                                         set {_player} to {pvpguild.%arg 2%.lider} parsed as player
  666.                                         send "&8===================================================" to {_player}
  667.                                         send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie do sojuszu!" to {_player}
  668.                                         send "&eWpisz &a/g asojusz %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  669.                                         send "&8===================================================" to {_player}
  670.                                         send "&8==================================================="
  671.                                         send "&eZaproszenie zostalo wyslane do gildi &a%arg 2%"
  672.                                         send "&8==================================================="
  673.                                         wait 1 minute
  674.                                         if {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} is true:
  675.                                             clear {pvpguild.invite.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%}
  676.                                             stop
  677.                                         send "{@tag} &cCzas oczekiwania na akceptacje minal!"
  678.                                         stop
  679.                                         stop
  680.                                     send "{@tag} &cLider tej gildii nie jest online!"
  681.                                     stop
  682.                                 send "{@tag} &cTo jest juz twoj sojusznik !"
  683.                                 stop
  684.                             send "{@tag} &cTaka gildia nie istnieje!"
  685.                             stop
  686.                         send "{@tag} &cPodaj nazwe gildii!"
  687.                         stop
  688.                     send "{@tag} &cNie jestes liderem gildii!"
  689.                     stop
  690.                 send "{@tag} &cNie posiadasz gildii!"
  691.                 stop
  692.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  693.             stop
  694.         if arg 1 is "asojusz":
  695.             if player has permission "pvpguild.asojusz" or "pvpguild.admin" or "pvpguild.gracz":               
  696.                 if {pvpguild.inguild::%name of player%} is set:
  697.                     if arg 2 is set:
  698.                         if {pvpguild.guild::%arg 2%} is set:
  699.                             if {pvpguild.invite.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%} is true:
  700.                                 set {pvpguild.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%} to true
  701.                                 clear {pvpguild.invite.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%}
  702.                                 add "%arg 2%" to {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  703.                                 add "%{pvpguild.inguild::%name of player%}%" to {pvpguild.%arg 2%.sojusz::*}
  704.                                 broadcast "{@tag} &aGildia &7%arg 2% &a zawarla sojusz z gildia &7%{pvpguild.inguild::%name of player%}%"
  705.                                 stop
  706.                             send "{@tag} &cNie masz zaproszenia od tej gildi!"
  707.                             stop
  708.                         send "{@tag} &cTaka gildia nie istnieje!"
  709.                         stop
  710.                     send "{@tag} &cPodaj nazwe gildi!"
  711.                     stop
  712.                 send "{@tag} &cNie posiadasz gildii!"
  713.                 stop
  714.             send "{@tag} &cNie masz uprawnien do tej komendy!"
  715.             stop
  716.         if arg 1 is "neutral":
  717.             if player has permission "pvpguild.neutral" or "pvpguild.admin" or "pvpguild.gracz":
  718.                 if {pvpguild.inguild::%name of player%} is set:
  719.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  720.                         if arg 2 is set:   
  721.                             if {pvpguild.guild::%arg 2%} is set:
  722.                                 if {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} is true:
  723.                                     delete {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%}
  724.                                     remove "%arg 2%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  725.                                     remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.%arg 2%.sojusz::*}
  726.                                     broadcast "{@tag} &aGildia &7%arg 2% &a zerwala sojusz z gildia &7%{pvpguild.inguild::%name of player%}%"                                  
  727.                                     stop
  728.                                 if {pvpguild.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%} is true:
  729.                                     delete {pvpguild.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%}
  730.                                     remove "%arg 2%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  731.                                     remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.%arg 2%.sojusz::*}
  732.                                     broadcast "{@tag} &aGildia &7%arg 2% &a zerwala sojusz z gildia &7%{pvpguild.inguild::%name of player%}%"                                  
  733.                                     stop
  734.                                 send "{@tag} &cTo nie jest twoj sojusznik!"
  735.                                 stop
  736.                             send "{@tag} &cTaka gildia nie istnieje!"
  737.                             stop
  738.                         send "{@tag} &cPodaj nazwe gildii!"
  739.                         stop
  740.                     send "{@tag} &cNie jestes liderem gildii!"
  741.                     stop
  742.                 send "{@tag} &cNie posiadasz gildii!"
  743.                 stop
  744.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  745.             stop           
  746.         send "{@tag} &cNieznana komenda! Wpisz &6/g pomoc &c aby uzyskac wszystkie komendy!"
  747.         stop
  748.        
  749.        
  750.        
  751. on damage of player:
  752.     if {pvpguild.inguild::%name of attacker%} is set:
  753.         if {pvpguild.inguild::%name of victim%} is set:
  754.             if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.members::*} contain victim:
  755.                 if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.pvp} is false:
  756.                     cancel event
  757.                     stop
  758.             if {pvpguild.%{pvpguild.inguild::%name of victim%}%.members::*} contain attacker:
  759.                 if {pvpguild.%{pvpguild.inguild::%name of victim%}%.pvp} is false:
  760.                     cancel event
  761.                     stop
  762.             set {_attack} to {pvpguild.inguild::%name of attacker%}
  763.             set {_defend} to {pvpguild.inguild::%name of victim%}
  764.             if {pvpguild.soj.%{_defend}%.%{_attack}%} is true:
  765.                 cancel event
  766.                 stop
  767.             if {pvpguild.soj.%{_attack}%.%{_defend}%} is true:
  768.                 cancel event
  769.                 stop
  770.                
  771.  
  772. on chat:
  773.     if {pvpguild.inguild::%name of player%} is set:
  774.         cancel event
  775.         set {_chat} to "{@chat}"
  776.         replace all "{TAG}" with "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" in {_chat}
  777.         replace all "{NICK}" with "%display name of player%" in {_chat}
  778.         replace all "{MSG}" with "%message%" in {_chat}
  779.         broadcast "%{_chat}%"
  780.         stop
Advertisement
Add Comment
Please, Sign In to add comment