variables: {xKrokolTV.%player%} = true {mateuszanierusza.%player%} = true {Ala555.%player%} = true command /ocen [] []: description: Ocen gracza 1-10 # permission: ocen.gracza trigger: if arg 1 is not set: send "&f--------------------------" send "&eSystem ocen Administracji" send "&f--------------------------" send "&bOceniani: xKrokolTV, Ala555, mateuszanierusza" send "&2Skala ocen: od 1 do 10" send "&f--------------------------" send "&l&bKomenda: &f/ocen &bnick &2ocena" send "&cUwaga: Głos na każdego ocenianego gracza można oddać jednokrotnie!" if arg 2 is less than 1: send "&cBląd! Dozwolone oceny od 1 do 10. Wpisz /ocen nick ocena" stop if arg 2 is greater than 10: send "&cBłąd! Dozwolone oceny od 1 do 10. Wpisz /ocen nick ocena" stop # --------------------------------------------------------------------OCENA Misia111 if {xKrokolTV.%player%} is true: if arg 1 is "xKrokolTV": if arg 2 is less than or equal to 10: add "[%arg 1%] %arg 2% - [%player%]" to {oceny::*} add "%arg 2% " to {xKrokolTV::*} set {ocena.%arg 1%} to arg 2 add arg 1 to {ocenieni.gracze::*} send "Oceniłaś/eś gracza: %arg 1% na ocenę %arg 2%" add 1 to {graczy.xKrokolTV} add arg 2 to {suma.xKrokolTV} set {xKrokolTV.%player%} to false stop else: send "&cDozwolone oceny od 1 do 10. Wpisz /ocen nick ocena" stop # --------------------------------------------------------------------OCENA Wolfek14 if {Wolfek14.%player%} is true: if arg 1 is "Wolfek14": if arg 2 is less than or equal to 10: add "[%arg 1%] %arg 2% - [%player%]" to {oceny::*} add "%arg 2% " to {Wolfek14::*} set {ocena.%arg 1%} to arg 2 add arg 1 to {ocenieni.gracze::*} send "Oceniłaś/eś gracza: %arg 1% na ocenę %arg 2%" add 1 to {graczy.Wolfek14} add arg 2 to {suma.Wolfek14} set {Wolfek14.%player%} to false stop else: send "&cDozwolone oceny od 1 do 10. Wpisz /ocen nick ocena" stop # --------------------------------------------------------------------OCENA Nightowy if {Nightowy.%player%} is true: if arg 1 is "Nightowy": if arg 2 is less than or equal to 10: add "[%arg 1%] %arg 2% - [%player%]" to {oceny::*} add "%arg 2% " to {Nightowy::*} set {ocena.%arg 1%} to arg 2 add arg 1 to {ocenieni.gracze::*} send "Oceniłaś/eś gracza: %arg 1% na ocenę %arg 2%" add 1 to {graczy.Nightowy} add arg 2 to {suma.Nightowy} set {Nightowy.%player%} to false stop else: send "&cDozwolone oceny od 1 do 10. Wpisz /ocen nick ocena" stop # --------------------------------------------------------------------OCENA MrParty if {MrParty.%player%} is true: if arg 1 is "MrParty": if arg 2 is less than or equal to 10: add "[%arg 1%] %arg 2% - [%player%]" to {oceny::*} add "%arg 2% " to {MrParty::*} set {ocena.%arg 1%} to arg 2 add arg 1 to {ocenieni.gracze::*} send "Oceniłaś/eś gracza: %arg 1% na ocenę %arg 2%" add 1 to {graczy.MrParty} add arg 2 to {suma.MrParty} set {MrParty.%player%} to false stop else: send "&cDozwolone oceny od 1 do 10. Wpisz /ocen nick ocena" stop if {Misia111.%player%} is false: send "&aGłosowałaś/eś już na tego gracza" stop if {Wolfek14.%player%} is false: send "&aGłosowałaś/eś już na tego gracza" stop if {Nightowy.%player%} is false: send "&aGłosowałaś/eś już na tego gracza" stop if {MrParty.%player%} is false: send "&aGłosowałaś/eś już na tego gracza" stop command /aocen: permission: oceny.gracza aliases: /aoceny trigger: send "&f--------------------------" send "&eOpcje Admina" send "&f--------------------------" send "&b/oocen lub /aoceny &fwyświetla opcje Admina" send "&b/oceny off &fWyłącza system ocen" send "&b/oceny on &fWłącza system ocen" send "&b/ocen &finformacja o ocenianiu (help)" send "&b/alistaocen &flista ocen dla Admina (OPa)" send "&b/wyczyscoceny &fczyści (zeruje) wszystkie wyniki" send "&b/pozwol nick &fpozwala graczowi zagłosować ponownie, jednak nie czysci poprzednich ocen!" # ------------------------------------------------- dostęp do Listy Ocen dla Administracji #command /listaocen: # permission: oceny.gracza # trigger: # send "&cLISTA OCEN" # send "&dMisia111" # message "Głosowało: %{graczy.Misia111}% graczy" # set {Misia111.srednia} to {suma.Misia111} / {graczy.Misia111} # message "Średnia ocen: %{Misia111.srednia}%" # send "&dWolfek14" # message "Głosowało: %{graczy.Wolfek14}% graczy" # set {Wolfek14.srednia} to {suma.Wolfek14} / {graczy.Wolfek14} # message "Średnia ocen: %{Wolfek14.srednia}%" # send "&dNightowy" # message "Głosowało: %{graczy.Nightowy}% graczy" # set {Nightowy.srednia} to {suma.Nightowy} / {graczy.Nightowy} # message "Średnia ocen: %{Nightowy.srednia}%" # send "&dMrParty" # message "Głosowało: %{graczy.MrParty}% graczy" # set {MrParty.srednia} to {suma.MrParty} / {graczy.MrParty} # message "Średnia ocen: %{MrParty.srednia}%" # ------------------------------------------------- dostęp do listy ocen dla Admina command /alistaocen: description: lista graczy dostepna dla admina permission: aoceny.gracze trigger: send "&cLISTA OCEN" loop {oceny::*}: message "%loop-value%" send "&dMisia111" message "Głosowało: %{graczy.Misia111}% graczy" message "Suma: %{suma.Misia111}%" set {Misia111.srednia} to {suma.Misia111} / {graczy.Misia111} if {suma.Misia111} is 0: set {Misia111.srednia} to 0 message "Średnia ocen: %{Misia111.srednia}%" else: message "Średnia ocen: %{Misia111.srednia}%" # loop {Misia111::*}: # message "%loop-value%" send "&dWolfek14" message "Głosowało: %{graczy.Wolfek14}% graczy" message "Suma: %{suma.Wolfek14}%" set {Wolfek14.srednia} to {suma.Wolfek14} / {graczy.Wolfek14} if {suma.Wolfek14} is 0: set {Wolfek14.srednia} to 0 message "Średnia ocen: %{Wolfek14.srednia}%" else: message "Średnia ocen: %{Wolfek14.srednia}%" # loop {Wolfek14::*}: # message "%loop-value%" send "&dNightowy" message "Głosowało: %{graczy.Nightowy}% graczy" message "Suma: %{suma.Nightowy}%" set {Nightowy.srednia} to {suma.Nightowy} / {graczy.Nightowy} if {suma.Nightowy} is 0: set {Nightowy.srednia} to 0 message "Średnia ocen: %{Nightowy.srednia}%" else: message "Średnia ocen: %{Nightowy.srednia}%" # loop {Nightowy::*}: # message "%loop-value%" send "&dMrParty" message "Głosowało: %{graczy.MrParty}% graczy" message "Suma: %{suma.MrParty}%" set {MrParty.srednia} to {suma.MrParty} / {graczy.MrParty} if {suma.MrParty} is 0: set {MrParty.srednia} to 0 message "Średnia ocen: %{MrParty.srednia}%" else: message "Średnia ocen: %{MrParty.srednia}%" # loop {MrParty::*}: # message "%loop-value%" command /wyczyscoceny: permission: aoceny.gracze trigger: set {Misia111.%player%} to true set {Wolfek14.%player%} to true set {Nightowy.%player%} to true set {MrParty.%player%} to true clear {Misia111::*} delete {Misia111::*} delete {oceny::*} clear {Wolfek14::*} delete {Wolfek14::*} clear {sumaMisia111::*} delete {sumaMisia111::*} clear {sumaWolfek14::*} delete {sumaWolfek14::*} clear {ocenieni.gracze::*} delete {ocenieni.gracze::*} clear {Wolfek14::*} delete {Wolfek14::*} clear {Misia111::*} delete {Misia111::*} clear {Nightowy::*} delete {Nightowy::*} clear {MrParty::*} delete {MrParty::*} delete {ocena::*} delete {ocena.Wolfek14::*} delete {Wolfek14.%player%} delete {ocena.Misia111::*} delete {Misia111.%player%} delete {ocena.Nightowy::*} delete {Nightowy.%player%} delete {ocena.MrParty::*} delete {MrParty.%player%} set {graczy.Misia111} to 0 set {suma.Misia111} to 0 set {Misia111.srednia} to 0 set {suma.Wolfek14} to 0 set {graczy.Wolfek14} to 0 set {Wolfek14.srednia} to 0 set {suma.Nightowy} to 0 set {graczy.Nightowy} to 0 set {Nightowy.srednia} to 0 set {suma.MrParty} to 0 set {graczy.MrParty} to 0 set {MrParty.srednia} to 0 # loop {Nightowy::*}: # clear %loop-value% send "&aWyczyszczono wszystkie oceny" stop # ------------------------------------------zezwolenie na ponowne glosowanie (komenda Admina) command /pozwol []: permission: aoceny.gracze trigger: set {Misia111.%arg 1%} to true delete {Misia111.%arg 1%} clear {Misia111.%arg 1%} delete {Misia111::%arg 1%} set {Wolfek14.%arg 1%} to true delete {Wolfek14.%arg 1%} clear {Wolfek14.%arg 1%} delete {Wolfek14::%arg 1%} set {MrParty.%arg 1%} to true delete {MrParty.%arg 1%} clear {MrParty.%arg 1%} delete {MrParty::%arg 1%} set {Nightowy.%arg 1%} to true delete {Nightowy.%arg 1%} clear {Nightowy.%arg 1%} delete {Nightowy::%arg 1%} send "Zezwolono graczowi: %arg 1% zagłosować ponownie" stop