Skocz do zawartości
  • 0

Enchant


Rabby

Pytanie

Rekomendowane odpowiedzi

  • 0
21 minut temu, Oedeopol napisał:

Może chodzi mu o to żeby nametag uleczal gracza?

Logiczne :v

command /ll:
	trigger:
		set {_d} to difference between {lastUsedNazwa::%player%} and now
		{_d} >= 15 seconds:
			clear player's inventory
			give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
			set {lastUsedNazwa::%player%} to now


on shoot:
  projectile is arrow:
    shooter is player:
      player's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
        set {heal::%projectile%} to true

on projectile hit:
  {heal::%projectile%} is true:
    set {_l} to shooter
    heal {_l} by 2
    apply slowness 2 to {_l} for 3 seconds
  clear {heal::%projectile%}





 
Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123805
Udostępnij na innych stronach

  • 0
6 minut temu, PoweredDragon napisał:

Logiczne :v


command /ll:
	trigger:
		set {_d} to difference between {lastUsedNazwa::%player%} and now
		{_d} >= 15 seconds:
			clear player's inventory
			give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
			set {lastUsedNazwa::%player%} to now


on shoot:
  projectile is arrow:
    shooter is player:
      player's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
        set {heal::%projectile%} to true

on projectile hit:
  {heal::%projectile%} is true:
    set {_l} to shooter
    heal {_l} by 2
    apply slowness 2 to {_l} for 3 seconds
  clear {heal::%projectile%}


 

[18:22:30] [Server thread/ERROR]: indentation error: expected 6 spaces, but found 2 tabs (rakan.sk, line 14: player's tool is bow of unbreaking 3 named "&2&lCleaming Quill" with lore "&a&nHeal 2 ser.||&7&nSlow 3 sek. ":')
[18:22:30] [Server thread/ERROR]: indentation error: expected 6 spaces, but found 3 tabs (rakan.sk, line 15: set {heal::%projectile%} to true')
[18:22:30] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (rakan.sk, line 13: shooter is player:')
[18:22:30] [Server thread/ERROR]: 'loop players in radius 0.1' is not a number (rakan.sk, line 20: loop players in radius 0.1 of {_l}')
[18:22:30] [Server thread/ERROR]: There's no loop that matches 'loop-player' (rakan.sk, line 21: heal loop-player by 2')
[18:22:30] [Server thread/ERROR]: There's no loop that matches 'loop-player' (rakan.sk, line 22: apply slowness 2 to loop-player for 3 seconds')

Wyskakuje mi tylko coś takiego.

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123808
Udostępnij na innych stronach

  • 0
command /ll:
	trigger:
		set {_d} to difference between {lastUsedNazwa::%player%} and now
		{_d} >= 15 seconds:
			clear player's inventory
			give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
			set {lastUsedNazwa::%player%} to now


on shoot:
	projectile is arrow:
		shooter is player:
			shooter's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
				set {heal::%projectile%} to true

on projectile hit:
	{heal::%projectile%} is true:
		heal shooter by 2
		apply slowness 2 to shooter for 3 seconds
	clear {heal::%projectile%}

 

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123816
Udostępnij na innych stronach

  • 0
9 minut temu, PoweredDragon napisał:

command /ll:
	trigger:
		set {_d} to difference between {lastUsedNazwa::%player%} and now
		{_d} >= 15 seconds:
			clear player's inventory
			give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
			set {lastUsedNazwa::%player%} to now


on shoot:
	projectile is arrow:
		shooter is player:
			shooter's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
				set {heal::%projectile%} to true

on projectile hit:
	{heal::%projectile%} is true:
		heal shooter by 2
		apply slowness 2 to shooter for 3 seconds
	clear {heal::%projectile%}

 

Działa wszystko poza efektami i "healowaniem" i tak sie zapytam czy mozna do tego dodac jakas cene?

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123822
Udostępnij na innych stronach

  • 0
command /ll:
	trigger:
		set {_b} to player's balance
		{_b} > 1000: #1000 to cena
			set {_d} to difference between {lastUsedNazwa::%player%} and now
			{_d} >= 15 seconds:
				clear player's inventory
				give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
				set {lastUsedNazwa::%player%} to now


on shoot:
	projectile is arrow:
		shooter is player:
			shooter's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
				set {heal::%shooter%} to true
				add 1 to {arrows::%shooter%}

on projectile hit:
	{heal::%shooter%} is true:
		heal shooter by 2
		apply slowness 2 to shooter for 3 seconds
	{arrows::%shooter%}>=1:
		remove 1 from {arrows::%shooter%}
		stop
	clear {heal::%shooter%}
	clear {arrows::%shooter%}

 

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123832
Udostępnij na innych stronach

  • 0
9 minut temu, PoweredDragon napisał:

command /ll:
	trigger:
		set {_b} to player's balance
		{_b} > 1000: #1000 to cena
			set {_d} to difference between {lastUsedNazwa::%player%} and now
			{_d} >= 15 seconds:
				clear player's inventory
				give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
				set {lastUsedNazwa::%player%} to now


on shoot:
	projectile is arrow:
		shooter is player:
			shooter's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
				set {heal::%shooter%} to true
				add 1 to {arrows::%shooter%}

on projectile hit:
	{heal::%shooter%} is true:
		heal shooter by 2
		apply slowness 2 to shooter for 3 seconds
	{arrows::%shooter%}>=1:
		remove 1 from {arrows::%shooter%}
		stop
	clear {heal::%shooter%}
	clear {arrows::%shooter%}

 

Znowu tylko jeden bład, chyba. ponieważ nie moge dostać tego łuku bo nie działa powód >> blad z pieniedzmi:

Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (rakan.sk, line 4: {_b) > 1300:')

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123838
Udostępnij na innych stronach

  • 0

Skopiuj mój kod i podmień swój, potem dopiero zmieniaj i gdy przestanie działać wstaw zmieniony. Pierwotna komenda to /<nazwa>, nie /(nazwa).

Podawaj też błędy z konsoli, bo inaczej nie jestem w stanie ci pomóc

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123844
Udostępnij na innych stronach

  • 0
31 minut temu, PoweredDragon napisał:

command /ll:
	trigger:
		set {_b} to player's balance
		{_b} > 1000: #1000 to cena
			set {_d} to difference between {lastUsedNazwa::%player%} and now
			{_d} >= 15 seconds:
				clear player's inventory
				give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
				set {lastUsedNazwa::%player%} to now


on shoot:
	projectile is arrow:
		shooter is player:
			shooter's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
				set {heal::%shooter%} to true
				add 1 to {arrows::%shooter%}

on projectile hit:
	{heal::%shooter%} is true:
		heal shooter by 2
		apply slowness 2 to shooter for 3 seconds
	{arrows::%shooter%}>=1:
		remove 1 from {arrows::%shooter%}
		stop
	clear {heal::%shooter%}
	clear {arrows::%shooter%}

 

Tym razem otrzymalem luk, lecz pieniedzy mi nie dalo i zauważyłem mały problem, gdy strzelam i strzała upadnie otrzymuje slow a nie powinno być, że CEL otrzymuje Slowa?

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123846
Udostępnij na innych stronach

  • 0
command /ll:
	trigger:
		set {_b} to player's balance
		{_b} > 1000: #1000 to cena
			remove 1000 from player's balance
			set {_d} to difference between {lastUsedNazwa::%player%} and now
			{_d} >= 15 seconds:
				clear player's inventory
				give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
				set {lastUsedNazwa::%player%} to now


on shoot:
	projectile is arrow:
		shooter is player:
			shooter's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
				set {heal::%shooter%} to true
				add 1 to {arrows::%shooter%}

on projectile hit:
	{heal::%shooter%} is true:
		heal shooter by 2
		apply slowness 2 to entity at location of projectile
	{arrows::%shooter%}>=1:
		remove 1 from {arrows::%shooter%}
		stop
	clear {heal::%shooter%}
	clear {arrows::%shooter%}

 

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123852
Udostępnij na innych stronach

  • 0
34 minuty temu, PoweredDragon napisał:

command /ll:
	trigger:
		set {_b} to player's balance
		{_b} > 1000: #1000 to cena
			remove 1000 from player's balance
			set {_d} to difference between {lastUsedNazwa::%player%} and now
			{_d} >= 15 seconds:
				clear player's inventory
				give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
				set {lastUsedNazwa::%player%} to now


on shoot:
	projectile is arrow:
		shooter is player:
			shooter's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
				set {heal::%shooter%} to true
				add 1 to {arrows::%shooter%}

on projectile hit:
	{heal::%shooter%} is true:
		heal shooter by 2
		apply slowness 2 to entity at location of projectile
	{arrows::%shooter%}>=1:
		remove 1 from {arrows::%shooter%}
		stop
	clear {heal::%shooter%}
	clear {arrows::%shooter%}

 

 'projectile' is not an item stack (rakan.sk, line 23: apply slowness 2 to entity at location of projectile')

Serduszka otrzymuje lecz jak widac wyzej nie dziala slow.

EDYCJA: A moglbys zrobic cos takiego, ze jak otrzymujesz ten "zestaw" to pisze ze go odebrales?

EDYCJA: I cos takiego gdy nie masz tych 100 pieniedzy to pisze wiadomosc ze ich nie posiadasz?

Edytowane przez Rabby
Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123864
Udostępnij na innych stronach

  • 0
command /ll:
	trigger:
		set {_b} to player's balance
		{_b} > 1000: #1000 to cena
			remove 1000 from player's balance
			set {_d} to difference between {lastUsedNazwa::%player%} and now
			{_d} >= 15 seconds:
				clear player's inventory
				give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
				set {lastUsedNazwa::%player%} to now
				send "&aOdebrales Luk Lekarza!"
				stop
			send "&cPoczekaj jeszcze! 15 sekund nie minelo!"
			stop
		send "&cNie masz wystarczajaco srodkow!"


on shoot:
	projectile is arrow:
		shooter is player:
			shooter's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
				set {heal::%shooter%} to true
				add 1 to {arrows::%shooter%}

on projectile hit:
	{heal::%shooter%} is true:
		set {_l} to location of projectile
		set {_e} to entity at {_l}
		heal shooter by 2
		apply slowness 2 to {_e}
	{arrows::%shooter%}>=1:
		remove 1 from {arrows::%shooter%}
		stop
	clear {heal::%shooter%}
	clear {arrows::%shooter%}

 

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123867
Udostępnij na innych stronach

  • 0
4 minuty temu, PoweredDragon napisał:

command /ll:
	trigger:
		set {_b} to player's balance
		{_b} > 1000: #1000 to cena
			remove 1000 from player's balance
			set {_d} to difference between {lastUsedNazwa::%player%} and now
			{_d} >= 15 seconds:
				clear player's inventory
				give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
				set {lastUsedNazwa::%player%} to now
				send "&aOdebrales Luk Lekarza!"
				stop
			send "&cPoczekaj jeszcze! 15 sekund nie minelo!"
			stop
		send "&cNie masz wystarczajaco srodkow!"


on shoot:
	projectile is arrow:
		shooter is player:
			shooter's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
				set {heal::%shooter%} to true
				add 1 to {arrows::%shooter%}

on projectile hit:
	{heal::%shooter%} is true:
		set {_l} to location of projectile
		set {_e} to entity at {_l}
		heal shooter by 2
		apply slowness 2 to {_e}
	{arrows::%shooter%}>=1:
		remove 1 from {arrows::%shooter%}
		stop
	clear {heal::%shooter%}
	clear {arrows::%shooter%}

 

Znowu, wszystko inne dziala poza tym:

 'entity' is not a text (rakan.sk, line 28: set {_e} to entity at {_l}')

EDYCJA: Chcialbym zapytac jak mozna zrobic cos takiego, zeby ten zestaw np. byłby odblokowany za 1 kupieniem? 

Edytowane przez Rabby
Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123868
Udostępnij na innych stronach

  • 0
command /ll:
	trigger:
		set {_b} to player's balance
		{_b} > 1000: #1000 to cena
			remove 1000 from player's balance
			set {_d} to difference between {lastUsedNazwa::%player%} and now
			{_d} >= 15 seconds:
				clear player's inventory
				give bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc" to player
				set {lastUsedNazwa::%player%} to now
				send "&aOdebrales Luk Lekarza!"
				stop
			send "&cPoczekaj jeszcze! 15 sekund nie minelo!"
			stop
		send "&cNie masz wystarczajaco srodkow!"


on shoot:
	projectile is arrow:
		shooter is player:
			shooter's tool is bow of unbreaking 3 named "&aLuk Lekarza" with lore "&aTen luk leczy i spowalnia||&eStrzel do celu, aby sie uleczyc":
				set {heal::%shooter%} to true
				add 1 to {arrows::%shooter%}

on projectile hit:
	{heal::%shooter%} is true:
		set {_l} to location of projectile
		loop entities in radius 0.2 of projectile:
			set {_e::%loop-number%} to loop-entity
		size of {_e::*} is 0:
			stop
		size of {_e::*} = 1:
			set {_e} to {_e::1}
		size of {_e::*} > 1:
			set {_r} to random number between 1 and (size of {_e::*})
			set {_e} to {_e::%{_r}%}
		heal shooter by 2
		apply slowness 2 to {_e}
	{arrows::%shooter%}>=1:
		remove 1 from {arrows::%shooter%}
		stop
	clear {heal::%shooter%}
	clear {arrows::%shooter%}

Odblokowany w sensie: płaci się tylko raz?

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123872
Udostępnij na innych stronach

  • 0
7 minut temu, PoweredDragon napisał:

set {_e::%loop-number%} to loop-entity

zamień na

add loop-entity to {_e::*}

 

Żaden bład nie wyskakuje lecz nie slowuje :/

Jak coś to chodziło mi ze tylko 1 raz kupisz i masz na zawsze "Odblokowujesz"

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123884
Udostępnij na innych stronach

  • 0

No ale jak masz na zawsze? Łuk się nie niszczy? Pojawia się przy respie? Czy po prostu komenda później jest darmowa? Niewielka różnica, ale zawsze jakaś, co wolisz?

popraw pętlę na to:

loop entities in radius 0.5 of projectile:
  add loop-entity to {_e::*}

 

 

Odnośnik do komentarza
https://skript.pl/temat/18087-enchant/#findComment-123888
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ę...