Skocz do zawartości
  • 0

Problem


Hvgdc

Pytanie

17 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Pobierz SkQuery

Błędy mówią że nie rozpoznaje opcji open chest with ... < A to umożliwia SkQuery

Poza tym nie łatwiej będzie użyć format slot 1 of player with 1 of paper named zamiast set player's current inventory's slot 0

Gracz coś w slocie może mieć a skrypt mu to usunie

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

  • 0
2 minuty temu, JPablo napisał:

Pobierz SkQuery

Błędy mówią że nie rozpoznaje opcji open chest with ... < A to umożliwia SkQuery

Poza tym nie łatwiej będzie użyć format slot 1 of player with 1 of paper named zamiast set player's current inventory's slot 0

Gracz coś w slocie może mieć a skrypt mu to usunie

Jeszcze jedno umiesz zrobić aby wyświetlał się drop na czacie bo komenda /drop mi nie działa :/ błędów nie ma a jak wpisuje /drop nie otwiera się nic

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

  • 0
2 minuty temu, Hvgdc napisał:

Jeszcze jedno umiesz zrobić aby wyświetlał się drop na czacie bo komenda /drop mi nie działa :/ błędów nie ma a jak wpisuje /drop nie otwiera się nic

https://code.skript.pl/ynY1slRt/

pozmienialem troszkę, sprawdź czy działa :D
 

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

  • 0

Linia 56 zmień 2 TABY na 8 spacji

        format slot 0 of player with 1 of emerald named "&6Emerald" "&6Szansa: {@emerald}%%"    
        format slot 1 of player with 1 of book named "&6Ksiazka" with lore "&6Szansa: {@ksiazka}%%"
        format slot 2 of player with 1 of apple named "&6Jablko" with lore "&6Szansa: {@jabko}%%"
        format slot 3 of player with 1 of iron ore named "&6Zelazo" with lore "&6Szansa: {@zelazo}%%"
        format slot 4 of player with 1 of gold ore named "&6Zloto" with lore "&6Szansa: {@zloto}%%"
        format slot 5 of player with 1 of diamond named "&6Diament" with lore "&6Szansa: {@diament}%%"

To są kolejne, nie dodałeś with lore

format slot 0 of player with 1 of emerald named "&6Emerald" with lore "&6Szansa: {@emerald}%%" to be unstealable <<< i tak w każdym

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

  • 0
3 minuty temu, JPablo napisał:

Linia 56 zmień 2 TABY na 8 spacji

        format slot 0 of player with 1 of emerald named "&6Emerald" "&6Szansa: {@emerald}%%"    
        format slot 1 of player with 1 of book named "&6Ksiazka" with lore "&6Szansa: {@ksiazka}%%"
        format slot 2 of player with 1 of apple named "&6Jablko" with lore "&6Szansa: {@jabko}%%"
        format slot 3 of player with 1 of iron ore named "&6Zelazo" with lore "&6Szansa: {@zelazo}%%"
        format slot 4 of player with 1 of gold ore named "&6Zloto" with lore "&6Szansa: {@zloto}%%"
        format slot 5 of player with 1 of diamond named "&6Diament" with lore "&6Szansa: {@diament}%%"

To są kolejne, nie dodałeś with lore

format slot 0 of player with 1 of emerald named "&6Emerald" with lore "&6Szansa: {@emerald}%%" to be unstealable <<< i tak w każdym

Jak możesz to pozmieniaj i daj gotowy bo nie ogarniam 

skrypt:

https://code.skript.pl/dBeT3zAO/

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

  • 0
options:
	emerald: 1
	ksiazka: 1
	jabko: 1
	zloto: 1
	zelazo: 1
	diament: 1
on break of stone:
	chance of {@emerald}%:
		if player can hold 1 emerald:
			give 1 emerald to player
			stop
		else:
			drop 1 emerald
			stop
	chance of {@ksiazka}%:
		if player can hold 1 book:
			give 1 book to player
			stop
		else:
			drop 1 book
			stop
	chance of {@jabko}%:
		if player can hold 1 apple:
			give 1 apple to player
			stop
		else:
			drop 1 apple
			stop
	chance of {@zelazo}%:
		if player can hold 1 iron ore:
			give 1 iron ore to player
			stop
		else:
			drop 1 iron ore
			stop
	chance of {@zloto}%:
		if player can hold 1 gold ore:
			give 1 gold ore to player
			stop
		else:
			drop 1 gold ore
			stop
	chance of {@diament}%:
		if player can hold 1 diamond:
			give 1 diamond to player
			stop
		else:
			drop 1 diamond
			stop
command /drop:
	trigger:
		if sender is player:
			open chest with 1 rows named "&6&lDROP" to player
			wait 2 tick
			format slot 1 of player with 1 of emerald named "&6Emerald" with lore "&6Szansa: {@emerald}%%" to be unstealable
			format slot 2 of player with 1 of book named "&6Ksiazka" with lore "&6Szansa: {@ksiazka}%%" to be unstealable
			format slot 3 of player with 1 of apple named "&6Jablko" with lore "&6Szansa: {@jabko}%%" to be unstealable
			format slot 4 of player with 1 of iron ore named "&6Zelazo" with lore "&6Szansa: {@zelazo}%%" to be unstealable
			format slot 5 of player with 1 of gold ore named "&6Zloto" with lore "&6Szansa: {@zloto}%%" to be unstealable
			format slot 6 of player with 1 of diamond named "&6Diament" with lore "&6Szansa: {@diament}%%" to be unstealable
on inventory click:
	if "%inventory name of player's current inventory%" contains "DROP":
		if slot is smaller than 0:
			stop
		cancel event

 

Edytowane przez JPablo
Odnośnik do komentarza
https://skript.pl/temat/16806-problem/#findComment-114932
Udostępnij na innych stronach

  • 0
6 minut temu, JPablo napisał:

options:
	emerald: 1
	ksiazka: 1
	jabko: 1
	zloto: 1
	zelazo: 1
	diament: 1
on break of stone:
	chance of {@emerald}%:
		if player can hold 1 emerald:
			give 1 emerald to player
			stop
		else:
			drop 1 emerald
			stop
	chance of {@ksiazka}%:
		if player can hold 1 book:
			give 1 book to player
			stop
		else:
			drop 1 book
			stop
	chance of {@jabko}%:
		if player can hold 1 apple:
			give 1 apple to player
			stop
		else:
			drop 1 apple
			stop
	chance of {@zelazo}%:
		if player can hold 1 iron ore:
			give 1 iron ore to player
			stop
		else:
			drop 1 iron ore
			stop
	chance of {@zloto}%:
		if player can hold 1 gold ore:
			give 1 gold ore to player
			stop
		else:
			drop 1 gold ore
			stop
	chance of {@diament}%:
		if player can hold 1 diamond:
			give 1 diamond to player
			stop
		else:
			drop 1 diamond
			stop
command /drop:
	trigger:
		if sender is player:
			open chest with 1 rows named "&6&lDROP" to player
			wait 2 tick
			format slot 1 of player with 1 of emerald named "&6Emerald" with lore "&6Szansa: {@emerald}%%" to be unstealable
			format slot 2 of player with 1 of book named "&6Ksiazka" with lore "&6Szansa: {@ksiazka}%%" to be unstealable
			format slot 3 of player with 1 of apple named "&6Jablko" with lore "&6Szansa: {@jabko}%%" to be unstealable
			format slot 4 of player with 1 of iron ore named "&6Zelazo" with lore "&6Szansa: {@zelazo}%%" to be unstealable
			format slot 5 of player with 1 of gold ore named "&6Zloto" with lore "&6Szansa: {@zloto}%%" to be unstealable
			format slot 6 of player with 1 of diamond named "&6Diament" with lore "&6Szansa: {@diament}%%" to be unstealable
on inventory click:
	if "%inventory name of player's current inventory%" contains "DROP":
		if slot is smaller than 0:
			stop
		cancel event

 

Jesteś bogiem działa!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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