Skocz do zawartości
  • 0

Skrypt nie dziala.


Gość Usunięty#6560

Pytanie

Gość Usunięty#6560

Witam, pisze swoj skrypt na serwer RPG i nie dziala mi wysylanie wiadomosci gdy zabije moba , wygląda to normalnie ale nie wysyla.

-Spawn Mobów-
on death of zombie:
	if name of victim is "&cHeretyk Obronca &b[Poziom 1]":		
		wait 5 seconds	
		spawn 1 zombie at {spawn.exp1}
		set spawned zombie's health to 5
		set the spawned zombie's display name to "&cHeretyk Obronca &b[Poziom 1]"
		set spawned zombie's helmet to wooden button
on death of zombie:
	if name of victim is "&cHeretyk Kapitan &b[Poziom 1]":
		wait 5 minutes			
		spawn 1 zombie at {spawn.expboss1}
		set spawned zombie's health to 25
		set the spawned zombie's display name to "&cHeretyk Kapitan &b[Poziom 1]"
		set spawned zombie's helmet to wooden button
on death of zombie:
	if name of victim is "&cHeretyk Obronca &b[Poziom 2]":
		wait 10 seconds			
		spawn 1 zombie at {spawn.exp2}
		set spawned zombie's health to 10
		set the spawned zombie's display name to "&cHeretyk Obronca &b[Poziom 2]"
		set spawned zombie's helmet to wooden button
        
-Komendy do ustawiania miejsca spawnu.-
command /exp1:
	trigger:
		set {spawn.exp1} to location of player
		send "&d&o[XTOPEASY] &2&oUstawiles spawn dla &cHeretyk Obronca &b[Poziom 1]&8."
		spawn 1 zombie at {spawn.exp1}
		set spawned zombie's health to 5
		set the spawned zombie's display name to "&cHeretyk Obronca &b[Poziom 1]"
		set spawned zombie's helmet to wooden button
command /expboss1:
	trigger:
		set {spawn.expboss1} to location of player
		send "&d&o[XTOPEASY] &2&oUstawiles spawn dla &cHeretyk Kapitan &b[Poziom 1]&8."
		spawn 1 zombie at {spawn.expboss1}
		set spawned zombie's health to 25
		set the spawned zombie's display name to "&cHeretyk Kapitan &b[Poziom 1]"
		set spawned zombie's helmet to wooden button
command /exp2:
	trigger:
		set {spawn.exp2} to location of player
		send "&d&o[XTOPEASY] &2&oUstawiles spawn dla &cHeretyk Obronca &b[Poziom 2]&8."
		spawn 1 zombie at {spawn.exp2}
		set spawned zombie's health to 10
		set the spawned zombie's display name to "&cHeretyk Obronca &b[Poziom 2]"
		set spawned zombie's helmet to wooden button

on death of zombie:
	if name of victim is "&cHeretyk Obronca &b[Poziom 1]":
		add 1 to {lexp.%attacker%}
		send "&9&o[XTOPEASY] &2&oZdobyles &e&o1+ exp &c&o%{lexp.%arg 1%}%&3/&c%{lnex.%arg 1%}%." to attacker
on death of zombie:
	if name of victim is "&cHeretyk Kapitan &b[Poziom 1]":
		add 10 to {lexp.%attacker%}
		send "&9&o[XTOPEASY] &2&oZdobyles &e&o10+ exp &c&o%{lexp.%arg 1%}%&3/&c%{lnex.%arg 1%}%." to attacker
on death of zombie:
	if name of victim is "&cHeretyk Obronca &b[Poziom 2]":
		add 3 to {lexp.%attacker%}
		send "&9&o[XTOPEASY] &2&oZdobyles &e&o3+ exp &c&o%{lexp.%arg 1%}%&3/&c%{lnex.%arg 1%}%." to attacker
-Bronie-
1.Startowa
			
			
on damage:
	if attacker is player:
		if attacker is holding wooden pickaxe named "&e&oStary pozdrapywany kilof.":
			set damage to 1
		
			
on damage:
	if attacker is player:
		if attacker is holding diamond sword named "&e&oStary pozdrapywany kilof.":
			if {llev.%attacker%} is bigger than 49:
				spawn 10 of particle heart:1 offset by 0.5, 0.5, 0.5 at attacker
				
				

			
command /startowe:
	permission: *
	trigger:
		give 1 stone hoe of smite 35 and bane of arthropods named "&e&oStary pozdrapywany kilof." with lore "&cAtak&8: &c1" to player










2. Powyginana Gilotyna
on damage:
	if attacker is player:
		if attacker is holding stone hoe named "&9&oPowyginana Gilotyna":
			if {llev.%attacker%} is bigger than 20:
				stop
			else:
				set damage to 0
				send "&c&oTą broń można używać od 21 levelu." to attacker
			
			
on damage:
	if attacker is player:
		if attacker is holding stone hoe named "&9&oPowyginana Gilotyna":
			if {llev.%attacker%} is bigger than 20:
				set damage to 22
		
on damage:
	if attacker is player:
		if attacker is holding stone hoe named "&9&oPowyginana Gilotyna":
			if {llev.%attacker%} is bigger than 20:
				apply poison 2 to the victim for 2 second
			
on damage:
	if attacker is player:
		if attacker is holding diamond sword named "&9&oPowyginana Gilotyna":
			if {llev.%attacker%} is bigger than 20:
				spawn 10 of particle heart:1 offset by 0.5, 0.5, 0.5 at attacker
				
				

			
command /gilotyna1:
	permission: *
	trigger:
		give 1 stone hoe of smite 35 and bane of arthropods named "&9&oPowyginana Gilotyna" with lore "&cAtak&8: &c22|&3Wymagany poziom&8: &b21" to player

 

 

 

Zmiennych nie dalem dlatego bo zmienne mam w kodzie na serwerze ale pisze sobie w TextWrangler skrypt i sobie kopiuje :P

Prosze o szybka pomoc!

Odnośnik do komentarza
https://skript.pl/temat/15209-skrypt-nie-dziala/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

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ę...