Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Potrzebuję pomocy w poprawieniu skriptu na kity


CarryZ

Rekomendowane odpowiedzi

Opublikowano

Witam. Ostatnio ogarnąłem skrypt , ze po wpisaniu danej komendy wyskakuje nam okienko i wybieramy kit. Lecz mam kilka błędów w nim. Otóż. Chciałbym :

 

1. Skrypt , który po wpisaniu /kit napisze na chacie: Ulala! Nie ma u nas takiej komendy! Wpisz /kits . Ale tylko osoby z "*" (gwiazdką) w permisjach , będą mogły używać /kit .

2. Żebyście dodali w nim permisje. Chodzi o to , że podczas /kit jest tylko np /kit gracz i on może tylko ten brać . A gdy wpisze /kits i wybierze np admin , to może wziąć kit admina. 

 

skrypt:

 

command /kits:    
    trigger:        
        open chest with 1 rows named "&2Zestawy" to player        
        wait 2 tick        
        format slot 0 of player with 1 of emerald named "&7[&eGracz&7]" to close then run "kit gracz %player%"
        format slot 2 of player with 1 of 266 named "&7[&2Vip&7]" to close then run "kit vip %player%"
        format slot 6 of player with 1 of Diamond named "&7[&3SVip&7]" to close then run "kit SVip %player%"
        format slot 8 of player with 1 of 322:1 named "&7[&4EVip&7]" to close then run "kit evip %player%"
        format slot 1 of player with 1 of 17:1 named "&7[&eDrewno&7]" to close then run "kit drewno %player%" 
        format slot 3 of player with 1 of 160:14 named "&7[&cBrak&7]" to close
        format slot 4 of player with 1 of 160:14 named "&7[&cBrak&7]" to close
        format slot 5 of player with 1 of 160:14 named "&7[&cBrak&7]" to close 
        format slot 7 of player with 1 of 7 named "&7[&eAdmin&7]" to close then run "kit admin %player%" 
Opublikowano

1. skrypt:

command /kits:    
    trigger:        
        open chest with 1 rows named "&2Zestawy" to player        
        wait 2 tick        
        format slot 0 of player with 1 of emerald named "&7[&eGracz&7]" to close then run "kit gracz %player%"
        format slot 2 of player with 1 of 266 named "&7[&2Vip&7]" to close then run "kit vip %player%"
        format slot 6 of player with 1 of Diamond named "&7[&3SVip&7]" to close then run "kit SVip %player%"
        format slot 8 of player with 1 of 322:1 named "&7[&4EVip&7]" to close then run "kit evip %player%"
        format slot 1 of player with 1 of 17:1 named "&7[&eDrewno&7]" to close then run "kit drewno %player%" 
        format slot 3 of player with 1 of 160:14 named "&7[&cBrak&7]" to close
        format slot 4 of player with 1 of 160:14 named "&7[&cBrak&7]" to close
        format slot 5 of player with 1 of 160:14 named "&7[&cBrak&7]" to close 
        format slot 7 of player with 1 of 7 named "&7[&eAdmin&7]" to close then run "kit admin %player%" 
command /kit [<text>]:
	if arg 1 is not set:
		if player has permission "*":
			execute player command "kits"
		else:
			send "&eUlala! Nie ma u nas takiej komendy! Wpisz /kits. "

2.Permisje od kitów to essentials.kit.NazwaKitu :)

Opublikowano

@Nekrimeister . Po użyciu skryptu w consoli wyskakuje:

 

[12:48:13] [server thread/WARN]: [skript] Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '266' with e.g. 'golden ingot'. (kitkits.sk, line 6: format slot 2 of player with 1 of 266 named "&7[&2Vip&7]" to close then run "kit vip %player%"')
[12:48:13] [server thread/WARN]: [skript] Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '322:1' with e.g. 'enchanted golden apple'. (kitkits.sk, line 8: format slot 8 of player with 1 of 322:1 named "&7[&4EVip&7]" to close then run "kit evip %player%"')
[12:48:13] [server thread/WARN]: [skript] Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '17:1' with e.g. 'spruce wood block'. (kitkits.sk, line 9: format slot 1 of player with 1 of 17:1 named "&7[&eDrewno&7]" to close then run "kit drewno %player%"')
[12:48:13] [server thread/WARN]: [skript] Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '160:14' with e.g. 'red glass'. (kitkits.sk, line 10: format slot 3 of player with 1 of 160:14 named "&7[&cBrak&7]" to close')
[12:48:13] [server thread/WARN]: [skript] Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '160:14' with e.g. 'red glass'. (kitkits.sk, line 11: format slot 4 of player with 1 of 160:14 named "&7[&cBrak&7]" to close')
[12:48:13] [server thread/WARN]: [skript] Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '160:14' with e.g. 'red glass'. (kitkits.sk, line 12: format slot 5 of player with 1 of 160:14 named "&7[&cBrak&7]" to close')
[12:48:13] [server thread/WARN]: [skript] Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '7' with e.g. 'bedrock'. (kitkits.sk, line 13: format slot 7 of player with 1 of 7 named "&7[&eAdmin&7]" to close then run "kit admin %player%"')
[12:48:13] [server thread/ERROR]: [skript] Required entry 'trigger' is missing in 'command /kit [<text>]' (kitkits.sk, starting at line 14) (kitkits.sk, line 14: command /kit [<text>]:')
[12:48:13] [server thread/ERROR]: [skript] Unexpected entry 'if arg 1 is not set'. Check whether it's spelled correctly or remove it. (kitkits.sk, line 15: if arg 1 is not set:')
Opublikowano

Sorki , ze mnie tak dlugo nie było . Norbi002. Po wklejeniu skryptu wyskakuje po wpisaniu komendy /kit to , co ustaliliśmy  . Lecz gracz , vip , svip itp mogą dalej brać itemy wyższych rang.

 

@ref

Opublikowano

CarryZ jest opcja gui w skqurery lam ta opcje: show "s;1;i;Diamond;n;Kit gracz;l;Kliknij;c;kit gracz %player%" with 1 rows named "&6Kity" to player

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...