Skocz do zawartości
  • 0

Itemy od danego lvl


Klaudiusz258
 Udostępnij

Pytanie

Siemka, napisał by ktoś dla mnie skrypt na itemy od danego lvl? chodzi mi o to ze np. trzymamy sobie byle jakiś mieczyk i wpisujemy /ustawlvl (liczba) i załóżmy ze już lvl jest ustalony i tym mieczem możemy bić tylko jak mamy taki lvl, I chciałbym żeby było tak samo na zbrojke. Osoba która dla mnie by takie coś napisała spam lajków :D

Zmienna od lvl: {lvl.%player%}

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Spoiler
command /ustawliczba <integer>:
	permission: usatw.liczba
	trigger:
		if player's tool is air:
			send "&cMusisz trzymac jakiś przedmiot!"
			stop
		set line 1 of lore of player's tool to "&2&lDostepne od poziomu: &7%arg 1%"
		send "&aUstawiles poziom trzymanego przedmiotu na: &7%arg 1%"
		stop

on damage:
	if line 1 of lore of attacker's tool contains "&2&lDostepne od poziomu: &7":
		set {_x} to uncolored "%line 1 of lore of attacker's tool%"
		replace all "Dostepne od poziomu: " with "" in {_x}
		set {_x} to {_x} parsed as integer
		if {lvl.%attacker%} >= {_x}:
			stop
		else:
			cancel event
			send "&cTen przedmiot jest dostępny od poziomu: &7%{_x}%" to attacker
		stop

 

Jak będę miał czas dorobię na zbroje. 

@Klaudiusz258 Masz tu ze zbroją

command /ustawliczba <integer>:
	permission: usatw.liczba
	trigger:
		if player's tool is air:
			send "&cMusisz trzymac jakiś przedmiot!"
			stop
		set line 1 of lore of player's tool to "&2&lDostepne od poziomu: &7%arg 1%"
		send "&aUstawiles poziom trzymanego przedmiotu na: &7%arg 1%"
		stop

on damage:
	if line 1 of lore of attacker's tool contains "&2&lDostepne od poziomu: &7":
		set {_x} to uncolored "%line 1 of lore of attacker's tool%"
		replace all "Dostepne od poziomu: " with "" in {_x}
		set {_x} to {_x} parsed as integer
		if {lvl.%attacker%} >= {_x}:
			stop
		else:
			cancel event
			send "&cTen przedmiot jest dostępny od poziomu: &7%{_x}%" to attacker
	if line 1 of lore of victim's helmet contains "&2&lDostepne od poziomu: &7":
		set {_x} to uncolored "%line 1 of lore of victim's helmet%"
		replace all "Dostepne od poziomu: " with "" in {_x}
		set {_x} to {_x} parsed as integer
		if {lvl.%victim%} >= {_x}:
			stop
		else:
			send "&cTwoj helm jest dostepny od poziomu: &7%{_x}%" to victim
			send "&cZostal on zdjęty!" to victim
			set {_t} to victim's helmet
			give {_t} to victim
			set victim's helmet to air
	if line 1 of lore of victim's chestplate contains "§2&lDostepne od poziomu: &7":
		set {_x} to uncolored "%line 1 of lore of victim's chestplate%"
		replace all "Dostepne od poziomu: " with "" in {_x}
		set {_x} to {_x} parsed as integer
		if {lvl.%victim%} >= {_x}:
			stop
		else:
			send "&cTwoj napiersnik jest dostepny od poziomu: &7%{_x}%" to victim
			send "&cZostal on zdjęty!" to victim
			set {_t} to victim's chestplate
			give {_t} to victim
			set victim's chestplate to air
	if line 1 of lore of victim's boots contains "§2&lDostepne od poziomu: &7":
		set {_x} to uncolored "%line 1 of lore of victim's boots%"
		replace all "Dostepne od poziomu: " with "" in {_x}
		set {_x} to {_x} parsed as integer
		if {lvl.%victim%} >= {_x}:
			stop
		else:
			send "&cTwoje buty sa dostepne od poziomu: &7%{_x}%" to victim
			send "&cZostaly one zdjęty!" to victim
			set {_t} to victim's boots
			give {_t} to victim
			set victim's boots to air
	if line 1 of lore of victim's leggings contains "§2&lDostepne od poziomu: &7":
		set {_x} to uncolored "%line 1 of lore of victim's leggings%"
		replace all "Dostepne od poziomu: " with "" in {_x}
		set {_x} to {_x} parsed as integer
		if {lvl.%victim%} >= {_x}:
			stop
		else:
			send "&cTwoje spodnie sa dostepne od poziomu: &7%{_x}%" to victim
			send "&cZostaly one zdjęty!" to victim
			set {_t} to victim's leggings
			give {_t} to victim
			set victim's leggings to air

 

Edytowane przez Ixidi
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ę...