Skocz do zawartości
  • 0

Różdżka Leczenia


Pytanie

Ma ktoś pomysł jak to naprawić? Ogólnie działa tyle że jeżeli ktoś już użył różdżki a przykładowo druga osoba będzie chciała jej użyć to wyświetla jej się że musi odczekać czas pierwszej osoby i sama nie może jej użyć przed upłynięciem czasu :/ 

on leftclick:
	if player's tool is stick named "&4❤ &cRóżdżka Leczenia &4❤" with lore "&7LPM - aby użyć.":
		if {lecz::player} is true:
			set {lecz::player} to false
			set {times::player} to 59
			apply regeneration 1 to the player for 10 second
			apply slowness 2 to the player for 10 second
			drawComplexCircle particle "heart", center player, id "%player%-heal1", randomRotation true, radius .8, density 20, start 0, visibleRange 100, xRotation 23, yRotation 120, zRotation 0
			drawComplexCircle particle "heart", center player, id "%player%-heal2", randomRotation false, radius .8, density 20, start 0, visibleRange 100, xRotation 70, yRotation 10, zRotation 0
			drawComplexCircle particle "heart", center player, id "%player%-heal3", randomRotation false, radius .8, density 20, start 0, visibleRange 100, xRotation 0, yRotation 60, zRotation 0
			drawComplexCircle particle "heart", center player, id "%player%-heal4", randomRotation true, radius .8, density 20, start 0, visibleRange 100, xRotation 25, yRotation 54, zRotation 0     
			wait 1 second
			stopeffect id "%player%-heal1"
			stopeffect id "%player%-heal2"
			stopeffect id "%player%-heal3"
			stopeffect id "%player%-heal4"
			if {times::player} is 59:
				loop {times::player} times:
					wait 1 second
					remove 1 from {times::player}
			if {times::player} is 0:
				set {lecz::player} to true
		else:
			end "&7Musisz odczekać &c%{times::player}% sekund &7zanim ponownie użyjesz różdżki"
Odnośnik do komentarza
https://skript.pl/temat/38900-r%C3%B3%C5%BCd%C5%BCka-leczenia/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on leftclick:
	if player's tool is stick named "&4❤ &cRóżdżka Leczenia &4❤" with lore "&7LPM - aby użyć.":
		if {lecz::%player%} is true:
			set {lecz::%player%} to false
			set {times::%player%} to 59
			apply regeneration 1 to the player for 10 second
			apply slowness 2 to the player for 10 second
			drawComplexCircle particle "heart", center player, id "%player%-heal1", randomRotation true, radius .8, density 20, start 0, visibleRange 100, xRotation 23, yRotation 120, zRotation 0
			drawComplexCircle particle "heart", center player, id "%player%-heal2", randomRotation false, radius .8, density 20, start 0, visibleRange 100, xRotation 70, yRotation 10, zRotation 0
			drawComplexCircle particle "heart", center player, id "%player%-heal3", randomRotation false, radius .8, density 20, start 0, visibleRange 100, xRotation 0, yRotation 60, zRotation 0
			drawComplexCircle particle "heart", center player, id "%player%-heal4", randomRotation true, radius .8, density 20, start 0, visibleRange 100, xRotation 25, yRotation 54, zRotation 0     
			wait 1 second
			stopeffect id "%player%-heal1"
			stopeffect id "%player%-heal2"
			stopeffect id "%player%-heal3"
			stopeffect id "%player%-heal4"
			if {times::player} is 59:
				loop {times::%player%} times:
					wait 1 second
					remove 1 from {times::%player%}
			if {times::player} is 0:
				set {lecz::%player%} to true
		else:
			end "&7Musisz odczekać &c%{times::%player%}% sekund &7zanim ponownie użyjesz różdżki"
Chyba dobrze
Edytowane przez WIZIBANG
Odnośnik do komentarza
https://skript.pl/temat/38900-r%C3%B3%C5%BCd%C5%BCka-leczenia/#findComment-244872
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ę...