Skocz do zawartości
  • 0

Dungeon


AudiIK

Pytanie

Hej potrzebuje skryptu ze jesli kliknie sie na beacon na swiecie dajmy Expowisko1 to nas przeteleportuje na kordy  6 6 6 na swiecie np world, aby moc to zrobic trzeba posiaddac item diament o nazwie nazwa.

w dungu chodzi o to zeby zabic 10 mobow a potem nas przeteleportuje na kolejny etap, kolejnym etapem jest boss, po jego zabiciu za 5 sekund przeteleportuje nas na swiat Expowisko1

Odnośnik do komentarza
https://skript.pl/temat/41478-dungeon/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
26 minut temu, AudiIK napisał:

Hej potrzebuje skryptu ze jesli kliknie sie na beacon na swiecie dajmy Expowisko1 to nas przeteleportuje na kordy  6 6 6 na swiecie np world, aby moc to zrobic trzeba posiaddac item diament o nazwie nazwa.

w dungu chodzi o to zeby zabic 10 mobow a potem nas przeteleportuje na kolejny etap, kolejnym etapem jest boss, po jego zabiciu za 5 sekund przeteleportuje nas na swiat Expowisko1

Dopasuj sobie w skrypcie koordynaty i powinno działać.

on click:
	if player's world is not "Expowisko1":
		stop
	if player's held item is not diamond named "nazwa":
		stop
	remove 1 diamond named "nazwa" from player's inventory
	teleport player to location at 6, 6, 6 in world "world"
	loop 5 times:
		spawn a zombie at location 6, 6, 6 in world "world"
		set name of last spawned zombie to "Zombie"
		spawn a skeleton at location 6, 6, 6 in world "world"
		set name of last spawned zombie to "Szkielet"
	
on death:
	if attacker is not a player:
		stop
	if "%region at attacker%" doesn't contain "dungeon_etap1":
		stop
	if name of victim is "Boss":
		wait 5 seconds
		teleport attacker to location at 100, 100, 100 in world "Expowisko1"
	else:
		add 1 to {dungeon::etap1::zabiteMoby::%attacker%}
		if {dungeon::etap1::zabiteMoby::%attacker%} is 10:
			clear {dungeon::etap1::zabiteMoby::%attacker%}
			teleport attacker to location at 100, 100, 100 in world "world"
			spawn a zombie at location 110, 100, 100 in world "world"
			set name of last spawned zombie to "Boss"
			set tool of last spawned zombie to diamond sword of sharpness 5 and unbreaking 5
			equip last spawned zombie with all diamond armor of protection 5 and unbreaking 5
			apply potion of speed 2 without any particles to last spawned zombie for 999 days
		
on leaving of region "dungeon_etap1":
	if {dungeon::etap1::zabiteMoby::%player%} is not set:
		stop
	clear {dungeon::etap1::zabiteMoby::%player%}

 

Odnośnik do komentarza
https://skript.pl/temat/41478-dungeon/#findComment-259608
Udostępnij na innych stronach

  • 0
Godzinę temu, Kormic napisał:

Dopasuj sobie w skrypcie koordynaty i powinno działać.


on click:
	if player's world is not "Expowisko1":
		stop
	if player's held item is not diamond named "nazwa":
		stop
	remove 1 diamond named "nazwa" from player's inventory
	teleport player to location at 6, 6, 6 in world "world"
	loop 5 times:
		spawn a zombie at location 6, 6, 6 in world "world"
		set name of last spawned zombie to "Zombie"
		spawn a skeleton at location 6, 6, 6 in world "world"
		set name of last spawned zombie to "Szkielet"
	
on death:
	if attacker is not a player:
		stop
	if "%region at attacker%" doesn't contain "dungeon_etap1":
		stop
	if name of victim is "Boss":
		wait 5 seconds
		teleport attacker to location at 100, 100, 100 in world "Expowisko1"
	else:
		add 1 to {dungeon::etap1::zabiteMoby::%attacker%}
		if {dungeon::etap1::zabiteMoby::%attacker%} is 10:
			clear {dungeon::etap1::zabiteMoby::%attacker%}
			teleport attacker to location at 100, 100, 100 in world "world"
			spawn a zombie at location 110, 100, 100 in world "world"
			set name of last spawned zombie to "Boss"
			set tool of last spawned zombie to diamond sword of sharpness 5 and unbreaking 5
			equip last spawned zombie with all diamond armor of protection 5 and unbreaking 5
			apply potion of speed 2 without any particles to last spawned zombie for 999 days
		
on leaving of region "dungeon_etap1":
	if {dungeon::etap1::zabiteMoby::%player%} is not set:
		stop
	clear {dungeon::etap1::zabiteMoby::%player%}

 

a oco chodzi z tym regionem?

Odnośnik do komentarza
https://skript.pl/temat/41478-dungeon/#findComment-259630
Udostępnij na innych stronach

  • 0
Teraz, AudiIK napisał:

a oco chodzi z tym regionem?

A, dobrze, że wspomniałeś o tym. Wysyłam poprawiony kod. Jedyne co musisz zrobić to poprawić niektóre koordynaty oraz ustawić region "dungeon _etap1" w miejscu gdzie jest etap nr 1.

on right click:
	if player's world is not "Expowisko1":
		stop
	if player's held item is not diamond named "nazwa":
		stop
	remove 1 diamond named "nazwa" from player's inventory
	teleport player to location at 6, 6, 6 in world "world"
	loop 5 times:
		spawn a zombie at location 6, 6, 6 in world "world"
		set name of last spawned zombie to "Zombie"
		spawn a skeleton at location 6, 6, 6 in world "world"
		set name of last spawned zombie to "Szkielet"
	
on death:
	if attacker is not a player:
		stop
	if name of victim is "Boss":
		wait 5 seconds
		teleport attacker to location at 100, 100, 100 in world "Expowisko1"
	else if name of victim is "Zombie" or "Szkielet":
		add 1 to {dungeon::etap1::zabiteMoby::%attacker%}
		if {dungeon::etap1::zabiteMoby::%attacker%} is 10:
			clear {dungeon::etap1::zabiteMoby::%attacker%}
			teleport attacker to location at 100, 100, 100 in world "world"
			spawn a zombie at location 110, 100, 100 in world "world"
			set name of last spawned zombie to "Boss"
			set tool of last spawned zombie to diamond sword of sharpness 5 and unbreaking 5
			equip last spawned zombie with all diamond armor of protection 5 and unbreaking 5
			apply potion of speed 2 without any particles to last spawned zombie for 999 days
		
on leaving of region "dungeon_etap1":
	if {dungeon::etap1::zabiteMoby::%player%} is not set:
		stop
	clear {dungeon::etap1::zabiteMoby::%player%}

 

Odnośnik do komentarza
https://skript.pl/temat/41478-dungeon/#findComment-259631
Udostępnij na innych stronach

  • 0
12 minut temu, Kormic napisał:

A, dobrze, że wspomniałeś o tym. Wysyłam poprawiony kod. Jedyne co musisz zrobić to poprawić niektóre koordynaty oraz ustawić region "dungeon _etap1" w miejscu gdzie jest etap nr 1.


on right click:
	if player's world is not "Expowisko1":
		stop
	if player's held item is not diamond named "nazwa":
		stop
	remove 1 diamond named "nazwa" from player's inventory
	teleport player to location at 6, 6, 6 in world "world"
	loop 5 times:
		spawn a zombie at location 6, 6, 6 in world "world"
		set name of last spawned zombie to "Zombie"
		spawn a skeleton at location 6, 6, 6 in world "world"
		set name of last spawned zombie to "Szkielet"
	
on death:
	if attacker is not a player:
		stop
	if name of victim is "Boss":
		wait 5 seconds
		teleport attacker to location at 100, 100, 100 in world "Expowisko1"
	else if name of victim is "Zombie" or "Szkielet":
		add 1 to {dungeon::etap1::zabiteMoby::%attacker%}
		if {dungeon::etap1::zabiteMoby::%attacker%} is 10:
			clear {dungeon::etap1::zabiteMoby::%attacker%}
			teleport attacker to location at 100, 100, 100 in world "world"
			spawn a zombie at location 110, 100, 100 in world "world"
			set name of last spawned zombie to "Boss"
			set tool of last spawned zombie to diamond sword of sharpness 5 and unbreaking 5
			equip last spawned zombie with all diamond armor of protection 5 and unbreaking 5
			apply potion of speed 2 without any particles to last spawned zombie for 999 days
		
on leaving of region "dungeon_etap1":
	if {dungeon::etap1::zabiteMoby::%player%} is not set:
		stop
	clear {dungeon::etap1::zabiteMoby::%player%}

 

blad z tym

on leaving of region "dungeon_etap1": jaki cant understand event

Odnośnik do komentarza
https://skript.pl/temat/41478-dungeon/#findComment-259636
Udostępnij na innych stronach

  • 0
5 minut temu, AudiIK napisał:

blad z tym

on leaving of region "dungeon_etap1": jaki cant understand event

Dlatego wyskakuje błąd, gdyż nie ustawiłeś regionu. Obejmij tym regionem pomieszczenie/obszar, w którym będzie można zabijać te moby.

Odnośnik do komentarza
https://skript.pl/temat/41478-dungeon/#findComment-259638
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ę...