Skocz do zawartości
  • 0

Enchant


Rabby

Pytanie

Rekomendowane odpowiedzi

  • 0
54 minuty temu, PoweredDragon napisał:

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::*}

 

 

Chodzi mi o to ze bez tego "kita" ten stary kod on dzialal lecz przestalal nie wiem dlaczego po jednym /sk reload, jak chcesz moge ci podac aktualny kod bez tych nowych edycji.

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

  • 0
command /kit:
	trigger:
		set {_b} to player's balance
		{kitUnlocked::%player%} is false:
			{_b} < 1000:
				send "&cNie masz wystarczajaco srodkow!"
			else:
				remove 1000 from player's balance
				set {kitUnlocked::%player%} to true
		else:
				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!"


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:
		loop entities in radius 0.5 of projectile:
  			add loop-entity to {_e::*}
		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%}

 

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

  • 0
38 minut temu, PoweredDragon napisał:

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::*}

 

 

Nie wiem co sie stalo, ponieważ iż efekty przestaly dzialac po /sk reload :? Teraz to juz nic nie działa, nie wiem co sie stalo, a co to tego "kita" to chodzi mi o zeby pod komenda >nazwa< otrzymywalo sie do tego strzaly i zbroje skorzana pokolorowana na kolor limonkowy, i pod ta sama komenda juz by sie ten zestaw mialo odblokowany.

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

  • 0
50 minut temu, Rabby napisał:

Chodzi mi o to ze bez tego "kita" ten stary kod on dzialal lecz przestalal nie wiem dlaczego po jednym /sk reload, jak chcesz moge ci podac aktualny kod bez tych nowych edycji.

Chodzi mi o to ze bez tego "kita" ten stary kod on dzialal lecz przestalal nie wiem dlaczego po jednym /sk reload, jak chcesz moge ci podac aktualny kod bez tych nowych edycji.

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

  • 0
1 minutę temu, PoweredDragon napisał:

Podaj mi kompletnie aktualny kod, zobaczymy

variables:
    {kitUnlocked::%player%} = false
command /<nazwa>:
    trigger:
        set {_b} to player's balance
        {_b} > 1300:
            remove 1300 from player's balance
            set {_d} to difference between {lastUsedNazwa::%player%} and now
            {_d} >= 2 seconds:
                clear player's inventory
                give bow of unbreaking 10, power 5, infinity 1 named "&2&lCleaming Quill" with lore "&9&nEfekty||&aHealuje ciebie za &42 ser.||&8Slowuje przeciwnika na &615 sek." to player
                give arrow of fortune 10 named "&2&lStrzala muzyka..." with lore "&aZadziwiajaco fajna..." to player
                send "&2Odebrales zestaw Rakan..."
                stop
            send "&cPoczekaj jeszcze! 3600 sekund nie minelo!"

 

 

EDYCJA: Nie wiem dlaczego nie moge dodac leather hat... 
            stop
        send "&cNie masz wystarczajaco srodkow! &aWymagane $1300"


on shoot:
    projectile is arrow:
        shooter is player:
            shooter's tool is bow of unbreaking 10, power 5, infinity 1 named "&2&lCleaming Quill" with lore "&9&nEfekty||&aHealuje ciebie za &44 ser.||&8Slowuje przeciwnika na &615 sek.":
                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.5 of projectile:
            add loop-entity to {_e::*}
        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%}

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

  • 0
command /<nazwa>:
    trigger:
        {kitUnlocked::%player%} is not true:
            set {_b} to player's balance
            {_b} > 1300:
                remove 1300 from player's balance
                set {kitUnlocked::%player%} to true
            else:
                send "&cNie masz wystarczajaco srodkow! &aWymagane $1300"
                stop
        set {_d} to difference between {lastUsedNazwa::%player%} and now
        {_d} >= 3600 seconds:
            clear player's inventory
            give bow of unbreaking 10, power 5, infinity 1 named "&2&lCleaming Quill" with lore "&9&nEfekty||&aHealuje ciebie za &42 ser.||&8Slowuje przeciwnika na &615 sek." to player
            give arrow of fortune 10 named "&2&lStrzala muzyka..." with lore "&aZadziwiajaco fajna..." to player
            send "&2Odebrales zestaw Rakan..."
            stop
        send "&cPoczekaj jeszcze! 3600 sekund nie minelo!"
        stop


on shoot:
    projectile is arrow:
        shooter is player:
            shooter's tool is bow of unbreaking 10, power 5, infinity 1 named "&2&lCleaming Quill" with lore "&9&nEfekty||&aHealuje ciebie za &44 ser.||&8Slowuje przeciwnika na &615 sek.":
                set {heal::%shooter%} to true
                add 1 to {arrows::%shooter%}

on projectile hit:
    {heal::%shooter%} is true:
        loop entities in radius 0.5 of projectile:
            add loop-entity to {_e::*}
        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%}

Ktoś tu widzę gra w LOLa:D

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

  • 0

Tak, niestety nie działa :( Nie wiem co sie stalo ze to przedtem działało a teraz nie i mam pytanko:

Czy wiesz jak dodac kolorowa skorzana czapkę? Typu:

give "leather hat (nie działa)" colored (nazwa koloru) to player :?

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