Date: 2016/03/24 17:09: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
249
250
251
252
"NPC_ORACLE":
type: assignment
interact scripts:
- 100 ORACLE_1
actions:
on assignment:
- trigger name:click toggle:true radius:4
- trigger name:proximity radius:5 toggle:true
"ORACLE_1":
type: interact
Requirements:
Mode:
List:
steps:
1:
proximity trigger:
entry:
script:
- if <player.flag[NPC_ORACLE_2]> == prox_trigger_menu_open {
- queue clear
}
- flag <player> NPC_ORACLE_2:prox_trigger_menu_open duration:10
- title 'title:<&b><&l><&o>ORACLE' 'subtitle:<&f>For the killer in us all.' fade_in:.1s stay:.6s fade_out:.6s
- playeffect effect:FIREWORKS_SPARK qty:25
- random 4
- narrate "<npc.name> <&e><&o>Looks like you could use an upgrade in the weapons department."
- narrate "<npc.name> <&e><&o>Would you like to see my combat weapons selection?"
- narrate "<npc.name> <&e><&o>How about a new fancy wand?... or some potions, fresh from the cauldron?"
- narrate "<npc.name> <&e><&o>Seeking revenge on anyone?... Allow me to help."
click trigger:
script:
- title 'title:<&b><&l><&o>ORACLE' 'subtitle:<&f>For the killer in us all.' fade_in:.1s stay:.6s fade_out:.6s
- playeffect effect:FIREWORKS_SPARK qty:25
- inventory open d:in@ORACLE_MENU_lvl0
ORACLE_Opt_0:
type: item
display name: " "
material: 102
lore:
- " "
ORACLE_Opt_off:
type: item
display name: "<&c><&l>OFFLINE"
material: barrier
lore:
- "<&7>SORRY!"
ORACLE_Opt_1:
type: item
display name: "<&3><&l>Hot-Bow"
material: 261
lore:
- "<&7>Flaming arrows at lightning"
- "<&7>speed, with deadly accuracy."
- "<&f>Price: <&a>$1500"
- "<&8>ORACLE WEAPONRY"
ORACLE_Opt_3:
type: item
display name: "<&e><&l>Swordsman"
material: 267
lore:
- "<&7>A regular sword kit."
- "<&f>Standard for all members."
ORACLE_Opt_2:
type: item
display name: "<&3><&l>Wiz-Wand"
material: 369
lore:
- "<&7>Flaming arrows at lightning"
- "<&7>speed, with deadly accuracy."
- "<&f>Price: <&a>$1350"
- "<&8>ORACLE WEAPONRY"
ORACLE_Opt_4:
type: item
display name: "<&c><&l>Dark Curse"
material: 272
lore:
- "<&7>Magic Sword"
- "<&7>On special, vanish..."
- "<&7>and spawn an undead"
- "<&7>to do your bidding."
- "<&f>Unlock with 15 killstreak."
ORACLE_Opt_5:
type: item
display name: "<&7><&l>Wiltration"
material: 261
lore:
- "<&7>Magic Bow"
- "<&7>Watch as your victims."
- "<&7>wither away into nothing."
- "<&f>Unlock with 20 killstreak."
ORACLE_Opt_6:
type: item
display name: "<&7><&l>Wiltration"
material: 261
lore:
- "<&7>Magic Bow"
- "<&7>Watch as your victims."
- "<&7>wither away into nothing."
- "<&f>Unlock with 20 killstreak."
ORACLE_MENU_lvl0:
type: inventory
title: <&3><&l><&o>ORACLE <&c><&l><&o>WEAPONRY
size: 27
slots:
- "[i@W_HOTBOW] [i@W_WIZWAND] [i@W_FORCEFIELD] [i@W_DARKCURSE] [i@W_WILTRATION] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0]"
- "[i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0]"
- "[i@T_Capture_Wand] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0]"
"ORACLETester0001":
type: task
script:
- if <player.flag[antispam01]> {
- inventory open d:in@MENU_ORACLE_Opt
}
- flag <player> antispam01 duration:1
- if <player.location.is_within[<cu@startbox>]> {
- random 2
- narrate "You must make a selection from the menu."
- narrate "<&e>You must make a selection from the menu."
- playeffect effect:LARGE_SMOKE qty:10
}
"ORACLETester0002":
type: task
script:
- while <player.location.is_within[<cu@startbox>]> {
#- inventory open d:in@MENU_ORACLE_Opt
- playeffect effect:LARGE_SMOKE qty:50
- wait 1
}
ORACLE_WORLD_SCRIPTS:
type: world
events:
on player clicks in ORACLE_MENU_lvl0:
- if <context.slot> == 1 {
- if <player.money.is[LESS].to[1500]> {
- narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
- inventory close
- queue clear
}
- take money qty:1500
- execute as_op "ex give W_HOTBOW"
- title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
- narrate "<&a><&l>$ $ $ TRANSACTION COMPLETE $ $ $."
- inventory close
- execute as_op "bal"
}
else if <context.slot> == 2 {
- if <player.money.is[LESS].to[1350]> {
- narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
- inventory close
- queue clear
}
- take money qty:1350
- execute as_op "shot give <player.name> Event"
- execute as_op "i redstone 32"
- title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
- narrate "<&a><&l>$ $ $ TRANSACTION COMPLETE $ $ $."
- inventory close
- execute as_op "bal"
}
else if <context.slot> == 19 {
- if <player.money.is[LESS].to[1000]> {
- narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
- inventory close
- queue clear
}
- take money qty:1000
- give i@T_Capture_Wand
- title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
- narrate "<&a><&l>$ $ $ TRANSACTION COMPLETE $ $ $."
- inventory close
- execute as_op "bal"
}
else if <context.slot> == 3 {
- if <player.money.is[LESS].to[45000]> {
- narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
- inventory close
- queue clear
}
- take money qty:45000
- give i@W_FORCEFIELD
- title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
- narrate "<&a><&l>$ $ $ TRANSACTION COMPLETE $ $ $."
- inventory close
- execute as_op "bal"
}
else if <context.slot> == 4 {
- if <player.money.is[LESS].to[39000]> {
- narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
- inventory close
- queue clear
}
- take money qty:39000
- give i@W_DARKCURSE
- title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
- narrate "<&a><&l>$ $ $ TRANSACTION COMPLETE $ $ $."
- inventory close
- execute as_op "bal"
}
else if <context.slot> == 5 {
- if <player.money.is[LESS].to[28000]> {
- narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
- inventory close
- queue clear
}
- take money qty:28000
- execute as_op "shot give <player.name> Wiltration"
- execute as_op "i arrow 32"
- title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
- narrate "<&a><&l>$ $ $ TRANSACTION COMPLETE $ $ $."
- inventory close
- execute as_op "bal"
}
else if <context.slot> == 5 {
- inventory close
}
- determine CANCELLED
on player drags in ORACLE_MENU_lvl0:
- determine CANCELLED
on 00011 command:
- give i@ORACLE_Opt_1 qty:1