Date: 2014/03/27 21:01:04 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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
#assignment
"AR-Selukk_RollDice":
type: assignment
interact scripts:
- 10 roll_dice
default constants:
Cost: 100
actions:
on assignment:
- trigger name:click toggle:true
- trigger name:proximity toggle:true radius:2
- trigger name:chat toggle:true
#main script
'roll_dice':
type: interact
Requirements:
Mode: All
List:
- MONEY 100
steps:
'Announce Self*':
proximity trigger:
Entry:
script:
- CHAT "&a Hey welcome to the Qhul-Rahav Gaming Hall, come and roll the dice."
Exit:
script:
- CHAT "&a Goodbye! Come play again."
click trigger:
script:
- random 4
- CHAT "&a I will also steal everything on you, but that's part of the risk."
- CHAT "&a It's wise to play with no one around. ;)"
- CHAT "&a You may walk away rich or dead, its all luck here."
- CHAT "&a Say &6roll&a to give the dice a toss, becareful you will die if you roll a (1)."
chat trigger:
1:
trigger: /Roll/ the dice.
script:
- if "<player.money>" < "<cons:Cost>" chat 'You only have <red>$<player.money><green>.' else runtask "script:rollit"
'rollit':
type: task
script:
- ^TAKE MONEY QTY:100
- execute as_server "money give nation-ar-selukk 100"
- cooldown duration:10s "script:roll_dice"
- CHAT "Thanks for the payment and good luck!"
- WAIT 3
# Roll count down
- CHAT "It's time to roll!"
- WAIT 1
- CHAT "3"
- WAIT 1
- CHAT "2"
- WAIT 1
- CHAT "1"
# Will pick a random task from roll scripts below.
- random 3
- runtask "script:random_1"
- runtask "script:random_2"
- runtask "script:fail"
#Roll Scripts
#Fail
'fail':
type: task
script:
- chat "You fail to roll the dice properly, it falls and lands on the floor."
- wait 1
- chat "Sorry you didn't win anything, please try again."
#Randomizers
'random_1':
type: task
script: #set 1
- random 10
- runtask "script:roll_1"
- runtask "script:roll_2"
- runtask "script:roll_3"
- runtask "script:roll_4"
- runtask "script:roll_5"
- runtask "script:roll_6"
- runtask "script:roll_7"
- runtask "script:roll_8"
- runtask "script:roll_9"
- runtask "script:roll_10"
'random_2':
type: task
script: #set 2
- random 10
- runtask "script:roll_11"
- runtask "script:roll_12"
- runtask "script:roll_13"
- runtask "script:roll_14"
- runtask "script:roll_15"
- runtask "script:roll_16"
- runtask "script:roll_17"
- runtask "script:roll_18"
- runtask "script:roll_19"
- runtask "script:roll_20"
#set 1
'roll_1':
type: task
script:
- chat "You have rolled a (1)"
- chat "I'm sorry. You are the weakest link"
- wait 2
- chat "Goodbye...."
- wait 1
- attack
- wait 5
- execute as_server "kill <player.name>"
- attack stop
'roll_2':
type: task
script:
- chat "You have rolled a (2)"
- wait 1
- chat "Sorry you didn't win anything, please try again."
'roll_3':
type: task
script:
- chat "You have rolled a (3)"
- wait 1
- execute as_server "give <player.name> 174 5"
- wait 1
- chat "As tight as this is packed, it should not melt anytime soon."
'roll_4':
type: task
script:
- chat "You have rolled a (4)"
- wait 1
- chat "Hey what's that behind you, take a look."
- wait 1
- execute as_server "ci <player.name>"
- wait 1
- chat "Well I just stole all your stuff...thanks and try again."
'roll_5':
type: task
script:
- chat "You have rolled a (5)"
- wait 1
- execute as_server "give <player.name> 418 1"
- wait 1
- chat "This will look nice on your steed."
'roll_6':
type: task
script:
- chat "You have rolled a (6)"
- wait 1
- chat "Sorry you didn't win anything, please try again."
'roll_7':
type: task
script:
- chat "You have rolled a (7)"
- wait 1
- execute as_server "money give <player.name> 1000"
- execute as_server "money give nation-ar-selukk -1000"
- wait 1
- chat "Sweet! 1000y that's 10 times your bet back."
'roll_8':
type: task
script:
- chat "you have rolled a (8)"
- wait 1
- execute as_server "give <player.name> 264 3"
- wait 1
- chat "Booyah! 3 diamonds not bad at all."
'roll_9':
type: task
script:
- chat "You have rolled a (9)"
- wait 1
- execute as_server "give <player.name> 43:8 4"
- wait 1
- chat "Solid like a rock, this will withstand the sandstorms."
'roll_10':
type: task
script:
- chat "You have rolled a (10)"
- wait 1
- execute as_server "ex give <player.name> walljumper"
- wait 1
- chat "Let no wall stand in your way, just hope you can withstand the landing."
#set 2
'roll_11':
type: task
script:
- chat "You have rolled a (11)"
- wait 1
- chat "Sorry you didn't win anything, please try again."
'roll_12':
type: task
script:
- chat "You have rolled a (12)"
- wait 1
- chat "Sorry you didn't win anything, please try again."
'roll_13':
type: task
script:
- chat "You have rolled a (13)"
- wait 1
- chat "Sorry you didn't win anything, please try again."
'roll_14':
type: task
script:
- chat "You have rolled a (14)"
- wait 1
- chat "Sorry you didn't win anything, please try again."
'roll_15':
type: task
script:
- chat "You have rolled a (15)"
- wait 1
- execute as_server "money give <player.name> 1000"
- execute as_server "money give nation-ar-selukk -1000"
- wait 1
- chat "Sweet! 1000y thats 10 times your bet back."
'roll_16':
type: task
script:
- chat "You have rolled a (16)"
- wait 1
- chat "Sorry you didn't win anything, please try again."
'roll_17':
type: task
script:
- chat "You have rolled a (17)"
- wait 1
- chat "Sorry you didn't win anything, please try again."
'roll_18':
type: task
script:
- chat "You have rolled a (18)"
- wait 1
- execute as_server "money give <player.name> 1000"
- execute as_server "money give nation-ar-selukk -1000"
- wait 1
- chat "Sweet! 1000y thats 10 times your bet back."
'roll_19':
type: task
script:
- chat "You have rolled a (19)"
- wait 1
- chat "Sorry you didn't win anything, please try again."
'roll_20':
type: task
script:
- chat "You have rolled a (20)"
- wait 1
- chat "Sorry you didn't win anything, please try again."