Skocz do zawartości
  • 0

Używanie amuletu kilka razy


RAINMAN
 Udostępnij

Pytanie

Dlaczego można używać amulety kilka razy gdy już go użyłem a effect jeszcze nie przestał działać.

Chciałbym aby po użyciu trzeba zaczekać aż effect przestanie działać i dopiero można było by go użyc.

Kodzik:

Zabraniam kopiowania kodu oraz udostępniania go.

# Amulet Silyon rightclick:	if name of player's tool is "&4Amulet sily":		send "&4Jestes bardzo silny przez 7 minut! "		execute console command "effect %player% INCREASE_DAMAGE 420"		wait 420 second 		send "&4Sila cie opuscila."		remove strength from the player# Amulet Szybkoscion rightclick:	if name of player's tool is "&3Amulet szybkosci":		send "&4Jestes szybszy przez 7 minut! "		execute console command "effect %player% SPEED 420 1"		wait 420 second 		send "&4Odebrano ci moc szybkosci."		remove speed from the player# Amulet Widzeniaon rightclick:	if name of player's tool is "&5Amulet widzenia":		send "&4Widzisz teraz jasniej przez 7 minut! "		execute console command "effect %player% NIGHT_VISION 420"		wait 420 second 		send "&4Odebrano ci widzenie w ciemosci."		remove night vision from the player# Amulet Bogowon rightclick:	if name of player's tool is "&6Amulet bogow":		send "&4Jestes niesmiertelny przez 10 sekund! "		execute console command "god %player%"		wait 10 second 		send "&4Odebrano ci niesmiertelnosc."		execute console command "god %player%"		remove a nether star of unbreaking 10 named "&6Amulet Bogow" from the player# Amulet Regeneracjion rightclick:	if name of player's tool is "&cAmulet regeneracji":		send "&4Regenerujesz swoje zycie przez 7 minut! "		execute console command "effect %player% REGENERATION 420 1"		wait 420 second 		send "&4Koniec regeneracji!"		remove regeneration from the player#===================== Komenda amulet =====================#command /amulet [<text&gt]:	trigger:		if player has permission "amulet":			if arg 1 is not set:				send "&9========== &cAmulety &9=========="				send ""				send "&8> &7/&4amulet sily"				send "&8> &7/&3amulet szybkosci"				send "&8> &7/&5amulet widzenia"				send "&8> &7/&6amulet bogow"				send "&8> &7/&camulet regeneracji"				send ""				send "&9============================="			if arg 1 is "sily":				if player has permission "amulet.sily":					give a blaze rod of unbreaking 10 named "&4Amulet sily" to the player			if arg 1 is "szybkosci":				if player has permission "amulet.szybkosci":					give a blaze powder of unbreaking 10 named "&3Amulet szybkosci" to the player			if arg 1 is "widzenia":				if player has permission "amulet.widzenia":					give a magma cream of unbreaking 10 named "&5Amulet widzenia" to the player			if arg 1 is "Bogow":				if player has permission "amulet.bogow":					give a nether star of unbreaking 10 named "&6Amulet bogow" to the player			if arg 1 is "Regeneracji":				if player has permission "amulet.regeneracji":					give a apple of unbreaking 10 named "&cAmulet regeneracji" to the player
Edytowane przez RAINMAN
Odnośnik do komentarza
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
variables:    {sila.%player%} = false    {szybkosc.%player%} = false    {widzenie.%player%} = false    {bogowie.%player%} = false    {regeneracja.%player%} = falseon rightclick:    if name of player's tool is "&4Amulet sily":        if {sila.%player%} is false:            send "&4Jestes bardzo silny przez 7 minut! "            execute console command "effect %player% INCREASE_DAMAGE 420"            set {sila.%player%} to true            wait 420 second            send "&4Sila cie opuscila."            remove strength from the player            set {sila.%player%} to false        else:            send "&cPoczekaj az moc sie skonczy!"	 if name of player's tool is "&3Amulet szybkosci":        if {szybkosc.%player%} is false:            send "&4Jestes szybszy przez 7 minut! "            execute console command "effect %player% SPEED 420 1"            set {szybkosc.%player%} to true            wait 420 second            send "&4Odebrano ci moc szybkosci."            remove speed from the player            set {szybkosc.%player%} to false        else:            send "&cPoczekaj az moc sie skonczy!"    if name of player's tool is "&5Amulet widzenia":        if {widzenie.%player%} is false:            send "&4Widzisz teraz jasniej przez 7 minut! "            execute console command "effect %player% NIGHT_VISION 420"            set {widzenie.%player%} to true            wait 420 second            send "&4Odebrano ci widzenie w ciemosci."            remove night vision from the player            set {widzenie.%player%} to false        else:            send "&cPoczekaj az moc sie skonczy!"    if name of player's tool is "&6Amulet bogow":        if {bogowie.%player%} is false:            send "&4Jestes niesmiertelny przez 10 sekund! "            execute console command "god %player%"            set {bogowie.%player%} to true            wait 10 second            send "&4Odebrano ci niesmiertelnosc."            execute console command "god %player%"            remove a nether star of unbreaking 10 named "&6Amulet Bogow" from the player            set {bogowie.%player%} to false        else:            send "&cPoczekaj az moc sie skonczy!"    if name of player's tool is "&cAmulet regeneracji":        if {regeneracja.%player%} is false:            send "&4Regenerujesz swoje zycie przez 7 minut! "            execute console command "effect %player% REGENERATION 420 1"            set {regeneracja.%player%} to true            wait 420 second            send "&4Koniec regeneracji!"            remove regeneration from the player            set {regeneracja.%player%} to false        else:            send "&cPoczekaj az moc sie skonczy!" #===================== Komenda amulet =====================# command /amulet [<text&gt]:    trigger:	    if player has permission "amulet":		    if arg 1 is not set:			    send "&9========== &cAmulety &9=========="			    send ""			    send "&8> &7/&4amulet sily"			    send "&8> &7/&3amulet szybkosci"			    send "&8> &7/&5amulet widzenia"			    send "&8> &7/&6amulet bogow"			    send "&8> &7/&camulet regeneracji"			    send ""			    send "&9============================="		    if arg 1 is "sily":			    if player has permission "amulet.sily":				    give a blaze rod of unbreaking 10 named "&4Amulet sily" to the player		    if arg 1 is "szybkosci":			    if player has permission "amulet.szybkosci":				    give a blaze powder of unbreaking 10 named "&3Amulet szybkosci" to the player		    if arg 1 is "widzenia":			    if player has permission "amulet.widzenia":				    give a magma cream of unbreaking 10 named "&5Amulet widzenia" to the player		    if arg 1 is "Bogow":			    if player has permission "amulet.bogow":				    give a nether star of unbreaking 10 named "&6Amulet bogow" to the player		    if arg 1 is "Regeneracji":			    if player has permission "amulet.regeneracji":				    give a apple of unbreaking 10 named "&cAmulet regeneracji" to the player

Powinno działać.

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ę...