Skocz do zawartości
  • 0

Mały skrypt


Dawid_PL
 Udostępnij

Pytanie

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /sklep:	trigger:		send "Zosatniesz przeleportowany za 5.."		wait 1 second		send "Zosatniesz przeleportowany za 4.."		wait 1 second		send "Zosatniesz przeleportowany za 3.."		wait 1 second		send "Zosatniesz przeleportowany za 2.."		wait 1 second		send "Zosatniesz przeleportowany za 1.."		wait 1 second		send "Teleportacja..."		make player execute command "/warp sklep"

Kod drugi jest z anulowaniem teleportacji gdy gracz sie ruszy, tylko ze ona jest bardzo dokladna i zadziala nawet przy ruszeniu myszką.

command /sklep:	trigger:		send "Zosatniesz przeleportowany za 5.."		set {_a} to location of player		wait 1 second		if {_a} is location of player:			set {_a} to location of player			send "Zosatniesz przeleportowany za 4.."			set {_a} to location of player			wait 1 second			if {_a} is location of player:				set {_a} to location of player				send "Zosatniesz przeleportowany za 3.."				set {_a} to location of player				wait 1 second				if {_a} is location of player:					set {_a} to location of player					send "Zosatniesz przeleportowany za 2.."					set {_a} to location of player					wait 1 second					if {_a} is location of player:						set {_a} to location of player						send "Zosatniesz przeleportowany za 1.."						set {_a} to location of player						wait 1 second						if {_a} is location of player:							set {_a} to location of player							send "Teleportacja..."							make player execute command "/warp sklep"						else:							send "Ruszyles sie!"					else:						send "Ruszyles sie!"				else:					send "Ruszyles sie!"			else:				send "Ruszyles sie!"		else:			send "Ruszyles sie!"
Edytowane przez DamianMMC
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Po ciul tak?

tak deczko lepiej:

command /sklep:	trigger:		set {_index} to 5		set {teleportblock::%player%} to true		loop 5 times:			if {_a} is location of player:				set {_a} to location of player				set {teleportblock::%player%} to true				send "Zosatniesz przeleportowany za %{_index}%.."				set {_a} to location of player				remove 1 from {_index}				wait 1 second			else:				set {teleportblock::%player%} to false				send "Ruszyles sie!"				stop		send "Zostales przeteleportowany!"		make player execute command "/warp sklep"		set {teleportblock::%player%} to false		on join:	set {teleportblock::%player%} to false	stop
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Options:	msg1: &aZostaniesz przeleportowany za&6	msg2: &cRuszyles sie!	msg3: &aZostales przeteleportowany!	msg4: &cAktualnie jestes podczas teleportacji!	msg5: &cNie masz pozwolenia by korzystac z tego warpa!	permisja: warp.sklepcommand /sklep:	trigger:		if player has permission "{@permisja}":			if {teleportblock::%player%} is false:				set {_index} to 5				set {teleportblock::%player%} to true				set {_a} to location of player				loop 5 times:					if {_a} is location of player:						set {_a} to location of player						set {teleportblock::%player%} to true						send "{@msg1} %{_index}%.."						set {_a} to location of player						remove 1 from {_index}						wait 1 second					else:						set {teleportblock::%player%} to false						send "{@msg2}"						stop				send "{@msg3}"				execute console command "/warp sklep %player%"				set {teleportblock::%player%} to false			else:				send "{@msg4}"		else:			send "{@msg5}"			 on join:	set {teleportblock::%player%} to false	stop

Trochę poprawiona wersja skryptu @up + options, permisje ("warp.sklep" - możliwosc zmiany w options) 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Options:	msg1: &aZostaniesz przeleportowany za&6	msg2: &cRuszyles sie!	msg3: &aZostales przeteleportowany!	msg4: &cAktualnie jestes podczas teleportacji!	msg5: &cNie masz pozwolenia by korzystac z tego warpa!	permisja: warp.sklepcommand /sklep:	trigger:		if player has permission "{@permisja}":			if {teleportblock::%player%} is false:				set {_index} to 5				set {teleportblock::%player%} to true				set {_a} to location of player				loop 5 times:					if {_a} is location of player:						set {_a} to location of player						set {teleportblock::%player%} to true						send "{@msg1} %{_index}%.."						set {_a} to location of player						remove 1 from {_index}						wait 1 second					else:						set {teleportblock::%player%} to false						send "{@msg2}"						stop				send "{@msg3}"				execute console command "/warp sklep %player%"				set {teleportblock::%player%} to false			else:				send "{@msg4}"		else:			send "{@msg5}"			 on join:	set {teleportblock::%player%} to false	stop

Trochę poprawiona wersja skryptu @up + options, permisje ("warp.sklep" - możliwosc zmiany w options) 

 

Dzięki ci bardzo

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...