Skocz do zawartości
  • 0

Zadania


efnrkgtrgtyr

Pytanie

Siemka, Chciałbym skrypt na /zadania 

 

Czyli że jeżeli wpiszesz komende /zadania

Otwiera ci sie gui

i w tym gui masz zadania

 

Czyli: 

- Zadania za bycie na serwerze

- Zadania za zabicie

- Zadanie za Zjedzeniu koxa

- Zadanie za postawiony blok 

 

Z góry dzieki

Odnośnik do komentarza
https://skript.pl/temat/41724-zadania/
Udostępnij na innych stronach

13 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
12 minut temu, efnrkgtrgtyr napisał:

Siemka, Chciałbym skrypt na /zadania 

 

Czyli że jeżeli wpiszesz komende /zadania

Otwiera ci sie gui

i w tym gui masz zadania

 

Czyli: 

- Zadania za bycie na serwerze

- Zadania za zabicie

- Zadanie za Zjedzeniu koxa

- Zadanie za postawiony blok 

 

Z góry dzieki

command /zadania:
	trigger:
		open chest with 3 rows named "&6Zadania" to player
		loop 27 times:
			set slot loop-number - 1 of player's current inventory to white stained glass pane named " "
		loop 9 times:
			set slot loop-number + 8 of player's current inventory to gray stained glass pane named " "
		set slot 10 of player's current inventory to clock named "&aPobyt na serwerze!" with lore "&7Kliknij &6LPM&7, aby rozpoczac zadanie!"
		set slot 12 of player's current inventory to iron sword named "&cZabojstwo!" with lore "&7Kliknij &6LPM&7, aby rozpoczac zadanie!"
		set slot 14 of player's current inventory to clock named "&eZjedzenie koxa!" with lore "&7Kliknij &6LPM&7, aby rozpoczac zadanie!"
		set slot 16 of player's current inventory to clock named "&bPostawienie bloku!" with lore "&7Kliknij &6LPM&7, aby rozpoczac zadanie!"
		set slot 26 of player's current inventory to barrier named "&cAnuluj" with lore "&7Kliknij &6LPM&7, aby wyjsc z menu zadan!"
		
on inventory click:
	if name of player's current inventory is not "&6Zadania":
		stop
	if clicked inventory is player's inventory:
		stop
	cancel event
	if clicked slot is 10:
		# Co ma się dziać po kliknięciu slotu od zadania z pobytem na serwerze?
	else if clicked slot is 12:
		# Co ma się dziać po kliknięciu slotu od zadania z zabójstwem?
	else if clicked slot is 14:
		# Co ma się dziać po kliknięciu slotu od zadania ze zjedzeniem koxa?
	else if clicked slot is 16:
		# Co ma się dziać po kliknięciu slotu od zadania z postawieniem bloku?
	else if clicked slot is 26:
		close player's inventory

Komentarzami zaznaczyłem co i gdzie masz dodać w kodzie od siebie.

Odnośnik do komentarza
https://skript.pl/temat/41724-zadania/#findComment-261475
Udostępnij na innych stronach

  • 0
4 minuty temu, Kormic napisał:

command /zadania:
	trigger:
		open chest with 3 rows named "&6Zadania" to player
		loop 27 times:
			set slot loop-number - 1 of player's current inventory to white stained glass pane named " "
		loop 9 times:
			set slot loop-number + 8 of player's current inventory to gray stained glass pane named " "
		set slot 10 of player's current inventory to clock named "&aPobyt na serwerze!" with lore "&7Kliknij &6LPM&7, aby rozpoczac zadanie!"
		set slot 12 of player's current inventory to iron sword named "&cZabojstwo!" with lore "&7Kliknij &6LPM&7, aby rozpoczac zadanie!"
		set slot 14 of player's current inventory to clock named "&eZjedzenie koxa!" with lore "&7Kliknij &6LPM&7, aby rozpoczac zadanie!"
		set slot 16 of player's current inventory to clock named "&bPostawienie bloku!" with lore "&7Kliknij &6LPM&7, aby rozpoczac zadanie!"
		set slot 26 of player's current inventory to barrier named "&cAnuluj" with lore "&7Kliknij &6LPM&7, aby wyjsc z menu zadan!"
		
on inventory click:
	if name of player's current inventory is not "&6Zadania":
		stop
	if clicked inventory is player's inventory:
		stop
	cancel event
	if clicked slot is 10:
		# Co ma się dziać po kliknięciu slotu od zadania z pobytem na serwerze?
	else if clicked slot is 12:
		# Co ma się dziać po kliknięciu slotu od zadania z zabójstwem?
	else if clicked slot is 14:
		# Co ma się dziać po kliknięciu slotu od zadania ze zjedzeniem koxa?
	else if clicked slot is 16:
		# Co ma się dziać po kliknięciu slotu od zadania z postawieniem bloku?
	else if clicked slot is 26:
		close player's inventory

Komentarzami zaznaczyłem co i gdzie masz dodać w kodzie od siebie.

a zrobiłbyś mi 1 bym już wiedział jakim tropem iść

 

Odnośnik do komentarza
https://skript.pl/temat/41724-zadania/#findComment-261476
Udostępnij na innych stronach

  • 0
7 minut temu, Kormic napisał:

Dobrze, pomogę, ale muszę wiedzieć jaki jest pożądany przez ciebie efekt.

że od 1 wbicia na serwer już ci sie nalicza  do /zadania gdzie będą przedmioty z nazwa "blalalal" i pod z spodem 0/100 itp. 

i że np od 1 wbicia dodaje ci juz do /zadania ze po 1 minucie spedzajac na serwerze dodaje ci do /zadania na itemku 1/100 coś takiego

Odnośnik do komentarza
https://skript.pl/temat/41724-zadania/#findComment-261479
Udostępnij na innych stronach

  • 0
Teraz, efnrkgtrgtyr napisał:

że od 1 wbicia na serwer już ci sie nalicza  do /zadania gdzie będą przedmioty z nazwa "blalalal" i pod z spodem 0/100 itp. 

i że np od 1 wbicia dodaje ci juz do /zadania ze po 1 minucie spedzajac na serwerze dodaje ci do /zadania na itemku 1/100 coś takiego

Jakie przedmioty? Gdzie? W ekwipunku gracza czy w tym GUI?

Pod spodem? Masz na myśli lore?

Odnośnik do komentarza
https://skript.pl/temat/41724-zadania/#findComment-261480
Udostępnij na innych stronach

  • 0
9 godzin temu, Kormic napisał:

Dodałem przykład, myślę, że to miałeś na myśli.

 

Teraz tak zobaczyłem że ten skrypt ma 11 błędów:


 
[11:05:14 ERROR]: 'translateTimespan(t: timespan) :: text' is not a text (Zadania.sk, line 12: function translateTimespan(t: timespan) :: text:')
[11:05:14 ERROR]: 'player's time played' is not an entity type (Usuwanie.sk, line 36: if player's time played is less than 100 minutes:')
[11:05:14 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Zadania.sk, line 38: else:')
[11:05:14 ERROR]: a slot can't be set to ('barrier named "&cAnuluj" with lore "&7Kliknij &6LPM&7' and 'aby wyjsc z menu zadan!"') because the latter is neither an item type nor an item stack (Usuwanie.sk, line 46: set slot 26 of player's current inventory to barrier named "&cAnuluj" with lore "&7Kliknij &6LPM&7, aby wyjsc z menu zadan!"')
[11:05:14 ERROR]: 'player' is not an item stack (Zadania.sk, line 49: if name of player's current inventory is not "&6Zadania":')
[11:05:14 ERROR]: 'inventory' is not an item type (Zadania.sk, line 51: if clicked inventory is player's inventory:')
[11:05:14 ERROR]: 'slot' is not an item type (Zadania.sk, line 54: if clicked slot is 10:')
[11:05:14 ERROR]: 'else if' has to be placed just after another 'if' or 'else if' section (Usuwanie.sk, line 61: else if clicked slot is 12:')
[11:05:14 ERROR]: 'else if' has to be placed just after another 'if' or 'else if' section (Usuwanie.sk, line 63: else if clicked slot is 14:')
[11:05:14 ERROR]: 'else if' has to be placed just after another 'if' or 'else if' section (Usuwanie.sk, line 65: else if clicked slot is 16:')
[11:05:14 ERROR]: 'else if' has to be placed just after another 'if' or 'else if' section (Usuwanie.sk, line 67: else if clicked slot is 26:')
Edytowane przez efnrkgtrgtyr
Odnośnik do komentarza
https://skript.pl/temat/41724-zadania/#findComment-261492
Udostępnij na innych stronach

  • 0
3 minuty temu, efnrkgtrgtyr napisał:

Teraz tak zobaczyłem że ten skrypt ma 11 błędów:



 
[11:05:14 ERROR]: 'translateTimespan(t: timespan) :: text' is not a text (Zadania.sk, line 12: function translateTimespan(t: timespan) :: text:')
[11:05:14 ERROR]: 'player's time played' is not an entity type (Usuwanie.sk, line 36: if player's time played is less than 100 minutes:')
[11:05:14 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Zadania.sk, line 38: else:')
[11:05:14 ERROR]: a slot can't be set to ('barrier named "&cAnuluj" with lore "&7Kliknij &6LPM&7' and 'aby wyjsc z menu zadan!"') because the latter is neither an item type nor an item stack (Usuwanie.sk, line 46: set slot 26 of player's current inventory to barrier named "&cAnuluj" with lore "&7Kliknij &6LPM&7, aby wyjsc z menu zadan!"')
[11:05:14 ERROR]: 'player' is not an item stack (Zadania.sk, line 49: if name of player's current inventory is not "&6Zadania":')
[11:05:14 ERROR]: 'inventory' is not an item type (Zadania.sk, line 51: if clicked inventory is player's inventory:')
[11:05:14 ERROR]: 'slot' is not an item type (Zadania.sk, line 54: if clicked slot is 10:')
[11:05:14 ERROR]: 'else if' has to be placed just after another 'if' or 'else if' section (Usuwanie.sk, line 61: else if clicked slot is 12:')
[11:05:14 ERROR]: 'else if' has to be placed just after another 'if' or 'else if' section (Usuwanie.sk, line 63: else if clicked slot is 14:')
[11:05:14 ERROR]: 'else if' has to be placed just after another 'if' or 'else if' section (Usuwanie.sk, line 65: else if clicked slot is 16:')
[11:05:14 ERROR]: 'else if' has to be placed just after another 'if' or 'else if' section (Usuwanie.sk, line 67: else if clicked slot is 26:')

Masz Skripta 2.1.2, mam rację? W takim razie ten kod nie zadziała. Aby ten skrypt zadziałał, potrzebowałbyś wersji minimum 2.2, w tym wypadku polecam Skript 2.2 Fixes V8b. Oczywiście pamiętaj, aby nie pobierać najnowszej wersji, gdyż nie zadziała (domyślam się, że posiadasz wersję serwera 1.8.8), bo nowsze wersje są dla minimum 1.9+ (tutaj też mam co do tego wątpliwości, ale jeśli będziesz miał okazję operować na wersji 1.9, to będzie to okazja do zdobycia informacji).

Edytowane przez Kormic
Odnośnik do komentarza
https://skript.pl/temat/41724-zadania/#findComment-261494
Udostępnij na innych stronach

  • 0

 
sk reload zadanie

[00:20:49] [Server thread/INFO]: [Skript] Reloading zadanie.sk...

[00:20:49] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (zadanie.sk, line 50: else if clicked slot is 12:')

[00:20:49] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (zadanie.sk, line 52: else if clicked slot is 14:')

[00:20:49] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (zadanie.sk, line 54: else if clicked slot is 16:')

[00:20:49] [Server thread/ERROR]: can't understand this condition: 'player's time played is less than 100 minutes' (zadanie.sk, line 25: if player's time played is less than 100 minutes:')

[00:20:49] [Server thread/ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (zadanie.sk, line 27: else:')

[00:20:49] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading zadanie.sk!

pomoze ktos?

Edytowane przez SpokocukierkiPL
Odnośnik do komentarza
https://skript.pl/temat/41724-zadania/#findComment-262169
Udostępnij na innych stronach

  • 0
26 minut temu, SpokocukierkiPL napisał:


 
sk reload zadanie

[00:20:49] [Server thread/INFO]: [Skript] Reloading zadanie.sk...

[00:20:49] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (zadanie.sk, line 50: else if clicked slot is 12:')

[00:20:49] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (zadanie.sk, line 52: else if clicked slot is 14:')

[00:20:49] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (zadanie.sk, line 54: else if clicked slot is 16:')

[00:20:49] [Server thread/ERROR]: can't understand this condition: 'player's time played is less than 100 minutes' (zadanie.sk, line 25: if player's time played is less than 100 minutes:')

[00:20:49] [Server thread/ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (zadanie.sk, line 27: else:')

[00:20:49] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading zadanie.sk!

pomoze ktos?

Bierzesz bezmyślnie skrypt na serwer, nawet nie sprawdzasz jego zawartości. Co do wyrażenia %player's time played%, jest ono w Skript'cie 2.5+.

Odnośnik do komentarza
https://skript.pl/temat/41724-zadania/#findComment-262173
Udostępnij na innych stronach

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ą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń 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ć grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...