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:
| |
| 4 | if {zadanie::czas::%player%} is smaller than 1:
| |
| 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 | |
| 9 | else: | |
| 10 | if {zadanie.zabite.zombie.%player%} is smaller than 20:
| |
| 11 | send "&2[&6Quest&2] &3Postep zadania: &2%{zadanie.zabite.zombie.%player%}%/20" to player
| |
| 12 | else: | |
| 13 | send "&2[&6Quest&2] &cZadanie zaliczone! Otrzymujesz &bjeden diament" to player | |
| 14 | set {zadanie::czas::%player%} to 1440
| |
| 15 | give 1 diamond 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%}
| |
| 20 | every 1 second: | |
| 21 | loop {zadanie::czas::*}:
| |
| 22 | remove 1 from {zadanie::czas::%loop-vaule%} |