Date: 2017/05/02 17:25:32 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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
disguiseassignment:
type: assignment
actions:
on assignment:
- trigger name:click state:true
interact scripts:
- 10 disguiseinteract
disguiseinteract:
type: interact
steps:
1:
click trigger:
script:
- narrate format:cchat "Hey, no need for that "Yes or No" bullshit, just have a look at these goods."
disguiseinvmenu:
type: inventory
title: Vexy's Selection
size: 18
slots:
- "[i@dis1] [i@dis2] [i@dis3] [i@dis4] [i@dis5] [i@dis6]
[i@dis7] [i@dis8] [i@dis9] [i@dis10][i@dis11] [i@dis12]"
dis1:
type: item
material: END_CRYSTAL
display name: Vex Disguise - Cost 30 Tokens for 30 days
dis2:
type: item
material: SNOW_BLOCK
display name: Polar Bear Disguise - Cost 30 Tokens for 30 days
dis3:
type: item
material: MINECART
display name: Minecart Disguise - Cost 30 Tokens for 30 days
dis4:
type: item
material: END_CRYSTAL
display name: Llama Disguise - Cost 30 Tokens for 30 days
dis5:
type: item
material: WOOD_DOOR
display name: Villager Disguise - Cost 30 Tokens for 30 days
dis6:
type: item
material: END_CRYSTAL
display name: Stray Disguise - Cost 30 Tokens for 30 days
dis7:
type: item
material: SNOW_BALL
display name: Snowman Disguise - Cost 30 Tokens for 30 days
dis8:
type: item
material: ARMOR_STAND
display name: Armor Stand Disguise - Cost 30 Tokens for 30 days
dis9:
type: item
material: END_CRYSTAL
display name: Evoker Disguise - Cost 30 Tokens for 30 days
dis10:
type: item
material: BOAT
display name: Boat Disguise - Cost 30 Tokens for 30 days
dis11:
type: item
material: SLIME_BLOCK
display name: Slime Disguise - Cost 30 Tokens for 30 days
dis12:
type: item
material: INK_SAK
display name: Squid Disguise - Cost 30 Tokens for 30 days
disguiseinvhandler:
type: world
events:
on player clicks in disguiseinvmenu:
- determine cancelled
on player drags in disguiseinvmenu:
- determine cancelled
on player clicks dis1 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.vex"
- flag player disguiseperk
- flag player vexcooldown:720h
}
on player clicks dis2 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.polar_bear"
- flag player disguiseperk
- flag player polarcooldown:720h
}
on player clicks dis3 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.minecart"
- flag player disguiseperk
- flag player minecartcooldown:720h
}
on player clicks dis4 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.llama"
- flag player disguiseperk
- flag player llamacooldown:720h
}
on player clicks dis5 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.villager"
- flag player disguiseperk
- flag player villagercooldown:720h
}
on player clicks dis6 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.stray"
- flag player disguiseperk
- flag player straycooldown:720h
}
on player clicks dis7 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.snowman"
- flag player disguiseperk
- flag player snowmancooldown:720h
}
on player clicks dis8 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.armor_stand"
- flag player disguiseperk
- flag player armorcooldown:720h
}
on player clicks dis9 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.evoker"
- flag player disguiseperk
- flag player evokercooldown:720h
}
on player clicks dis10 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.boat"
- flag player disguiseperk
- flag player boatcooldown:720h
}
on player clicks dis11 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.slime"
- flag player disguiseperk
- flag player slimecooldown:720h
}
on player clicks dis12 in disguiseinvmenu:
- if <player.inventory.contains_any[i@Token].quantity[100]> {
- take i@Token qty:100
- execute as_op "pex user <player.name> add libsdisguises.disguise.squid"
- flag player disguiseperk
- flag player squidcooldown:720h
}
removedisguiseworld:
type: world
events:
on player login:
- if <player.flag[disguiseperk]> == true {
- if <player.flag[vexcooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.vex"
}
- if <player.flag[polarcooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.polar_bear"
}
- if <player.flag[minecartcooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.minecart"
}
- if <player.flag[villagercooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.villager"
}
- if <player.flag[llamacooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.llama"
}
- if <player.flag[straycooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.stray"
}
- if <player.flag[snowmancooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.snowman"
}
- if <player.flag[armorcooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.armor_stand"
}
- if <player.flag[evokercooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.evoker"
}
- if <player.flag[boatcooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.boat"
}
- if <player.flag[slimecooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.slime"
}
- if <player.flag[squidcooldown] == false {
- execute as_op "pex user <player.name> remove libsdisguises.disguise.squid"
}
- if <player.flag[vexcooldown] == true {
- queue clear
}
- if <player.flag[polarcooldown] == true {
- queue clear
}
- if <player.flag[minecartcooldown] == true {
- queue clear
}
- if <player.flag[villagercooldown] == true {
- queue clear
}
- if <player.flag[llamacooldown] == true {
- queue clear
}
- if <player.flag[straycooldown] == true {
- queue clear
}
- if <player.flag[snowmancooldown] == true {
- queue clear
}
- if <player.flag[armorcooldown] == true {
- queue clear
}
- if <player.flag[evokercooldown] == true {
- queue clear
}
- if <player.flag[boatcooldown] == true {
- queue clear
}
- if <player.flag[slimecooldown] == true {
- queue clear
}
- if <player.flag[squidcooldown] == true {
- queue clear
}
- flag player disguiseperk:!
}