Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Szukam] Skrypt na sethome


Rekomendowane odpowiedzi

Opublikowano

Skrypt tak?:

command /ustawdom:
	aliases: /sethome
	trigger:
		set {dom::%player%} to location of player
		send "ustawiono dom"
command /dom:
	aliases: /home
	trigger:
		if {dom::%player%} is set:
			send "prosze poczekac 10 sek."
			wait 10 seconds
			send "teleportuje..."
			teleport player to {dom::%player%}
		else:
			send "Nie ustawiles domu"
		
command /usundom:
	aliases: /delhome
	trigger:
		send "usuwam dom"
		clear {dom::%player%}

dziala bo sprawdzalem jak by co :D

 

jak by co to pisz na pw

Opublikowano

@ PLRosekPL

ok daję ci poprawiony kod

variables:
	{ruch} = true

command /ustawdom:
	aliases: /sethome
	trigger:
		set {dom::%player%} to location of player
		send "ustawiono dom"
command /dom:
	aliases: /home
	trigger:
		if {dom::%player%} is set:
			if {ruch} is false:
				send "prosze poczekac 10 sek."
				wait 10 seconds
				send "teleportuje..."
				teleport player to {dom::%player%}
			else:
				set {_pos} to location of player
				send "Czekaj 10 sek. nie ruszaj sie"
				if {_pos} isn't location of player:
					send "Wykryto ruch anuluje"
					stop
				wait 1 second
				if {_pos} isn't location of player:
					send "Wykryto ruch anuluje"
					stop
				wait 1 second
				if {_pos} isn't location of player:
					send "Wykryto ruch anuluje"
					stop
				wait 1 second
				if {_pos} isn't location of player:
					send "Wykryto ruch anuluje"
					stop
				wait 1 second
				if {_pos} isn't location of player:
					send "Wykryto ruch anuluje"
					stop
				wait 1 second
				if {_pos} isn't location of player:
					send "Wykryto ruch anuluje"
					stop
				wait 1 second
				if {_pos} isn't location of player:
					send "Wykryto ruch anuluje"
					stop
				wait 1 second
				if {_pos} isn't location of player:
					send "Wykryto ruch anuluje"
					stop
				wait 1 second
				if {_pos} isn't location of player:
					send "Wykryto ruch anuluje"
					stop
				wait 1 second
				if {_pos} isn't location of player:
					send "Wykryto ruch anuluje"
					stop
				wait 1 second
				if {_pos} is location of player:
					teleport player to {dom::%player%}
					send "Teleportacja..."
					stop
				else:
					send "Wykryto ruch anuluje"
					stop
		else:
			send "Nie ustawiles domu"
		
command /usundom:
	aliases: /delhome
	trigger:
		send "usuwam dom"
		clear {dom::%player%}
		

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...