Skocz do zawartości
  • 0

Grupowe tp z zestawem


julekssss

Pytanie

options: przycisk: stone_button behind_block: sponge radius: 3 swiat: world min-x: 350 max-x: 1500 min-y: 70 max-y: 100 min-z: 350 max-z: 1500 on rightclick on {@przycisk}: block behind target block is {@behind_block}:: loop all players in radius {@radius} of event-block: add loop-player to {_lista::*} add player to {_lista::*} set {_targetx} to a random integer between {@min-x} and {@max-x} set {_targety} to a random integer between {@min-y} and {@max-y} set {_targetz} to a random integer between {@min-z} and {@max-z} set {_loc} to location at (%{_targetx}%, %{_targety}%, %{_targetz}%) of world "{@swiat}" loop {_list::*}: teleport loop-value at {_loc} on place: if player is holding a sponge: if player doesn't have permission "stawianie.sponge": cancel event send "&7Nie mozesz stawiac gabki!" stop 

 

 

 

Przepraszam ze tak lecz pisze to na telefonie i bardzo mi to utrudnia sprawe

 

 

Mógł by ktoś dopisać do tego skryptu że osoba która zostanie tepnięta dostanie itemy np zbroje i miecz a jezeli ma permisje zestaw.2 to dostanie inny zestaw

Odnośnik do komentarza
https://skript.pl/temat/51344-grupowe-tp-z-zestawem/
Udostępnij na innych stronach

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
	world: gtp # Ustaw tu owiat
	x-max: 500 # Maxymalne kordy x
	x-min: -500 # Minimalne kordy x
	z-max: 500 # Maxymlane kordy z
	z-min: -500 # Minimalne kordy z

function equip(p: player):
	if {_p} has permission "zestaw.2":
		equip {_p} with diamond chestplate
		equip {_p} with (...) #dalej według wzoru dla zbroi zestaw2
    	
		give 1 diamond sword to {_p}
		give (...) #dalej według wzoru dla przedmiotów z ekwipunku zestaw2

	else:
		equip (...) #zbroja dla domyślnego zestawu

		give (...) #przedmioty dla domyślnego zestawu

    
    
    
on rightclick on polished blackstone button:
	set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"
	while block under {_loc} is air or lava:
		remove 1 from y-coords of {_loc}
		block under {_loc} is lava:
			set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"
	loop players in radius 4 around block behind block:
		teleport loop-player to {_loc}
		equip(loop-player)
	teleport player to {_loc}
	equip(player)

 

Edytowane przez PanMaruda
Odnośnik do komentarza
https://skript.pl/temat/51344-grupowe-tp-z-zestawem/#findComment-316538
Udostępnij na innych stronach

  • 0
2 godziny temu, PanMaruda napisał:
options:
	world: gtp # Ustaw tu owiat
	x-max: 500 # Maxymalne kordy x
	x-min: -500 # Minimalne kordy x
	z-max: 500 # Maxymlane kordy z
	z-min: -500 # Minimalne kordy z

function equip(p: player):
	if player has permission "zestaw.2":
		equip {_p} with diamond chestplate
        equip {_p} with (...) #dalej według wzoru dla zbroi zestaw2
    	
		give 1 diamond sword to {_p}
		give (...) #dalej według wzoru dla przedmiotów z ekwipunku zestaw2

	else:
		equip (...) #zbroja dla domyślnego zestawu

        give (...) #przedmioty dla domyślnego zestawu

    
    
    
on rightclick on polished blackstone button:
	set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"
	while block under {_loc} is air or lava:
		remove 1 from y-coords of {_loc}
		block under {_loc} is lava:
			set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"
	loop players in radius 4 around block behind block:
		teleport loop-player to {_loc}
		equip(loop-player)
	teleport player to {_loc}
	equip(player)

 



[18:06:39 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (gtp/zestawy.sk, line 11: equip {_p} with (...)#dalej według wzoru dla zbroi zestaw2')
[18:06:39 ERROR]: can't understand this event: 'ptions' (gtp/zestawy.sk, line 1: ptions:')
[18:06:39 ERROR]: There's no player in a function event (gtp/zestawy.sk, line 9: if player has permission "zestaw.2":')
[18:06:39 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (gtp/zestawy.sk, line 16: else:')
[18:06:39 ERROR]: undefined option {@x-min} (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@x-max} (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@z-min} (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@z-max} (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@world} (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: Variables cannot be used here. (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@x-min} (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@x-max} (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@z-min} (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@z-max} (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@world} (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:40 ERROR]: Variables cannot be used here. (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:40 INFO]: [Skript] Encountered 16 errors while reloading zestawy.sk!


://

 

Odnośnik do komentarza
https://skript.pl/temat/51344-grupowe-tp-z-zestawem/#findComment-316554
Udostępnij na innych stronach

  • 0
35 minut temu, julekssss napisał:
Spoiler

[18:06:39 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (gtp/zestawy.sk, line 11: equip {_p} with (...)#dalej według wzoru dla zbroi zestaw2')
[18:06:39 ERROR]: can't understand this event: 'ptions' (gtp/zestawy.sk, line 1: ptions:')
[18:06:39 ERROR]: There's no player in a function event (gtp/zestawy.sk, line 9: if player has permission "zestaw.2":')
[18:06:39 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (gtp/zestawy.sk, line 16: else:')
[18:06:39 ERROR]: undefined option {@x-min} (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@x-max} (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@z-min} (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@z-max} (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@world} (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: Variables cannot be used here. (gtp/zestawy.sk, line 24: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@x-min} (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@x-max} (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@z-min} (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@z-max} (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:39 ERROR]: undefined option {@world} (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:40 ERROR]: Variables cannot be used here. (gtp/zestawy.sk, line 28: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"')
[18:06:40 INFO]: [Skript] Encountered 16 errors while reloading zestawy.sk!

 

Swój kod poprawiłem, bo faktycznie tabowanie się ze spacjami pomieszało, ale reszta błędów wynika już tylko z tego że źle skopiowałeś.

Odnośnik do komentarza
https://skript.pl/temat/51344-grupowe-tp-z-zestawem/#findComment-316557
Udostępnij na innych stronach

  • 0
10 minut temu, PanMaruda napisał:

Swój kod poprawiłem, bo faktycznie tabowanie się ze spacjami pomieszało, ale reszta błędów wynika już tylko z tego że źle skopiowałeś.

[18:54:39 ERROR]: Can't understand this condition/effect: equip diamond chestplate (gtp/zestawy.sk, line 17: equip diamond chestplate#zbroja dla domyślnego zestawu')
[18:54:39 ERROR]: Can't understand this condition/effect: give 1 stick (gtp/zestawy.sk, line 19: give 1 stick#przedmioty dla domyślnego zestawu')

i dało by sie dorobic tą blokade tp

?

jesteś mega

Odnośnik do komentarza
https://skript.pl/temat/51344-grupowe-tp-z-zestawem/#findComment-316561
Udostępnij na innych stronach

  • 0
3 minuty temu, julekssss napisał:

[18:54:39 ERROR]: Can't understand this condition/effect: equip diamond chestplate (gtp/zestawy.sk, line 17: equip diamond chestplate#zbroja dla domyślnego zestawu')
[18:54:39 ERROR]: Can't understand this condition/effect: give 1 stick (gtp/zestawy.sk, line 19: give 1 stick#przedmioty dla domyślnego zestawu')

daj spacje przed # i dodaj do kogo mają być dane te przedmioty

give 1 stick to {_p)
equip {_p} with diamond chestplate

 

Edytowane przez CoFFeIN04
Odnośnik do komentarza
https://skript.pl/temat/51344-grupowe-tp-z-zestawem/#findComment-316563
Udostępnij na innych stronach

  • 0

super a to że nie teleportuje ? 

i dało by sie do tego dodać gdy gracze zostaną dodani to mają title 3 2 1 start ?

 

 

ogólnie gdy ktoś kliknie w guzik dostaje podwójnie itemy :-0

Glicz

Łączę posty.

Notatka dodana przez Glicz

Odnośnik do komentarza
https://skript.pl/temat/51344-grupowe-tp-z-zestawem/#findComment-316569
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

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

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