Skocz do zawartości
  • 0

Item z cooldownem


Custom3r

Pytanie

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on eat of golden carrot:
	if name of event-item is "&6Zlota marchew leczenia":
		if {zlotaMarchew::%player%} is true:
			heal player
			send "&aPomyslnie uleczono" to player
			set {zlotaMarchew::%player%} to false
			wait 10 seconds
			set {zlotaMarchew::%player%} to true
		else:
			cancel event
			send "&cMusisz odczekac 10 sekund przed ponownym zjedzeniem marchwii!"

i think that works

Odnośnik do komentarza
https://skript.pl/temat/34295-item-z-cooldownem/#findComment-220788
Udostępnij na innych stronach

  • 0
2 minuty temu, SernickLOL napisał:

on eat of golden carrot:
	if name of event-item is "&6Zlota marchew leczenia":
		if {zlotaMarchew::%player%} is true:
			heal player
			send "&aPomyslnie uleczono" to player
			set {zlotaMarchew::%player%} to false
			wait 10 seconds
			set {zlotaMarchew::%player%} to true
		else:
			cancel event
			send "&cMusisz odczekac 10 sekund przed ponownym zjedzeniem marchwii!"

i think that works

Bardzo chodzilo o to ze jak klikniesz prawym to Cie leczy. A nie jak zjesz.

Odnośnik do komentarza
https://skript.pl/temat/34295-item-z-cooldownem/#findComment-220789
Udostępnij na innych stronach

  • 0

 

5 godzin temu, SernickLOL napisał:

ustawiłeś zmienną na true manualnie? jeśli nie to masz doklej ten kod do swojego i wpisz tą komendę, później możesz usunąć to


command /szm:
	trigger:
		set {zlotaMarchew::%player%} to true

 

Zrobilem. I nadal nie dziala :P

 

2 godziny temu, Helios1993 napisał:

on rightclick:
	if player's tool is golden carrot named "&6Zlota marchew leczenia":
		if {zlotaMarchew::%player%} is not set:
			set {zlotaMarchew::%player%} to true
		if {zlotaMarchew::%player%} is true:
			heal player
			send "&aPomyslnie uleczono" to player
			set {zlotaMarchew::%player%} to false
			wait 10 seconds
			set {zlotaMarchew::%player%} to true
		else:
			cancel event
			send "&cMusisz odczekac 10 sekund przed ponownym zjedzeniem marchwii!"

 

Dziala. Dzieki do zamkniecia.

Kurotsuwa

Łączę.

Notatka dodana przez Kurotsuwa

Odnośnik do komentarza
https://skript.pl/temat/34295-item-z-cooldownem/#findComment-220794
Udostępnij na innych stronach

  • 0
on rightclick:
	if player's tool is golden carrot named "&6Zlota marchew leczenia":
		if {zlotaMarchew::%player%} is not set:
			set {zlotaMarchew::%player%} to true
		if {zlotaMarchew::%player%} is true:
			heal player
			send "&aPomyslnie uleczono" to player
			set {zlotaMarchew::%player%} to false
			wait 10 seconds
			set {zlotaMarchew::%player%} to true
		else:
			cancel event
			send "&cMusisz odczekac 10 sekund przed ponownym zjedzeniem marchwii!"

 

Odnośnik do komentarza
https://skript.pl/temat/34295-item-z-cooldownem/#findComment-220829
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ę...