Skocz do zawartości

skrypt na OX :D !!!


Rekomendowane odpowiedzi

drOX

Spis tresci:

  • Krótka informacja
  • Lista komend i permisji
  • Wymagania
  • Konfiguracja

 

Krótka informacja:

Troszeczke patrzylem na inne skrypty z internetu

Mysle ze ten skrypt nie ma zadnych bledow.

( Skrypt może zawierać błędy !!! , ponieważ nie dopracowywałem go !!! XDD )

 

Lista komend:

GRACZ:

/event dolacz - Dolaczasz do eventu

/event opusc - Opuszczasz event

/event lista - Lista zaplanowanych eventow

Admin:

/event start ox - Rozpoczynasz event po 20 sekundach.

/event pytanie TAK/NIE [<PYTANIE>] - Zadaje pytanie.

/event ustaw ox- Ustawia pokoj z OX.

/event stop - Zatrzymuje event.

/event wygrany[<nick>] - Konczy event i wysyla wiadomosc do wszystki o graczu ktory wygral

PERMISJA:

epicworld.event.admin - Permisja dla adminow!

 

Wymagania:

  1. WorldEdit
  2. WorldGuard
  3. Skript
    #---------------------------------#
    # Autor: Srebrny80pl              #   
    # Zakaz podszywania sie pod 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 serweru
    	tag: &5&lEpic&a&lWorld&8 >&e 
    	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 [<text>] [<text>] [<text>]:
    	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 [<tresc>] &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 [<Nick>] &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

    Poradnik By Srebrny80pl:

    1. Skopiuj ten cały wielki kod

    2. Wejdź w zakładkę WebFtp albo Ftp

    3. Wybierz plugin Script ( jeżeli go nie masz to pobierz i zainstaluj )

    4. stwórz nowy plik " ox.sk"

    5. Wejdź to tego pliku

    6. Wklej tam to wszystko

    7. Ciesz się z postępu -_-

    8. Chwal autora :D

    9. Daj repke dla autora :)

    10. Pochwal skrytpa :P

Edytowane przez TheSrebrny80pl
Odnośnik do komentarza
Udostępnij na innych stronach

19 minut temu, Randan napisał:

Mysle ze ten skrypt nie ma zadnych bledow.

Skrypt może zawierać błędy !!! , ponieważ nie dopracowywałem go !!!

 

To przecież sensu nie ma...

Skrypt 3/10 prosty skrypt...

Kocham dawać takie śmieszki więc się nie czepiaj widziałeś jaki kolwiek mój skrypt bez takiego czegoś ? XDD

33 minuty temu, KPX napisał:

Mozna zmieniac linijki?

Jak chcesz zrobić na jego podstawie ulepszoną wersje czy co tak chcesz to zmieniaj śmiało :D

Odnośnik do komentarza
Udostępnij na innych stronach

  • 2 tygodnie później...

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Gość
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Przywróć formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić obrazków. Dodaj lub załącz obrazki z adresu URL.

×
×
  • Dodaj nową pozycję...