Skocz do zawartości
  • 0

Problem z Kilofem


MyszoNN

Pytanie

Witam, bawiąc się chciałem stworzyć system ulepszania kilofu, który miałby na celu zmianę "Drop: xxx". I wyszło mi coś takiego:

options:
	id.633: 0
	drop.633.%event-item%: 50
command /testowa6 [<text>]:
	trigger:
		add 1 to {id.633}
		give 1 diamond pickaxe of efficiency 6, unbreaking 3, fortune 3 named "&cKilof Górnika" with lore "" and "&cId: &7##&f%{id.633}%" and "&cDrop: &f{@drop.633.%event-item%}&c%%" and ""  and "&4Magiczny Kilof Pradawnego Gornika" to player

		
command /faketestowa6 [<text>]:
	trigger:
		give player 1 diamond pickaxe of efficiency 6, unbreaking 3, fortune 3	
		
command /testulepsz [<text>]:
	trigger:
		if player's tool is diamond pickaxe of efficiency 6, unbreaking 3, fortune 3 named "&cKilof Górnika" with lore "" and "&cId: &7##&f%{id.633}%" and "&cDrop: &f{@drop.633.%event-item%}&c%%" and ""  and "&4Magiczny Kilof Pradawnego Gornika":
			send "&aGit Kilof"
			if {drop.633.%event-item%} = 50:
				chance of 100%:
					add 5 to {drop.633.%event-iitem%}
					send "&a100%"
			else {drop.633.%event-item%} = 110:
				stop
				send "&cMaksymalny poziom"
			else {drop.633.%event-item%} > 50:
				chance of 50%:
					add 5 to {drop.633.%event-iitem%}
					send "&aUlepszyło"
				chance of 50%:
					remove 5 from {drop.633.%event-iitem%}
					send "&cSpaliło"
		else:
			send "&cZły kilof"

Napotkałem się na kilka błędów i chciałbym, abyście mi pomogli w naprawie :)
Chciałbym, aby po wpisaniu komendy  /testulepsz Drop się zmieniał ale nwm jak to zrobić. ID kilofu zostało bez zmiany.

Edytowane przez MyszoNN
Odnośnik do komentarza
https://skript.pl/temat/48731-problem-z-kilofem/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 1
variables:
	{pickaxe_id} = 0

command /testowa6 [<text>]:
	trigger:
		add 1 to {pickaxe_id}
		give 1 diamond pickaxe of efficiency 6, unbreaking 3, fortune 3 named "&cKilof Górnika" with lore "" and "&cId: &7##&f%{pickaxe_id}%" and "&cDrop: &f50&c%%" and ""  and "&4Magiczny Kilof Pradawnego Gornika" to player

command /faketestowa6 [<text>]:
	trigger:
		give player 1 diamond pickaxe of efficiency 6, unbreaking 3, fortune 3		

command /testulepsz [<text>]:
	trigger:
		if name of player's tool is not "&cKilof Górnika":
			send "&cZły kilof"
			stop
		if lore of player's tool is not set:
			send "&cZły kilof"
			stop
		set {_drop} to uncoloured line 3 of lore of player's tool
		replace "Drop: " and "%%" with "" in {_drop}
		set {_drop} to {_drop} parsed as integer
		if {_drop} is 110:
			send "&cMaksymalny poziom."
			stop
		if {_drop} is 50:
			add 5 to {_drop}
			send "&a100%%"
		else if {_drop} is more than 50:
			chance of 50%:
				add 5 to {_drop}
				send "&aUlepszyło"
			else:
				remove 5 from {_drop}
				send "&cSpaliło"
		set line 3 of lore of player's tool to "&cDrop: &f%{_drop}%&c%%"

 

Edytowane przez Shooterowy
Odnośnik do komentarza
https://skript.pl/temat/48731-problem-z-kilofem/#findComment-303647
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ę...