Skocz do zawartości
  • 0

problem skrypt111


xXx_Skrypter_xXx

Pytanie

on rightclick on entity:
	entity's display name is "&e&lArcheolog":
		if player's tool is clay:
			if name of player's tool is "&7&LNiezidentyfikowany kamyk":
				if lore of player's tool is "&eMoze archeolog bedzie wiedzial co to jest..":
					if amount of item player's tool is equal to 1:
						remove 1 clay named "&7&LNiezidentyfikowany kamyk" from player
						chance of 30%:
							give 351:8 of unbreaking 1 named "&7&lDIOZYT" to player
							send "&eTak.. to jest diozyt."
							stop

						chance of 30%:
							give 351:9 of unbreaking 2 named "&5&lROKSANIT" to player
							send "&eTak.. to jest roksanit."
							stop

						chance of 30%:
							give 351:5 of unbreaking 3 named "&4&lLAMENOR" to player
							send "&eTak.. to jest lamenor."
							stop

jak zrobić by po kliknięciu na npc dawał tylko 1 przedmiot z tych 3?

Odnośnik do komentarza
https://skript.pl/temat/30560-problem-skrypt111/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Najprostszym rozwiązaniem będzie zrobić 3 typy moba z takim samym działaniem tylko inną nazwą i innym dropem i będzie najłatwiej ;)

Polecam mój server WojownicyVSPotwory.serv.nu

A DO WAS ADMINI: NIE BĘDZIECIE MI ROZKAZYWAĆ CO MOGĘ, A CZEGO NIE MOGĘ NAPISAĆ

 

Edytowane przez Parczik
stefanik11

Cenzuruję reklamę.

Notatka dodana przez stefanik11

Odnośnik do komentarza
https://skript.pl/temat/30560-problem-skrypt111/#findComment-199661
Udostępnij na innych stronach

  • 0
W dniu 27.11.2018 o 18:27, xXx_Skrypter_xXx napisał:

on rightclick on entity:
	entity's display name is "&e&lArcheolog":
		if player's tool is clay:
			if name of player's tool is "&7&LNiezidentyfikowany kamyk":
				if lore of player's tool is "&eMoze archeolog bedzie wiedzial co to jest..":
					if amount of item player's tool is equal to 1:
						remove 1 clay named "&7&LNiezidentyfikowany kamyk" from player
						chance of 30%:
							give 351:8 of unbreaking 1 named "&7&lDIOZYT" to player
							send "&eTak.. to jest diozyt."
						else:
							chance of 30%:
								give 351:9 of unbreaking 2 named "&5&lROKSANIT" to player
								send "&eTak.. to jest roksanit."
							else:
								chance of 100%:
								give 351:5 of unbreaking 3 named "&4&lLAMENOR" to player
								send "&eTak.. to jest lamenor."

jak zrobić by po kliknięciu na npc dawał tylko 1 przedmiot z tych 3?

 

Odnośnik do komentarza
https://skript.pl/temat/30560-problem-skrypt111/#findComment-199791
Udostępnij na innych stronach

  • 0
W dniu 27.11.2018 o 18:27, xXx_Skrypter_xXx napisał:

on rightclick on entity:
	entity's display name is "&e&lArcheolog":
		if player's tool is clay:
			if name of player's tool is "&7&LNiezidentyfikowany kamyk":
				if lore of player's tool is "&eMoze archeolog bedzie wiedzial co to jest..":
					if amount of item player's tool is equal to 1:
						remove 1 clay named "&7&LNiezidentyfikowany kamyk" from player
						set {_zmienna} to random integer between 1 and 4
						if {_zmienna} is 2: #tutaj 1 wgl nie losuje więc dlatego 2 / 3 / 4 :)
							give 351:8 of unbreaking 1 named "&7&lDIOZYT" to player
							send "&eTak.. to jest diozyt."
						if {_zmienna} is 3:
							give 351:8 of unbreaking 2 named "&5&lROKSANIT" to player
							send "&eTak.. to jest roksanit."
						if {_zmienna} is 4:
							give 351:8 of unbreaking 3 named "&4&lLAMENOR" to player
							send "&eTAk.. to jest lamenor." to player

jak zrobić by po kliknięciu na npc dawał tylko 1 przedmiot z tych 3?

 

Odnośnik do komentarza
https://skript.pl/temat/30560-problem-skrypt111/#findComment-199843
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ę...