View difference between Paste ID: ZQSYAqez and Qbyk331r
SHOW: | | - or go back to the newest paste.
1
command /zadanie:
2
	if player has permission "zadanie.zombie":
3-
		if {zadanie.aktywne.%player%} is false:
3+
		if {zadanie::czas::%player%} is smaller than 1:
4-
			if {zadanie::czas::%player%} is smaller than 1:
4+
			if {zadanie.aktywne.%player%} is false:
5
				send "&2[&6Quest&2] &3Zabij 20 zombie aby otrzymac &bjeden diament&3!" to player
6
				set {zadanie.aktywne.%player%} to true
7
			else:
8-
				send "&2[&6Quest&2] &3Musisz jeszcze troche poczekac zanim znowy wezmiesz tego Questa" to player
8+
				if {zadanie.zabite.zombie.%player%} is smaller than 20:
9
					send "&2[&6MSG&2] &3Postep zadania: &2%{zadanie.zabite.zombie.%player%}%/20" to player
10-
			if {zadanie.zabite.zombie.%player%} is smaller than 20:
10+
				else:
11-
				send "&2[&6Quest&2] &3Postep zadania: &2%{zadanie.zabite.zombie.%player%}%/20" to player
11+
					send "&2[&6MSG&2] &3Zadanie zaliczone! Otrzymujesz &bjeden diament&3!" to player
12
					set {zadanie::czas::%player%} to 1440
13-
				send "&2[&6Quest&2] &cZadanie zaliczone! Otrzymujesz &bjeden diament" to player
13+
					give 1 diamond to player
14-
				set {zadanie::czas::%player%} to 1440
14+
15-
				give 1 diamond to player
15+
			send "&2[&6MSG&2] &3Musisz jeszcze poczekac zanim znowu wezmiesz tego Qesta!" to player
16
on death of  zombie:
17
	if attacker is player:
18
		if {zadanie.aktywne.%player%} is true:
19-
			add to {zadanie.zabite.zombie.%player%}
19+
			add 1 to {zadanie.zabite.zombie.%player%}
20
every 1 second:
21
	loop {zadanie::czas::*}:
22
		remove 1 from {zadanie::czas::%loop-vaule%}