Date: 2017/09/06 05:00:53 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ogloszenieOX:
type: format
format: <&6><&l>[OX]<&co> <&2><&l><text>
odmowaOX:
type: format
format: <&4><text>
OX_event:
type: command
name: ox
description: komenda do wywolywania pytan do eventu OX
usage: /ox
debug: true
script:
- if !<player.has_permission[essentials.god]> {
- narrate format:odmowaOX "Nie masz uprawnien do uzywania tej komendy."
- queue clear } else {
- if <c.args.last.is[==].to[tak].OR[<c.args.last.is[==].to[nie]>]||false> {
- narrate format:ogloszenieOX"<c.args.exclude[<c.args.last>].space_separated>" targets:<w@eventy.players>
- wait 4s
- narrate format:ogloszenieOX"Wybierz strone zielona lub czerwona." targets:<w@eventy.players>
- wait 2s
- narrate format:ogloszenieOX "5" targets:<w@eventy.players>
- wait 2s
- narrate format:ogloszenieOX "4" targets:<w@eventy.players>
- wait 2s
- narrate format:ogloszenieOX "3" targets:<w@eventy.players>
- wait 2s
- narrate format:ogloszenieOX "2" targets:<w@eventy.players>
- wait 2s
- narrate format:ogloszenieOX "1" targets:<w@eventy.players>
- wait 2s
- narrate format:ogloszenieOX "0" targets:<w@eventy.players>
- if <c.args.last.is[==].to[tak]> {
- modifyblock cu@biale li@air
- modifyblock cu@bariera1 li@barrier
- modifyblock cu@bariera2 li@barrier
- wait 4s
- narrate format:ogloszenieOX "Poprawna odpowiedz to..." targets:<w@eventy.players>
- wait 3s
- narrate format:ogloszenieOX "TAK" targets:<w@eventy.players>
- modifyblock cu@czerwone li@air
- wait 5s
- modifyblock cu@czerwone li@red_clay
- modifyblock cu@biale li@stained_clay
- ^modifyblock cu@bariera1 li@air
- ^modifyblock cu@bariera2 li@air
} else {
- modifyblock cu@biale li@air
- modifyblock cu@bariera1 li@barrier
- modifyblock cu@bariera2 li@barrier
- wait 4s
- narrate format:ogloszenieOX "Poprawna odpowiedz to..." targets:<w@eventy.players>
- wait 3s
- narrate format:ogloszenieOX "NIE" targets:<w@eventy.players>
- modifyblock cu@zielone li@air
- wait 5s
- modifyblock cu@zielone li@green_clay
- modifyblock cu@biale li@stained_clay
- ^modifyblock cu@bariera1 li@air
- ^modifyblock cu@bariera2 li@air
- queue clear
}
} else {
- narrate format:ogloszenieOX "Musisz podac odpowiedz tak/nie"
- queue clear
} }