Skocz do zawartości
  • 0

pomoze ktos?


xXx_Skrypter_xXx

Pytanie

on place:
	if player's tool is emerald ore named "Kamien":
		set event-block to emerald ore
		wait 3 second
		if event-block is emerald ore:
			if {hp::%location of event-block%} is not set:
				set {hp::%location of event-block%} to 100

on mine:
	if event-block is emerald ore named "Kamien":
		remove 1 from {hp::%location of event-block%}
		set {blok.%player%} to 1
		send "&bKamien &f- &2Zycie ( %{hp::%location of event-block%}% )"
		if {hp::%location of event-block%} = 99:
			set event-block to event-block
		if {hp::%location of event-block%} = 98:
			set event-block to event-block
		if {hp::%location of event-block%} = 97:
			set event-block to event-block
		if {hp::%location of event-block%} = 96:
			set event-block to event-block
		if {hp::%location of event-block%} = 95:
			set event-block to event-block
		if {hp::%location of event-block%} = 94:
			set event-block to event-block
		if {hp::%location of event-block%} = 93:
			set event-block to event-block
		if {hp::%location of event-block%} = 92:
			set event-block to event-block
		if {hp::%location of event-block%} = 91:
			set event-block to event-block
		if {hp::%location of event-block%} = 90:
			set event-block to event-block
		if {hp::%location of event-block%} = 89:
			set event-block to event-block
		if {hp::%location of event-block%} = 88:
			set event-block to event-block
		if {hp::%location of event-block%} = 87:
			set event-block to event-block
		if {hp::%location of event-block%} = 86:
			set event-block to event-block
		if {hp::%location of event-block%} = 85:
			set event-block to event-block
		if {hp::%location of event-block%} = 84:
			set event-block to event-block
		if {hp::%location of event-block%} = 83:
			set event-block to event-block
		if {hp::%location of event-block%} = 82:
			set event-block to event-block
		if {hp::%location of event-block%} = 81:
			set event-block to event-block
		if {hp::%location of event-block%} = 80:
			set event-block to event-block
		if {hp::%location of event-block%} = 79:
			set event-block to event-block
		if {hp::%location of event-block%} = 78:
			set event-block to event-block
		if {hp::%location of event-block%} = 77:
			set event-block to event-block
		if {hp::%location of event-block%} = 76:
			set event-block to event-block
		if {hp::%location of event-block%} = 75:
			set event-block to event-block
		if {hp::%location of event-block%} = 74:
			set event-block to event-block
		if {hp::%location of event-block%} = 73:
			set event-block to event-block
		if {hp::%location of event-block%} = 72:
			set event-block to event-block
		if {hp::%location of event-block%} = 71:
			set event-block to event-block
		if {hp::%location of event-block%} = 70:
			set event-block to event-block
		if {hp::%location of event-block%} = 69:
			set event-block to event-block
		if {hp::%location of event-block%} = 68:
			set event-block to event-block
		if {hp::%location of event-block%} = 67:
			set event-block to event-block
		if {hp::%location of event-block%} = 66:
			set event-block to event-block
		if {hp::%location of event-block%} = 65:
			set event-block to event-block
		if {hp::%location of event-block%} = 64:
			set event-block to event-block
		if {hp::%location of event-block%} = 63:
			set event-block to event-block
		if {hp::%location of event-block%} = 62:
			set event-block to event-block
		if {hp::%location of event-block%} = 61:
			set event-block to event-block
		if {hp::%location of event-block%} = 60:
			set event-block to event-block
		if {hp::%location of event-block%} = 59:
			set event-block to event-block
		if {hp::%location of event-block%} = 58:
			set event-block to event-block
		if {hp::%location of event-block%} = 57:
			set event-block to event-block
		if {hp::%location of event-block%} = 56:
			set event-block to event-block
		if {hp::%location of event-block%} = 55:
			set event-block to event-block
		if {hp::%location of event-block%} = 54:
			set event-block to event-block
		if {hp::%location of event-block%} = 53:
			set event-block to event-block
		if {hp::%location of event-block%} = 52:
			set event-block to event-block
		if {hp::%location of event-block%} = 51:
			set event-block to event-block
		if {hp::%location of event-block%} = 50:
			set event-block to event-block
		if {hp::%location of event-block%} = 49:
			set event-block to event-block
		if {hp::%location of event-block%} = 48:
			set event-block to event-block
		if {hp::%location of event-block%} = 47:
			set event-block to event-block
		if {hp::%location of event-block%} = 46:
			set event-block to event-block
		if {hp::%location of event-block%} = 45:
			set event-block to event-block
		if {hp::%location of event-block%} = 44:
			set event-block to event-block
		if {hp::%location of event-block%} = 43:
			set event-block to event-block
		if {hp::%location of event-block%} = 42:
			set event-block to event-block
		if {hp::%location of event-block%} = 41:
			set event-block to event-block
		if {hp::%location of event-block%} = 40:
			set event-block to event-block
		if {hp::%location of event-block%} = 39:
			set event-block to event-block
		if {hp::%location of event-block%} = 38:
			set event-block to event-block
		if {hp::%location of event-block%} = 37:
			set event-block to event-block
		if {hp::%location of event-block%} = 36:
			set event-block to event-block
		if {hp::%location of event-block%} = 35:
			set event-block to event-block
		if {hp::%location of event-block%} = 34:
			set event-block to event-block
		if {hp::%location of event-block%} = 33:
			set event-block to event-block
		if {hp::%location of event-block%} = 32:
			set event-block to event-block
		if {hp::%location of event-block%} = 31:
			set event-block to event-block
		if {hp::%location of event-block%} = 30:
			set event-block to event-block
		if {hp::%location of event-block%} = 29:
			set event-block to event-block
		if {hp::%location of event-block%} = 28:
			set event-block to event-block
		if {hp::%location of event-block%} = 27:
			set event-block to event-block
		if {hp::%location of event-block%} = 26:
			set event-block to event-block
		if {hp::%location of event-block%} = 25:
			set event-block to event-block
		if {hp::%location of event-block%} = 24:
			set event-block to event-block
		if {hp::%location of event-block%} = 23:
			set event-block to event-block
		if {hp::%location of event-block%} = 22:
			set event-block to event-block
		if {hp::%location of event-block%} = 21:
			set event-block to event-block
		if {hp::%location of event-block%} = 20:
			set event-block to event-block
		if {hp::%location of event-block%} = 19:
			set event-block to event-block
		if {hp::%location of event-block%} = 18:
			set event-block to event-block
		if {hp::%location of event-block%} = 17:
			set event-block to event-block
		if {hp::%location of event-block%} = 16:
			set event-block to event-block
		if {hp::%location of event-block%} = 15:
			set event-block to event-block
		if {hp::%location of event-block%} = 14:
			set event-block to event-block
		if {hp::%location of event-block%} = 13:
			set event-block to event-block
		if {hp::%location of event-block%} = 12:
			set event-block to event-block
		if {hp::%location of event-block%} = 11:
			set event-block to event-block
		if {hp::%location of event-block%} = 10:
			set event-block to event-block
		if {hp::%location of event-block%} = 9:
			set event-block to event-block
		if {hp::%location of event-block%} = 8:
			set event-block to event-block
		if {hp::%location of event-block%} = 7:
			set event-block to event-block
		if {hp::%location of event-block%} = 6:
			set event-block to event-block
		if {hp::%location of event-block%} = 5:
			set event-block to event-block
		if {hp::%location of event-block%} = 4:
			set event-block to event-block
		if {hp::%location of event-block%} = 3:
			set event-block to event-block
		if {hp::%location of event-block%} = 2:
			set event-block to event-block
		if {hp::%location of event-block%} = 1:
			set event-block to event-block
		if {hp::%location of event-block%} = 0:
			send "Rozwaliles magiczny kamien"
			drop 1 diamond at event-block
			drop 1 emerald at event-block
			drop 1 coal at event-block
			set {hp::%location of event-block%} to 100

Skrypt ten polega na tym, że w tym przypadku emerald ore ma 100 hp gdy rozwalimy ten blok 100 razy wtedy zniknie i wypadnie diament , emerald i wegiel.

Tak wiem , może dało się kod skrócić ale ja inaczej nie umiem tego zrobić :)

1.Skrypt sie buguje i wykrywa i emerald z nazwa i bez nazwwy. Tylko że emerald z nazwą ma 100 hp czyli tyle ile ma być a zwykły bez nazwy 2hp. Umie ktoś zrobić żeby to działało tylko na ten nazwany blok?

2.Po zniszczeniu bloku hp powinno wracać do 100 , w tym przypadku po postawieniu ma 100 hp , rozwalam go ,wszystko śmiga.Postawiam drugi i hp spada do 2. Dopiero po resecie skryptu komendą hp emeraldu wraca do 100.

Może ktoś pomoże :)?

 

Edytowane przez xXx_Skrypter_xXx
Odnośnik do komentarza
https://skript.pl/temat/31851-pomoze-ktos/
Udostępnij na innych stronach

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on place:
	if player's tool is emerald ore named "&bMetin &3&lWalki":
		set event-block to emerald ore
		wait 3 second
		if event-block is emerald ore:
			if {hp::%location of event-block%} is not set:
				set {hp::%location of event-block%} to 100

on mine:
	if event-block is emerald ore:
		if {hp::%location of event-block%} is set:
			remove 1 from {hp::%location of event-block%}
			if {hp::%location of event-block%} > 0:
				cancel event
				send "&bMetin &3Walki &f- &2Zycie ( %{hp::%location of event-block%}% )"
			if {hp::%location of event-block%} <= 0:
				send "rozwaliles metina"
				drop (diamond and emerald and coal) at event-block
				clear {hp::%location of event-block%}

 

Odnośnik do komentarza
https://skript.pl/temat/31851-pomoze-ktos/#findComment-206347
Udostępnij na innych stronach

  • 0
31 minut temu, xAxee napisał:

on place:
	if player's tool is emerald ore named "&bMetin &3&lWalki":
		set event-block to emerald ore
		wait 3 second
		if event-block is emerald ore:
			if {hp::%location of event-block%} is not set:
				set {hp::%location of event-block%} to 100

on mine:
	if event-block is emerald ore:
		if {hp::%location of event-block%} is set:
			remove 1 from {hp::%location of event-block%}
			if {hp::%location of event-block%} > 0:
				cancel event
				send "&bMetin &3Walki &f- &2Zycie ( %{hp::%location of event-block%}% )"
			if {hp::%location of event-block%} <= 0:
				send "rozwaliles metina"
				drop (diamond and emerald and coal) at event-block
				clear {hp::%location of event-block%}

 

29 minut temu, xAxee napisał:

Wywala mi błąd : there is no block in a command event.

 

Odnośnik do komentarza
https://skript.pl/temat/31851-pomoze-ktos/#findComment-206356
Udostępnij na innych stronach

  • 0
2 minuty temu, xAxee napisał:

linijka? (powinno pisać)

Jednak to od komendy którą se dorobiłem wywalało błąd.. ale i tak gdy zniszcze emeralda to nic się nie dzieje

 

Nie wiem dlaczego tak jest ale musze postawić 2 emeraldy na ziemi aby zadziałało

Edytowane przez xXx_Skrypter_xXx
Odnośnik do komentarza
https://skript.pl/temat/31851-pomoze-ktos/#findComment-206358
Udostępnij na innych stronach

  • 0
on place:
	if player's tool is emerald ore named "&bMetin &3&lWalki":
		if {hp::%location of event-block%} is not set:
			set {hp::%location of event-block%} to 100

on mine:
	if event-block is emerald ore:
		if {hp::%location of event-block%} is set:
			remove 1 from {hp::%location of event-block%}
			if {hp::%location of event-block%} > 0:
				cancel event
				send "&bMetin &3Walki &f- &2Zycie ( %{hp::%location of event-block%}% )"
			if {hp::%location of event-block%} <= 0:
				send "rozwaliles metina"
				drop (diamond and emerald and coal) at event-block
				clear {hp::%location of event-block%}

 

Odnośnik do komentarza
https://skript.pl/temat/31851-pomoze-ktos/#findComment-206360
Udostępnij na innych stronach

  • 0
1 godzinę temu, xAxee napisał:

on place:
	if player's tool is emerald ore named "&bMetin &3&lWalki":
		if {hp::%location of event-block%} is not set:
			set {hp::%location of event-block%} to 100

on mine:
	if event-block is emerald ore:
		if {hp::%location of event-block%} is set:
			remove 1 from {hp::%location of event-block%}
			if {hp::%location of event-block%} > 0:
				cancel event
				send "&bMetin &3Walki &f- &2Zycie ( %{hp::%location of event-block%}% )"
			if {hp::%location of event-block%} <= 0:
				send "rozwaliles metina"
				drop (diamond and emerald and coal) at event-block
				clear {hp::%location of event-block%}

 

Umiał byś jeszcze zrobić tak ,że po rozwaleniu ten blok będzie respił się w miejscu w którym go położyliśmy co 10 sekund?

Albo żeby komenda /kamien respiła ten emerald pod nami

Edytowane przez xXx_Skrypter_xXx
Odnośnik do komentarza
https://skript.pl/temat/31851-pomoze-ktos/#findComment-206389
Udostępnij na innych stronach

  • 0
on place:
	if player's tool is emerald ore named "&bMetin &3&lWalki":
		if {hp::%location of event-block%} is not set:
			set {hp::%location of event-block%} to 100

on mine:
	if event-block is emerald ore:
		if {hp::%location of event-block%} is set:
			remove 1 from {hp::%location of event-block%}
			if {hp::%location of event-block%} > 0:
				send "&bMetin &3Walki &f- &2Zycie ( %{hp::%location of event-block%}% )"
				cancel event
			if {hp::%location of event-block%} <= 0:
				send "rozwaliles metina"
				drop (diamond and emerald and coal) at event-block
				wait 10 second
				set {hp::%location of event-block%} to 100
				set event-block to emerald ore

że po zabraniu tych 100 hp?

Odnośnik do komentarza
https://skript.pl/temat/31851-pomoze-ktos/#findComment-206392
Udostępnij na innych stronach

  • 0
4 minuty temu, xAxee napisał:

on place:
	if player's tool is emerald ore named "&bMetin &3&lWalki":
		if {hp::%location of event-block%} is not set:
			set {hp::%location of event-block%} to 100

on mine:
	if event-block is emerald ore:
		if {hp::%location of event-block%} is set:
			remove 1 from {hp::%location of event-block%}
			if {hp::%location of event-block%} > 0:
				send "&bMetin &3Walki &f- &2Zycie ( %{hp::%location of event-block%}% )"
				cancel event
			if {hp::%location of event-block%} <= 0:
				send "rozwaliles metina"
				drop (diamond and emerald and coal) at event-block
				wait 10 second
				set {hp::%location of event-block%} to 100
				set event-block to emerald ore

że po zabraniu tych 100 hp?

Jesteś mistrz :)

Wszystko działa thx

Odnośnik do komentarza
https://skript.pl/temat/31851-pomoze-ktos/#findComment-206395
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ę...