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

[AUTORSKI][SKRYPT]Lepsze domy


Rekomendowane odpowiedzi

Opublikowano

Witam Was kochani gracze

Prezentuję Wam mój autorski skrypt na lepsze domy.

Komendy:

DLA GRACZA

/domustaw

/dom

/domusun

/dompomoc

/domprzyjaciel dodaj/usun <nick>

/domodwiedz <nick>

DLA ADMINA

To co dla gracza

+

/domidz

/domusun <nick>

OTO KOD:

#------------------------
#--- Skrypt by Gzypol ---
#------------------------

variables:
	{dom.%player%} = false	

options:
	blok: diamond block # blok ustawiajacy /dom
	narzedzie: diamond hoe # narzedzie, ktorym klikajac prawym przyciskiem myszy na blok /dom-u niszczymy /dom
	
# Wersja z komenda

#command /domustaw:
#	trigger:
#		if {dom.%player%} is true:
#			set {lokalizacja.dom.%player%} to location of player
#			send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Zmieniles lokacje swojego domu. &f&l|&7&kxPVP&f&l|"
#		if {dom.%player%} is false:
#			set {dom.%player%} to true
#			set {lokalizacja.dom.%player%} to location of player
#			send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Ustawiles dom. &f&l|&7&kxPVP&f&l|"

# Wersja z polozeniem bloku

on place of {@blok}:
	if {dom.%player%} is true:
		set {lokalizacja.dom.%player%} to location of player
		send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Zmieniles lokacje swojego domu. &f&l|&7&kxPVP&f&l|"
	if {dom.%player%} is false:
		set {dom.%player%} to true
		set {lokalizacja.dom.%player%} to location of player
		send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Ustawiles dom. &f&l|&7&kxPVP&f&l|"

command /dom:
	trigger:
		if {dom.%player%} is false:
			send "&f&l|&7&kxPVP&f&l| &2Blad! &3Nie masz ustawionego domu. Wpisz &6/domustaw &3by ustawic swoj dom &f&l|&7&kxPVP&f&l|"
		if {lokalizacja.dom.%player%} is not set:
			send "&f&l|&7&kxPVP&f&l| &2Blad! &3Nie masz ustawionego domu. Wpisz &6/domustaw &3by ustawic swoj dom &f&l|&7&kxPVP&f&l|"
		if {dom.%player%} is true:
			if {lokalizacja.dom.%player%} is set:
				send "&f&l|&7&kxPVP&f&l| &3Teleportacja do domu za &65 &3sekund. &f&l|&7&kxPVP&f&l|"
				wait 5 seconds
				teleport player to {lokalizacja.dom.%player%}
				send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Teleportacja udana! &f&l|&7&kxPVP&f&l|"

# Wersja z komenda

#command /domusun [<text>]:
#	trigger:
#		if argument 1 is not set:
#			if {dom.%player%} is false:
#				send "&f&l|&7&kxPVP&f&l| &2Blad! &3Nie masz ustawionego domu. Wpisz &6/domustaw &3by ustawic swoj dom &f&l|&7&kxPVP&f&l|"
#			if {dom.%player%} is true:
#				set {dom.%player%} to false
#				send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Usunales swoj dom! &f&l|&7&kxPVP&f&l|"
#		if argument 1 is set:
#			if player has permission "dom.admin":
#				if {dom.%argument 1%} is false:
#					send "&f&l|&7&kxPVP&f&l| &2Blad! &3Gracz &6%argument 1% &3nie ma domu! &f&l|&7&kxPVP&f&l|"
#				if {dom.%argument 1%} is true:
#					set {dom.%argument 1%} to false
#					send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Usunales dom gracza &6%argument 1%&3! &f&l|&7&kxPVP&f&l|"
#			else:
#				send "&f&l|&7&kxPVP&f&l| &2Blad! &3Nie masz uprawnien by to uzywac! &f&l|&7&kxPVP&f&l|"

# Wersja z usunieciem bloku

on rightclick with a {@narzedzie} on {@blok}:
	if {dom.%player%} is false:
		send "&f&l|&7&kxPVP&f&l| &2Blad! &3Nie masz ustawionego domu. Wpisz &6/domustaw &3by ustawic swoj dom &f&l|&7&kxPVP&f&l|"
	if {dom.%player%} is true:
		set {dom.%player%} to false
		send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Usunales swoj dom! &f&l|&7&kxPVP&f&l|"
		set targeted block to air
		drop {@blok}
		
command /dompomoc [<text>]:
	trigger:
		if argument 1 is not set:
			send "&f&l|&3&kxPVP&f&l| &7========================= &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &6Pomoc dotyczaca domow! &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domustaw &7- ustawia dom &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/dom &7- teleportuje do domu &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domusun &7- usuwa dom &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domprzyjaciel dodaj <nick> &7- dodanie gracza do grona przyjaciol &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domprzyjaciel usun <nick> &7- usuniecie gracza z grona przyjaciol &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domodwiedz <nick> &7- odwiedzenie domu przyjaciela &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &6Plugin stworzony przez &4&lgzypol &f&l|&3&kxPVP&f&l|" #Proszę tego nie usuwać!
			send "&f&l|&3&kxPVP&f&l| &7========================= &f&l|&3&kxPVP&f&l|"
		if argument 1 is "admin":
			send "&f&l|&3&kxPVP&f&l| &7========================= &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &6Pomoc dotyczaca domow dla admina! &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domustaw &7- ustawia dom &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/dom &7- teleportuje do domu &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domusun &7- usuwa dom &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domprzyjaciel dodaj <nick> &7- dodanie gracza do grona przyjaciol &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domprzyjaciel usun <nick> &7- usuniecie gracza z grona przyjaciol &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domodwiedz <nick> &7- odwiedzenie domu przyjaciela &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domidz <nick> &7- teleportuje do domu gracza &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &2/domusun <nick> &7- usuwa dom gracza &f&l|&3&kxPVP&f&l|"
			send "&f&l|&3&kxPVP&f&l| &6Plugin stworzony przez &4&lgzypol &f&l|&3&kxPVP&f&l|" #Proszę tego nie usuwać!
			send "&f&l|&3&kxPVP&f&l| &7========================= &f&l|&3&kxPVP&f&l|"
	
command /domidz [<text>]:
	permission: dom.admin
	trigger:
		if argument 1 is set:
			if {dom.%argument 1%} is false:
				send "&f&l|&7&kxPVP&f&l| &2Blad! &3Gracz &6%argument 1% &3nie ma domu! &f&l|&7&kxPVP&f&l|"
			if {dom.%argument 1%} is true:
				teleport player to {lokalizacja.dom.%argument 1%}
				send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Teleportujesz sie do domu &6%argument 1%&3. &f&l|&7&kxPVP&f&l|"
		else:
			send "&f&l|&7&kxPVP&f&l| &2Blad! &3Uzycie: &6/domidz <nick>! &f&l|&7&kxPVP&f&l|"
			
command /domprzyjaciel [<text>] [<text>]:
	trigger:
		if argument 1 is "dodaj":
			if argument 2 is set:
				if {domprzyjaciel.%argument 2%.%player%} is false:
					set {domprzyjaciel.%argument 2%.%player%} to true
					send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Dodales gracza &6%argument 2% &3jako przyjaciela. &f&l|&7&kxPVP&f&l|"
				if {domprzyjaciel.%argument 2%.%player%} is true:
					send "&f&l|&7&kxPVP&f&l| &2Blad! &3Masz juz gracza &6%argument 2% &3w gronie przyjaciol. &f&l|&7&kxPVP&f&l|"
			if argument 2 is not set:
				send "&f&l|&7&kxPVP&f&l| &2Blad! &3Uzycie &6/domprzyjaciel dodaj <nick>&3. &f&l|&7&kxPVP&f&l|"
		if argument 1 is "usun":
			if argument 2 is set:
				set {domprzyjaciel.%argument 2%.%player%} to false
				send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Usunales gracza &6%argument 2% &3z grona przyjaciol. &f&l|&7&kxPVP&f&l|"
			if argument 2 is not set:
				send "&f&l|&7&kxPVP&f&l| &2Blad! &3Uzycie &6/domprzyjaciel usun <nick>&3. &f&l|&7&kxPVP&f&l|"
		if argument 1 is not set:
			message "&f&l|&7&kxPVP&f&l| &2Blad! &3Uzycie &6/domprzyjaciel dodaj <nick> &3lub &6/domprzyjaciel usun <nick>&3. &f&l|&7&kxPVP&f&l|"

command /domodwiedz [<text>]:
	trigger:
		if argument 1 is set:
			if {dom.%argument 1%} is true:
				if {domprzyjaciel.%player%.%argument 1%} is true:
					teleport player to {lokalizacja.dom.%argument 1%}
					send "&f&l|&7&kxPVP&f&l| &2Gratulacje! &3Teleportujesz sie do domu &6%argument 1%&3. &f&l|&7&kxPVP&f&l|"
				if {domprzyjaciel.%player%.%argument 1%} is false:
					send "&f&l|&k&7xPVP&f&l| &2Blad! &3Nie jestes w gronie przyjaciol gracza &6%argument 1%&3. &f&l|&k&7xPVP&f&l|"
			if {dom.%argument 1%} is false:
				send "&f&l|&7&kxPVP&f&l| &2Blad! &3Gracz &6%argument 1% &3nie ma domu! &f&l|&7&kxPVP&f&l|"
		if argument 1 is not set:
			send "&f&l|&7&kxPVP&f&l| &2Blad! &3Uzycie &6/domodwiedz <nick>&3. &f&l|&7&kxPVP&f&l|"

 

Jest to mój pierwszy skrypt więc proszę o wyrozumiałość : )

 

 

EDIT: dodałem parę rzeczy : )

Opublikowano

Przydatny skrypt, z pewnoscia uzyje go u mnie na serwie. Leci like za włożoną prace !

"Kiedyś traktowałem ludzi dobrze. Teraz - z wzajemnoscia" - Anthony Hopkins


Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...