Skocz do zawartości
  • 0

Elytra ze smoka


placki

Pytanie

Dzień dobry. 

Poszukuję osoby która pomoze napisac mi skrypt na wersję minecrafta 1.15.2 dzieki któremu po zabiciu smoka bedzie wypadać z niego elytra która będzie podświetlona i przypisana do gracza który jako pierwszy ja podniesie. Bardzo fajnie by było gdyby po każdym odrodzeniu smoka mial on odrobine wiecej HP oraz nad paskiem zycia pisal jego lvl czyli np.: po 20 zabiciu nad jego paskiem pisalo: "Ender Dragon (lvl 20)"

Jesli ktoś oglądał poprzedni sezon Kwadratowej masakry to wlasie tam byl taki plugin/skrypt (nie jestem pewny). Mi udalo sie napisac tylko skrypt na wypadanięcie elytry.

Bardzo proszę o pomoc i pozdrawiam

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/
Udostępnij na innych stronach

15 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on death of ender dragon:
	drop elytra with lore "&7Elytra: &6%attacker%" at victim
on spawn:
	if event-entity is ender dragon:
		if {enderlvl} is not set:
			set {enderlvl} to 0
		if {ender} is not set:
			set {ender} to 1
		set {ender} to {ender}*1.02
		add 1 to {enderlvl}
		set event-entity's max health to (event-entity's health)*{ender}
		set event-entity's name to "&eEnderDragon &6LVL %{enderlvl}%"
On Armor Change:
	if event-item is elytra:
		if event-item's lore is not "&7Elytra: &6%player%":
			cancel event
			send "&7To nie twoja elytra"

 

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237487
Udostępnij na innych stronach

  • 0

Chciałbym zrozumieć tak skrypty kiedys heh. Zaraz sprawdzę czy działa i z góry dziękuję jestes wielki!

@xAxee W skrypcie dziala wszystko oprócz: 

- przypisania do gracza inni moga ją podnieść ubrac itp (nick w lore wyświetla sie)

- podświetlonie elytry jest one potrzebne poniewaz bardzo ciezko ja znałeść

Prosze o pomoc!

 

 

HeezQ

Łączę posty

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237490
Udostępnij na innych stronach

  • 0
on death of ender dragon:
	drop elytra with lore "&7Elytra: &6%attacker%" at victim
on spawn:
	if event-entity is ender dragon:
		if {enderlvl} is not set:
			set {enderlvl} to 0
		if {ender} is not set:
			set {ender} to 1
		set {ender} to {ender}*1.02
		add 1 to {enderlvl}
		set event-entity's max health to (event-entity's health)*{ender}
		set event-entity's name to "&eEnderDragon &6LVL %{enderlvl}%"
On Armor Change:
	if event-item is elytra:
		if event-item's lore is not "&7Elytra: &6%player%":
			cancel event
			send "&7To nie twoja elytra"
on pickup:
    if event-item's lore is not "&7Elytra: &6%player%":
        Cancel event 

 

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237492
Udostępnij na innych stronach

  • 0

Konsola podczas przeładowywania tego skryptu wyswietla:

 [Server thread/INFO]: [Skript] Reloading the config and all scripts...
[14:13:42] [Server thread/INFO]: Loaded 114752 aliases in 3131ms
[14:13:42] [Server thread/ERROR]: can't understand this event: 'On Armor Change' (elytra.sk, line 13: On Armor Change:')
[14:13:42] [Server thread/INFO]: Loaded 1 script with a total of 3 triggers and 0 commands in 0.02 seconds
[14:13:42] [Server thread/INFO]: [Skript] Encountered 1 error while reloading the config and all scripts!

a po za tym skrypt bardzo nie wiem czemu obciąża serwer powstają takie lagi ze nie da się podnieść przedmiotów z ziemi itp

podświetlenie w ciąż nie działa ;( . oraz czy dało by sie zmienić aby elytra miała nick gracza który jako piewrszy ją PODNIESIE a nie zabije smoka??

za utrudnienia i zabrany czas przepraszam i proszę o pomoc!

@xAxee pomóż proszę!

Edytowane przez HeezQ
ortografia
HeezQ

Łączę posty; wstawiam w code

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237495
Udostępnij na innych stronach

  • 0
on spawn:
	if event-entity is ender dragon:
		if {enderlvl} is not set:
			set {enderlvl} to 0
		if {ender} is not set:
			set {ender} to 1
		set {ender} to {ender}*1.02
		add 1 to {enderlvl}
		set event-entity's max health to (event-entity's health)*{ender}
		set event-entity's name to "&eEnderDragon &6LVL %{enderlvl}%"
on sharpsk armor equip:
	if event-item is elytra:
		if event-item's lore is not "&7Elytra: &6%player%":
			cancel event
			send "&7To nie twoja elytra"
on pickup:
	if type of event-item is elytra:
		if event-item's lore is not set:
			set event-item's lore to "&7Elytra: &6%player%"
		else:
			cancel event

Bez podswietlania

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237513
Udostępnij na innych stronach

  • 0
51 minut temu, xAxee napisał:

on spawn:
	if event-entity is ender dragon:
		if {enderlvl} is not set:
			set {enderlvl} to 0
		if {ender} is not set:
			set {ender} to 1
		set {ender} to {ender}*1.02
		add 1 to {enderlvl}
		set event-entity's max health to (event-entity's health)*{ender}
		set event-entity's name to "&eEnderDragon &6LVL %{enderlvl}%"
on sharpsk armor equip:
	if event-item is elytra:
		if event-item's lore is not "&7Elytra: &6%player%":
			cancel event
			send "&7To nie twoja elytra"
on pickup:
	if type of event-item is elytra:
		if event-item's lore is not set:
			set event-item's lore to "&7Elytra: &6%player%"
		else:
			cancel event

Bez podswietlania

dobrze niech będzie bez podświetlania widocznie sie tak nie da. ale jest mały problem teraz z tym skryptem elytra nawet nie wypada oraz podczas przeładowywania jest następujący błąd:

can't understand this event: 'on sharpsk armor equip' (elytra2.sk, line 11: on sharpsk armor equip:')
[18:15:29] [Server thread/ERROR]: the lore of event-item stack can't be set to anything (elytra2.sk, line 19: set event-item's lore to "&7Elytra: &6%player%"')

 @xAxee

Edytowane przez HeezQ
HeezQ

Wstawiam w code

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237518
Udostępnij na innych stronach

  • 0

Ach... Wybacz wymagane sharpSk

on death of ender dragon:
    drop elytra at victim 
on spawn:
	if event-entity is ender dragon:
		if {enderlvl} is not set:
			set {enderlvl} to 0
		if {ender} is not set:
			set {ender} to 1
		set {ender} to {ender}*1.02
		add 1 to {enderlvl}
		set event-entity's max health to (event-entity's health)*{ender}
		set event-entity's name to "&eEnderDragon &6LVL %{enderlvl}%"
on sharpsk armor equip:
	if event-item is elytra:
		if event-item's lore is not "&7Elytra: &6%player%":
			cancel event
			send "&7To nie twoja elytra"
on pickup:
	if type of event-item is elytra:    
        if event-item's lore is not set:
			wait tick
            remove elytra from player 
            add elytra named "&7Elytra: &6%player%" to player 
		else:
			cancel event

 

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237541
Udostępnij na innych stronach

  • 0

już sprawdzam czy działa sharpSk to plugin??
Taby nie wyszły wyrzuca bląd z nimi spróbuje sam porawić jak nie zadziała to sie odezwe

Chyba jestem głupi jednak.... nawet tabów poprawić nie umiem.. o to błąd który wyskakuje:

[19:55:04] [Server thread/ERROR]: indentation error: expected 2 tabs, but found 8 spaces (elytra.sk, line 20: if event-item's lore is not set:')
[19:55:04] [Server thread/ERROR]: indentation error: expected 2 tabs, but found 3 tabs (elytra.sk, line 21: wait tick')
[19:55:04] [Server thread/ERROR]: indentation error: expected 2 tabs, but found 12 spaces (elytra.sk, line 22: remove elytra from player')
[19:55:04] [Server thread/ERROR]: indentation error: expected 2 tabs, but found 12 spaces (elytra.sk, line 23: add elytra named "&7Elytra: &6%player%" to player')
[19:55:04] [Server thread/ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (elytra.sk, line 24: else:')

sharpSk  już pobrałem (on działa prawidłowo) 

Edytowane przez HeezQ
HeezQ

Łączę posty

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237546
Udostępnij na innych stronach

  • 0
Godzinę temu, Salvador napisał:

Ten plugin nie zawiera funkcji któte mi są potrzebne, ale i tak dzięki ze próbowałeś pomóc! Pozdrawiam!

 

@xAxee próbowałem poprawić twój skrypt róznymi spodobami lecz nie udało sie ☹️. Wiec bardzo prosze cie jesili oczywiście nie jest to dla ciebie problem o podesłanie poprawionego skryptu z góry dziękuję!

Nieaktywny

Łączę posty.

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237561
Udostępnij na innych stronach

  • 0
Godzinę temu, placki napisał:

Ten plugin nie zawiera funkcji któte mi są potrzebne, ale i tak dzięki ze próbowałeś pomóc! Pozdrawiam!

 

@xAxee próbowałem poprawić twój skrypt róznymi spodobami lecz nie udało sie ☹️. Wiec bardzo prosze cie jesili oczywiście nie jest to dla ciebie problem o podesłanie poprawionego skryptu z góry dziękuję!

:(

 

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237567
Udostępnij na innych stronach

  • 0

Może źle kopiuję lub u ciebie coś nie tak z kopiowaniem poszło 

W dniu 4.03.2020 o 21:49, xAxee napisał:

:(

 

skopiowałem odświeżyłem i wciąż dokładnie te same błędy wyskakują :(  

W dniu 4.03.2020 o 21:49, xAxee napisał:

:(

 

Poprawiłem taby działa wszystko oprócz części z przypisaniem. wciąz inny gracz może ubrać cudzą elytre. ale to jest chyba to jest następujący błąd:
 

To jest w evencie kiedy gracz zakłada elytre. I najprawdopodbniej Skrypt mysli ze chodzi o opis elytry a nie jej nazwe
if event-item's lore is not "&7Elytra: &6%player%"
A tu jest zamiana nazwy elytry na nick gracza wiec prawdopodobnie to jest tego wina ze skrypt tego nie widzi bo ma sprawdzić czy gracz ubiera elytre z "lore" w którym jest zawrarty jego nick. Ale zabardzo nie wiem jak to porawić. Jesli źle zrozumiałem to przepraszam nie chce sie wymądrzać bo i zabardzo nie roumiem skryptów
add elytra named "&7Elytra: &6%player%" to player 

Bardzo prosze o pomoc @xAxee z góry dzieki

W dniu 4.03.2020 o 19:44, xAxee napisał:

Ach... Wybacz wymagane sharpSk


on death of ender dragon:
    drop elytra at victim 
on spawn:
	if event-entity is ender dragon:
		if {enderlvl} is not set:
			set {enderlvl} to 0
		if {ender} is not set:
			set {ender} to 1
		set {ender} to {ender}*1.02
		add 1 to {enderlvl}
		set event-entity's max health to (event-entity's health)*{ender}
		set event-entity's name to "&eEnderDragon &6LVL %{enderlvl}%"
on sharpsk armor equip:
	if event-item is elytra:
		if event-item's lore is not "&7Elytra: &6%player%":
			cancel event
			send "&7To nie twoja elytra"
on pickup:
	if type of event-item is elytra:    
        if event-item's lore is not set:
			wait tick
            remove elytra from player 
            add elytra named "&7Elytra: &6%player%" to player 
		else:
			cancel event

 

Gdy jest zainstalowany ten skrypt to gracze gdy podnoszą cudzą elytre to od razu usuwa im ją z ekwipunku  jest to. Usuwa im elytre również gdy sami ją wyrzucą na ziemie i ją podniosą. Wiec przypisywanie jest całkowicie zepsute :( . Jednak drop levelowanie i zmiana nazwy elytry na: "Elytra: %player% działa. Bardzo proszę cię @xAxee o poprawienie skryptu bo mam już nie wiele czasu... Z góry dzięki i pozdrawiam!!

W dniu 4.03.2020 o 19:44, xAxee napisał:

Ach... Wybacz wymagane sharpSk


on death of ender dragon:
    drop elytra at victim 
on spawn:
	if event-entity is ender dragon:
		if {enderlvl} is not set:
			set {enderlvl} to 0
		if {ender} is not set:
			set {ender} to 1
		set {ender} to {ender}*1.02
		add 1 to {enderlvl}
		set event-entity's max health to (event-entity's health)*{ender}
		set event-entity's name to "&eEnderDragon &6LVL %{enderlvl}%"
on sharpsk armor equip:
	if event-item is elytra:
		if event-item's lore is not "&7Elytra: &6%player%":
			cancel event
			send "&7To nie twoja elytra"
on pickup:
	if type of event-item is elytra:    
        if event-item's lore is not set:
			wait tick
            remove elytra from player 
            add elytra named "&7Elytra: &6%player%" to player 
		else:
			cancel event

 

@xAxee przepraszam że się tak dobijam ale bardzo potrzebuje pomocy. Jak zainstalowałem skrypt powyżej i usunąłem pewien plugin to podczas przeładowywania nie wyskakiwał żaden błąd. Lecz w Minecraft kiedy gracz podniósł elytre to zmieniała nazwę na :
Elytra: nick. lecz jednak gdy gracz wyrzucił elytre i podniósł ją ponownie to duplikowała 
się to znaczy że wyrzucając elytre i podnosząc ją ponownie w ekwipunku pojawiała się nam następna z naszym nickiem.... A kiedy gracz zabrał cudzą elytre bez swojego nicku i ją wyrzucił i podniósł to dostawał dodatkowo jeszcze kolejną elytre ze swoim nickiem plus tą od innego gracza
Bardzo proszę cie o pomoc na prawdę mi na tym zależy!! Pozdrawiam! 
Ps sharpSk zainstalowałem, proszę nie łączyć postów!!!!

Edytowane przez placki
Nieaktywny

Łączę posty.
Łączę posty ~HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37313-elytra-ze-smoka/#findComment-237569
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ę...