Skocz do zawartości
  • 0

Skrypt na lvl


Uzi

Pytanie

Dokładnie poprosiłbym o skrypt aby po wykopaniu co 35 stone dostawało się lvl górnictwa.
Pod komendą ./lvl byłaby informacja "Twój lvl:...."
I do tego byłoby coś takiego:

                        send to player title "&7Zdobyles {lvl.%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds
Odnośnik do komentarza
https://skript.pl/temat/32397-skrypt-na-lvl/
Udostępnij na innych stronach

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
	Liczba: 35   #Liczba stone do nastepnego lvl.
variables:
	{LVL::%player%} = 1
	{WYKOPANE::%player%} = 0
on break stone:
	add 1 to {WYKOPANE::%player%}
	if {WYKOPANE::%player%} is {@Liczba}:
		set {WYKOPANE::%player%} to 0
		add 1 to {LVL::%player%}
		send to player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds
command /lvl [<text>]:
  	trigger:
  		send player title "&aTwoj level wynosi" with subtitle "&c&l%{LVL::%player%}%" for 5 seconds
	

 

Odnośnik do komentarza
https://skript.pl/temat/32397-skrypt-na-lvl/#findComment-210524
Udostępnij na innych stronach

  • 0
36 minut temu, Grex napisał:

options:
	Liczba: 35   #Liczba stone do nastepnego lvl.
variables:
	{LVL::%player%} = 1
	{WYKOPANE::%player%} = 0
on break stone:
	add 1 to {WYKOPANE::%player%}
	if {WYKOPANE::%player%} is {@Liczba}:
		set {WYKOPANE::%player%} to 0
		add 1 to {LVL::%player%}
		send to player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds
command /lvl [<text>]:
  	trigger:
  		send player title "&aTwoj level wynosi" with subtitle "&c&l%{LVL::%player%}%" for 5 seconds
	

 

Błędy:


 

[12:22:31] [Server thread/ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found "__->" [-> = tab, _ = space, ? = other whitespace]) (lvl.sk, line 13: trigger:")
[12:22:31] [Server thread/ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found "__->->" [-> = tab, _ = space, ? = other whitespace]) (lvl.sk, line 14: send player title "&aTwoj level wynosi" with subtitle "&c&l%{LVL::%player%}%" for 5 second?s")
[12:22:31] [Server thread/ERROR]: "to player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds" is not a text (lvl.sk, line 11: send to player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds")
[12:22:31] [Server thread/ERROR]: Required entry "trigger" is missing in "command /lvl []" (lvl.sk, starting at line 12) (lvl.sk, line 12: command /lvl []:")

 

Odnośnik do komentarza
https://skript.pl/temat/32397-skrypt-na-lvl/#findComment-210530
Udostępnij na innych stronach

  • 0
options:
	Liczba: 35   #Liczba stone do nastepnego lvl.
variables:
	{LVL::%player%} = 1
	{WYKOPANE::%player%} = 0
on break stone:
	add 1 to {WYKOPANE::%player%}
	if {WYKOPANE::%player%} is {@Liczba}:
		set {WYKOPANE::%player%} to 0
		add 1 to {LVL::%player%}
		send player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds
command /lvl [<text>]:
	trigger:
		send player title "&aTwoj level wynosi" with subtitle "&c&l%{LVL::%player%}%" for 5 seconds

Już

Odnośnik do komentarza
https://skript.pl/temat/32397-skrypt-na-lvl/#findComment-210533
Udostępnij na innych stronach

  • 0
[15:58:12] [Server thread/INFO]: [Skript][m Enabling lvl.sk[m...
[15:58:12] [Server thread/ERROR]: "player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds" is not a text (lvl.sk, line 11: send player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds")
[15:58:12] [Server thread/ERROR]: "player title "&aTwoj level wynosi" with subtitle "&c&l%{LVL::%player%}%" for 5 seconds" is not a text (lvl.sk, line 14: send player title "&aTwoj level wynosi" with subtitle "&c&l%{LVL::%player%}%" for 5 seconds")
[15:58:12] [Server thread/INFO]: [Skript][m Encountered 2 errors while parsing lvl.sk!

 

Odnośnik do komentarza
https://skript.pl/temat/32397-skrypt-na-lvl/#findComment-211422
Udostępnij na innych stronach

  • 0
W dniu 31.03.2019 o 16:00, Uzi napisał:

[15:58:12] [Server thread/INFO]: [Skript][m Enabling lvl.sk[m...
[15:58:12] [Server thread/ERROR]: "player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds" is not a text (lvl.sk, line 11: send player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds")
[15:58:12] [Server thread/ERROR]: "player title "&aTwoj level wynosi" with subtitle "&c&l%{LVL::%player%}%" for 5 seconds" is not a text (lvl.sk, line 14: send player title "&aTwoj level wynosi" with subtitle "&c&l%{LVL::%player%}%" for 5 seconds")
[15:58:12] [Server thread/INFO]: [Skript][m Encountered 2 errors while parsing lvl.sk!

 

Jesteś pewien że masz wymagane dodatki?

Odnośnik do komentarza
https://skript.pl/temat/32397-skrypt-na-lvl/#findComment-211600
Udostępnij na innych stronach

  • 0
W dniu 31.03.2019 o 16:00, Uzi napisał:

[15:58:12] [Server thread/INFO]: [Skript][m Enabling lvl.sk[m...
[15:58:12] [Server thread/ERROR]: "player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds" is not a text (lvl.sk, line 11: send player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds")
[15:58:12] [Server thread/ERROR]: "player title "&aTwoj level wynosi" with subtitle "&c&l%{LVL::%player%}%" for 5 seconds" is not a text (lvl.sk, line 14: send player title "&aTwoj level wynosi" with subtitle "&c&l%{LVL::%player%}%" for 5 seconds")
[15:58:12] [Server thread/INFO]: [Skript][m Encountered 2 errors while parsing lvl.sk!

 

Chyba nie masz SkQuery ...

Odnośnik do komentarza
https://skript.pl/temat/32397-skrypt-na-lvl/#findComment-211619
Udostępnij na innych stronach

  • 0

Będę myślał nad tym, ale zauważyłem jeden błąd, dokładnie w 11 linijce.
Podmień z

send player title "&7Zdobyles {LVL::%player%} lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds

Na:

send player title "&7Zdobyles %{LVL::%player%}% lvl gornictwa!" with subtitle "&7Gratulacje %player%!" for 3 seconds[/code
Edytowane przez tazu
Odnośnik do komentarza
https://skript.pl/temat/32397-skrypt-na-lvl/#findComment-211738
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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