Paste #29404: Untitled Paste

Date: 2016/01/30 05:38:43 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531


Miner:
    type: assignment
    actions:
        on assignment:
        - trigger name:proximity state:true radius:5
        - trigger name:chat state:true radius:10 
    interact scripts:
    - zdobądź_materiał

zdobądź_materiał:
    type: interact
    steps:
        1:
            proximity trigger:
                entry:
                    script:
                    - define arg1 "[Diament1] - Wykop 1 diamenta (Nagroda 100$)"
                    - define arg2 "[Zelazo1]- Wykop 1 zloze zelaza (Nagroda 50$)"
                    - define arg3 "[Zloto1]- Wykop 1 zloze zlota (Nagroda 60$)"
                    - define arg4 "[Szmaragd1]- Wykop 1 szmaagda (Nagroda 75$)"
                    - define arg5 "[Bruk1]- Wykop 50 stone (Nagroda 50$)"
                    - narrate format:cchat "Witaj <player.name> mam dla ciebie jeszcze troche zadan :"
                    - narrate format:cchat "<def[arg1]>"
                    - narrate format:cchat "<def[arg2]>"
                    - narrate format:cchat "<def[arg3]>"
                    - narrate format:cchat "<def[arg4]>"
                    - narrate format:cchat "<def[arg5]>"
                    - narrate "<&4>[Wybierz Bruk , Szmaragd , Zloto , Zelazo , Diament]"

            chat trigger:
                1:  
                    trigger: /Bruk/
                    script:
                    - narrate format:cchat "Wybrales bruk a wiec do roboty !"
                    - if <player.has_flag[stone_drop1_koniec]>{
                        - flag player stone_drop2_quest
                        - flag player stone_drop2_quest_count:0
                        - zap 2
                        }
                    - if <player.has_flag[stone_drop_quest1].not>{
                        - flag player stone_drop1_quest
                        - flag player stone_drop1_quest_count:0
                        - zap 2
                        }
                    - if <player.has_flag[stone_drop2_koniec]>{
                        - flag player stone_drop3_quest
                        - flag player stone_drop3_quest_count:0
                        - zap 2
                        }


                2:
                    trigger: /Zelazo/
                    script:
                    - narrate format:cchat "Wybrales zelazo a wiec do roboty !"
                    - if <player.has_flag[iron_drop1_koniec]> {
                        - flag player iron_drop2_quest
                        - flag player iron_drop2_quest_count:0
                        - zap 2
                        }
                    - if <player.has_flag[iron_drop_quest1].not> {
                        - flag player iron_drop1_quest
                        - flag player iron_drop1_quest_count:0
                        - zap 2
                        }
                     if <player.has_flag[iron_drop2_koniec]> {
                        - flag player iron_drop3_quest
                        - flag player iron_drop3_quest_count:0
                        - zap 2
                        }
                3:
                    trigger: /Zloto/
                    script:
                    - narrate format:cchat "Wybrales zloto a wiec do roboty !"
                    - if <player.has_flag[gold_drop_quest1.not]>{
                        - flag player gold_drop1_quest
                        - flag player gold_drop1_quest_count:0
                        - zap 2
                        }
                    - if <player.has_flag[gold_drop1_koniec]>
                        - flag player gold_drop2_quest
                        - flag player gold_drop2_quest_count:0
                        }
                    - if <player.has_flag[gold_drop2_koniec]>
                        - flag player gold_drop3_quest
                        - flag player gold_drop3_quest_count:0
                        }
                4:
                    trigger: /Diament/
                    script:
                    - narrate format:cchat "Wybrales diament a wiec do roboty !"
                    - if <player.has_flag[diamond_drop_quest1].not> {
                        - flag player diamond_drop1_quest
                        - flag player diamond_drop1_quest_count:0
                        - zap 2
                        }
                    - if <player.has_flag[diamond_drop1_koniec]> {
                        - flag player diamond_drop2_quest
                        - flag player diamond_drop2_quest_count:0
                        - zap 2
                        }
                    - if <player.has_flag[diamond_drop2_koniec]> {
                        - flag player diamond_drop3_quest
                        - flag player diamond_drop3_quest_count:0
                        - zap 2
                        }
                5:
                    trigger: /Szmaragd/
                    script:
                    - narrate format:cchat "Wybrales szmaragd a wiec do roboty !"
                    - if <player.has_flag[emerald_drop_quest1].not>{
                        - flag player emerald_drop1_quest
                        - flag player emerald_drop1_quest_count:0
                        - zap 2
                        }
                    - if <player.has_flag[emerald_drop1_koniec]> {
                        - flag player emerald_drop2_quest
                        - flag player emerald_drop2_quest_count:0
                        - zap 2
                        }
                    - if <player.has_flag[emerald_drop2_koniec]> {
                        - flag player emerald_drop3_quest
                        - flag player emerald_drop3_quest_count:0
                        - zap 2
                        }
        2:
            proximity trigger:
                entry:
                    script:




#-----------------------------------------------------------------------------------------#
#--------------------------------------------Czesc pierwsza-------------------------------#
#-----------------------------------------------------------------------------------------#





                    - if <player.has_flag[iron_drop1_quest]>{
                        - engage
                        - flag player iron_drop1_quest
                        - flag player iron_drop1_quest_count:0
                        - disengage
                        - flag player npc2_engaged
                        - engage
                        - if <player.has_flag[iron_drop1_quest_count]> >= 1 {
                            - give money qty:50
                            - flag player iron_drop1_quest_count:!
                            - flag player iron_drop1_koniec
                            - define arg2:!
                            - define arg2 "[Zelazo2]- Wykop 10 zloze zelaza (Nagroda 200$)"
                            - zap 3
                            }
                        - disengage
                        - flag player npc2_engaged
                        }






                    - if <player.has_flag[stone_drop1_quest]>{
                        - engage
                        - flag player stone_drop1_quest
                        - flag player stone_drop1_quest_count:0
                        - disengage
                        - flag player npc_engaged
                        - engage
                        - if <player.has_flag[stone_drop1_quest_count]> >= 50 {
                            - give money qty:50
                            - flag player stone_drop1_koniec
                            - flag player stone_drop1_quest_count:!
                            - define arg5:!
                            - define arg5 "[Bruk2]- Wykop 250 stone (Nagroda 150$)"
                            - zap 3
                            }
                        - disengage
                        - flag player npc_engaged
                        }






                    - if <player.has_flag[gold_drop1_quest]>{
                        - engage
                        - flag player gold_drop1_quest
                        - flag player gold_drop1_quest_count:0
                        - disengage
                        - flag player npc3_engaged
                        - engage
                        - if <player.has_flag[gold_drop1_quest_count]> >= 1 {
                            - give money qty:60
                            - flag player gold_drop1_koniec
                            - flag player gold_drop1_quest_count:!
                            - define arg3:!
                            - define arg3 "[Zloto2]- Wykop 10 zloz zlota (Nagroda 300$)"
                            - zap 3
                            }
                        - disengage
                        - flag player npc3_engaged
                        }






                    - if <player.has_flag[diamond_drop1_quest]>{
                        - engage
                        - flag player diamond_drop1_quest
                        - flag player diamond_drop1_quest_count:0
                        - disengage
                        - flag player npc4_engaged
                        - engage
                        - if <player.has_flag[diamond_drop1_quest_count]> >= 1 {
                            - give money qty:100
                            - flag player diamond_drop1_koniec
                            - flag player diamond_drop1_quest_count:!
                            - define arg1:!
                            - define arg1 "[Diament2] - Wykop 10 diamentow (Nagroda 400$)"
                            - zap 3
                            }
                        - disengage
                        - flag player npc4_engaged
                        }






                    - if <player.has_flag[emerald_drop1_quest]>{
                        - engage
                        - flag player emerald_drop1_quest
                        - flag player emerald_drop1_quest_count:0
                        - disengage
                        - flag player npc5_engaged
                        - engage
                        - if <player.has_flag[emerald_drop1_quest_count]> >= 1 {
                            - give money qty:75
                            - flag player emerald_drop1_koniec
                            - flag player emerald_drop1_quest_count:!
                            - define arg4:!
                            - define arg4 "[Szmaragd2]- Wykop 10 szmargdow (Nagroda 250$)"
                            - zap 3
                            }
                        - disengage
                        - flag player npc5_engaged
                        }




#-----------------------------------------------------------------------------------------#
#--------------------------------------------Czesc druga----------------------------------#
#-----------------------------------------------------------------------------------------#                    



                    - if <player.has_flag[iron_drop2_quest]>{
                        - engage
                        - flag player iron_drop2_quest
                        - flag player iron_drop2_quest_count:0
                        - disengage
                        - flag player npc7_engaged
                        - engage
                        - if <player.has_flag[iron_drop2_quest_count]> >= 10 {
                            - give money qty:200
                            - flag player iron_drop2_quest_count:!
                            - flag player iron_drop2_koniec
                            - define arg2:!
                            - define arg2 "[Zelazo3]- Wykop 50 zloz zelaza (Nagroda 750$)"
                            - zap 3
                            }
                        - disengage
                        - flag player npc7_engaged
                        }






                    - if <player.has_flag[stone_drop2_quest]>{
                        - engage
                        - flag player stone_drop2_quest
                        - flag player stone_drop2_quest_count:0
                        - disengage
                        - flag player npc6_engaged
                        - engage
                        - if <player.has_flag[stone_drop2_quest_count]> >= 250 {
                            - give money qty:150
                            - flag player stone_drop2_koniec
                            - flag player stone_drop2_quest_count:!
                            - define arg5:!
                            - define arg5 "[Bruk3]- Wykop 500 stone (Nagroda 300$)"
                            - zap 3
                            }
                        - disengage
                        - flag player npc6_engaged
                        }






                    - if <player.has_flag[gold_drop2_quest]>{
                        - engage
                        - flag player gold_drop2_quest
                        - flag player gold_drop2_quest_count:0
                        - disengage
                        - flag player npc8_engaged
                        - engage
                        - if <player.has_flag[gold_drop2_quest_count]> >= 10 {
                            - give money qty:300
                            - flag player gold_drop2_koniec
                            - flag player gold_drop2_quest_count:!
                            - define arg3:!
                            - define arg3 "[Zloto3]- Wykop 50 zloz zlota (Nagroda 1000$)"
                            - zap 3
                            }
                        - disengage
                        - flag player npc8_engaged
                        }






                    - if <player.has_flag[diamond_drop2_quest]>{
                        - engage
                        - flag player diamond_drop2_quest
                        - flag player diamond_drop2_quest_count:0
                        - disengage
                        - flag player npc9_engaged
                        - engage
                        - if <player.has_flag[diamond_drop2_quest_count]> >= 10 {
                            - give money qty:400
                            - flag player diamond_drop2_koniec
                            - flag player diamond_drop2_quest_count:!
                            - define arg1:!
                            - define arg1 "[Diament3] - Wykop 50 diamentow (Nagroda 2000$)"
                            - zap 3
                            }
                        - disengage
                        - flag player npc9_engaged
                        }






                    - if <player.has_flag[emerald_drop2_quest]>{
                        - engage
                        - flag player emerald_drop2_quest
                        - flag player emerald_drop2_quest_count:0
                        - disengage
                        - flag player npc5_engaged
                        - engage
                        - if <player.has_flag[emerald_drop2_quest_count]> >= 10 {
                            - give money qty:250
                            - flag player emerald_drop2_koniec
                            - flag player emerald_drop2_quest_count:!
                            - define arg4:!
                            - define arg4 "[Szmaragd3]- Wykop 50 szmargdow (Nagroda 1400$)"
                            - zap 3
                            }
                        - disengage
                        - flag player npc5_engaged
                        }



#-----------------------------------------------------------------------------------------#
#--------------------------------------------Czesc trzecia--------------------------------#
#-----------------------------------------------------------------------------------------#                        


        3:
            proximity trigger:
                entry:
                    script:
                    - narrate format:cchat "Witaj <player.name> mam dla ciebie jeszcze troche zadan :"
                    - narrate format:cchat "[<def[arg1]>]"
                    - narrate format:cchat "[<def[arg2]>]"
                    - narrate format:cchat "[<def[arg3]>]"
                    - narrate format:cchat "[<def[arg4]>]"
                    - narrate format:cchat "[<def[arg5]>]"
                    - narrate "<&4>[Wybierz <&7>Stone , <&a>Szmaragd , <&e>Zloto , <&7>Zelazo , <&3>Diament]"
                    - zap 2



#----------------------------------------------------------------------------------------#
#--------------------------------Czesc pierwsza------------------------------------------#
#----------------------------------------------------------------------------------------#                

Brukdrop_world:
    type: world
    events:
        on player breaks stone:
        - flag player stone_drop1_quest_count:++
        - if <player.has_flag[stone_drop1_quest_count]> >= 50 { 
            - narrate "                <&2>[Wykopales <&7>stone <&2>wruc do miner]"  
            } 




Irondrop_world:
    type: world
    events:
        on player drop iron_ore:
        - flag player iron_drop1_quest_count:++
        - if <player.has_flag[iron_drop1_quest_count]> >= 1 { 
            - narrate "                <&2>[Wykopales <&7>zelazo <&2>wruc do miner]" 
            }




Golddrop_world:
    type: world
    events:
        on player drop gold_ore:
        - flag player gold_drop1_quest_count:++
        - if <player.has_flag[gold_drop1_quest_count]> >= 1 { 
            - narrate "                <&2>[Wykopales <&e>zloto <&2>wruc do miner]"  
            }




Emerdrop_world:
    type: world
    events:
        on player drop emerald:
        - flag player emerald_drop1_quest_count:++
        - if <player.has_flag[emerald_drop1_quest_count]> >= 1 { 
            - narrate "                <&2>[Wykopales <&a>szmaragd <&2>wruc do miner]" 
            }




Diamdrop_world:
    type: world
    events:
        on player drop diamond:
        - flag player diamond_drop1_quest_count:++
        - if <player.has_flag[diamond_drop1_quest_count]> >= 1 { 
            - narrate "                <&2>[Wykopales <&b>diamenta <&2>wruc do miner]" 
            }    




#----------------------------------------------------------------------------------------#
#--------------------------------Czesc druga---------------------------------------------#
#----------------------------------------------------------------------------------------#            

Brukdrop2_world:
    type: world
    events:
        on player breaks stone:
        - if !<player.has_flag[stone_drop2_quest]> queue clear
        - flag player stone_drop2_quest_count:++
        - if <player.has_flag[stone_drop2_quest_count]> >= 250 { 
            - narrate "                <&2>[Wykopales <&7>stone <&2>wruc do miner]"  
            } 




Irondrop2_world:
    type: world
    events:
        on player drop iron_ore:
        - if !<player.has_flag[iron_drop2_quest]> queue clear
        - flag player iron_drop2_quest_count:++
        - if <player.has_flag[iron_drop2_quest_count]> >= 10 { 
            - narrate "                <&2>[Wykopales <&7>zelazo <&2>wruc do miner]" 
            }




Golddrop2_world:
    type: world
    events:
        on player drop gold_ore:
        - if !<player.has_flag[gold_drop2_quest]> queue clear
        - flag player gold_drop2_quest_count:++
        - if <player.has_flag[gold_drop2_quest_count]> >= 10 { 
            - narrate "                <&2>[Wykopales <&e>zloto <&2>wruc do miner]"  
            }




Emerdrop2_world:
    type: world
    events:
        on player drop emerald:
        - if !<player.has_flag[emerald_drop2_quest]> queue clear
        - flag player emerald_drop2_quest_count:++
        - if <player.has_flag[emerald_drop2_quest_count]> >= 10 { 
            - narrate "                <&2>[Wykopales <&a>szmaragd <&2>wruc do miner]" 
            }




Diamdrop2_world:
    type: world
    events:
        on player drop diamond:
        - if !<player.has_flag[diamond_drop2_quest]> queue clear
        - flag player diamond_drop2_quest_count:++
        - if <player.has_flag[diamond_drop2_quest_count]> >= 10 { 
            - narrate "                <&2>[Wykopales <&b>diamenta <&2>wruc do miner]" 
            }