Skocz do zawartości
  • 0

Problem z naprawą wędki


TheFightaz

Pytanie

Cześć,
Mam napisany kod dotyczący naprawy przedmiotów.
Wszystko działa prawidłowo, ale gdy chce naprawić wędkę to juz nie.
 

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 or any sword or any armor or fishing rod:
				set {_item} to slot 12 of event-inventory
				send "{@tag} &aWłożyłeś/aś przedmiot &8(&c%event-item%&8) &ado naprawy" to event-player

 

Odnośnik do komentarza
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
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 or any sword or any armor or fishing rod:
				set {_item} to slot 12 of event-inventory
				send "{@tag} &aWłożyłeś/aś przedmiot &8(&c%event-item%&8) &ado naprawy" to event-player

# a jak to nie zadziała to masz drugą wersje, --------------------------------

on inventory click:
	if event-inventory's name is "&c&lCrafts&a&lMC&f&l.pl &8| &6&lNAPRAWA":
		set {_item} to slot 12 of player's current inventory
		if {_item} is any tool or any sword or any armor or fishing rod:
			set {_item} to slot 12 of event-inventory
			send "{@tag} &aWłożyłeś/aś przedmiot &8(&c%event-item%&8) &ado naprawy" to event-player

nie testowałem,

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Godzinę temu, Kubo0208 napisał:
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 or any sword or any armor or fishing rod:
				set {_item} to slot 12 of event-inventory
				send "{@tag} &aWłożyłeś/aś przedmiot &8(&c%event-item%&8) &ado naprawy" to event-player

# a jak to nie zadziała to masz drugą wersje, --------------------------------

on inventory click:
	if event-inventory's name is "&c&lCrafts&a&lMC&f&l.pl &8| &6&lNAPRAWA":
		set {_item} to slot 12 of player's current inventory
		if {_item} is any tool or any sword or any armor or fishing rod:
			set {_item} to slot 12 of event-inventory
			send "{@tag} &aWłożyłeś/aś przedmiot &8(&c%event-item%&8) &ado naprawy" to event-player

nie testowałem,

Samo naprawianie itemow dziala, ale jezeli chodzi o wędke to juz nie. Tak jakbym złą nazwe wpisywal? 
- Błędów 0

Odnośnik do komentarza
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ę...