Skocz do zawartości
  • 0

Skrypt na auto spawn mobow, nie do końca działa


Pytanie

Witam, oto ten skrypt, nie działa do końca, znaczy... działa, ale tylko przy ustawieniu pierwszego respawnu mobow, (SetSpawnMob bez liczby)

Proszę o pomoc.

options:
    exp: 50 #Tutaj dajesz ilosc exp
command /SetSpawnMob [<number>]:
    permission: set.spawnmoba
    permission message: &4Nie masz do tego uprawnien...
    trigger:
        arg 1 is set:
            if {ZombieBoss::%number-arg%} is not set:
                add 1 to {bossy}
                set {ZombieBoss::%number-arg%} to location of player
every 60 second:
    chance of 100%:
        loop {bossy} times:
            spawn 1 zombie at {ZombieBoss::%loop-number%}
            set the spawned zombie's display name to "&6Lvl. &61. &2Zombie &2YO"
            set the last spawned entity's max health to 20
            heal the last spawned entity    
            set tool of last spawned entity to wooden sword of unbreaking 10
on death:
    if victim is zombie:
        if name of victim is "&2Lvl.&01 &2Zombie YO":
            chance of 100%:
                if victim can hold 1 chest named "nazwa":
                    give {@exp} xp to the victim
                    add 1 chest named "nazwa" to victim
            chance of 5%:
                if victim can hold 2 chest named "Nazwa":
                    give {@exp} xp to the victim
                    add 2 chest named "Nazwa" to victim

Za wszystkie odp. z góry dzięki! 

Odnośnik do komentarza
https://skript.pl/temat/22098-skrypt-na-auto-spawn-mobow-nie-do-ko%C5%84ca-dzia%C5%82a/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /setspawnmob [<number>]:
	permission: set.spawnmoba
	permission message: &4Nie masz do tego uprawnien...
	trigger:
		if arg 1 is "1":
			set {spawn.mob.1} to location of player
			send "Ustawiono spawn 1"
			stop
		else:
			i tu dajesz to samo co wyżej od if arg tylko że argumenty ustawiasz na 2,3,4 itp ;) bo żebyś mógł ustawiać swój to musisz zapisać to w jakimś pliku, a po co sobie utrudniać sprawę
			
every 60 seconds:
	if {spawn.mob.1} is set:
		spawn 1 zombie at {spawn.mob.1}
		set the spawned zombie's display name to "&6Lvl. &61. &2Zombie &2YO"
		set the last spawned entity's max health to 20
		heal the last spawned entity
		set tool of last spawned entity to wooden sword of unbreaking 10
	else:
		i tu robisz dokladnie to samo :) tylko ze już z if {spawn.mob.1}
		
		
on death:
	if victim is zombie:
		if name of victim is "&2Lvl.&01 &2Zombie YO":
			chance of 100%:
				if victim can hold 1 chest named "nazwa":
					give {@exp} xp to the victim
					add 1 chest named "nazwa" to victim
			chance of 5%:
				if victim can hold 2 chest named "Nazwa":
					give {@exp} xp to the victim
					add 2 chest named "Nazwa" to victim

 

Edytowane przez UltimJPlay |
Odnośnik do komentarza
https://skript.pl/temat/22098-skrypt-na-auto-spawn-mobow-nie-do-ko%C5%84ca-dzia%C5%82a/#findComment-150871
Udostępnij na innych stronach

  • 0
13 godzin temu, UltimJPlay | napisał:

command /setspawnmob [<number>]:
	permission: set.spawnmoba
	permission message: &4Nie masz do tego uprawnien...
	trigger:
		if arg 1 is "1":
			set {spawn.mob.1} to location of player
			send "Ustawiono spawn 1"
			stop
		else:
			i tu dajesz to samo co wyżej od if arg tylko że argumenty ustawiasz na 2,3,4 itp ;) bo żebyś mógł ustawiać swój to musisz zapisać to w jakimś pliku, a po co sobie utrudniać sprawę
			
every 60 seconds:
	if {spawn.mob.1} is set:
		spawn 1 zombie at {spawn.mob.1}
		set the spawned zombie's display name to "&6Lvl. &61. &2Zombie &2YO"
		set the last spawned entity's max health to 20
		heal the last spawned entity
		set tool of last spawned entity to wooden sword of unbreaking 10
	else:
		i tu robisz dokladnie to samo :) tylko ze już z if {spawn.mob.1}
		
		
on death:
	if victim is zombie:
		if name of victim is "&2Lvl.&01 &2Zombie YO":
			chance of 100%:
				if victim can hold 1 chest named "nazwa":
					give {@exp} xp to the victim
					add 1 chest named "nazwa" to victim
			chance of 5%:
				if victim can hold 2 chest named "Nazwa":
					give {@exp} xp to the victim
					add 2 chest named "Nazwa" to victim

 

Dzięki :D Prawie działa... ale 2 errory

options:
    exp: 50
command /setspawnmobow [<number>]:
    permission: set.spawnmoba
    permission message: &4Nie masz do tego uprawnien...
    trigger:
        if arg 1 is "1":
            set {spawn.mob.1} to location of player
            send "Ustawiono spawn 1"
            stop
            else:
            if arg 1 is "2":
                set {spawn.mob.2} to location of player
                send "Ustawiono spawn 2"
                stop
                else:
                if arg 1 is "3":
                    set {spawn.mob.3} to location of player
                    send "Ustawiono spawn 3"
                    stop
                    else:
                    if arg 1 is "4":
                        set {spawn.mob.4} to location of player
                        send "Ustawiono spawn 4"
                        stop
                            else:
every 60 seconds:
    if {spawn.mob.2} is set:
        spawn 1 zombie at {spawn.mob.1}
        set the spawned zombie's display name to "&6Lvl. &61. &2Zombie &2YO"
        set the last spawned entity's max health to 20
        heal the last spawned entity
        set tool of last spawned entity to wooden sword of unbreaking 10
    else:
every 60 seconds:
    if {spawn.mob.3} is set:
        spawn 1 zombie at {spawn.mob.2}
        set the spawned zombie's display name to "&6Lvl. &61. &2Zombie &2YO"
        set the last spawned entity's max health to 20
        heal the last spawned entity
        set tool of last spawned entity to wooden sword of unbreaking 10
    else:
every 60 seconds:
    if {spawn.mob.4} is set:
        spawn 1 zombie at {spawn.mob.3}
        set the spawned zombie's display name to "&6Lvl. &61. &2Zombie &2YO"
        set the last spawned entity's max health to 20
        heal the last spawned entity
        set tool of last spawned entity to wooden sword of unbreaking 10
    else:
on death:
    if victim is zombie:
        if name of victim is "&2Lvl.&01 &2Zombie YO":
            chance of 100%:
                if victim can hold 1 chest named "nazwa":
                    give {@exp} xp to the victim
                    add 1 chest named "nazwa" to victim

 

Odnośnik do komentarza
https://skript.pl/temat/22098-skrypt-na-auto-spawn-mobow-nie-do-ko%C5%84ca-dzia%C5%82a/#findComment-150922
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ę...