Skocz do zawartości
  • 0

Dodanie odliczania czasu


mich100

Pytanie

Witam, chciałbym dodać do skryptu odliczanie czasu do kolejnego użycia. Od razu mówię, nie jest to mój skrypt.

options:
# GRACZ
	gczas: 10
	gbedrock: 320 
	gwiadmosc: &6Kit &7Gracz &6zostal ci przydzielony! 
	gmiejsce: &cError: &7Brak miejsca w eq! (&c6&7)
	gracz1: stone pickaxe
	gracz2: stone axe
	gracz3: stone shovel
	gracz4: stone hoe
	gracz5: 32 steak
command /kit [<text>] [<offlineplayer>]:
	aliases: kity, kits, kit, zestawy,
	trigger:
		if argument 1 is not set:
			send "&7>>> &cDostepne kity:"
			if {kit.%player%.gracz} is false:
				send "&7>>> &6Kit Gracz jest &aDostepny"
			else:
				send "&7>>> &6Kit Gracz jest &cNie Dostepny"
		if argument 1 is "gracz":
			if arg 2 is set:
				if offlineplayer-argument is online:
					if {kit.%player%.gracz} is false:
						if player doesn't have space for {@gbedrock} bedrock:
							send "{@gmiejsce}" to player
							stop
						else:
							send "{@gwiadmosc}" to player
							give {@gracz1} to player
							give {@gracz2} to player
							give {@gracz3} to player
							give {@gracz4} to player
							give {@gracz5} to player
							set {kit.%player%.gracz} to true
							wait {@gczas} hours
							set {kit.%player%.gracz} to false
					else:
						send "&cError: &7Kit Gracz można brać co ({@gczas} Godzin)" to player
						stop
				else:
					send "{@offline}"
			else:
				send "{@nonick}"

 

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

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
# GRACZ
	gczas: 10 second
	gbedrock: 320 
	gwiadmosc: &6Kit &7Gracz &6zostal ci przydzielony! 
	gmiejsce: &cError: &7Brak miejsca w eq! (&c6&7)
	gracz1: stone pickaxe
	gracz2: stone axe
	gracz3: stone shovel
	gracz4: stone hoe
	gracz5: 32 steak
command /kit [<text>] [<offlineplayer>]:
	aliases: kity, kits, kit, zestawy,
	trigger:
		if argument 1 is not set:
			send "&7>>> &cDostepne kity:"
			if {kit.now.%player%} is not set:
				send "&7>>> &6Kit Gracz jest &aDostepny"
			if difference between now and {kit.now.%player%} is bigger than {@gczas}:
				send "&7>>> &6Kit Gracz jest &aDostepny"
			else:
				send "&7>>> &6Kit Gracz jest &cNie Dostepny"
		if argument 1 is "gracz":
			if arg 2 is set:
				if offlineplayer-argument is online:
					if player doesn't have space for {@gbedrock} bedrock:
						send "{@gmiejsce}" to player
						stop
					else:
						if difference between now and {kit.now.%player%} is bigger than {@gczas}:
							set {kit.now.%player%} to now
							send "{@gwiadmosc}" to player
							give {@gracz1} to player
							give {@gracz2} to player
							give {@gracz3} to player
							give {@gracz4} to player
							give {@gracz5} to player
							stop
						if difference between now and {kit.now.%player%} is smaller than {@gczas}:
							set {_1} to {kit.now.%player%}
							add {@gczas} to {_1}
							set {_2} to difference between now and {_1}
							send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
							stop	
						set {kit.now.%player%} to now
						send "{@gwiadmosc}" to player
						give {@gracz1} to player
						give {@gracz2} to player
						give {@gracz3} to player
						give {@gracz4} to player
						give {@gracz5} to player

prosze tylko czas do nastepnego podawny jest po angielsku a w gczas: wpisz np "1 minute    albo 69 hours 10 seconds moze tez byc 1 year" takzwany %timespan%

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Dzięki!

Niestety chyba już jestem za głupi. Chciałem dodać to samo do reszty kitów ale niestety nie umiem.

Mógłbyś pomóc?

# OPCJE SKRYPTU
options:
# GRACZ
	gczas: 10
	gbedrock: 320 # TA LICZBA ODPOWIADA ZA 5 SLOTÓW W EQ ! JEŻELI DODAŁES ITEM DO KITA TO DODAJ DO TEJ LICZBY 64 :P
	gwiadmosc: &6Kit &7Gracz &6zostal ci przydzielony! 
	gmiejsce: &cError: &7Brak miejsca w eq! (&c6&7)
	gracz1: stone pickaxe
	gracz2: stone axe
	gracz3: stone shovel
	gracz4: stone hoe
	gracz5: 32 steak
# VIP
	vczas: 336
	vippermisje: kit.vip #PERMISJE DLA VIPA
	vbedrock: 832
	vwiadmosc: &6Kit &cVIP &6zostal ci przydzielony!
	vmiejsce: &cError: &7Brak miejsca w eq! (&c9&7)
	vip1: iron helmet of protection 1
	vip2: iron chestplate of protection 1
	vip3: iron leggings of protection 1
	vip4: iron boots of protection 1
	vip5: iron sword of sharpness 1 and knockback 1
	vip6: iron shovel
	vip7: iron hoe
	vip8: iron axe 
	vip9: iron pickaxe
	vip10: 5 Bottle o' Enchanting
	vip11: diamond ore
	vip12: 2 Lava Bucket
	vip13: 2 Water Bucket
# SVIP
	sczas: 336
	svippermisje: kit.svip #PERMISJE DLA SVIPA
	sbedrock: 896 
	swiadmosc: &6Kit &3SVIP &6zostal ci przydzielony!
	smiejsce: &cError: &7Brak miejsca w eq! (&c9&7)
	svip1: iron helmet of protection 2
	svip2: iron chestplate of protection 2
	svip3: iron leggings of protection 2
	svip4: iron boots of protection 2
	svip5: diamond sword of sharpness 2
	svip6: iron pickaxe of unbreaking 2
	svip7: iron axe of unbreaking 2
	svip8: iron shovel of unbreaking 2
	svip9: iron hoe of unbreaking 2
	svip10: bow of power 1
	svip11: 15 Bottle o' Enchanting
	svip12: 2 Lava Bucket
	svip13: 2 Water Bucket
	svip14: Monster Spawner
	svip15: 2 diamond ore
# OGOLNE
	tag: &2EZKITS
	ezkitsadmin: ezkits.admin #PERMISJE DLA ADMINA
	nopermission: &8>>> &cNie posiadasz uprawnien! &nTo znaczy ze to nie jest dla ciebie!
	noperrank: &8>>> &cZeby uzyc tego zestawu musisz wykupic range &6VIP&c/&3SVIP &c!!
	offline: &8>>> &cTen gracz jest teraz offline!
	nonick: &8>>> &cNie podano nicku gracza !
	

variables:
    {kit.%player%.gracz} = false
    {kit.%player%.vip} = false
    {kit.%player%.svip} = false
command /kit [<text>] [<offlineplayer>]:
	aliases: kity, kits, kit, zestawy,
	trigger:
		if argument 1 is not set:
			send "&7>>> &cDostepne kity:"
			if difference between now and {kit.now.%player%} is bigger than {@gczas}:
				send "&7>>> &6Kit Gracz jest &aDostepny"
			else:
				send "&7>>> &6Kit Gracz jest &cNie Dostepny"
			if player has permission "{@vippermisje}":
				if difference between now and {vip.now.%player%} is bigger than {@vczas}::
					send "&7>>> &6Kit VIP jest &aDostepny"
				else:
					send "&7>>> &6Kit VIP jest &cNie Dostepny"
			if player has permission "{@svippermisje}":
				if difference between now and {svip.now.%player%} is bigger than {@sczas}:
					send "&7>>> &6Kit SVIP jest &aDostepny"
				else:
					send "&7>>> &6Kit SVIP jest &cNie Dostepny"
		if argument 1 is "gracz":
			if arg 2 is set:
				if offlineplayer-argument is online:
					if {kit.%player%.gracz} is false:
						if player doesn't have space for {@gbedrock} bedrock:
							send "{@gmiejsce}" to player
							stop
						else:
						if difference between now and {kit.now.%player%} is bigger than {@gczas}:
							set {kit.now.%player%} to now
							send "{@gwiadmosc}" to player
							give {@gracz1} to player
							give {@gracz2} to player
							give {@gracz3} to player
							give {@gracz4} to player
							give {@gracz5} to player
							stop
						if difference between now and {kit.now.%player%} is smaller than {@gczas}:
							set {_1} to {kit.now.%player%}
							add {@gczas} to {_1}
							set {_2} to difference between now and {_1}
							send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
							stop	
						set {kit.now.%player%} to now
						send "{@gwiadmosc}" to player
						give {@gracz1} to player
						give {@gracz2} to player
						give {@gracz3} to player
						give {@gracz4} to player
						give {@gracz5} to player
					else:
						send "&cError: &7Kit Gracz można brać co ({@gczas} Godzin)" to player
						stop
				else:
					send "{@offline}"
			else:
				send "{@nonick}"
		if argument 1 is "vip":
			if arg 2 is set:
				if offlineplayer-argument is online:
					if player has permission "{@vippermisje}":
						if {kit.%player%.vip} is false:
							if player doesn't have space for {@vbedrock} bedrock:
								send "{@vmiejsce}" to player
								stop
							else:
								send "{@vwiadmosc}" to player
								give {@vip1} to player
								give {@vip2} to player
								give {@vip3} to player
								give {@vip4} to player
								give {@vip5} to player
								give {@vip6} to player
								give {@vip7} to player
								give {@vip8} to player
								give {@vip9} to player
								give {@vip10} to player
								give {@vip11} to player
								give {@vip12} to player
								give {@vip13} to player
								set {kit.%player%.vip} to true
								wait {@vczas} hours
								set {kit.%player%.vip} to false
						else:
							send "&cError: &7Kit &eVIP &7można brać co ({@vczas} Godzin)" to player
							stop
					else:
						send "{@noperrank}"
				else:
					send "{@offline}"
			else:
				send "{@nonick}"
		if argument 1 is "supervip" or "svip":
			if arg 2 is set:
				if offlineplayer-argument is online:
					if player has permission "{@svippermisje}":
						if {kit.%player%.svip} is false:
							if player doesn't have space for {@sbedrock} bedrock:
								send "{@smiejsce}" to player
								stop
							else:
								send "{@swiadmosc}" to player
								give {@svip1} to player
								give {@svip2} to player
								give {@svip3} to player
								give {@svip4} to player
								give {@svip5} to player
								give {@svip6} to player
								give {@svip7} to player
								give {@svip8} to player
								give {@svip9} to player
								give {@svip9} to player
								give {@svip10} to player
								give {@svip11} to player
								give {@svip12} to player
								give {@svip13} to player
								give {@svip14} to player
								set {kit.%player%.svip} to true
								wait {@sczas} hours
								set {kit.%player%.svip} to false
						else:	
							send "&cError: &7Kit &3SVIP &7można brać co ({@sczas} Godzin)" to player
							stop
					else:
						send "{@noperrank}"
				else:
					send "{@offline}"
			else:
				send "{@nonick}"
# RESETOWANIE KITÓW !
		if argument 1 is "rgracz":
			if player has permission "{@ezkitsadmin}":
				set {kit.%arg 2%.gracz} to false
				if arg 2 is not set:
					send "{@nonick}"
				else:
					send "&7>>> &a&lKit gracza %arg 2% zostal zresetowany"
					send "&7>>> &a&lTwoj kit gracz zostal zresetowany przez &c%player%!" to arg 2
			else:
				send "{@nopermission}"
		if argument 1 is "rvip":
			if player has permission "{@ezkitsadmin}":
				set {kit.%arg 2%.vip} to false
				if arg 2 is not set:
					send "{@nonick}"
				else:
					send "&7>>> &a&lKit gracza %arg 2% zostal zresetowany"
					send "&7>>> &a&lTwoj kit vip zostal zresetowany przez &c%player%!" to arg 2
			else:
				send "{@nopermission}"
		if argument 1 is "rsvip":
			if player has permission "{@ezkitsadmin}":
				set {kit.%arg 2%.svip} to false
				if arg 2 is not set:
					send "{@nonick}"
				else:
					send "&7>>> &a&lKit gracza %arg 2% zostal zresetowany"
					send "&7>>> &a&lTwoj kit svip zostal zresetowany przez &c%player%!" to arg 2
			else:
				send "{@nopermission}"

 

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

  • 0
Spoiler

# OPCJE SKRYPTU
options:
# GRACZ
	gczas: 10
	gbedrock: 320 # TA LICZBA ODPOWIADA ZA 5 SLOTÓW W EQ ! JEŻELI DODAŁES ITEM DO KITA TO DODAJ DO TEJ LICZBY 64 :P
	gwiadmosc: &6Kit &7Gracz &6zostal ci przydzielony! 
	gmiejsce: &cError: &7Brak miejsca w eq! (&c6&7)
	gracz1: stone pickaxe
	gracz2: stone axe
	gracz3: stone shovel
	gracz4: stone hoe
	gracz5: 32 steak
# VIP
	vczas: 336
	vippermisje: kit.vip #PERMISJE DLA VIPA
	vbedrock: 832
	vwiadmosc: &6Kit &cVIP &6zostal ci przydzielony!
	vmiejsce: &cError: &7Brak miejsca w eq! (&c9&7)
	vip1: iron helmet of protection 1
	vip2: iron chestplate of protection 1
	vip3: iron leggings of protection 1
	vip4: iron boots of protection 1
	vip5: iron sword of sharpness 1 and knockback 1
	vip6: iron shovel
	vip7: iron hoe
	vip8: iron axe 
	vip9: iron pickaxe
	vip10: 5 Bottle o' Enchanting
	vip11: diamond ore
	vip12: 2 Lava Bucket
	vip13: 2 Water Bucket
# SVIP
	sczas: 336
	svippermisje: kit.svip #PERMISJE DLA SVIPA
	sbedrock: 896 
	swiadmosc: &6Kit &3SVIP &6zostal ci przydzielony!
	smiejsce: &cError: &7Brak miejsca w eq! (&c9&7)
	svip1: iron helmet of protection 2
	svip2: iron chestplate of protection 2
	svip3: iron leggings of protection 2
	svip4: iron boots of protection 2
	svip5: diamond sword of sharpness 2
	svip6: iron pickaxe of unbreaking 2
	svip7: iron axe of unbreaking 2
	svip8: iron shovel of unbreaking 2
	svip9: iron hoe of unbreaking 2
	svip10: bow of power 1
	svip11: 15 Bottle o' Enchanting
	svip12: 2 Lava Bucket
	svip13: 2 Water Bucket
	svip14: Monster Spawner
	svip15: 2 diamond ore
# OGOLNE
	tag: &2EZKITS
	ezkitsadmin: ezkits.admin #PERMISJE DLA ADMINA
	nopermission: &8>>> &cNie posiadasz uprawnien! &nTo znaczy ze to nie jest dla ciebie!
	noperrank: &8>>> &cZeby uzyc tego zestawu musisz wykupic range &6VIP&c/&3SVIP &c!!
	offline: &8>>> &cTen gracz jest teraz offline!
	nonick: &8>>> &cNie podano nicku gracza !
command /kit [<text>] [<offlineplayer>]:
	aliases: kity, kits, kit, zestawy,
	trigger:
		if arg-1 is not set:
			send "&7>>> &cDostepne kity:"
			if difference between now and {kit::gracz::%player%} is bigger than {@gczas}:
				send "&7>>> &6Kit Gracz jest &aDostepny"
			else:
				send "&7>>> &6Kit Gracz jest &cNie Dostepny"
			if player has permission "{@vippermisje}":
				if difference between now and {vip.now.%player%} is bigger than {@vczas}::
					send "&7>>> &6Kit VIP jest &aDostepny"
				else:
					send "&7>>> &6Kit VIP jest &cNie Dostepny"
			if player has permission "{@svippermisje}":
				if difference between now and {svip.now.%player%} is bigger than {@sczas}:
					send "&7>>> &6Kit SVIP jest &aDostepny"
				else:
					send "&7>>> &6Kit SVIP jest &cNie Dostepny"
		if arg-1 is "gracz":
			if arg-2 is set:
				if offlineplayer-argument is online:
					if player doesn't have space for {@gbedrock} bedrock:
						send "{@gmiejsce}" to player
						stop
					else:
						if difference between now and {kit::gracz::%player%} is bigger than {@gczas}:
							set {kit::gracz::%player%} to now
							send "{@gwiadmosc}" to player
							give {@gracz1} to player
							give {@gracz2} to player
							give {@gracz3} to player
							give {@gracz4} to player
							give {@gracz5} to player
							stop
						if difference between now and {kit::gracz::%player%} is smaller than {@gczas}:
							set {_1} to {kit::gracz::%player%}
							add {@gczas} to {_1}
							set {_2} to difference between now and {_1}
							send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
							stop	
						set {kit::gracz::%player%} to now
						send "{@gwiadmosc}" to player
						give {@gracz1} to player
						give {@gracz2} to player
						give {@gracz3} to player
						give {@gracz4} to player
						give {@gracz5} to player
				else:
					send "{@offline}"
			else:
				send "{@nonick}"
		if arg-1 is "vip":
			if arg-2 is set:
				if offlineplayer-argument is online:
					if player has permission "{@vippermisje}":
						if player doesn't have space for {@vbedrock} bedrock:
							send "{@vmiejsce}" to player
							stop
						else:
							if difference between now and {kit::vip::%player%} is bigger than {@vczas}:
								set {kit::vip::%player%} to now
								send "{@vwiadmosc}" to player
								give {@vip1} to player
								give {@vip2} to player
								give {@vip3} to player
								give {@vip4} to player
								give {@vip5} to player
								give {@vip6} to player
								give {@vip7} to player
								give {@vip8} to player
								give {@vip9} to player
								give {@vip10} to player
								give {@vip11} to player
								give {@vip12} to player
								give {@vip13} to player
								stop
							if difference between now and {kit::vip::%player%} is smaller than {@vczas}:
								set {_1} to {kit::vip::%player%}
								add {@vczas} to {_1}
								set {_2} to difference between now and {_1}
								send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
								stop	
							set {kit::vip::%player%} to now
							send "{@vwiadmosc}" to player
							give {@vip1} to player
							give {@vip2} to player
							give {@vip3} to player
							give {@vip4} to player
							give {@vip5} to player
							give {@vip6} to player
							give {@vip7} to player
							give {@vip8} to player
							give {@vip9} to player
							give {@vip10} to player
							give {@vip11} to player
							give {@vip12} to player
							give {@vip13} to player
					else:
						send "{@noperrank}"
				else:
					send "{@offline}"
			else:
				send "{@nonick}"
		if arg-1 is "supervip" or "svip":
			if arg-2 is set:
				if offlineplayer-argument is online:
					if player has permission "{@svippermisje}":
						if player doesn't have space for {@sbedrock} bedrock:
							send "{@smiejsce}" to player
							stop
						else:
							if difference between now and {kit::svip::%player%} is bigger than {@sczas}:
								set {kit::svip::%player%} to now
								send "{@swiadmosc}" to player
								give {@svip1} to player
								give {@svip2} to player
								give {@svip3} to player
								give {@svip4} to player
								give {@svip5} to player
								give {@svip6} to player
								give {@svip7} to player
								give {@svip8} to player
								give {@svip9} to player
								give {@svip9} to player
								give {@svip10} to player
								give {@svip11} to player
								give {@svip12} to player
								give {@svip13} to player
								give {@svip14} to player
								stop
							if difference between now and {kit::svip::%player%} is smaller than {@sczas}:
								set {_1} to {kit::svip::%player%}
								add {@sczas} to {_1}
								set {_2} to difference between now and {_1}
								send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
								stop	
							set {kit::svip::%player%} to now
							send "{@swiadmosc}" to player
							give {@svip1} to player
							give {@svip2} to player
							give {@svip3} to player
							give {@svip4} to player
							give {@svip5} to player
							give {@svip6} to player
							give {@svip7} to player
							give {@svip8} to player
							give {@svip9} to player
							give {@svip9} to player
							give {@svip10} to player
							give {@svip11} to player
							give {@svip12} to player
							give {@svip13} to player
							give {@svip14} to player
					else:
						send "{@noperrank}"
				else:
					send "{@offline}"
			else:
				send "{@nonick}"
		if arg-1 is "rgracz":
			if player has permission "{@ezkitsadmin}":
				if arg-2 is set:
					clear {kit::gracz::%arg-2%}
					send "&7>>> &a&lKit gracza %arg-2% zostal zresetowany"
					send "&7>>> &a&lTwoj kit gracz zostal zresetowany przez &c%player%!" to arg-2
				else:
					send "{@nonick}"
			else:
				send "{@nopermission}"
		if arg-1 is "rvip":
			if player has permission "{@ezkitsadmin}":
				if arg-2 is set:
					clear {kit::vip::%arg-2%}
					send "&7>>> &a&lKit vip gracza %arg-2% zostal zresetowany"
					send "&7>>> &a&lTwoj kit vip zostal zresetowany przez &c%player%!" to arg-2
				else:
					send "{@nonick}"
			else:
				send "{@nopermission}"
		if arg-1 is "rsvip":
			if player has permission "{@ezkitsadmin}":
				if arg-2 is set:
					clear {kit::svip::%arg-2%}
					send "&7>>> &a&lKit svip gracza %arg-2% zostal zresetowany"
					send "&7>>> &a&lTwoj kit svip zostal zresetowany przez &c%player%!" to arg-2
				else:
					send "{@nonick}"
			else:
				send "{@nopermission}"

 

prosze licze na plusiki

PS: nietestowane :P

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
1 godzinę temu, kaol48s napisał:
Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! Pokaż ukrytą zawartość


# OPCJE SKRYPTU
options:
# GRACZ
	gczas: 10
	gbedrock: 320 # TA LICZBA ODPOWIADA ZA 5 SLOTÓW W EQ ! JEŻELI DODAŁES ITEM DO KITA TO DODAJ DO TEJ LICZBY 64 :P
	gwiadmosc: &6Kit &7Gracz &6zostal ci przydzielony! 
	gmiejsce: &cError: &7Brak miejsca w eq! (&c6&7)
	gracz1: stone pickaxe
	gracz2: stone axe
	gracz3: stone shovel
	gracz4: stone hoe
	gracz5: 32 steak
# VIP
	vczas: 336
	vippermisje: kit.vip #PERMISJE DLA VIPA
	vbedrock: 832
	vwiadmosc: &6Kit &cVIP &6zostal ci przydzielony!
	vmiejsce: &cError: &7Brak miejsca w eq! (&c9&7)
	vip1: iron helmet of protection 1
	vip2: iron chestplate of protection 1
	vip3: iron leggings of protection 1
	vip4: iron boots of protection 1
	vip5: iron sword of sharpness 1 and knockback 1
	vip6: iron shovel
	vip7: iron hoe
	vip8: iron axe 
	vip9: iron pickaxe
	vip10: 5 Bottle o' Enchanting
	vip11: diamond ore
	vip12: 2 Lava Bucket
	vip13: 2 Water Bucket
# SVIP
	sczas: 336
	svippermisje: kit.svip #PERMISJE DLA SVIPA
	sbedrock: 896 
	swiadmosc: &6Kit &3SVIP &6zostal ci przydzielony!
	smiejsce: &cError: &7Brak miejsca w eq! (&c9&7)
	svip1: iron helmet of protection 2
	svip2: iron chestplate of protection 2
	svip3: iron leggings of protection 2
	svip4: iron boots of protection 2
	svip5: diamond sword of sharpness 2
	svip6: iron pickaxe of unbreaking 2
	svip7: iron axe of unbreaking 2
	svip8: iron shovel of unbreaking 2
	svip9: iron hoe of unbreaking 2
	svip10: bow of power 1
	svip11: 15 Bottle o' Enchanting
	svip12: 2 Lava Bucket
	svip13: 2 Water Bucket
	svip14: Monster Spawner
	svip15: 2 diamond ore
# OGOLNE
	tag: &2EZKITS
	ezkitsadmin: ezkits.admin #PERMISJE DLA ADMINA
	nopermission: &8>>> &cNie posiadasz uprawnien! &nTo znaczy ze to nie jest dla ciebie!
	noperrank: &8>>> &cZeby uzyc tego zestawu musisz wykupic range &6VIP&c/&3SVIP &c!!
	offline: &8>>> &cTen gracz jest teraz offline!
	nonick: &8>>> &cNie podano nicku gracza !
command /kit [<text>] [<offlineplayer>]:
	aliases: kity, kits, kit, zestawy,
	trigger:
		if arg-1 is not set:
			send "&7>>> &cDostepne kity:"
			if difference between now and {kit::gracz::%player%} is bigger than {@gczas}:
				send "&7>>> &6Kit Gracz jest &aDostepny"
			else:
				send "&7>>> &6Kit Gracz jest &cNie Dostepny"
			if player has permission "{@vippermisje}":
				if difference between now and {vip.now.%player%} is bigger than {@vczas}::
					send "&7>>> &6Kit VIP jest &aDostepny"
				else:
					send "&7>>> &6Kit VIP jest &cNie Dostepny"
			if player has permission "{@svippermisje}":
				if difference between now and {svip.now.%player%} is bigger than {@sczas}:
					send "&7>>> &6Kit SVIP jest &aDostepny"
				else:
					send "&7>>> &6Kit SVIP jest &cNie Dostepny"
		if arg-1 is "gracz":
			if arg-2 is set:
				if offlineplayer-argument is online:
					if player doesn't have space for {@gbedrock} bedrock:
						send "{@gmiejsce}" to player
						stop
					else:
						if difference between now and {kit::gracz::%player%} is bigger than {@gczas}:
							set {kit::gracz::%player%} to now
							send "{@gwiadmosc}" to player
							give {@gracz1} to player
							give {@gracz2} to player
							give {@gracz3} to player
							give {@gracz4} to player
							give {@gracz5} to player
							stop
						if difference between now and {kit::gracz::%player%} is smaller than {@gczas}:
							set {_1} to {kit::gracz::%player%}
							add {@gczas} to {_1}
							set {_2} to difference between now and {_1}
							send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
							stop	
						set {kit::gracz::%player%} to now
						send "{@gwiadmosc}" to player
						give {@gracz1} to player
						give {@gracz2} to player
						give {@gracz3} to player
						give {@gracz4} to player
						give {@gracz5} to player
				else:
					send "{@offline}"
			else:
				send "{@nonick}"
		if arg-1 is "vip":
			if arg-2 is set:
				if offlineplayer-argument is online:
					if player has permission "{@vippermisje}":
						if player doesn't have space for {@vbedrock} bedrock:
							send "{@vmiejsce}" to player
							stop
						else:
							if difference between now and {kit::vip::%player%} is bigger than {@vczas}:
								set {kit::vip::%player%} to now
								send "{@vwiadmosc}" to player
								give {@vip1} to player
								give {@vip2} to player
								give {@vip3} to player
								give {@vip4} to player
								give {@vip5} to player
								give {@vip6} to player
								give {@vip7} to player
								give {@vip8} to player
								give {@vip9} to player
								give {@vip10} to player
								give {@vip11} to player
								give {@vip12} to player
								give {@vip13} to player
								stop
							if difference between now and {kit::vip::%player%} is smaller than {@vczas}:
								set {_1} to {kit::vip::%player%}
								add {@vczas} to {_1}
								set {_2} to difference between now and {_1}
								send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
								stop	
							set {kit::vip::%player%} to now
							send "{@vwiadmosc}" to player
							give {@vip1} to player
							give {@vip2} to player
							give {@vip3} to player
							give {@vip4} to player
							give {@vip5} to player
							give {@vip6} to player
							give {@vip7} to player
							give {@vip8} to player
							give {@vip9} to player
							give {@vip10} to player
							give {@vip11} to player
							give {@vip12} to player
							give {@vip13} to player
					else:
						send "{@noperrank}"
				else:
					send "{@offline}"
			else:
				send "{@nonick}"
		if arg-1 is "supervip" or "svip":
			if arg-2 is set:
				if offlineplayer-argument is online:
					if player has permission "{@svippermisje}":
						if player doesn't have space for {@sbedrock} bedrock:
							send "{@smiejsce}" to player
							stop
						else:
							if difference between now and {kit::svip::%player%} is bigger than {@sczas}:
								set {kit::svip::%player%} to now
								send "{@swiadmosc}" to player
								give {@svip1} to player
								give {@svip2} to player
								give {@svip3} to player
								give {@svip4} to player
								give {@svip5} to player
								give {@svip6} to player
								give {@svip7} to player
								give {@svip8} to player
								give {@svip9} to player
								give {@svip9} to player
								give {@svip10} to player
								give {@svip11} to player
								give {@svip12} to player
								give {@svip13} to player
								give {@svip14} to player
								stop
							if difference between now and {kit::svip::%player%} is smaller than {@sczas}:
								set {_1} to {kit::svip::%player%}
								add {@sczas} to {_1}
								set {_2} to difference between now and {_1}
								send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
								stop	
							set {kit::svip::%player%} to now
							send "{@swiadmosc}" to player
							give {@svip1} to player
							give {@svip2} to player
							give {@svip3} to player
							give {@svip4} to player
							give {@svip5} to player
							give {@svip6} to player
							give {@svip7} to player
							give {@svip8} to player
							give {@svip9} to player
							give {@svip9} to player
							give {@svip10} to player
							give {@svip11} to player
							give {@svip12} to player
							give {@svip13} to player
							give {@svip14} to player
					else:
						send "{@noperrank}"
				else:
					send "{@offline}"
			else:
				send "{@nonick}"
		if arg-1 is "rgracz":
			if player has permission "{@ezkitsadmin}":
				if arg-2 is set:
					clear {kit::gracz::%arg-2%}
					send "&7>>> &a&lKit gracza %arg-2% zostal zresetowany"
					send "&7>>> &a&lTwoj kit gracz zostal zresetowany przez &c%player%!" to arg-2
				else:
					send "{@nonick}"
			else:
				send "{@nopermission}"
		if arg-1 is "rvip":
			if player has permission "{@ezkitsadmin}":
				if arg-2 is set:
					clear {kit::vip::%arg-2%}
					send "&7>>> &a&lKit vip gracza %arg-2% zostal zresetowany"
					send "&7>>> &a&lTwoj kit vip zostal zresetowany przez &c%player%!" to arg-2
				else:
					send "{@nonick}"
			else:
				send "{@nopermission}"
		if arg-1 is "rsvip":
			if player has permission "{@ezkitsadmin}":
				if arg-2 is set:
					clear {kit::svip::%arg-2%}
					send "&7>>> &a&lKit svip gracza %arg-2% zostal zresetowany"
					send "&7>>> &a&lTwoj kit svip zostal zresetowany przez &c%player%!" to arg-2
				else:
					send "{@nonick}"
			else:
				send "{@nopermission}"

 

prosze licze na plusiki

PS: nietestowane :P

 

No nie działa, a nawet powiem, że 12 błędów daje.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Spoiler

# OPCJE SKRYPTU
options:
# GRACZ
	gczas: 10 hour
	gbedrock: 320 # TA LICZBA ODPOWIADA ZA 5 SLOTÓW W EQ ! JEŻELI DODAŁES ITEM DO KITA TO DODAJ DO TEJ LICZBY 64 :P
	gwiadmosc: &6Kit &7Gracz &6zostal ci przydzielony! 
	gmiejsce: &cError: &7Brak miejsca w eq! (&c6&7)
	gracz1: stone pickaxe
	gracz2: stone axe
	gracz3: stone shovel
	gracz4: stone hoe
	gracz5: 32 steak
# VIP
	vczas: 336 hour
	vippermisje: kit.vip #PERMISJE DLA VIPA
	vbedrock: 832
	vwiadmosc: &6Kit &cVIP &6zostal ci przydzielony!
	vmiejsce: &cError: &7Brak miejsca w eq! (&c9&7)
	vip1: iron helmet of protection 1
	vip2: iron chestplate of protection 1
	vip3: iron leggings of protection 1
	vip4: iron boots of protection 1
	vip5: iron sword of sharpness 1 and knockback 1
	vip6: iron shovel
	vip7: iron hoe
	vip8: iron axe 
	vip9: iron pickaxe
	vip10: 5 Bottle o' Enchanting
	vip11: diamond ore
	vip12: 2 Lava Bucket
	vip13: 2 Water Bucket
# SVIP
	sczas: 336 hour
	svippermisje: kit.svip #PERMISJE DLA SVIPA
	sbedrock: 896 
	swiadmosc: &6Kit &3SVIP &6zostal ci przydzielony!
	smiejsce: &cError: &7Brak miejsca w eq! (&c9&7)
	svip1: iron helmet of protection 2
	svip2: iron chestplate of protection 2
	svip3: iron leggings of protection 2
	svip4: iron boots of protection 2
	svip5: diamond sword of sharpness 2
	svip6: iron pickaxe of unbreaking 2
	svip7: iron axe of unbreaking 2
	svip8: iron shovel of unbreaking 2
	svip9: iron hoe of unbreaking 2
	svip10: bow of power 1
	svip11: 15 Bottle o' Enchanting
	svip12: 2 Lava Bucket
	svip13: 2 Water Bucket
	svip14: Monster Spawner
	svip15: 2 diamond ore
# OGOLNE
	tag: &2EZKITS
	ezkitsadmin: ezkits.admin #PERMISJE DLA ADMINA
	nopermission: &8>>> &cNie posiadasz uprawnien! &nTo znaczy ze to nie jest dla ciebie!
	noperrank: &8>>> &cZeby uzyc tego zestawu musisz wykupic range &6VIP&c/&3SVIP &c!!
	offline: &8>>> &cTen gracz jest teraz offline!
	nonick: &8>>> &cNie podano nicku gracza !
# BLOKI 
	blok.dostepny: light green wool
	blok.niedostepny: red wool
command /kit [<text>] [<offlineplayer>]:
	aliases: kity, kits, kit, zestawy,
	trigger:
		if arg-1 is not set:
			open chest with 3 rows named "&cDostepne kity" to player 
			wait 2 tick
			loop 27 times:
				format slot loop-number -1 of player with gray glass pane named " " to be unstealable
			if {kit::gracz::%player%} is not set:
				format slot 11 of player with {@blok.dostepny} named "&7>>> &6Kit Gracz jest &aDostepny" to close then run [execute player command "kit gracz %player%"]
			else:
				if difference between now and {kit::gracz::%player%} is bigger than {@gczas}:
					format slot 11 of player with {@blok.dostepny} named "&7>>> &6Kit Gracz jest &aDostepny" to close then run [execute player command "kit gracz %player%"]
				else:
					set {_1} to {kit::gracz::%player%}
					add {@gczas} to {_1}
					set {_2} to difference between now and {_1}
					format slot 11 of player with {@blok.niedostepny} named "&7>>> &6Kit Gracz jest &cNie Dostepny" with lore "&7>>> &6Kit Dostepny za: %{_2}%" to close then run [execute player command "kit gracz %player%"]
			if player has permission "{@vippermisje}":
				if {kit::vip::%player%} is not set:
					format slot 13 of player with {@blok.dostepny} named "&7>>> &6Kit Vip jest &aDostepny" to close then run [execute player command "kit vip %player%"]
				else:
					if difference between now and {kit::vip::%player%} is bigger than {@gczas}:
						format slot 13 of player with {@blok.dostepny} named "&7>>> &6Kit Vip jest &aDostepny" to close then run [execute player command "kit vip %player%"]
					else:
						set {_1} to {kit::vip::%player%}
						add {@vczas} to {_1}
						set {_2} to difference between now and {_1}
						format slot 13 of player with {@blok.niedostepny} named "&7>>> &6Kit Vip jest &cNie Dostepny" with lore "&7>>> &6Kit Dostepny za: %{_2}%" to close then run [execute player command "kit vip %player%"]
			if player has permission "{@svippermisje}":
				if {kit::svip::%player%} is not set:
					format slot 15 of player with {@blok.dostepny} named "&7>>> &6Kit Svip jest &aDostepny" to close then run [execute player command "kit svip %player%"]
				else:
					if difference between now and {kit::svip::%player%} is bigger than {@gczas}:
						format slot 15 of player with {@blok.dostepny} named "&7>>> &6Kit Svip jest &aDostepny" to close then run [execute player command "kit svip %player%"]
					else:
						set {_1} to {kit::svip::%player%}
						add {@sczas} to {_1}
						set {_2} to difference between now and {_1}
						format slot 15 of player with {@blok.niedostepny} named "&7>>> &6Kit Svip jest &cNie Dostepny" with lore "&7>>> &6Kit Dostepny za: %{_2}%" to close then run [execute player command "kit svip %player%"]
		if player is op:
			if arg-1 is "gracz":
				if arg-2 is set:
					if offlineplayer-argument is online:
						if player doesn't have space for {@gbedrock} bedrock:
							send "{@gmiejsce}" to player
							stop
						else:
							if difference between now and {kit::gracz::%player%} is bigger than {@gczas}:
								set {kit::gracz::%player%} to now
								send "{@gwiadmosc}" to player
								give {@gracz1} to player
								give {@gracz2} to player
								give {@gracz3} to player
								give {@gracz4} to player
								give {@gracz5} to player
								stop
							if difference between now and {kit::gracz::%player%} is smaller than {@gczas}:
								set {_1} to {kit::gracz::%player%}
								add {@gczas} to {_1}
								set {_2} to difference between now and {_1}
								send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
								stop	
							set {kit::gracz::%player%} to now
							send "{@gwiadmosc}" to player
							give {@gracz1} to player
							give {@gracz2} to player
							give {@gracz3} to player
							give {@gracz4} to player
							give {@gracz5} to player
					else:
						send "{@offline}"
				else:
					send "{@nonick}"
			if arg-1 is "vip":
				if arg-2 is set:
					if offlineplayer-argument is online:
						if player has permission "{@vippermisje}":
							if player doesn't have space for {@vbedrock} bedrock:
								send "{@vmiejsce}" to player
								stop
							else:
								if difference between now and {kit::vip::%player%} is bigger than {@vczas}:
									set {kit::vip::%player%} to now
									send "{@vwiadmosc}" to player
									give {@vip1} to player
									give {@vip2} to player
									give {@vip3} to player
									give {@vip4} to player
									give {@vip5} to player
									give {@vip6} to player
									give {@vip7} to player
									give {@vip8} to player
									give {@vip9} to player
									give {@vip10} to player
									give {@vip11} to player
									give {@vip12} to player
									give {@vip13} to player
									stop
								if difference between now and {kit::vip::%player%} is smaller than {@vczas}:
									set {_1} to {kit::vip::%player%}
									add {@vczas} to {_1}
									set {_2} to difference between now and {_1}
									send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
									stop	
								set {kit::vip::%player%} to now
								send "{@vwiadmosc}" to player
								give {@vip1} to player
								give {@vip2} to player
								give {@vip3} to player
								give {@vip4} to player
								give {@vip5} to player
								give {@vip6} to player
								give {@vip7} to player
								give {@vip8} to player
								give {@vip9} to player
								give {@vip10} to player
								give {@vip11} to player
								give {@vip12} to player
								give {@vip13} to player
						else:
							send "{@noperrank}"
					else:
						send "{@offline}"
				else:
					send "{@nonick}"
			if arg-1 is "supervip" or "svip":
				if arg-2 is set:
					if offlineplayer-argument is online:
						if player has permission "{@svippermisje}":
							if player doesn't have space for {@sbedrock} bedrock:
								send "{@smiejsce}" to player
								stop
							else:
								if difference between now and {kit::svip::%player%} is bigger than {@sczas}:
									set {kit::svip::%player%} to now
									send "{@swiadmosc}" to player
									give {@svip1} to player
									give {@svip2} to player
									give {@svip3} to player
									give {@svip4} to player
									give {@svip5} to player
									give {@svip6} to player
									give {@svip7} to player
									give {@svip8} to player
									give {@svip9} to player
									give {@svip9} to player
									give {@svip10} to player
									give {@svip11} to player
									give {@svip12} to player
									give {@svip13} to player
									give {@svip14} to player
									stop
								if difference between now and {kit::svip::%player%} is smaller than {@sczas}:
									set {_1} to {kit::svip::%player%}
									add {@sczas} to {_1}
									set {_2} to difference between now and {_1}
									send "&4Blad:&8poczekaj jeszcze &6%{_2}%"
									stop	
								set {kit::svip::%player%} to now
								send "{@swiadmosc}" to player
								give {@svip1} to player
								give {@svip2} to player
								give {@svip3} to player
								give {@svip4} to player
								give {@svip5} to player
								give {@svip6} to player
								give {@svip7} to player
								give {@svip8} to player
								give {@svip9} to player
								give {@svip9} to player
								give {@svip10} to player
								give {@svip11} to player
								give {@svip12} to player
								give {@svip13} to player
								give {@svip14} to player
						else:
							send "{@noperrank}"
					else:
						send "{@offline}"
				else:
					send "{@nonick}"
			if arg-1 is "rgracz":
				if player has permission "{@ezkitsadmin}":
					if arg-2 is set:
						clear {kit::gracz::%arg-2%}
						send "&7>>> &a&lKit gracza %arg-2% zostal zresetowany"
						send "&7>>> &a&lTwoj kit gracz zostal zresetowany przez &c%player%!" to arg-2
					else:
						send "{@nonick}"
				else:
					send "{@nopermission}"
			if arg-1 is "rvip":
				if player has permission "{@ezkitsadmin}":
					if arg-2 is set:
						clear {kit::vip::%arg-2%}
						send "&7>>> &a&lKit vip gracza %arg-2% zostal zresetowany"
						send "&7>>> &a&lTwoj kit vip zostal zresetowany przez &c%player%!" to arg-2
					else:
						send "{@nonick}"
				else:
					send "{@nopermission}"
			if arg-1 is "rsvip":
				if player has permission "{@ezkitsadmin}":
					if arg-2 is set:
						clear {kit::svip::%arg-2%}
						send "&7>>> &a&lKit svip gracza %arg-2% zostal zresetowany"
						send "&7>>> &a&lTwoj kit svip zostal zresetowany przez &c%player%!" to arg-2
					else:
						send "{@nonick}"
				else:
					send "{@nopermission}"

 

prosze testowany działa 100% /kit moze uzyc kazdy ale np /kit gracz juz tylko op bo zrobiłem gup pod komendą /kit w options dodałem zakladke #BLOKI i tam masz jakie bloki nają sie pokazywac jest koles ma dostepny kit i niedostepny :D

Odnośnik do komentarza
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ę...