Skocz do zawartości
  • 0

czy ten skrypt jest prawidlowy


Pytanie

Skrypt ten ma sprawic ze kiedy gracz kliknie ppm na nazwany soul sand on usunie sie i zespawni customowego moba

pytanie czy jest on poprawny

On rightclick of soul sand named "&4Nekromanta":
    Remove soul sand named "&4Nekromanta" from player's inventory
    summon skeleton named "&4Nekromanta" 
    set last spawned entity health    to 200
    heal last spawned entity
    set last spawned entity helmet to diamond helmet

dawno nie pisalem tego typu rzeczy a narazie nie mam serwera by to sprawdzic

Edytowane przez xAxee
xAxee

Wstawiam w code

Notatka dodana przez xAxee

Odnośnik do komentarza
https://skript.pl/temat/40711-czy-ten-skrypt-jest-prawidlowy/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on rightclick with soul sand:
	if name of player's tool is "&4Nekromanta":
		remove 1 soul sand named "&4Nekromanta" from player's inventory
		spawn 1 skeleton 1 meters above player's location
		set name of last spawned skeleton to "&4Nekromanta"
		heal last spawned skeleton
		set last spawned skeleton health to 200
		equip last spawned skeleton with diamond helmet

 

Odnośnik do komentarza
https://skript.pl/temat/40711-czy-ten-skrypt-jest-prawidlowy/#findComment-253810
Udostępnij na innych stronach

  • 0
on right click:
	if player is holding soul sand named "&4Nekromanta":
		cancel event
		remove soul sand named "&4Nekromanta" from player's inventory
		spawn skeleton at location of player
		set name of last spawned entity to "&4Nekromanta"
		set health of last spawned entity to 200
		heal last spawned entity
		set helmet of last spawned entity to diamond helmet

Testowane - działa :)

Odnośnik do komentarza
https://skript.pl/temat/40711-czy-ten-skrypt-jest-prawidlowy/#findComment-253811
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ę...