patison234

PVPGuild

Jul 3rd, 2014
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.51 KB | None | 0 0
  1. # # # # # # # # # # # # # # # #
  2. # Script by Patek             #
  3. # Name: PVPGuild              #
  4. # Version: 1.1                #
  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.     tag: &7[&4PVP&8Guild&7]
  24.  
  25. on load:
  26.     send "&7[&4PVP&8Guild&7] PVPGuild &aEnabled!" to console
  27.     send "&7[&4PVP&8Guild&7] PVPGuild by Patek" to console
  28.  
  29. command /pvpguild [<text>] [<text>] [<text>]:
  30.     aliases: g, guild, gildia
  31.     trigger:
  32.         if arg 1 is not set:
  33.             send "&8========&6PVPGuild&8========"
  34.             send "&e/gildia &a- &7Wszystkie komendy dla gildi!"
  35.             send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  36.             send "&e/gildia usun &a- &7Usuwa gildie!"
  37.             send "&e/gildia info [Nazwa] &a- &7Informacje o gildi!"
  38.             send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildi!"
  39.             send "&e/gildia wypros [Nick] &a- &7Usuwa gracza z gildi!"
  40.             send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildi!"
  41.             stop
  42.         if arg 1 is "pomoc" or "help" or "?":
  43.             send "&8========&6PVPGuild&8========"
  44.             send "&e/gildia &a- &7Wszystkie komendy dla gildi!"
  45.             send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  46.             send "&e/gildia usun &a- &7Usuwa gildie!"
  47.             send "&e/gildia info [Nazwa] &a- &7Informacje o gildi!"
  48.             send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildi!"
  49.             send "&e/gildia wypros [Nick] &a- &7Usuwa gracza z gildi!"
  50.             send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildi!"
  51.             stop
  52.         if arg 1 is "stworz" or "create" or "c":
  53.             if player has permission "pvpguild.create" or "pvpguild.admin" or "pvpguild.gracz":
  54.                 if {pvpguild.guild::%arg 3%} is not set:
  55.                     if {pvpguild.inguild::%name of player%} is not set:
  56.                         if arg 2 is set:
  57.                             if length of argument 2 is smaller than 5:
  58.                                 if arg 3 is set:
  59.                                     if length of arg 3 is smaller than 21:
  60.                                         set {pvpguild.guild::%arg 3%} to true
  61.                                         set {pvpguild.%arg 3%.lider} to "%name of player%"
  62.                                         set {pvpguild.%arg 3%.tag} to "%arg 2%"
  63.                                         set {pvpguild.inguild::%name of player%} to "%arg 3%"
  64.                                         add "%arg 2%" to {pvpguild.taglist::*}
  65.                                         add "%arg 3%" to {pvpguild.guildlist::*}
  66.                                         broadcast "{@tag} &7%name of player% &aUtworzyÂł gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  67.                                         stop
  68.                                     send "{@tag} &cNazwa gildi nie moze miec wiecej niz 20 znakow!"
  69.                                     stop
  70.                                 send "{@tag} &cPodaj nazwe swojej gildi!"
  71.                                 stop
  72.                             send "{@tag} &cTag gildi nie moze miec wiecej niz 4 znaki!"
  73.                             stop
  74.                         send "{@tag} &cPodaj tag gildi!"
  75.                         stop
  76.                     send "{@tag} &cAby zalozyc gildie najpierw musisz oposcic aktualna!"
  77.                     stop
  78.                 send "{@tag} &cTaka gildia juz istnieje!"
  79.                 stop
  80.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  81.             stop
  82.         if arg 1 is "info" or "informacje" or "i":
  83.             if player has permission "pvpguild.info" or "pvpguild.admin" or "pvpguild.gracz":
  84.                 if arg 2 is set:
  85.                     if {pvpguild.guild::%arg 2%} is set:
  86.                         send "&7Nazwa gildi: &9%arg 2%"
  87.                         send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  88.                         send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
  89.                         send "&7Oficerowie gildi: &9%{pvpguild.%arg 2%.oficers::*}%"
  90.                         send "&7Czlonkowie gildi: &9%{pvpguild.%arg 2%.members::*}%"
  91.                         stop
  92.                     send "{@tag} &cTaka gildia nie istnieje!"
  93.                     stop
  94.                 else:
  95.                     if {pvpguild.inguild::%name of player%} is set:
  96.                         send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  97.                         send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  98.                         send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  99.                         send "&7Oficerowie gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}%"
  100.                         send "&7Czlonkowie gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}%"
  101.                         stop
  102.                     send "{@tag} &cNie posiadasz gildi!"
  103.                     stop
  104.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  105.             stop
  106.         if arg 1 is "usun" or "delete" or "u":
  107.             if player has permission "pvpguild.delete" or "pvpguild.admin" or "pvpguild.gracz":
  108.                 if {pvpguild.inguild::%name of player%} is set:
  109.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  110.                         remove "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" from {pvpguild.taglist::*}
  111.                         remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.guildlist::*}
  112.                         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}%"
  113.                         clear {pvpguild.guild::%{pvpguild.inguild::%name of player%}%}
  114.                         clear {pvpguild.%{pvpguild.inguild::%name of player%}%.lider}
  115.                         clear {pvpguild.%{pvpguild.inguild::%name of player%}%.tag}
  116.                         remove "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" from {pvpguild.taglist::*}
  117.                         if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is greater than 0:
  118.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  119.                                 clear {pvpguild.inguild::%loop-value%}
  120.                                 remove "%loop-value%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  121.                         if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is greater than 0:
  122.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}:
  123.                                 clear {pvpguild.inguild::%loop-value%}
  124.                                 remove "%loop-value%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}  
  125.                         clear {pvpguild.inguild::%name of player%}
  126.                         stop
  127.                     send "{@tag} &cTylko lider gildi moze tego uzywac!"
  128.                     stop   
  129.                 send "{@tag} &cNie posiadasz gildi!"
  130.                 stop
  131.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  132.             stop   
  133.         if arg 1 is "list" or "lista" or "l":
  134.             if player has permission "pvpguild.list" or "pvpguild.admin" or "pvpguild.gracz":
  135.                 set {_strona} to arg 2 parsed as number
  136.                 if {_strona} is not set:
  137.                     set {_strona} to 1
  138.                 set {_liczbawpisow} to size of {pvpguild.guildlist::*}
  139.                 set {_liczba-stron} to ceil({_liczbawpisow}/10)
  140.                 if {_liczba-stron} is smaller than 1:
  141.                     set {_liczba-stron} to 1
  142.                 if {_strona} is smaller than 1:
  143.                     send "{@tag} &cNie ma takiej strony!"
  144.                     stop
  145.                 if {_strona} is greater than {_liczba-stron}:
  146.                     send "{@tag} &cNie ma takiej strony!"
  147.                     stop
  148.                 if size of {pvpguild.guildlist::*} is smaller than 1:
  149.                     send "{@tag} &cBrak gildi!"
  150.                     stop
  151.                 loop {pvpguild.guildlist::*}:
  152.                     add loop-value to {_pvpguild.guildlist::*}
  153.                 loop {pvpguild.taglist::*}:
  154.                     add loop-value to {_pvpguild.taglist::*}
  155.                 send "&8Lista gildii: &2%{_strona}%&6/&2%{_liczba-stron}%"
  156.                 loop {_liczbawpisow} times:
  157.                     set {_lista} to ({_strona}-1)*10
  158.                     add loop-number to {_lista}
  159.                     if {_pvpguild.guildlist::%{_lista}%} is not set:
  160.                         stop
  161.                     if loop-number is 11:
  162.                         stop
  163.                     send "&8%{_lista}%. &4%{_pvpguild.guildlist::%{_lista}%}% &7[&9%{_pvpguild.taglist::%{_lista}%}%&7]"
  164.             stop
  165.             send "{@tag} &cNie masz uprawnien do tej komendy!"
  166.             stop
  167.         if arg 1 is "invite" or "zapros" or "inv":
  168.             if player has permission "pvpguild.invite" or "pvpguild.admin" or "pvpguild.gracz":
  169.                 if {pvpguild.inguild::%name of player%} is set:
  170.                     if arg 2 is set:
  171.                         set {_player} to arg 2 parsed as player
  172.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  173.                             set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
  174.                             send "&8===================================================" to {_player}
  175.                             send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
  176.                             send "&eWpisz &a/g accept %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  177.                             send "&8===================================================" to {_player}
  178.                             send "&8==================================================="
  179.                             send "&eZaproszenie zostalo wyslane do &a%{_player}%"
  180.                             send "&8==================================================="
  181.                             wait 1 minute
  182.                             if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
  183.                                 clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
  184.                                 stop
  185.                             stop
  186.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  187.                             set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
  188.                             send "&8===================================================" to {_player}
  189.                             send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
  190.                             send "&eWpisz &a/g accept %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  191.                             send "&8===================================================" to {_player}
  192.                             send "&8==================================================="
  193.                             send "&eZaproszenie zostalo wyslane do &a%{_player}%"
  194.                             send "&8==================================================="
  195.                             wait 1 minute
  196.                             if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
  197.                                 clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
  198.                                 stop
  199.                             stop
  200.                         send "{@tag} &cTylko lider/oficer moze zapraszac do gildi!"
  201.                         stop
  202.                     send "{@tag} &cPodaj nick gracza!"
  203.                     stop
  204.                 send "{@tag} Musisz być w gildi!"
  205.                 stop
  206.             send "{@tag} &cNie masz uprawnien do tej komendy!"
  207.             stop   
  208.         if arg 1 is "accept" or "akceptuj" or "acpt":
  209.             if player has permission "pvpguild.accept" or "pvpguild.admin" or "pvpguild.gracz":            
  210.                 if {pvpguild.inguild::%name of player%} isn't set:                         
  211.                     if arg 2 is set:
  212.                         if {pvpguild.guild::%arg 2%} is true:
  213.                             if {invite.%arg 2%.%name of player%} is true:
  214.                                 set {pvpguild.inguild::%name of player%} to "%arg 2%"
  215.                                 clear {invite.%arg 2%.%name of player%}
  216.                                 add "%name of player%" to {pvpguild.%arg 2%.members::*}
  217.                                 broadcast "{@tag} &7%player% &aDolaczyl do gildi &9%arg 2%"
  218.                                 stop
  219.                             send "{@tag} &cNie masz zaproszenia od tej gildi!"
  220.                             stop
  221.                         send "{@tag} &cTaka gildia nie istnieje!"
  222.                         stop
  223.                     send "{@tag} &cPodaj nazwe gildi!"
  224.                     stop
  225.                 send "{@tag} &cNajpierw opusc gildie!"
  226.                 stop
  227.             send "{@tag} &cNie masz uprawnien do tej komendy!"
  228.             stop   
  229.         if arg 1 is "opusc" or "leave" or "lv":
  230.             if player has permission "pvpguild.leave" or "pvpguild.admin" or "pvpguild.gracz":
  231.                 if {pvpguild.inguild::%name of player%} is set:
  232.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  233.                         send "{@tag} &cLider nie moze opuscic klanu! Uzyj: &4/g usun"
  234.                         stop
  235.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  236.                         remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  237.                         remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}  
  238.                         broadcast "{@tag} &7%player% &aOpuscil gildie &9%{pvpguild.inguild::%name of player%}%"
  239.                         clear {pvpguild.inguild::%name of player%}
  240.                         stop                       
  241.                     remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}  
  242.                     broadcast "{@tag} &7%player% &aOpuscil gildie &9%{pvpguild.inguild::%name of player%}%"
  243.                     clear {pvpguild.inguild::%name of player%}
  244.                     stop    
  245.                 send "{@tag} &cNie masz gildi!"
  246.                 stop
  247.             send "{@tag} &cNie masz uprawnien do tej komendy!"
  248.             stop
  249.         if arg 1 is "wyrzuc" or "kick" or "idz":
  250.             if player has permission "pvpguild.kick" or "pvpguild.admin" or "pvpguild.gracz":
  251.                 if {pvpguild.inguild::%name of player%} is set:
  252.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  253.                         if arg 2 is set:
  254.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  255.                                 loop-value is argument 2:
  256.                                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer} is loop-value:
  257.                                         clear {pvpguild.%{pvpguild.inguild::%name of player%}%.%argument 2 parsed as offline player%.oficer}
  258.                                         clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  259.                                         remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  260.                                         remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  261.                                         broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  262.                                         stop
  263.                                     clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  264.                                     remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}   
  265.                                     broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  266.                                     stop
  267.                             send "{@tag} &cTen gracz nie jest w naszej gildi!"
  268.                             stop
  269.                         send "{@tag} &cPodaj nick gracza!"
  270.                         stop                               
  271.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  272.                         if arg 2 is set:
  273.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  274.                                 loop-value is argument 2 parsed as offline player:
  275.                                     loop-value is not {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer}:
  276.                                         clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  277.                                         remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}                                                                       
  278.                                         broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  279.                                         stop
  280.                                     send "{@tag} &cNie mozesz wyrzucic oficera gildi!"
  281.                                     stop
  282.                             send "{@tag} &cTen gracz nie jest w naszej gildi!"
  283.                             stop
  284.                         send "{@tag} &cPodaj nick gracza!"
  285.                         stop
  286.                     send "{@tag} &cTylko lider/oficer gildi może wyrzucac graczy!"
  287.                     stop
  288.                 send "{@tag} &cNie masz gildi!"
  289.                 stop
  290.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  291.             stop
  292.         if arg 1 is "chat":
  293.             if player has permission "pvpguild.chat" or "pvpguild.admin" or "pvpguild.gracz":          
  294.                 if {pvpguild.inguild::%name of player%} is set:
  295.                     if arg 2 is set:
  296.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} contain player:
  297.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  298.                                 set {_p} to loop-value parsed as player
  299.                                 set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  300.                                 if arg 3 is set:
  301.                                     set {_} to coloured arg 3
  302.                                 send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  303.                                 send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_l}
  304.                             stop
  305.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain player:
  306.                             loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  307.                                 set {_p} to loop-value parsed as player
  308.                                 set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  309.                                 set {_} to ""
  310.                                 if arg 3 is set:
  311.                                     set {_} to coloured arg 3
  312.                                 send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_p}
  313.                                 send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_l}
  314.                             stop
  315.                         if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  316.                             if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is bigger than 0:
  317.                                 loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  318.                                     set {_p} to loop-value parsed as player
  319.                                     set {_} to ""
  320.                                     if arg 3 is set:
  321.                                         set {_} to coloured arg 3
  322.                                     send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  323.                                     send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to player
  324.                                 stop       
  325.                             send "{@tag} &cW twojej gildi jest za malo czlonkow by wyslac wiadomosc!"
  326.                             stop
  327.                     send "{@tag} &cPodaj wiadomosc!"
  328.                     stop
  329.                 send "{@tag} &cMusisz byc w gildi!"
  330.                 stop
  331.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  332.             stop
  333.         if arg 1 is "oficer":
  334.             if player has permission "pvpguild.oficer" or "pvpguild.admin" or "pvpguild.gracz":
  335.                 if {pvpguild.inguild::%name of player%} is set:
  336.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  337.                         if arg 2 is set:
  338.                             set {_p} to arg 2 parsed as player
  339.                             if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
  340.                                 if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
  341.                                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is not set:
  342.                                         add "%{_p}%" to {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  343.                                         set {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} to {_p}
  344.                                         send "{@tag} &aGracz &6%{_p}% &ajest oficerem naszej gildi!"
  345.                                         stop
  346.                                     send "{@tag} &cTen gracz jest juz oficerem!"
  347.                                     stop
  348.                                 send "{@tag} &cTen gracz nie jest w naszej gildi!"
  349.                                 stop
  350.                             send "{@tag} &cLider nie moze zostac oficerem!"
  351.                             stop
  352.                         send "{@tag} &cPodaj nick gracza!"
  353.                         stop
  354.                     send "{@tag} &cTylko lider moze mianowac graczy!"
  355.                     stop
  356.                 send "{@tag} &cNie jestes w gildi!"
  357.                 stop
  358.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  359.             stop           
  360.         if arg 1 is "degrad" or "degraduj":
  361.             if player has permission "pvpguild.degrad" or "pvpguild.admin" or "pvpguild.gracz":
  362.                 if {pvpguild.inguild::%name of player%} is set:
  363.                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  364.                         if arg 2 is set:
  365.                             set {_p} to arg 2 parsed as player
  366.                             if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
  367.                                 if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
  368.                                     if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is {_p}:
  369.                                         remove "%{_p}%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  370.                                         delete {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer}
  371.                                         send "{@tag} &aGracz &6%{_p}% &azostal zdegradowany z oficera naszej gildi!"
  372.                                         stop
  373.                                     send "{@tag} &cTen gracz nie jest oficerem!"
  374.                                     stop
  375.                                 send "{@tag} &cTen gracz nie jest w naszej gildi!"
  376.                                 stop
  377.                             send "{@tag} &cLider nie moze byc zdegradowany!"
  378.                             stop
  379.                         send "{@tag} &cPodaj nick gracza!"
  380.                         stop
  381.                     send "{@tag} &cTylko lider moze mianowac graczy!"
  382.                     stop
  383.                 send "{@tag} &cNie jestes w gildi!"
  384.                 stop
  385.             send "{@tag} &cNie masz uprwanien do tej komendy!"
  386.             stop       
  387.         send "{@tag} &cNieznana komenda! Wpisz &6/g pomoc &c aby uzyskac wszystkie komendy!"
  388.         stop
  389.        
  390.        
  391. on damage of player:
  392.     if {pvpguild.inguild::%name of attacker%} is set:
  393.         if {pvpguild.inguild::%name of victim%} is set:
  394.             if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.members::*} contain victim:
  395.                 cancel event
  396.                 stop
  397.             if {pvpguild.%{pvpguild.inguild::%name of victim%}%.members::*} contain attacker:
  398.                 cancel event
  399.                 stop
Advertisement
Add Comment
Please, Sign In to add comment