Skocz do zawartości
  • 0

Inventory click TusKe Skript - problem


Pytanie

Cześć,
Mam w planie zrobić pewną wersje "kowala" ale mam jeden problem, mianowicie mam napisany kawałek kodu i w pewnej częsci on działa, ale nie tak jak ma.
 

on inventory click:
	if event-inventory's name is "&c&lCrafts&a&lMC&f&l.pl &8| &6&lNAPRAWA":
		if event-slot is 12:
			set {_item} to slot 12 of player's current inventory
			if {_item} is any tool:
				send "tool" to event-player
				set slot 14 of player's current inventory to diamond
			else:
				set slot 14 of player's current inventory to air
			if {_item} is any sword:
				send "sword" to event-player
				set slot 14 of player's current inventory to diamond

Gdy wkładam za pierwszym razem jakies narzędzie nie pojawia sie diament, dopiero gdy wyjme. Diament ma znikać po wyjęciu narzędzia, ale dopiero kiedy przeklikam narzędzie kilka razy to diament znika, wie ktoś co to moze byc za powód

Odnośnik do komentarza
https://skript.pl/temat/49090-inventory-click-tuske-skript-problem/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Skrypt za szybko sprawdza kliknięty slot

on inventory click:
	if event-inventory's name is "&c&lCrafts&a&lMC&f&l.pl &8| &6&lNAPRAWA":
		wait a tick
		if event-slot is 12:
			set {_item} to slot 12 of player's current inventory
			if {_item} is any tool:
				send "tool" to event-player
				set slot 14 of player's current inventory to diamond
			else:
				set slot 14 of player's current inventory to air
			if {_item} is any sword:
				send "sword" to event-player
				set slot 14 of player's current inventory to diamond

 

Odnośnik do komentarza
https://skript.pl/temat/49090-inventory-click-tuske-skript-problem/#findComment-305185
Udostępnij na innych stronach

  • 0
24 minuty temu, Shooterowy napisał:

Skrypt za szybko sprawdza kliknięty slot


on inventory click:
	if event-inventory's name is "&c&lCrafts&a&lMC&f&l.pl &8| &6&lNAPRAWA":
		wait a tick
		if event-slot is 12:
			set {_item} to slot 12 of player's current inventory
			if {_item} is any tool:
				send "tool" to event-player
				set slot 14 of player's current inventory to diamond
			else:
				set slot 14 of player's current inventory to air
			if {_item} is any sword:
				send "sword" to event-player
				set slot 14 of player's current inventory to diamond

 

Niby działa i widac roznice bo jest lepiej, ale czasami jak ktos pospami to się nie zawsze pojawi i trzeba przeklikać slot

Odnośnik do komentarza
https://skript.pl/temat/49090-inventory-click-tuske-skript-problem/#findComment-305189
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ę...