Skocz do zawartości
  • 0

Da ktos plugin na sejfy?


STEINER

Pytanie

Elo, da ktos plugin na sejfy takie jak na serwerze invicjusza? Nie chce reklamowac ale większość wie o  co chodzi :P

Jakas komenda na stworzenie sejfu i zeby bylo id, czyj jest ten sejf i tylko tyle.

P.s skrypt tez moze byc ale wolałbym plugin

Odnośnik do komentarza
https://skript.pl/temat/21480-da-ktos-plugin-na-sejfy/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:

	# Przedmiot sejfu.
	sejf_item: stick
	# Nazwa sejfu.
	# Dostepne zmienne: (PLAYER),
	sejf_name: &6Plecak nalezacy do (PLAYER)
	# Opis sejfu.
	# Dostepne zmienne: (ID), (DATE_CREATE), (WHOS_AUTOR), (PLAYER)
	sejf_lore_line1: &8» &2&lID&8: &6(ID)
	sejf_lore_line2: &8» &2&lDATA STWORZENIA&8: &6(DATE_CREATE)
	sejf_lore_line3: &7Stworzony przez &2(PLAYER)

command /sejf [<text>] [<player>]:
	description: Sejfy.
	trigger:
		if argument 1 is "give":
			if argument 2 is set:
				if player-argument is online:
					if "{@sejf_item}" isn't "" or " ":
						set {_item} to "{@sejf_item}"
						set {_item} to {_item} parsed as item type
					if "{@sejf_name}" isn't "" or " ":
						set {_name} to "{@sejf_name}"
					if "{@sejf_lore_line1}" isn't "" or " ":
						set {_lore1} to "{@sejf_lore_line1}"
						replace all "(PLAYER)" with "%player-argument%" in {_lore2}
						replace all "(DATE_CREATE)" with "%now%" in {_lore2}
						replace all "(WHOS_AUTOR)" with "%player%" in {_lore2}
					if "{@sejf_lore_line2}" isn't "" or " ":
						set {_lore2} to "{@sejf_lore_line2}"
						replace all "(PLAYER)" with "%player-argument%" in {_lore2}
						replace all "(DATE_CREATE)" with "%now%" in {_lore2}
						replace all "(WHOS_AUTOR)" with "%player%" in {_lore2}
					if "{@sejf_lore_line3}" isn't "" or " ":
						set {_lore3} to "{@sejf_lore_line3}"
						replace all "(PLAYER)" with "%player-argument%" in {_lore2}
						replace all "(DATE_CREATE)" with "%now%" in {_lore2}
						replace all "(WHOS_AUTOR)" with "%player%" in {_lore2}
					if {_item} is set:
						if {_name} is set:
							if {_lore1} is set:
								if {_lore2} is set:
									if {_lore3} is set:
										add 1 {_item} named "%{_name}%" with lore "%{_lore1}%||%{_lore2}%||%{_lore3}%" to the player-argument's inventory
									else:
										add 1 {_item} named "%{_name}%" with lore "%{_lore1}%||%{_lore2}%" to the player-argument's inventory
								else:
									add 1 {_item} named "%{_name}%" with lore "%{_lore1}%" to the player-argument's inventory
							else:
								add 1 {_item} named "%{_name}%" to the player-argument's inventory
						else:
							add 1 {_item} to the player-argument's inventory
							send "&cNie nadano nazwy sejfu w konfiguracji..." to the player
					else:
						send "&8» &3Przedmiot sejfu nie zostal &2ustawiony" to the player
on right click:
	if name of player's tool contains "%player%":
		if player's tool is "{@sejf_item}" named "{@sejf_name}":
			open chest with 3 rows named "&8» &6Twoj sejf &8«" to the player
			loop 27 times:
				set player's current inventory slot (loop-number - 1) to {backpack::%player%::slot::%loop-number - 1%}
			set {backpack::%player%::status} to true
	else:
		cancel event
		send "&8» &cTen sejf nie nalezy do Ciebie!" to the player
on inventory close:
	if name of player's current inventory is "&8» &6Twoj sejf &8«":
		if {backpack::%player%::status} is true:
			set {backpack::%player%::status} to false
		loop 27 times:
			set {backpack::%player%::slot::%loop-number - 1%} to player's current inventory slot (loop-number - 1)
	stop
		
									

 

Odnośnik do komentarza
https://skript.pl/temat/21480-da-ktos-plugin-na-sejfy/#findComment-146030
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ę...