Skocz do zawartości
  • 0

Problem z "gui" w skrypcie.


Uzi

Pytanie

Witam, mógłby ktoś przerobić ten skrypt, na taki aby "gui" było zabezpieczone?
Skrypt:

 

Edytowane przez LjayPL789
bludis

Wydzielam posty, które niebyły związane z treścią tematu "Jak najlepiej zabezpieczyć itemy w gui" do nowego tematu.

Notatka dodana przez bludis

Odnośnik do komentarza
https://skript.pl/temat/30011-problem-z-gui-w-skrypcie/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
16 godzin temu, Uzi napisał:

Witam, mógłby ktoś przerobić ten skrypt, na taki aby "gui" było zabezpieczone?
Skrypt:

 

za 30 min ok ? :D Albo mi się nie chce... Pokaże Ci pierwszy slot, a resztę sam sobie zrobisz ok?
 

command /drop [<text>]:
  	trigger:
  		open chest with 3 rows named "&6Drop" to player
  		set player's current inventory's slot 0 to {@item1} named "&f{@name1}" with lore " ||&3Szansa: &3{@chance1}|| ||&7Status: %{status.drop.1.%player%}%"
on inventory click:
	if inventory name of current inventory of player is "&6Drop":
		cancel event
  		if clicked slot is 0:
  			execute player command "/zmiendrop 1"

 

Edytowane przez LjayPL789
bludis

Poprawiam ortografię.

Notatka dodana przez bludis

Odnośnik do komentarza
https://skript.pl/temat/30011-problem-z-gui-w-skrypcie/#findComment-196854
Udostępnij na innych stronach

  • 0
39 minut temu, xAxee napisał:

za 30 min ok ? :D Albo mi sie nie chce... pokarze ci pierwszy slot a reszte sam sobie zrobisz ok?
 


command /drop [<text>]:
  	trigger:
  		open chest with 3 rows named "&6Drop" to player
  		set player's current inventory's slot 0 to {@item1} named "&f{@name1}" with lore " ||&3Szansa: &3{@chance1}|| ||&7Status: %{status.drop.1.%player%}%"
on inventory click:
	if inventory name of current inventory of player is "&6Drop":
		cancel event
  		if clicked slot is 0:
  			execute player command "/zmiendrop 1"

 

Cytat

 

[22:48:32] [Server thread/ERROR]: indentation error: expected 2 tabs, but found "__->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 112: if clicked slot is 0:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 2 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 113: execute player command "/zmiendrop 1"")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 115: execute player command "/zmiendrop 2"")
[22:48:32] [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. (swad.sk, line 114: if clicked slot is 1:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 117: execute player command "/zmiendrop 3"")
[22:48:32] [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. (swad.sk, line 116: if clicked slot is 2:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 119: execute player command "/zmiendrop 4"")
[22:48:32] [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. (swad.sk, line 118: if clicked slot is 3:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 121: execute player command "/zmiendrop 5"")
[22:48:32] [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. (swad.sk, line 120: if clicked slot is 4:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 123: execute player command "/zmiendrop 6"")
[22:48:32] [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. (swad.sk, line 122: if clicked slot is 5:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 125: execute player command "/zmiendrop 7"")
[22:48:32] [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. (swad.sk, line 124: if clicked slot is 6:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 127: execute player command "/zmiendrop 8"")
[22:48:32] [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. (swad.sk, line 126: if clicked slot is 7:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 129: execute player command "/zmiendrop 9"")
[22:48:32] [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. (swad.sk, line 128: if clicked slot is 8:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 131: execute player command "/zmiendrop 10"")
[22:48:32] [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. (swad.sk, line 130: if clicked slot is 9:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 133: execute player command "/zmiendrop 12"")
[22:48:32] [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. (swad.sk, line 132: if clicked slot is 10:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 135: execute player command "/zmiendrop 13"")
[22:48:32] [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. (swad.sk, line 134: if clicked slot is 11:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 137: execute player command "/zmiendrop 14"")
[22:48:32] [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. (swad.sk, line 136: if clicked slot is 12:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 139: execute player command "/wlaczall"")
[22:48:32] [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. (swad.sk, line 138: if clicked slot is 18:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 141: execute player command "/wylaczall"")
[22:48:32] [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. (swad.sk, line 140: if clicked slot is 19:")
[22:48:32] [Server thread/ERROR]: indentation error: expected 3 tabs, but found "__->->->" [-> = tab, _ = space, ? = other whitespace] (swad.sk, line 143: execute player command "/zmiendrop 26"")
[22:48:32] [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. (swad.sk, line 142: if clicked slot is 26:")
[22:48:32] [Server thread/ERROR]: "set player"s current inventory"s slot 18 to {@item18} named "&f{@name18}" with lore " {@chance18} "" is not an entry (like "name : value") (swad.sk, line 105: set player"s current inventory"s slot 18 to {@item18} named "&f{@name18}" with lore " {@chance18} "")
[22:48:32] [Server thread/ERROR]: "set player"s current inventory"s slot 19 to {@item10} named "&f{@name10}" with lore " {@chance19} "" is not an entry (like "name : value") (swad.sk, line 106: set player"s current inventory"s slot 19 to {@item10} named "&f{@name10}" with lore " {@chance19} "")
[22:48:32] [Server thread/ERROR]: Required entry "trigger" is missing in "command /drop []" (swad.sk, starting at line 89) (swad.sk, line 107: set player"s current inventory"s slot 26 to {@item26} named "&f{@name26}" with lore " &7Status: %{status.drop.26.%player%}% "")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 1 to {@item2} named "&f{@name2}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 93: set player"s current inventory"s slot 1 to {@item2} named "&f{@name2}" with lore " ||&3Szansa: &3{@chance2}|| ||&7Status: %{status.drop.2.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 2 to {@item3} named "&f{@name3}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 94: set player"s current inventory"s slot 2 to {@item3} named "&f{@name3}" with lore " ||&3Szansa: &3{@chance3}|| ||&7Status: %{status.drop.3.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 3 to {@item4} named "&f{@name4}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 95: set player"s current inventory"s slot 3 to {@item4} named "&f{@name4}" with lore " ||&3Szansa: &3{@chance4}|| ||&7Status: %{status.drop.4.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 4 to {@item5} named "&f{@name5}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 96: set player"s current inventory"s slot 4 to {@item5} named "&f{@name5}" with lore " ||&3Szansa: &3{@chance5}|| ||&7Status: %{status.drop.5.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 5 to {@item6} named "&f{@name6}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 97: set player"s current inventory"s slot 5 to {@item6} named "&f{@name6}" with lore " ||&3Szansa: &3{@chance6}|| ||&7Status: %{status.drop.6.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 6 to {@item7} named "&f{@name7}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 98: set player"s current inventory"s slot 6 to {@item7} named "&f{@name7}" with lore " ||&3Szansa: &3{@chance7}|| ||&7Status: %{status.drop.7.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 7 to {@item8} named "&f{@name8}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 99: set player"s current inventory"s slot 7 to {@item8} named "&f{@name8}" with lore " ||&3Szansa: &3{@chance8}|| ||&7Status: %{status.drop.8.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 8 to {@item9} named "&f{@name9}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 100: set player"s current inventory"s slot 8 to {@item9} named "&f{@name9}" with lore " ||&3Szansa: &3{@chance9}|| ||&7Status: %{status.drop.9.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 9 to {@item10} named "&f{@name10}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 101: set player"s current inventory"s slot 9 to {@item10} named "&f{@name10}" with lore " ||&3Szansa: &3{@chance10}|| ||&7Status: %{status.drop.10.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 10 to {@item12} named "&f{@name12}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 102: set player"s current inventory"s slot 10 to {@item12} named "&f{@name12}" with lore " ||&3Szansa: &3{@chance12}|| ||&7Status: %{status.drop.12.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 11 to {@item13} named "&f{@name13}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 103: set player"s current inventory"s slot 11 to {@item13} named "&f{@name13}" with lore " ||&3Szansa: &3{@chance13}|| ||&7Status: %{status.drop.13.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 12 to {@item14} named "&f{@name14}" with lore " ||&3Szansa". Check whether it"s spelled correctly or remove it. (swad.sk, line 104: set player"s current inventory"s slot 12 to {@item14} named "&f{@name14}" with lore " ||&3Szansa: &3{@chance14}|| ||&7Status: %{status.drop.14.%player%}%"")
[22:48:32] [Server thread/ERROR]: Unexpected entry "set player"s current inventory"s slot 26 to {@item26} named "&f{@name26}" with lore " &7Status". Check whether it"s spelled correctly or remove it. (swad.sk, line 107: set player"s current inventory"s slot 26 to {@item26} named "&f{@name26}" with lore " &7Status: %{status.drop.26.%player%}% "")
[22:48:32] [Server thread/INFO]: [Skript][m Encountered 36 errors while reloading swad.sk[m!

 



Niestety zrobiłem według twojego schematu :/
Odnośnik do komentarza
https://skript.pl/temat/30011-problem-z-gui-w-skrypcie/#findComment-196864
Udostępnij na innych stronach

  • 0
21 minut temu, Uzi napisał:


Niestety zrobiłem według twojego schematu :/

1. Pobierz SkQuery
2. Zrób ten config {@item26} iwg
3.  Taby i spacje - 1 tab = 4 spacje

 

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/30011-problem-z-gui-w-skrypcie/#findComment-196866
Udostępnij na innych stronach

  • 0
3 minuty temu, xAxee napisał:

1. Pobierz SkQuery
2. Zrób ten config {@item26} iwg
3.  Taby i spacje - 1 tab = 4 spacje

Posiadam SkQuery, config jest, taby i spacje są według tego co napisałeś powinno działać przynajmniej gui a tutaj tego nie ma :/
Wersja 1.8 jak coś

Odnośnik do komentarza
https://skript.pl/temat/30011-problem-z-gui-w-skrypcie/#findComment-196867
Udostępnij na innych stronach

  • 0
17 godzin temu, xAxee napisał:

 

@Uzi

Podaj czy coś jeszcze wyskakuje

Cytat
[16:41:35] [Server thread/INFO]: [Skript][m Reloading swad.sk[m...
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 91: open chest with 3 rows named "&6Drop" to player')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 92: set player's current inventory's slot 0 to {@item1} named "&f{@name1}" with lore " ||&3Szansa: &3{@chance1}|| ||&7Status: %{status.drop.1.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 93: set player's current inventory's slot 1 to {@item2} named "&f{@name2}" with lore " ||&3Szansa: &3{@chance2}|| ||&7Status: %{status.drop.2.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 94: set player's current inventory's slot 2 to {@item3} named "&f{@name3}" with lore " ||&3Szansa: &3{@chance3}|| ||&7Status: %{status.drop.3.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 95: set player's current inventory's slot 3 to {@item4} named "&f{@name4}" with lore " ||&3Szansa: &3{@chance4}|| ||&7Status: %{status.drop.4.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 96: set player's current inventory's slot 4 to {@item5} named "&f{@name5}" with lore " ||&3Szansa: &3{@chance5}|| ||&7Status: %{status.drop.5.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 97: set player's current inventory's slot 5 to {@item6} named "&f{@name6}" with lore " ||&3Szansa: &3{@chance6}|| ||&7Status: %{status.drop.6.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 98: set player's current inventory's slot 6 to {@item7} named "&f{@name7}" with lore " ||&3Szansa: &3{@chance7}|| ||&7Status: %{status.drop.7.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 99: set player's current inventory's slot 7 to {@item8} named "&f{@name8}" with lore " ||&3Szansa: &3{@chance8}|| ||&7Status: %{status.drop.8.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 100: set player's current inventory's slot 8 to {@item9} named "&f{@name9}" with lore " ||&3Szansa: &3{@chance9}|| ||&7Status: %{status.drop.9.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 101: set player's current inventory's slot 9 to {@item10} named "&f{@name10}" with lore " ||&3Szansa: &3{@chance10}|| ||&7Status: %{status.drop.10.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 102: set player's current inventory's slot 10 to {@item12} named "&f{@name12}" with lore " ||&3Szansa: &3{@chance12}|| ||&7Status: %{status.drop.12.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 103: set player's current inventory's slot 11 to {@item13} named "&f{@name13}" with lore " ||&3Szansa: &3{@chance13}|| ||&7Status: %{status.drop.13.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 104: set player's current inventory's slot 12 to {@item14} named "&f{@name14}" with lore " ||&3Szansa: &3{@chance14}|| ||&7Status: %{status.drop.14.%player%}%"')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 105: set player's current inventory's slot 18 to {@item18} named "&f{@name18}" with lore " {@chance18} "')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 106: set player's current inventory's slot 19 to {@item10} named "&f{@name10}" with lore " {@chance19} "')
[16:41:35] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 8 spaces (swad.sk, line 107: set player's current inventory's slot 26 to {@item26} named "&f{@name26}" with lore " &7Status: %{status.drop.26.%player%}% "')
[16:41:35] [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. (swad.sk, line 90: trigger:')
[16:41:35] [Server thread/INFO]: [Skript][m Encountered 17 errors while reloading swad.sk[m!

 

Odnośnik do komentarza
https://skript.pl/temat/30011-problem-z-gui-w-skrypcie/#findComment-196902
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ę...