Skocz do zawartości
  • 0

Setslot - problem


SzymoonDev

Pytanie

Bez zbędnego wstępu:

set slot 103 of loop-player's inventory to diamond helmet of Protection 4 named "Diamond Helmdfafagaset"
set slot 102 of loop-player's inventory to diamond chestplate of Aqua Affinity 1 named "testaetste"
set slot 101 of loop-player's inventory to air
set slot 100 of loop-player's inventory to diamond boots

Niestety - nie działa. Sloty 103 - 100 to zbroja gracza.

Pokazuje błąd podczas wykonywania komendy (nie podczas ładowania skryptu).

https://pastebin.com/zt6hVg3M

 

Odnośnik do komentarza
https://skript.pl/temat/19029-setslot-problem/
Udostępnij na innych stronach

11 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
[13:59:14 ERROR]: 'helmet' is not a number (asd.sk, line 116: set helmet of loop-player's inventory to diamond helmet of Protection 4 named "Diamond Helmdfafagaset" parsed as number')
[13:59:14 ERROR]: 'chestplate' is not a number (asd.sk, line 117: set chestplate of loop-player's inventory to diamond chestplate of Aqua Affinity 1 named "testaetste"')
[13:59:14 ERROR]: 'leggings' is not a number (asd.sk, line 118: set leggings of loop-player's inventory to air')
[13:59:14 ERROR]: 'boots' is not a number (asd.sk, line 119: set boots of loop-player's inventory to diamond boots')

 

Odnośnik do komentarza
https://skript.pl/temat/19029-setslot-problem/#findComment-129699
Udostępnij na innych stronach

  • 0

nie stosuj inventory w tym przypadku.

 

Wpisz po prostu:

	set helmet of loop-player to diamond helmet of protection 4 named "Diamond Helmdfafagaset"
	set chestplate of loop-player to a diamond chestplate of aqua affinity named "testaetste"
	set leggings of loop-player to air
	set boots of loop-player to diamond boots
	

Odnośnik do komentarza
https://skript.pl/temat/19029-setslot-problem/#findComment-129701
Udostępnij na innych stronach

  • 0
set loop-player's helmet to diamond helmet of Protection 4 named "Diamond Helmdfafagaset"
set loop-player's chestplate to diamond chestplate of Aqua Affinity 1 named "testaetste"
set loop-player's leggings to air
set loop-player's boots to diamond boots

to również nie działa.

Edytowane przez SzymoonDev
Odnośnik do komentarza
https://skript.pl/temat/19029-setslot-problem/#findComment-129703
Udostępnij na innych stronach

  • 0
equip loop-player with {_invbackup::helmet::%loop-player%}
equip loop-player with {_invbackup::chestplate::%loop-player%}
equip loop-player with {_invbackup::leggings::%loop-player%}
equip loop-player with {_invbackup::boots::%loop-player%}

Próbowałem jeszcze z "parsed as item", ale wtedy nie dodawało itemów z enchantami lub nazwą.

Nadal szukam rozwiązania.

Odnośnik do komentarza
https://skript.pl/temat/19029-setslot-problem/#findComment-130056
Udostępnij na innych stronach

  • 0

A co ma tymczasowa zmienna do zwykłej? 

Skrypt wczytuje konfigurację do z pliku do tej zmiennej a następnie wykorzystuje ją do (w tym wypadku) ubrania gracza. Jeżeli nikt nic nie wie, napiszę to w pluginie no ale wolę skrypt. 

Odnośnik do komentarza
https://skript.pl/temat/19029-setslot-problem/#findComment-130400
Udostępnij na innych stronach

  • 0
Dnia 16.06.2017 o 01:14, MegaLegoTom napisał:

Podaj cały kod

+ Zmienna która próbujesz dać graczowi jest tekstem czy przedmiotem? Spróbuj użyć 

equip loop-player with {_invbackup::helmet::%loop-player%} parsed as item

 

Odnośnik do komentarza
https://skript.pl/temat/19029-setslot-problem/#findComment-130543
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ę...