Skocz do zawartości
  • 0

Pomoc! - Miecz od lvl'a


ShadowEk
 Udostępnij

Pytanie

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on damage:
	if attacker is player:
		if attacker's gamemode is survival:
			{lvl::%attacker%}
			set {_wlvl} to "%uncoloured lore of attacker's tool%"
			replace "&8Wymagany poziom: " with "" {_wlvl}
			if {lvl::%attacker%} is less then {_wlvl}:
				cancel event
				send "&6Masz za niski poziom!"

 

Powinno działać

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
4 minuty temu, MrJuliusz napisał:
on damage:
	if attacker is player:
		if attacker's gamemode is survival:
			{lvl::%attacker%}
			set {_wlvl} to "%uncoloured lore of attacker's tool%"
			replace "&8Wymagany poziom: " with "" {_wlvl}
			if {lvl::%attacker%} is less then {_wlvl}:
				cancel event
				send "&6Masz za niski poziom!"

 

Powinno działać

2 błędy:

1. replace "&8Wymagany poziom": " with "" {_wlvl}' is not a boolean yes/no

2. less is not a types.jsonmessage

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

on damage:
	if attacker is player:
		if attacker's gamemode is survival:
			{lvl::%attacker%}
			set {_wlvl} to "%uncoloured lore of attacker's tool%"
			replace all "&8Wymagany poziom: " with "" in {_wlvl}
			set {_wlvl} to {_wlvl} parsed as number
			set {_p} to {lvl::%attacker%} parsed as number
			if {_p} is less than {_wlvl}:
				cancel event
				send "&6Masz za niski poziom!"

Już działa

Edytowane przez MrJuliusz
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
3 minuty temu, MrJuliusz napisał:

on damage:
	if attacker is player:
		if attacker's gamemode is survival:
			{lvl::%attacker%}
			set {_wlvl} to "%uncoloured lore of attacker's tool%"
			replace all "&8Wymagany poziom: " with "" in {_wlvl}
			set {_wlvl} to {_wlvl} parsed as number
			set {_p} to {lvl::%attacker%} parsed as number
			if {_p} is less than {_wlvl}:
				cancel event
				send "&6Masz za niski poziom!"

Już działa

Dużo błędów w konsoli ;/

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...