Skocz do zawartości
  • 0

Źle napisane


Misio12320

Pytanie

Witam, potrafi ktoś to naprawić? 

options: helm: Diamond Helmet named "&6XD" every 2 seconds: loop all players in "world": if loop-player's y coord is smaller than 10: if loop-player's helmet is not {@helm}: damage loop-player by 0.5 hearts send "Coss 2" to loop-player

 znajomy coś tam pomógł i nic z tego :/. A chodzi mi o to iż gracz z danym helmem może wejść niżej niż ileś tam y po czym ignoruje dmg jeżeli gościu wejdzie z armorem i atakuje go jak na zwykłe hp

Nicku

Dodaje code, polecam w tym code dodać odpowiednie wcięcia w kodzie.

Notatka dodana przez Nicku

Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/
Udostępnij na innych stronach

13 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
optionsx:
	helm: Diamond Helmet named "&6XD"
	Poziom: 10
every 2 seconds:
	loop all players in "world":
		if loop-player's y coord <= {@Poziom}:
			if loop-player's helmet is not {@helm}:
				damage loop-player by 0.5 hearts
				send "Coss 2" to loop-player

 

2 godziny temu, Misio12320 napisał:

y po czym ignoruje dmg jeżeli gościu wejdzie z armorem i atakuje go jak na zwykłe hp

Napisz bardziej po Polsku xd

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199826
Udostępnij na innych stronach

  • 0

Oke xd. Czyli tak jak napisałem Ci na pm. Jeżeli ktoś potrwri zrobić żeby damage był zadawany z ignorowanym armorem... No że gościu ma armor protection 10 i te 0,5 dmg nie działa :/ a chance to gdzie wpisać może? 


Nice. Tylko możliwe, że coś tu jeszcze brakuje... Edit; Wgl dziękuje :d i może sam sobie poradzę aby to zrobić tak z tą szansą i może teleport gracza 1 blok do góry lub coś może..

bvcz

Łączę doublepost

Notatka dodana przez bvcz

Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199836
Udostępnij na innych stronach

  • 1
2 godziny temu, Misio12320 napisał:

Nice. Tylko możliwe, że coś tu jeszcze brakuje... Edit; Wgl dziękuje :d i może sam sobie poradzę aby to zrobić tak z tą szansą i może teleport gracza 1 blok do góry lub coś może..

Jak piszesz coś pod postem to oznaczają abym wiedział 

options:
	helm: Diamond Helmet named "&6XD"
	Poziom: 10
    level-Prof: 5
    Procent: 50
every 2 seconds:
	loop all players in "world":
		if loop-player's y coord <= {@Poziom}:
			if loop-player's helmet is not {@helm}:
                if level of protection of Loop-Player's chestplate < {@level-prot}:
                    chance of {@Procent}%:
			        	damage loop-player by 0.5 hearts
		    		    send "Coss 2" to loop-player

Tylko wyrabuj

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199854
Udostępnij na innych stronach

  • 0

@xAxee [10:13:16] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Reloading [0;33;22minformacje.sk[m...[m
[10:13:16] [Server thread/ERROR]: indentation error: expected 1 tab, but found 4 spaces (informacje.sk, line 4: level-Prof: 5')
[10:13:16] [Server thread/ERROR]: indentation error: expected 1 tab, but found 4 spaces (informacje.sk, line 5: Procent: 50')
[10:13:16] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 16 spaces (informacje.sk, line 10: if level of protection of Loop-Player's chestplate < {@level-prot}:')
[10:13:16] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 20 spaces (informacje.sk, line 11: chance of {@Procent}%:')
[10:13:16] [Server thread/ERROR]: indentation error: expected 4 tabs, but found '->->->________->' [-> = tab, _ = space, ? = other whitespace] (informacje.sk, line 12: damage loop-player by 0.5 hearts')
[10:13:16] [Server thread/ERROR]: indentation error: expected 4 tabs, but found '->->____->->____' [-> = tab, _ = space, ? = other whitespace] (informacje.sk, line 13: send "Coss 2" to loop-player')
[10:13:16] [Server thread/ERROR]: can't understand this event: 'o?ptions' (informacje.sk, line 1: o?ptions:')
[10:13:16] [Server thread/ERROR]: undefined option {@Poziom} (informacje.sk, line 8: if loop-player's y coord <= {@Poziom}:')
[10:13:16] [Server thread/ERROR]: undefined option {@helm} (informacje.sk, line 9: if loop-player's helmet is not {@helm}:')
[10:13:16] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 9 errors while reloading [0;33;22minformacje.sk[m![m

Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199861
Udostępnij na innych stronach

  • 0
Godzinę temu, Misio12320 napisał:

@xAxee [10:13:16] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Reloading [0;33;22minformacje.sk[m...[m
[10:13:16] [Server thread/ERROR]: indentation error: expected 1 tab, but found 4 spaces (informacje.sk, line 4: level-Prof: 5')
[10:13:16] [Server thread/ERROR]: indentation error: expected 1 tab, but found 4 spaces (informacje.sk, line 5: Procent: 50')
[10:13:16] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 16 spaces (informacje.sk, line 10: if level of protection of Loop-Player's chestplate < {@level-prot}:')
[10:13:16] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 20 spaces (informacje.sk, line 11: chance of {@Procent}%:')
[10:13:16] [Server thread/ERROR]: indentation error: expected 4 tabs, but found '->->->________->' [-> = tab, _ = space, ? = other whitespace] (informacje.sk, line 12: damage loop-player by 0.5 hearts')
[10:13:16] [Server thread/ERROR]: indentation error: expected 4 tabs, but found '->->____->->____' [-> = tab, _ = space, ? = other whitespace] (informacje.sk, line 13: send "Coss 2" to loop-player')
[10:13:16] [Server thread/ERROR]: can't understand this event: 'o?ptions' (informacje.sk, line 1: o?ptions:')
[10:13:16] [Server thread/ERROR]: undefined option {@Poziom} (informacje.sk, line 8: if loop-player's y coord <= {@Poziom}:')
[10:13:16] [Server thread/ERROR]: undefined option {@helm} (informacje.sk, line 9: if loop-player's helmet is not {@helm}:')
[10:13:16] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 9 errors while reloading [0;33;22minformacje.sk[m![m

options:
	helm: Diamond Helmet named "&6XD"
	Poziom: 10
	level-Prot: 5
	Procent: 50
every 2 seconds:
	loop all players in "world":
		if loop-player's y coord <= {@Poziom}:
			if loop-player's helmet is not {@helm}:
				if level of protection of Loop-Player's chestplate < {@level-prot}:
					chance of {@Procent}%:
					damage loop-player by 0.5 hearts
					send "Coss 2" to loop-player

 

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199870
Udostępnij na innych stronach

  • 0
Godzinę temu, xAxee napisał:

options: helm: Diamond Helmet named "&6XD" Poziom: 10 level-Prot: 5 Procent: 50 every 2 seconds: loop all players in "world": if loop-player's y coord <= {@Poziom}: if loop-player's helmet is not {@helm}: if level of protection of Loop-Player's chestplate < {@level-prot}: chance of {@Procent}%: damage loop-player by 0.5 hearts send "Coss 2" to loop-player

[12:43:24] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Reloading [0;33;22minformacje.sk[m...[m
[12:43:24] [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. (informacje.sk, line 11: chance of {@Procent}%:')
[12:43:24] [Server thread/ERROR]: undefined option {@level-prot} (informacje.sk, line 10: if level of protection of Loop-Player's chestplate < {@level-prot}:')
[12:43:24] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 1 error while reloading [0;33;22minformacje.sk[m![m
 

 

a to będzie ignorować cały eq czy tylko chest plate?

Mogę dać tam named "XD" with a lore "xd" xd?

Hmm...

 

Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199880
Udostępnij na innych stronach

  • 0
options:
	helm: Diamond Helmet named "&6XD"
	Poziom: 10
	level-Prot: 5
	Procent: 50%
every 2 seconds:
	loop all players in "world":
		if loop-player's y coord <= {@Poziom}:
			if loop-player's helmet is not {@helm}:
				if level of protection of Loop-Player's chestplate < {@level-Prot}:
					chance of {@Procent}:
						damage loop-player by 0.5 hearts
						send "Coss 2" to loop-player

 

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199881
Udostępnij na innych stronach

  • 0
2 minuty temu, xAxee napisał:

Tylko Chestplate Gdzie to named?

1. Chodzi mi o to     helm: Diamond Helmet named "&6XD" with a lore.. mogę tak zrobic może?

2. Zauważyłem iż: To będzie ignorować dmg jeżeli gracz będzie miał chestplate'a cn? To może reszte już dopisze jeżeli chodzi o zbroje...

                if level of protection of Loop-Player's chestplate < {@level-Prot}:
Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199882
Udostępnij na innych stronach

  • 0
1 minutę temu, Misio12320 napisał:

1. Chodzi mi o to     helm: Diamond Helmet named "&6XD" with a lore.. mogę tak zrobic może?

2. Zauważyłem iż: To będzie ignorować dmg jeżeli gracz będzie miał chestplate'a cn? To może reszte już dopisze jeżeli chodzi o zbroje...


                if level of protection of Loop-Player's chestplate < {@level-Prot}:

1. Możesz tak zrobić
2. Będzie ignorował jeżeli Chestplate gracza na level Protection V

Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199884
Udostępnij na innych stronach

  • 0
4 godziny temu, xAxee napisał:

a są errory skryptu przy sk reload?

Tak.. Error chyba był na końcu... Te send to loop players jak dobrze pamiętam i sk w ogóle nie działał

 

 

EDIT: @xAxee Jednak errorów nie ma, zaktualizowałem do najnowszej  wersji i nic... wszystko w porządku lecz nie reaguje, nic się nie dzieje.. :/

Edytowane przez Misio12320
Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199893
Udostępnij na innych stronach

  • 0
9 godzin temu, xAxee napisał:

a są errory skryptu przy sk reload?

options:
    helm: Diamond Helmet named "&6XD"
    Poziom: 10
    Procent: 30
every 1 seconds:
    loop all players in "world":
        if loop-player's y coord <= {@Poziom}:
            if loop-player's helmet is not {@helm}:
            chance of {@Procent}%:
                damage loop-player by 3 hearts
                send "Coss 2" to loop-player
                        Cos takiego no nie ''zrobiłem'', ale coś tam pozmieniałem no i działa tylko brakuje ignore armor protection..  Hmmmmmm... Czegoś mi tu brakuje nadal xd... EDIT2: Jednak ignorowanie dmg z tym hełmem coś nie działa... nie działało...* dałem tab  tak, aby było równe damage i chance i jakby się dało wyłączyć ten send jeżeli gracz zginie... Oraz jakbym dał every 5ticks to żeby nie spamiło np... :d

Ediiiiiiiiiiiiiit: dobra dobra testowałem teraz i widzę iż ignoruje armor :D. Dziękuje :3. Kod

Cytat

options:
    helm: Diamond Helmet named "&6XD"
    Poziom: 10
    Procent: 30
every 1 seconds:
    loop all players in "world":
        if loop-player's y coord <= {@Poziom}:
            if loop-player's helmet is not {@helm}:
            chance of {@Procent}%:
                damage loop-player by 3 hearts
                send "Coss 2" to loop-player
                        

 

Edytowane przez Misio12320
Odnośnik do komentarza
https://skript.pl/temat/30593-%C5%BAle-napisane/#findComment-199960
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ę...