Date: 2016/04/06 07:50:55 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
CapturePoints:
type: world
events:
on player enters CapturePoint:
- narrate "<&c><&l>[Conquest] <&6>You've entered a capture point!"
on player exits CapturePoint:
- narrate "<&c><&l>[Conquest] <&6>You've left a capture point!"
on player enters ConquestZone:
- narrate "<&c><&l>[Conquest] <&6>You've entered the Conquest Zone!"
- sidebar set "title:<&c><&n><&l>Conquest" "values:<&7><&m>----------------------------|<&6>Rounds: <&e><server.flag[RoundCounter].round>/6|<&6>Time left: <&e><server.flag[Countdown].round>|<&6>Objective: <&e><server.flag[Objective]>|<&7><&m>----------------------------<&0>|<&a>Aloreh: <&e><server.flag[AlorehCount].round>|<&a>Ar-Selukk: <&e><server.flag[ArSelukkCount].round>|<&a>Vrovona: <&e><server.flag[VrovonaCount].round>|<&a>Ithero: <&e><server.flag[ItheroCount].round>|<&a>Roreg Logh: <&e><server.flag[RoregCount].round>|<&a>The Daggerlands: <&e><server.flag[DaggerlandsCount].round>" "start:10" "increment:-1"
on player exits ConquestZone:
- narrate "<&c><&l>[Conquest] <&6>You've left the Conquest Zone!"
- sidebar remove
on player kills player in ConquestZone:
- flag player KDRDeath:+:1
- flag player KDRStreak:0
- flag <context.damager> KDRKill:+:1
- flag <context.damager> KDRStreak:+:1
LocationPicker:
type: task
script:
- choose <server.flag[Location]>:
- case "1":
- note cu@524,50,663,CPM|507,85,686,CPM as:CapturePoint
- flag server Objective:Village
- sidebar set "lines:4" "values:<&6>Objective: <&e><server.flag[Objective]>" "players:<cu@ConquestZone.list_players>"
- narrate "<&c><&l>[Conquest] <&6>Capture the village! X:516 Y:70 Z:674" "targets:<cu@ConquestZone.list_players>"
- modifyblock <l@372,108,534,CPM> minecraft:stone
- modifyblock <l@516,70,674,CPM> minecraft:stained_glass:0
- modifyblock <l@575,84,418,CPM> minecraft:stone
- flag server Location:2
- case "2":
- note cu@390,100,526,CPM|358,120,545,CPM as:CapturePoint
- flag server Objective:Keep
- sidebar set "lines:4" "values:<&6>Objective: <&e><server.flag[Objective]>" "players:<cu@ConquestZone.list_players>"
- narrate "<&c><&l>[Conquest] <&6>Capture the keep! X:372 Y:108 Z:534" "targets:<cu@ConquestZone.list_players>"
- modifyblock <l@372,108,534,CPM> minecraft:stained_glass:0
- modifyblock <l@516,70,674,CPM> minecraft:stone
- modifyblock <l@575,84,418,CPM> minecraft:stone
- flag server Location:3
- case "3":
- note cu@551,70,438,CPM|592,105,398,CPM as:CapturePoint
- flag server Objective:Shrine
- sidebar set "lines:4" "values:<&6>Objective: <&e><server.flag[Objective]>" "players:<cu@ConquestZone.list_players>"
- narrate "<&c><&l>[Conquest] <&6>Capture the shrine! X:575 Y:84 Z:418" "targets:<cu@ConquestZone.list_players>"
- modifyblock <l@372,108,534,CPM> minecraft:stone
- modifyblock <l@516,70,674,CPM> minecraft:stone
- modifyblock <l@575,84,418,CPM> minecraft:stained_glass:0
- flag server Location:1
ConquestManager:
type: task
script:
- note cu@960,5,900,CPM|80,200,100,CPM as:ConquestZone
- sidebar set "title:<&c><&n><&l>Conquest" "values:<&7><&m>----------------------------|<&6>Rounds: <&e><server.flag[RoundCounter].round>/6|<&6>Time left: <&e><server.flag[Countdown].round>|<&6>Objective: <&e><server.flag[Objective]>|<&7><&m>----------------------------<&0>|<&a>Aloreh: <&e><server.flag[AlorehCount].round>|<&a>Ar-Selukk: <&e><server.flag[ArSelukkCount].round>|<&a>Vrovona: <&e><server.flag[VrovonaCount].round>|<&a>Ithero: <&e><server.flag[ItheroCount].round>|<&a>Roreg Logh: <&e><server.flag[RoregCount].round>|<&a>The Daggerlands: <&e><server.flag[DaggerlandsCount].round>" "start:10" "increment:-1" "players:<cu@ConquestZone.list_players>"
- modifyblock <l@-1067,125,-1063,CPM> minecraft:stained_glass:0
- flag server RoundCounter:0
- flag server AlorehCount:0
- flag server RoregCount:0
- flag server ArSelukkCount:0
- flag server VrovonaCount:0
- flag server ItheroCount:0
- flag server DaggerlandsCount:0
- announce "<&c><&l>[Conquest] <&6>The capture point will unlock in 30 seconds!"
- wait 15s
- announce "<&c><&l>[Conquest] <&6>The capture point will unlock in 15 seconds!"
- wait 15s
- announce "<&c><&l>[Conquest] <&6>The fight for the capture point has started!"
- flag server Location:<util.random.int[1].to[3]>
- repeat 30 {
- run LocationPicker
- flag server Countdown:150
- repeat 30 {
- wait 1s
- ^flag server Countdown:-:1
- ^sidebar set "lines:3" "values:<&6>Time left: <&e><server.flag[Countdown].round>" "players:<cu@ConquestZone.list_players>"
}
- actionbar "<&a><&l>Points will now be given out every 15 seconds!" targets:<cu@CaptureZone.list_players> format:ServerChat
- narrate "<&c><&l>[Conquest] <&6>Points will now be given out every 15 seconds!" targets:<cu@CaptureZone.list_players>
- repeat 8 {
- repeat 3 {
- wait 1s
- actionbar "<&a>20% - <&2><&l>||||||||||||<&6><&l>||||||||||||||||||||||||||||||||||||||||||||||||<&a> - 20%" targets:<cu@CaptureZone.list_players> format:ServerChat
- ^flag server Countdown:-:1
- ^sidebar set "lines:3" "values:<&6>Time left: <&e><server.flag[Countdown].round>" "players:<cu@ConquestZone.list_players>"
- repeat 3 {
- wait 1s
- actionbar "<&a>40% - <&2><&l>||||||||||||||||||||||||<&6><&l>||||||||||||||||||||||||||||||||||||<&a> - 40%" targets:<cu@CaptureZone.list_players> format:ServerChat
- ^flag server Countdown:-:1
- ^sidebar set "lines:3" "values:<&6>Time left: <&e><server.flag[Countdown].round>" "players:<cu@ConquestZone.list_players>"
- repeat 3 {
- wait 1s
- actionbar "<&a>60% - <&2><&l>||||||||||||||||||||||||||||||||||||<&6><&l>||||||||||||||||||||||||<&a> - 60%" targets:<cu@CaptureZone.list_players> format:ServerChat
- ^flag server Countdown:-:1
- ^sidebar set "lines:3" "values:<&6>Time left: <&e><server.flag[Countdown].round>" "players:<cu@ConquestZone.list_players>"
- repeat 3 {
- wait 1s
- actionbar "<&a>80% - <&2><&l>||||||||||||||||||||||||||||||||||||||||||||||||<&6><&l>||||||||||||<&a> - 80%" targets:<cu@CaptureZone.list_players> format:ServerChat
- ^flag server Countdown:-:1
- ^sidebar set "lines:3" "values:<&6>Time left: <&e><server.flag[Countdown].round>" "players:<cu@ConquestZone.list_players>"
- repeat 3 {
- wait 1s
- actionbar "<&a>100% - <&2><&l>||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||<&a> - 100%" targets:<cu@CaptureZone.list_players> format:ServerChat
- ^flag server Countdown:-:1
- ^sidebar set "lines:3" "values:<&6>Time left: <&e><server.flag[Countdown].round>" "players:<cu@ConquestZone.list_players>"
}
- ^run CapturingProcess
}
- flag server RoundCounter:+:1
- actionbar "<&6><&l>Round <server.flag[RoundCounter].round> is over!" targets:<cu@CapturePoint.list_players>
- narrate "<&c><&l>[Conquest] <&6>Round <server.flag[RoundCounter].round> is over!" targets:<cu@CapturePoint.list_players>
- sidebar set "title:<&c><&n><&l>Conquest" "values:<&7><&m>----------------------------|<&6>Rounds: <&e><server.flag[RoundCounter].round>/6|<&6>Time left: <&e><server.flag[Countdown].round>|<&6>Objective: <&e><server.flag[Objective]>|<&7><&m>----------------------------<&0>|<&a>Aloreh: <&e><server.flag[AlorehCount].round>|<&a>Ar-Selukk: <&e><server.flag[ArSelukkCount].round>|<&a>Vrovona: <&e><server.flag[VrovonaCount].round>|<&a>Ithero: <&e><server.flag[ItheroCount].round>|<&a>Roreg Logh: <&e><server.flag[RoregCount].round>|<&a>The Daggerlands: <&e><server.flag[DaggerlandsCount].round>" "start:10" "increment:-1" "players:<cu@ConquestZone.list_players>"
}
- run CapturingResult
- wait 2s
- flag server RoundCounter:0
- flag server AlorehCount:0
- flag server RoregCount:0
- flag server ArSelukkCount:0
- flag server VrovonaCount:0
- flag server ItheroCount:0
- flag server DaggerlandsCount:0
CapturingProcess:
type: task
script:
- foreach <cu@capturepoint.list_players> {
- if <def[Value].has_flag[Aloreh]> {
- flag server AlorehCount:+:1
}
else if <def[Value].has_flag[Roreg]> {
- flag server RoregCount:+:1
}
else if <def[Value].has_flag[Vrovona]> {
- flag server VrovonaCount:+:1
}
else if <def[Value].has_flag[ArSelukk]> {
- flag server ArSelukkCount:+:1
}
else if <def[Value].has_flag[Daggerlands]> {
- flag server DaggerlandsCount:+:1
}
else if <def[Value].has_flag[Ithero]> {
- flag server ItheroCount:+:1
}
}
- sidebar set "title:<&c><&n><&l>Conquest" "values:<&7><&m>----------------------------|<&6>Rounds: <&e><server.flag[RoundCounter].round>/6|<&6>Time left: <&e><server.flag[Countdown].round>|<&6>Objective: <&e><server.flag[Objective]>|<&7><&m>----------------------------<&0>|<&a>Aloreh: <&e><server.flag[AlorehCount].round>|<&a>Ar-Selukk: <&e><server.flag[ArSelukkCount].round>|<&a>Vrovona: <&e><server.flag[VrovonaCount].round>|<&a>Ithero: <&e><server.flag[ItheroCount].round>|<&a>Roreg Logh: <&e><server.flag[RoregCount].round>|<&a>The Daggerlands: <&e><server.flag[DaggerlandsCount].round>" "start:10" "increment:-1" "players:<cu@ConquestZone.list_players>"
CapturingResult:
type: task
script:
- foreach li@AlorehCount|VrovonaCount|ItheroCount|DaggerlandsCount|ArSelukkCount|RoregCount {
- if <server.flag[<def[value]>]||0> >= <server.flag[<def[highest]||<def[value]>>]||0> {
- define highest <def[value]>
}
}
- title "title:<&c><&l><def[highest].before[count]> wins!" "subtitle:<&6>With a total of dank amount of points.>" targets:<cu@ConquestZone.list_players>
- announce "<&c><&l>[Conquest] <&6><def[highest].before[count]> has conquered the capture point!"
- note remove as:CapturePoint
- choose "<def[highest]>":
- case "VrovonaCount":
- modifyblock <l@372,108,534,CPM> minecraft:stained_glass:1
- modifyblock <l@516,70,674,CPM> minecraft:stained_glass:1
- modifyblock <l@575,84,418,CPM> minecraft:stained_glass:1
- flag server VrovonaWins:+:1
- case "ItheroCount":
- modifyblock <l@372,108,534,CPM> minecraft:stained_glass:9
- modifyblock <l@516,70,674,CPM> minecraft:stained_glass:9
- modifyblock <l@575,84,418,CPM> minecraft:stained_glass:9
- flag server ItheroWins:+:1
- case "AlorehCount":
- modifyblock <l@372,108,534,CPM> minecraft:stained_glass:11
- modifyblock <l@516,70,674,CPM> minecraft:stained_glass:11
- modifyblock <l@575,84,418,CPM> minecraft:stained_glass:11
- flag server AlorehWins:+:1
- case "ArSelukkCount":
- modifyblock <l@372,108,534,CPM> minecraft:stained_glass:4
- modifyblock <l@516,70,674,CPM> minecraft:stained_glass:4
- modifyblock <l@575,84,418,CPM> minecraft:stained_glass:4
- flag server ArSelukkWins:+:1
- case "DaggerlandsCount":
- modifyblock <l@372,108,534,CPM> minecraft:stained_glass:14
- modifyblock <l@516,70,674,CPM> minecraft:stained_glass:14
- modifyblock <l@575,84,418,CPM> minecraft:stained_glass:14
- flag server DaggerlandsWins:+:1
- case "RoregCount":
- modifyblock <l@372,108,534,CPM> minecraft:stained_glass:10
- modifyblock <l@516,70,674,CPM> minecraft:stained_glass:10
- modifyblock <l@575,84,418,CPM> minecraft:stained_glass:10
- flag server RoregWins:+:1
- sidebar set "title:<&c><&n><&l>Conquest" "values:<&7><&m>----------------------------|<&6>Rounds: <&e><server.flag[RoundCounter].round>/6|<&6>Time left: <&e><server.flag[Countdown].round>|<&6>Objective: <&e><server.flag[Objective]>|<&7><&m>----------------------------<&0>|<&a>Aloreh: <&e><server.flag[AlorehCount].round>|<&a>Ar-Selukk: <&e><server.flag[ArSelukkCount].round>|<&a>Vrovona: <&e><server.flag[VrovonaCount].round>|<&a>Ithero: <&e><server.flag[ItheroCount].round>|<&a>Roreg Logh: <&e><server.flag[RoregCount].round>|<&a>The Daggerlands: <&e><server.flag[DaggerlandsCount].round>" "start:10" "increment:-1" "players:<cu@ConquestZone.list_players>"