Skocz do zawartości
  • 0

problem z victim


MisiolPl

Pytanie

witam mam problem w pisze:

 

victim is not an stack

 

kod jest taki:

variables:
    {poziom.%player%} = 0
    {monety.%player%} = 0
    {exp.%player%} = 0
on chat:
        set the player's display name to "&8[&6Poziom %{poziom.%player%}%&8] &b&l%player%"
on death:
    if victim is wolf:
        if name of victim is "&6Młody wilk &7[&6lvl 1 &7]":
            add 0.25 to {poziom.%attacker%}
            send "&6Zabiles Moba +25expa"
on death:
    if victim is cavespider:
        if name of victim is "&6Lesny straznik &8[&4&lBoss&8]":
            add 2 to {poziom.%attacker%}
            send "&6Zabiles Moba +25expa"
            send "&6Gracz %attacker% zabil Bossa Lesnego straznika!"
on death:
    if victim is spider:
            if name of victim is "&6Obronca Lasu &8[&6Lvl 1&8]":
            add 0.50 to {poziom.%attacker%}
            send "&6Zabiles Moba +25expa"
on death:
    if victim is wolf:
        if name of victim is "&6Wilcza Krolowa &8[&4&lBoss&8]":
            add 1 to {poziom.%attacker%}
            send "&6Zabiles bossa! &2+1lvl"
            execute console command "bc &6Gracz %attacker% zabil &3Wilczą królową"
on death:
    if victim is skeleton:
        if name of victim is "&6Snieżny szkielet &8[&6Poziom 1&8]"
            add 0.75 to {poziom.%attacker%}
            send "&6Zabiles moba"
on death:
    if victim is IronGolem:
            if name of victim is "&f&lYeti &8[&4&lBoss&8]"
            add 5 to {poziom.%attacker%}
            execute console command "bc &6Gracz %attacker% zabil &3Yetiego!"

Odnośnik do komentarza
https://skript.pl/temat/21720-problem-z-victim/
Udostępnij na innych stronach

11 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Podałbyś dokładny błąd, linię z kodu etc, łatwiej zawsze się szuka wtedy bo victima masz tutaj więcej niż w 1 linii ;) 

 

Zmień: IF VICTIM IS WOLF - etc na IF VICTIM IS A WOLF 

Jeżeli ofiara jest wilk, to odnosi się w SK do przedmiotu, liczby - dlatego pisze błąd

Jeżeli ofiara jest wilkiem - to jest poprawna wersja <<< If victim is a wolf

Odnośnik do komentarza
https://skript.pl/temat/21720-problem-z-victim/#findComment-147956
Udostępnij na innych stronach

  • 0
2 minuty temu, MisiolPl napisał:

teraz mam a krolowa is not a type

 

Zmieniłeś wszystkie if victim is [Mob] na > if victim is a [Mob]

Druga sprawa do eventów damage, death wykorzystuj "to [Victim/attacker] >>   send "&6Zabiles bossa! &2+1lvl" to attacker bo skrypt nie wyśle tej wiadomości nikomu

Co do królowej nie mam pomysłu, wszystko wygląda dobrze, sprawdź linie przed i po tym błędzie możliwe że tam coś się popsuło

Odnośnik do komentarza
https://skript.pl/temat/21720-problem-z-victim/#findComment-147961
Udostępnij na innych stronach

  • 0
variables:
	{poziom.%player%} = 0
	{monety.%player%} = 0
	{exp.%player%} = 0
on chat:
	set the player's display name to "&8[&6Poziom %{poziom.%player%}%&8] &b&l%player%"
on death:
	if victim is a wolf:
		if victim's name is "&6Młody wilk &7[&6lvl 1 &7]":
			add 0.25 to {poziom.%attacker%}
			send "&6Zabiles Moba +25expa" to attacker
on death:
	if victim is a cave spider:
		if victim's name is "&6Lesny straznik &8[&4&lBoss&8]":
			add 2 to {poziom.%attacker%}
			send "&6Zabiles Moba +25expa" to attacker
			send "&6Gracz %attacker% zabil Bossa Lesnego straznika!" to all players
on death:
	if victim is a spider:
		if victim's name is "&6Obronca Lasu &8[&6Lvl 1&8]":
			add 0.50 to {poziom.%attacker%}
			send "&6Zabiles Moba +25expa" to attacker
on death:
	if victim is a wolf:
		if victim's name is "&6Wilcza Krolowa &8[&4&lBoss&8]":
			add 1 to {poziom.%attacker%}
			send "&6Zabiles bossa! &2+1lvl" to attacker
			execute console command "bc &6Gracz %attacker% zabil &3Wilczą królową"
on death:
	if victim is a skeleton:
		if victim's name is "&6Snieżny szkielet &8[&6Poziom 1&8]":
			add 0.75 to {poziom.%attacker%}
			send "&6Zabiles moba" to attacker
on death:
	if victim is a iron golem:
		if victim's name is "&f&lYeti &8[&4&lBoss&8]":
			add 5 to {poziom.%attacker%}
			execute console command "bc &6Gracz %attacker% zabil &3Yetiego!"

 

Edytowane przez Polski Sześcian
Teraz musi być dobrze :D
Odnośnik do komentarza
https://skript.pl/temat/21720-problem-z-victim/#findComment-147962
Udostępnij na innych stronach

  • 0
variables:
	{poziom.%player%} = 0
	{monety.%player%} = 0
	{exp.%player%} = 0
on chat:
	set the player's display name to "&8[&6Poziom %{poziom.%player%}%&8] &b&l%player%"
on death:
	if victim is a wolf:
		if victim's name is "&6Młody wilk &7[&6lvl 1 &7]":
			add 0.25 to {poziom.%attacker%}
			send "&6Zabiles Moba +25expa" to attacker
on death:
	if victim is a cave spider:
		if victim's name is "&6Lesny straznik &8[&4&lBoss&8]":
			add 2 to {poziom.%attacker%}
			send "&6Zabiles Moba +25expa" to attacker
			send "&6Gracz %attacker% zabil Bossa Lesnego straznika!" to all players
on death:
	if victim is a spider:
		if victim's name is "&6Obronca Lasu &8[&6Lvl 1&8]":
			add 0.50 to {poziom.%attacker%}
			send "&6Zabiles Moba +25expa" to attacker
on death:
	if victim is a wolf:
		if victim's name is "&6Wilcza Krolowa &8[&4&lBoss&8]":
			add 1 to {poziom.%attacker%}
			send "&6Zabiles bossa! &2+1lvl" to attacker
			execute console command "bc &6Gracz %attacker% zabil &3Wilczą królową"
on death:
	if victim is a skeleton:
		if victim's name is "&6Snieżny szkielet &8[&6Poziom 1&8]":
			add 0.75 to {poziom.%attacker%}
			send "&6Zabiles moba" to attacker
on death:
	if victim is a iron golem:
		if victim's name is "&f&lYeti &8[&4&lBoss&8]":
			add 5 to {poziom.%attacker%}
			execute console command "bc &6Gracz %attacker% zabil &3Yetiego!"

 

Edytowane przez Polski Sześcian
Odnośnik do komentarza
https://skript.pl/temat/21720-problem-z-victim/#findComment-147964
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ę...