variables: {liczba.despoci} = 0 {liczba.rogunci} = 0 {dolacz.%player%} = false {zaproszenie.%player%} = false {reputacja.%player%} = 0 on first join: set {gildia.%player%} to 0 set {reputacja.%player%} to 0 set {zaproszenie.%player%} to false set {ranga.%player%} to 0 command /rest: trigger: set {gildia.%player%} to 0 set {reputacja.%player%} to 0 set {zaproszenie.%player%} to false set {ranga.%player%} to 0 send "&7» zrestartowales sobie frakcje" command /f [] []: trigger: if arg 1 is not set: if arg 2 is not set: send "&8&m--------------&r &d&lFRAKCJE &8&m--------------" send " &8● &c/f list&8- &7Lista danych frakcji," send " &8● &c/f join [frakcja] &8- &7Dolaczasz do danej frakcji &8[Despoci/]," send " &8● &c/f leave&8- &7Wychodzisz z frakcji [wtedy nie mozesz prowadzic normalnej rozgrywki]," send " &8● &c/f home&8- &7Teleportuje cie na miejsce docelowe frakcji," send " &8● &c/f status&8- &7Status twojej frakcji," send " &8● &c/f money&8- &7informacje o komendach pienierznych frakcji," send " &8● &c/f rank [nick]&8- &7Ranging gracza w frakcji," send " &8● &c/f dolacz &8- &7akceptujesz zaproszenie lidera!" send " &8● &c/f odrzuc &8- &7odrzucasz zaproszenie lidera!" send " &8● &c/f reputacja [nick] &8- &7dajesz 1 pkt. reputacji graczowi!" send " &8● &c/f unreputacja [nick] &8- &7usuwasz 1 pkt. reputacji graczowi!" send "&8&m-----------&r &cKOMENDY LIDERA&8&m----------" send " &8● &c/fl sethome&8- &7Ustawiasz miejsce docelowe teleportu," send " &8● &c/fl [nick] invite &8- &7Zapraszasz gracza do frakcji," send " &8● &c/fl [nick] kick &8- &7Wyrzucasz gracza z frakcji," send " &8● &c/fl [nick] setrank &8- &7nadajesz range graczowi," send "&8&m--------------&r &d&lFRAKCJE &8&m--------------" if arg 1 is "setdespoci": if arg 2 is not set: if player has permission "f.admin": set {tp.despoci} to location of player if arg 1 is "setrogunci": if arg 2 is not set: if player has permission "f.admin": set {tp.rogunci} to location of player if arg 1 is "list": if arg 2 is not set: send "&8&m-----------&r &6&lLISTA FRAKCJI &8&m-----------" send "&2Despoci&8 - &aFrakcja bedaca za krolem" send "" send "&6Rogunci&8 - &eFrakcja bedaca za prezydentem" send "&8&m-----------&r &6&lLISTA FRAKCJI &8&m-----------" if arg 1 is "join": if arg 2 is "despoci": if {dolacz.%player%} is false: set {dolacz.%player%} to true set {gildia.%player%} to 1 set {zaproszenie.%player%} to true add 1 to {liczba.despoci} send "&7» &3Dolaczyles do &aDespotow!" broadcast "&8» &7Gracz &e%player%&7 dolaczyl do &aDespotow!&8 Powitajcie gracza w frakcji ;)" teleport player to {tp.despoci} if arg 2 is "rogunci": if {dolacz.%player%} is false: set {dolacz.%player%} to true set {gildia.%player%} to 2 set {zaproszenie.%player%} to true add 1 to {liczba.rogunci} send "&7» &3Dolaczyles do &eRogunci!" broadcast "&8» &7Gracz &e%player%&7 dolaczyl do &eRoguntow!&8 Powitajcie gracza w frakcji ;)" teleport player to {tp.rogunci} if arg 1 is "leave": if arg 2 is not set: if {dolacz.%player%} is true: if {gildia.%player%} is 1: set {dolacz.%player%} to false set {gildia.%player%} to 0 set {ranga.%player%} to 0 send "&8» &cOdeszles z frakcji!" remove 1 from {liczba.despoci} if {gildia.%player%} is 2: set {dolacz.%player%} to false set {ranga.%player%} to 0 send "&8» &cOdeszles z frakcji!" set {gildia.%player%} to 0 remove 1 from {liczba.rogunci} else: send "&8» &eNie posiadasz frakcji!" if arg 1 is "home": if arg 2 is not set: if {gildia.%player%} is 1: set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" send "&8» &7Teleportacja nastopi za &e5 &7sekund. &7Nie ruszaj sie!" wait 5 real seconds if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: teleport player to {tp.despoci} send "&8» &7Teleportowano pomyslnie!" else: send "&8» &7Ruszyles sie! &cTeleportacja anulowana!" if {gildia.%player%} is 2: set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" send "&8» &7Teleportacja nastopi za &e5 &7sekund. &7Nie ruszaj sie!" wait 5 real seconds if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: teleport player to {tp.rogunci} send "&8» &7Teleportowano pomyslnie!" else: send "&8» &7Ruszyles sie! &cTeleportacja anulowana!" if arg 1 is "status": if arg 2 is not set: if {gildia.%player%} is 1: send "&8&m-----------&r &2&lSTATUS DESPOTOW &8&m-----------" send "&8» &7Liczba osob: &e%{liczba.despoci}%" send "&8» &7Za rzadami: &6Krola" send "&8» Lider: &3sworip" send "&8&m-----------&r &2&lSTATUS DESPOTOW &8&m-----------" if {gildia.%player%} is 2: send "&8&m-----------&r &3&lSTATUS ROGUNTOW &8&m-----------" send "&8» &7Liczba osob: &e%{liczba.rogunci}%" send "&8» &7Za rzadami: &bPrezydenta" send "&8» Lider: &3Brak" send "&8&m-----------&r &3&lSTATUS ROGUNTOW &8&m-----------" if arg 1 is "money": if arg 2 is not set: send "&8&m-----------&r &2&lPIENIADZE FRAKCJI &8&m-----------" send "&e/f money pay [ilosc]&8 - &7przelewasz pieniadze na frakcjie" send "&e/f money status&8 - &7Stan skarbca frakcji" send "&8&m-----------&r &cKOMENDY LIDERA&8&m----------" send "&6/fm pay [nick] [ilosc]&8- &ePrzelewasz dana kwote graczowi" send "&8&m-----------&r &2&lPIENIADZE FRAKCJI &8&m-----------" if arg 1 is "rank": if arg 2 is player: if {gildia.%player%} is 1: if {ranga.%player%} is 1: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &7Poczatkujacy" send "&8» &7Zamek: &2Despoci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 2: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &bSzlachcic" send "&8» &7Zamek: &2Despoci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 3: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &3Straznik" send "&8» &7Zamek: &2Despoci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 4: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &5Expert" send "&8» &7Zamek: &2Despoci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 5: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &aZawodowiec" send "&8» &7Zamek: &2Despoci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 6: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &cMaster" send "&8» &7Zamek: &2Despoci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 0: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &8Brak" send "&8» &7Zamek: &2Despoci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {gildia.%player%} is 2: if {ranga.%player%} is 1: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &7Poczatkujacy" send "&8» &7Zamek: &3Roguci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 2: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &bSzlachcic" send "&8» &7Zamek: &3Roguci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 3: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &3Straznik" send "&8» &7Zamek: &3Roguci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 4: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &5Expert" send "&8» &7Zamek: &3Roguci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 5: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &aZawodowiec" send "&8» &7Zamek: &3Roguci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 6: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &cMaster" send "&8» &7Zamek: &3Roguci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if {ranga.%player%} is 0: send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" send "&8» &7Ranga: &8Brak" send "&8» &7Zamek: &3Roguci" send "&8» &7Reputacja: &3%{reptacja.%player%}%" send "&8&m-----------&r &b&lSTATUS GRACZA &8&m-----------" if arg 1 is "reputacja": if arg 2 is player: if {rep.%player%.%arg-2%} is false: add 1 to {reputacja.%arg-2%} set {rep.%player%.%arg-2%} to true else: send "&8» &cTen gracz dostal juz od ciebie pkt. reputacji!" if arg 1 is "unreputacja": if arg 2 is player: if {rep.%player%.%arg-2%} is true: remove 1 from {reputacja.%arg-2%} set {rep.%player%.%arg-2%} to false else: send "&8» &cTen gracz nie dostal od ciebie jeszcze pkt. reputacji!" command /fl [] [] []: permission: f.lider trigger: if arg 1 is "sethome": if arg 2 is not set: if {gildia.%player%} is 1: set {tp.despoci} to location of player if {gildia.%player%} is 2: set {tp.rogunci} to location of player if arg 1 is "kick": if arg 2 is player: if {gildia.%player%} is 1: if {gildia.%arg 2%} is 1: set {dolacz.%player%} to false set {gildia.%player%} to 0 set {ranga.%player%} to 0 send "&8» &cZostales wyrzucony z frakcji!" remove 1 from {liczba.despoci} teleport player to {frakcje.spawn} else: send "&8» &7Gracz nie jest w twojej gildi!" if {gildia.%player%} is 2: if {gildia.%arg 2%} is 2: set {dolacz.%player%} to false set {gildia.%player%} to 0 set {ranga.%player%} to 0 send "&8» &cZostales wyrzucony z frakcji!" remove 1 from {liczba.rogunci} teleport player to {frakcje.spawn} else: send "&8» &7Gracz nie jest w twojej gildi!" else: send "&8» &7Musisz podac nick gracza" if arg 1 is "invite": if arg 2 is player: if {gildia.%player%} is 1: if {zaproszenie.%arg-2%} is false: set {zaproszenie.%arg-2%} to true send "&8» &eDostales zaproszenie od gildi &aDespoci" to arg 2 wait 15 seconds set {zaproszenie.%arg-2%} to false send "&8» &cNie odpowiedziales na zaproszenie na czas!" to arg 2 else: send "&8» &cGracz zostal juz zaproszony lub posiada frakcje!" if {gildia.%player%} is 2: if {zaproszenie.%arg-2%} is false: set {zaproszenie.%arg-2%} to true send "&8» &eDostales zaproszenie od gildi &aDespoci" to arg 2 wait 15 seconds set {zaproszenie.%arg-2%} to false send "&8» &cNie odpowiedziales na zaproszenie na czas!" to arg 2 else: send "&8» &cGracz zostal juz zaproszony lub posiada frakcje!" if arg 1 is "setrank": if arg 2 is player: if arg 3 is "poczatkujacy": if {gildia.%player%} is 1: if {gildia.%arg-2%} is 1: set {ranga.%arg-2%} to 1 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" if arg 3 is "szlachcic": if {gildia.%player%} is 1: if {gildia.%arg-2%} is 1: set {ranga.%arg-2%} to 2 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" if arg 3 is "straznik": if {gildia.%player%} is 1: if {gildia.%arg-2%} is 1: set {ranga.%arg-2%} to 3 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" if arg 3 is "expert": if {gildia.%player%} is 1: if {gildia.%arg-2%} is 1: set {ranga.%arg-2%} to 4 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" else: send "&8» &cNie jestes liderem tego gracza!" if arg 3 is "zawodowiec": if {gildia.%player%} is 1: if {gildia.%arg-2%} is 1: set {ranga.%arg-2%} to 5 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" if arg 3 is "master": if {gildia.%player%} is 1: if {gildia.%arg-2%} is 1: set {ranga.%arg-2%} to 6 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" if arg 3 is "poczatkujacy": if {gildia.%player%} is 2: if {gildia.%arg-2%} is 2: set {ranga.%arg-2%} to 1 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" if arg 3 is "szlachcic": if {gildia.%player%} is 2: if {gildia.%arg-2%} is 2: set {ranga.%arg-2%} to 2 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" if arg 3 is "straznik": if {gildia.%player%} is 2: if {gildia.%arg-2%} is 2: set {ranga.%arg-2%} to 3 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" if arg 3 is "expert": if {gildia.%player%} is 2: if {gildia.%arg-2%} is 2: set {ranga.%arg-2%} to 4 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" else: send "&8» &cNie jestes liderem tego gracza!" if arg 3 is "zawodowiec": if {gildia.%player%} is 2: if {gildia.%arg-2%} is 2: set {ranga.%arg-2%} to 5 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" if arg 3 is "master": if {gildia.%player%} is 2: if {gildia.%arg-2%} is 2: set {ranga.%arg-2%} to 6 send "&8» &bNadales range &7Poczatkujacy&b graczowi &8%arg-2%" to player send "&8» &eLider &2%player% &enadal ci range &6%arg-3%" to arg 2 else: send "&8» &cTen gracz nie jest w twojej frakcji!" else: send "&8» &cNie jestes liderem tego gracza!" else: send "&8» &7Poprawne uzycie: &2/fl setrank [nick] [ranga]" else: send "&8&m-----------&r &e&lRANGI GRACZY &8&m-----------" send "&8» &7Poczatkujacy&8 - &6/fl setrank [nick] poczatkujacy" send "&8» &bSzlachcic&8 - &6/fl setrank [nick] szlachcic" send "&8» &3Straznik&8 - &6/fl setrank [nick] straznik " send "&8» &5Expert&8 - &6/fl setrank [nick] expert" send "&8» &aZawodowiec&8 - &6/fl setrank [nick] zawodowiec" send "&8» &cMaster&8 - &6/fl setrank [nick] master" send "&8&m-----------&r &e&lRANGI GRACZY &8&m-----------" command /fadmin setspawn: permission: f.admin trigger: set {frakcje.spawn} to location of player send "&8» &eustawiles spawn po wyrzuceniu lub odejsciu gracza z frakcji!"