Skocz do zawartości
  • 0

Zmiana nazwy itemu


Parczik

Pytanie

Siema, potrzebuję skryptu.

Potrzebuję skryptu na zmianę nazwy i opisu itemu, chodzi o to że jak masz np. /zmien to wtedy pokazuje taki panel z napisem (linijka 1) Aby zmienic nazwe uzyj /zmiennazwe  (2 linijka) Aby zmienic opis wpisz /zmienopis

/zmiennazwe:

po wpisaniu /zmiennazwe "(nazwa na jaką się chce zmienić)" i znakiem & (koloru" czyli np. /zmiennazwe "&a&lStone"

 

/zmienopis:

dodaje linijkę opisu np. /zmienopis "&c&lStarozytny kamien"

 

/usunopis:

Usuwa pierwszą linijkę opisu.

                                                                                                               Z góry dzięki za wszystkie skrypty jakie podacie ;)          

Odnośnik do komentarza
https://skript.pl/temat/30404-zmiana-nazwy-itemu/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /kacperkozbial:changenameorlore [<text>] [<text>]:
	description: Zmiana tytułu oraz opisu danego przedmiotu
	aliases: /changenameorlore, /change, /zmien
	trigger:
		if player has permission "kk.change.command":
			if argument 1 is set:
				if argument 1 is "name" or "nazwe":
					if argument 2 is set:
						if tool of the player is not air:
							set name of tool of the player to argument 2 parsed as text
							send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &7Nazwa przedmiotu zostala &apomyslnie &7zmieniona" to the player
							stop
						else:
							send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cNie posiadasz nic w rece." to the player
							stop
					else:
						send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cNie podales nazwy przedmiotu." to the player
						stop
				if argument 1 is "lore" or "opis":
					if argument 2 is set:
						if tool of the player is not air:
							set lore of tool of the player to argument 2 parsed as text
							send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &7Opis przedmiotu zostal &apomyslnie &7zmieniony" to the player
							stop
						else:
							send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cNie posiadasz nic w rece." to the player
							stop
					else:
						send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cNie podales opisu przedmiotu." to the player
						stop
				if argument 1 is "info":
					send coloured "&8>> &6&lK&4&lK&7-&3CHANGE &8<<" to the player
					send coloured "&8>> &3Tworca&7: &6kapi. &8(&cKacper Koźbiał&8)" to the player
					send coloured "&8>> &7Wersja skryptu: &9v0.1" to the player
					stop
				if argument 1 is not "name" or "lore" or "nazwe" or "opis" or "info":
					send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cNiepoprawny argument." to the player
					stop
			else:
				send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &9Argumenty : " to the player
				send coloured "&9nazwe/name &7<nazwa> &8- &6zmienia nazwe przedmiotu" to the player
				send coloured "&9opis/lore &7<opis> &8- &6zmienia opis przedmiotu" to the player
				stop

		else:
			send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cBrak uprawnien." to the player
			stop

Proszę Ciebie bardzo.

Edytowane przez kapi.
Odnośnik do komentarza
https://skript.pl/temat/30404-zmiana-nazwy-itemu/#findComment-198914
Udostępnij na innych stronach

  • 0
2 godziny temu, kapi. napisał:

command /kacperkozbial:changenameorlore [<text>] [<text>]:
	description: Zmiana tytułu oraz opisu danego przedmiotu
	aliases: /changenameorlore, /change, /zmien
	trigger:
		if player has permission "kk.change.command":
			if argument 1 is set:
				if argument 1 is "name" or "nazwe":
					if argument 2 is set:
						if tool of the player is not air:
							set name of tool of the player to argument 2 parsed as text
							send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &7Nazwa przedmiotu zostala &apomyslnie &7zmieniona" to the player
							stop
						else:
							send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cNie posiadasz nic w rece." to the player
							stop
					else:
						send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cNie podales nazwy przedmiotu." to the player
						stop
				if argument 1 is "lore" or "opis":
					if argument 2 is set:
						if tool of the player is not air:
							set lore of tool of the player to argument 2 parsed as text
							send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &7Opis przedmiotu zostal &apomyslnie &7zmieniony" to the player
							stop
						else:
							send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cNie posiadasz nic w rece." to the player
							stop
					else:
						send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cNie podales opisu przedmiotu." to the player
						stop
				if argument 1 is "info":
					send coloured "&8>> &6&lK&4&lK&7-&3CHANGE &8<<" to the player
					send coloured "&8>> &3Tworca&7: &6kapi. &8(&cKacper Koźbiał&8)" to the player
					send coloured "&8>> &7Wersja skryptu: &9v0.1" to the player
					stop
				if argument 1 is not "name" or "lore" or "nazwe" or "opis" or "info":
					send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cNiepoprawny argument." to the player
					stop
			else:
				send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &9Argumenty : " to the player
				send coloured "&9nazwe/name &7<nazwa> &8- &6zmienia nazwe przedmiotu" to the player
				send coloured "&9opis/lore &7<opis> &8- &6zmienia opis przedmiotu" to the player
				stop

		else:
			send coloured "&8[&6&lK&4&lK&7-&3CHANGE&8] &cBrak uprawnien." to the player
			stop

Proszę Ciebie bardzo.

Dzięki ci bardzo że się tak rozpisałeś, a za skrypt ci podziękuje jak go sprawdzę ;) bo mi się server odpala

 

 

Dzięki skrypt jest zawalisty ziomek :)

stefanik11

Łączę.

Notatka dodana przez stefanik11

Odnośnik do komentarza
https://skript.pl/temat/30404-zmiana-nazwy-itemu/#findComment-198925
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ę...