# # Autor: damixedixed # Dla uzytkownikow: skript.pl # Prosze nie zmieniac Autora :) # variables: {pokoj-ox} = 0 {status.event.ox} = false {event.%player%} = false {wejscie.event.ox.%player%} = false {pytania.ox} = false options: tag1: &5&lEpic&a&lWorld&e #Pelna Nazwa Serwera tag: &5&lEpic&a&lWorld&8 >&e #Pelna Nazwa Serwera + Kolor napisu ktory ma byc po nim ip: &5&lE&a&lW &8>&e #Skrocona Nazwa serwera + Kolor napisu ktory ma byc po nim planowany1: &6Sobota &egodzina &619:30 #Tu wpisujesz pierwszy planowany event planowany2: &c&lBrak #Tu wpisujesz drugi planowany event command /event [] [] []: trigger: if arg 1 is not set: if arg 2 is not set: if player has permissions "epicworld.event.admin": send " &8&m]=}=)&r {@tag1} &8&m(={=[" send "" send " &8> &6/event dolacz &e- Dolacza do aktywnego eventu" send " &8> &6/event opusc &e- Opuszcza event" send " &8> &6/event lista &e- Lista zaplanowanych eventow" send "" send " &8&m]=}=)&r {@tag1} &8&m(={=[" send "" send " &8> &c&o/event start ox &4- Rozpoczyna event OX." send " &8> &c&o/event pytanie TAK/NIE [] &4- Zadaje pytanie" send " &8> &c&o/event ustaw ox &4- Ustawia pokoj OX." send " &8> &c&o/event stop &4- Zatrzymuje event" send " &8> &c&o/event wygrany [] &4- Wysyla wiadomosc o wygraniu przez gracza eventu i zatrzymuje event" send "" send " &8&m]=}=)&r {@tag1} &8&m(={=[" else: send " &8&m]=}=)&r {@tag1} &8&m(={=[" send "" send " &8> &6/event dolacz &e- Dolacza do aktywnego eventu" send " &8> &6/event opusc &e- Opuszcza event" # send " &8> &6/event lista &e- Lista zaplanowanych eventow" send "" send " &8&m]=}=)&r {@tag1} &8&m(={=[" if arg 1 is "dolacz": if {status.event.ox} is false: send "{@ip} Nie ma chwilowo aktywnego eventu!" stop if {status.event.ox} is true: if {wejscie.event.ox} is false: send "{@tag1} Spozniles sie. Event juz sie zaczal!" stop if {wejscie.event.ox} is true: teleport player to {pokoj.ox} set {event.%player%} to true send "{@ip} Dolaczyles do eventu!" send "{@ip} Aby go opuscic wpisz &6/event opusc" stop if arg 1 is "opusc": if {event.%player%} is true: set {event.%player%} to false wait 5 ticks make player execute command "spawn %player%" send "{@ip} Opusciles event!" stop if {event.%player%} is false: send "{@ip} Nie jestes w evencie!" stop if arg 1 is "lista": send "" send " &8&m]}>&r {@tag1} &8&m<{[" send "" send " &aLISTA ZAPLANOWANYCH EVENTOW" send "" send " &e> {@planowany1}" send " &e> {@planowany2}" send "" send " &8&m]}>&r {@tag1} &8&m<{[" send "" if player has permissions "epicworld.event.admin": if arg 1 is "ustaw": if arg 2 is "ox": set {pokoj.ox} to location of player send "{@ip} Ustawiles pokoj z OX!" stop if arg 1 is "start": if arg 2 is "ox": set {status.event.ox} to true set {wejscie.event.ox} to true set {pytania.ox} to true send "{@ip} Rozpoczoles event ox. Zaraz zacznie sie odliczanie!" teleport player to {pokoj.ox} make player execute command "event dolacz" send "{@tag1} Za &620 &erozpocznie sie event &2O&4X&e!" to all players wait 5 real second send "{@tag1} Za &615 &erozpocznie sie event &2O&4X&e!" to all players wait 5 real second send "{@tag1} Za &610 &erozpocznie sie event &2O&4X&e!" to all players wait 5 real second send "{@tag1} Za &65 &erozpocznie sie event &2O&4X&e!" to all players wait 1 real second send "{@tag1} Za &64 &erozpocznie sie event &2O&4X&e!" to all players wait 1 real second send "{@tag1} Za &63 &erozpocznie sie event &2O&4X&e!" to all players wait 1 real second send "{@tag1} Za &62 &erozpocznie sie event &2O&4X&e!" to all players wait 1 real second send "{@tag1} Za &61 &erozpocznie sie event &2O&4X&e!" to all players wait 1 real second send "{@tag1} Event &2O&4X &erozpoczal sie!" to all players set {wejscie.event.ox} to false stop if arg 1 is "stop": send "{@ip} &cZatrzymales event!" set {wejscie.event.ox} to false set {status.event.ox} to false set {pytania.ox} to false loop all players: if {event.%loop-player%} is true: make loop-player execute command "/spawn" wait 5 ticks set {event.%loop-player%} to false stop if arg 1 is "pytanie": if arg 2 is not set: send "{@ip} Moze bys zadal pytanie?" if arg 2 is "tak": send "{@ip} Pytanie: &6%arg 3%&e! Na odpowiedz masz &615&e sekund!" to all players make player execute command "/rg select oxnie" wait 5 real second send "{@ip} Na odpowiedz masz &610&e sekund!" to all players wait 5 real second send "{@ip} Na odpowiedz masz &65&e sekund!" to all players wait 1 real second send "{@ip} Na odpowiedz masz &64&e sekund!" to all players wait 1 real second send "{@ip} Na odpowiedz masz &63&e sekund!" to all players wait 1 real second send "{@ip} Na odpowiedz masz &62&e sekund!" to all players wait 1 real second send "{@ip} Na odpowiedz masz &61&e sekund!" to all players wait 1 real second make player execute command "//set 0" send "{@ip} Prawidlowa odpowiedz: &2&lTAK" wait 5 real second make player execute command "//undo" stop if arg 2 is "nie": send "{@ip} Pytanie: &6%arg 3%&e! Na odpowiedz masz &615&e sekund!" to all players make player execute command "/rg select oxtak" wait 5 real second send "{@ip} Na odpowiedz masz &610&e sekund!" to all players wait 5 real second send "{@ip} Na odpowiedz masz &65&e sekund!" to all players wait 1 real second send "{@ip} Na odpowiedz masz &64&e sekund!" to all players wait 1 real second send "{@ip} Na odpowiedz masz &63&e sekund!" to all players wait 1 real second send "{@ip} Na odpowiedz masz &62&e sekund!" to all players wait 1 real second send "{@ip} Na odpowiedz masz &61&e sekund!" to all players wait 1 real second make player execute command "//set 0" send "{@ip} Prawidlowa odpowiedz: &4&lNIE" wait 5 real second make player execute command "//undo" stop if arg 1 is "wygrany": if arg 2 is not set: send "{@ip} Kto wygral ostatni event?" stop if arg 2 is set: send "{@tag} Gracz &6%arg 2% Wygral OX!" to all players set {status.event.ox} to false set {pytania.ox} to false loop-all players: if {event.%loop-player%} is true: make console execute command "/spawn %loop-player%" set {event.%loop-player%} to false stop on quit: if {event.%player%} is true: make console execute command "/spawn %player%" set {event.%player%} to false stop