Date: 2016/05/01 06:59: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
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
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
NowTest:
type: assignment
interact scripts:
- test
test:
type: interact
steps:
"Need a test?*":
click trigger:
script:
- inventory open d:in@generic[size=36;title=ПРИЗ]
Items:
type: world
events:
on player clicks in inventory with m@sponge:
- narrate 'Ты кликнул'
DirtWorld:
type: world
events:
on player breaks Grass:
- ^narrate '<dark_red>!!! <red>Эй! <gold>Запрещено ломать Траву<dark_red> !!!'
- ^determine CANCELLED
Basic gm:
type: assignment
interact scripts:
- gm1 bro!
gm1 bro!:
type: interact
steps:
"Gamemode1*":
click trigger:
script:
- if <p@player.gamemode.id> != 1 {
- execute as_server "gamemode 1 <player.name>"
- chat 'Поздравляю! Вам обновили игровой режим на "Творческий"!'
- cooldown 10s }
else {
- chat 'У вас уже есть "Творческий" режим игры!'
}
Gamemode0:
type: assignment
interact scripts:
- gm0!
gm0!:
type: interact
steps:
"Gamemode0?*":
click trigger:
script:
- if <p@player.gamemode.id> != 0 {
- execute as_server "gamemode 0 <player.name>"
- chat 'Поздравляю!<white>Вам обновили игровой режим на "Выживание"!'
- cooldown 10s }
else {
- chat 'У вас уже режим игры - "Выживание"'
}
Give operator:
type: assignment
interact scripts:
- giveop!
giveop!:
type: interact
steps:
"Operator*":
click trigger:
script:
- if '<player.is_op>' == 'False' {
- execute as_server "op <player.name>"
- chat 'Теперь Вы - оператор!'
- cooldown 10s }
else {
- chat 'Вы уже оператор.'
}
Deoperator:
type: assignment
interact scripts:
- deop!
deop!:
type: interact
steps:
"Deop*":
click trigger:
script:
- if '<player.is_op>' == 'True' {
- execute as_server "deop <player.name>"
- chat 'Теперь Вы - не <black>оператор <white>этого сервера!'
- cooldown 10s }
else {
- chat 'Вы не оператор данного сервера.'
}
Econs:
type: assignment
interact scripts:
- econ!
econ!:
type: interact
steps:
"Need a econ?*":
click trigger:
script:
- if '<player.health>' <= '<player.health.max>' {
- execute as_server "gamemode 1 <player.name>"
- chat 'Готово!<&nl><&nl><&nl><&nl><&nl><blue>У вас теперь дахира эконов:)'
- cooldown 10s }
ClearWeather:
type: assignment
interact scripts:
- Weather!
Weather!:
type: interact
steps:
"Need a clear?*":
click trigger:
script:
- if '<player.health>' <= '<player.health.max>' {
- execute as_server "weather clear"
- chat '---<&nl>======================================= <&nl><&nl><&nl><&nl><&nl><&nl><black>Вы поменяли погоду на <yellow>чистую<black>!'
- cooldown 5m }
Book:
type: assignment
interact scripts:
- Book!
Book!:
type: interact
steps:
"Need a book?*":
click trigger:
script:
- if '<player.health>' <= '<player.health.max>' {
- execute as_server "give <player.name> book"
- narrate '-<&nl>======================================= <&nl><&nl><&nl><&nl><&nl><&nl><white>Вы получили пустую <yellow>книгу<white>!'
- cooldown 10s }
sharparrow:
type: assignment
item scripts:
- sharp_arrow
sharp_arrow:
type: item
debug: false
material: sponge
display name: Шрапнель
lore:
- <&c>Шрапнель
- <&c>страшная вещь!
recipe:
- i@arrow|i@arrow|i@arrow
- i@air|i@air|i@air
- i@air|i@air|i@air
Teleport: #имя скрипта
type: assignment #говорим что это задание
debug: false #выключаем вывод в консоль
interact scripts: #скрипт, с которого начинаем
- telep
telep: #название
type: interact #говорим что это задание
steps: #начинаем создавать шаги
"question*": #первый шаг, * на конце нужна, если в скрипте есть несколько вариантов
click trigger: #срабатываем только когда кликнули по NPC
script: #пишем тело скрипта
- random 3 #говорим, что будем использовать любой из 2 вариантов сообщений чата ниже
- chat 'Вы хотите, чтобы я Вас перенес на спавн?'
- chat 'Хотите телепортироваться на спавна?'
- chat 'Желаете переместиться на спавн?'
chat trigger: #назначаем триггер чата, он отслеживает сообщения или слова
'Yes': #Имя триггера
trigger: '/Да/!' #Если в чат написали да(без разницы как: да, Да, дА, ДА)
script: #что делаем, если увидели да
- chat 'Хорошо! Сейчас только прочитаю <black>заклинание<white>.' #выводим сообщение от npc в чат
- narrate '<npc.name> что-то бормочет себе под нос...' #выводим простое сообщение в чат с именем npc
- playeffect cloud <player.location> qty:20 #задаем эффект на месте игрока с кол-вом 20
- playeffect cloud <player.location> qty:30 #задаем эффект на месте игрока с кол-вом 30
- playeffect cloud <player.location> qty:40 #задаем эффект на месте игрока с кол-вом 40
- playeffect flame <player.location> qty:50 #задаем эффект на месте игрока с кол-вом 50
- ^narrate '<gray>Телепортация...'
- ^playeffect cloud <player.location> qty:50 #задаем эффект на месте игрока с кол-вом 50
- ^playeffect cloud <player.location> qty:50 #задаем эффект на месте игрока с кол-вом 50
- ^playeffect cloud <player.location> qty:50 #задаем эффект на месте игрока с кол-вом 50
- playeffect cloud <player.location> qty:50 #задаем эффект на месте игрока с кол-вом 50
- ^execute as_server 'tp <player.name> 962 4 -1127' #выполняем от имени консоль команду
- ^playeffect cloud <player.location> qty:60 #задаем эффект на месте игрока с кол-вом 50
- chat 'Вы были телепортированы.' #выводим сообщение в чат от имени npc
- zap 'step:succes' #переходим на шаг с именем succes
'succes': #шаг с именем succes
click trigger: #ждем щелчка по npc
script: #начинаем скрипт
- zap 'step:question' #переходим на шаг question, то есть в начало. Это будет цикл, чтобы телепортом можно было пользоваться всегда.
WithPlayer:
type: assignment
interact scripts:
- with
with:
type: interact
steps:
"question*":
click trigger:
script:
- random 2
- chat 'Ты хочешь чтобы я тебя перенес на спавн?'
- chat 'Хочешь телепортироваться на спавна?'
chat trigger:
'Yes':
trigger: '/Да/!'
script:
- chat 'Поздравляю'
NoCrack:
type: assignment
world scripts:
- nocrashblock
nocrashblock:
type: world
events:
on player breaks sand:
- ^narrate '<red>Запрещено рушить <context.material>'
- determine dirt
Hurt:
type: assignment
interact scripts:
- hurtin
hurtin:
type: interact
steps:
"Need a hurt?*":
click trigger:
script:
- animate <player> animation:hurt
Burn:
type: assignment
interact scripts:
- burnin
burnin:
type: interact
steps:
"Need a burn?*":
click trigger:
script:
- burn <player> duration:10s
InvisibleOn:
type: assignment
interact scripts:
- OnInvisible
OnInvisible:
type: interact
steps:
"Need a OnInvisible?*":
click trigger:
script:
- invisible <player> true
VisibleOn:
type: assignment
interact scripts:
- OnVisible
OnVisible:
type: interact
steps:
"Need a OnVisible?*":
click trigger:
script:
- invisible <player> false
ShowInv:
type: assignment
interact scripts:
- Inv
Inv:
type: interact
steps:
"Need a chest?*":
click trigger:
script:
- inventory open d:in@generic[size=36;title=BestInventory;contents=li@i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@lapis_block|i@sponge|i@lapis_block|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane]
#Scripts GUI
#Minigames
MiniGames:
type: assignment
interact scripts:
- MiniInv
#Inventory Items
#Quake
QuakeMaterial:
type: assignment
item scripts:
- QuakeItem
QuakeItem:
type: item
material: glass
display name: <yellow>Quake
lore:
- <&c><dark_aqua>Интересная игра по мотивам
- <&c><dark_aqua>старинной игры Quake, теперь
- <&c><dark_aqua>в Minecraft. Тебе предстоит
- <&c><dark_aqua>уничтожать своих врагов из
- <&c><dark_aqua>оружия, которое убивает с
- <&c><dark_aqua>одного выстрела. Попробуй
- <&c><dark_aqua>выжить в таких нелёгких
- <&c><dark_aqua>условиях.
- <&c>
- <&c><green>➜ Подключиться
- <&c><gold>• <gray>игроков: 6<gold> •
#Annihilation
AnniMaterial:
type: assignment
item scripts:
- AnniItem
AnniItem:
type: item
material: cactus
display name: <yellow>Annihilation
lore:
- <&c><dark_aqua>Игроки делятся на 4 команды.
- <&c><dark_aqua>У каждой команды своя база и
- <&c><dark_aqua>нексус, который надо защищать.
- <&c><dark_aqua>Задача команд-соперников -
- <&c><dark_aqua>сломать вражеский нексус, что
- <&c><dark_aqua>приводит к проигрышу команды.
- <&c><dark_aqua>Но будьте аккуратны! Пока вы
- <&c><dark_aqua>ломаете чужой нексус, ваш
- <&c><dark_aqua>находится под угрозой.
- <&c>
- <&c><gold>• 2 сервера •
#VampireZ
VampireZMaterial:
type: assignment
item scripts:
- VampireZItem
VampireZItem:
type: item
material: cobblestone
display name: <yellow>VampireZ
lore:
- <&c><dark_aqua>В игре присутствуют люди и
- <&c><dark_aqua>вампиры. Задача людей -
- <&c><dark_aqua>скрыться от вампиров. Если
- <&c><dark_aqua>вампир кусает человека, то он
- <&c><dark_aqua>моментально превращается в
- <&c><dark_aqua>зелёного мертвеца. Кто же
- <&c><dark_aqua>победит в итоге?
- <&c>
- <&c><green>➜ Подключиться
- <&c><gold>• <gray>игроков: 6<gold> •
#SkyWars
SkyMaterial:
type: assignment
item scripts:
- SkyItem
SkyItem:
type: item
material: sandstone
display name: <yellow>SkyWars
lore:
- <&c><dark_aqua>Ваша задача - выжить на
- <&c><dark_aqua>одиноком острове любой
- <&c><dark_aqua>ценой. Атакуйте врагов,
- <&c><dark_aqua>стройте ловушки, используйте
- <&c><dark_aqua>свою хитрость и удачу.
- <&c>
- <&c><green>➜ Подключиться
- <&c><gold>• <gray>игроков: 10<gold> •
#Hide`n`Seek
HnSMaterial:
type: assignment
item scripts:
- HnSItem
HnSItem:
type: item
material: chest
display name: <yellow>Hide'n'Seek
lore:
- <&c><dark_aqua>Игроки делятся на две команды<&co>
- <&c><dark_aqua>Hide-Мышки и Seek-Коты. Задача
- <&c><dark_aqua>котов - найти за 5 минут всех
- <&c><dark_aqua>мышек. А мышки должны прятаться,
- <&c><dark_aqua>маскируясь под различные блоки.
- <&c><dark_aqua>Доступно несколько интересных
- <&c><dark_aqua>карт.
- <&c>
- <&c><green>➜ Подключиться
- <&c><gold>• <gray>игроков: 15<gold> •
#TNT run
TNTMaterial:
type: assignment
item scripts:
- TNTItem
TNTItem:
type: item
material: tnt
display name: <yellow>TNTRun
lore:
- <&c><dark_aqua>Беги и не останавливайся!
- <&c><dark_aqua>Промедление на одну секунду
- <&c><dark_aqua>будет стоить тебе жизни.
- <&c><dark_aqua>Пол сделан из ТНТ и взрывается,
- <&c><dark_aqua>если наступить. Побеждает самый
- <&c><dark_aqua>шустрый игрок.
- <&c>
- <&c><green>➜ Подключиться
- <&c><gold>• <gray>игроков: 2<gold> •
#War
WarMaterial:
type: assignment
item scripts:
- WarItem
WarItem:
type: item
material: bow
display name: <yellow>War
lore:
- <&c><dark_aqua>Игроки делятся на 2 команды<&co>
- <&c><dark_aqua>Blue и Red. Цель - захватить
- <&c><dark_aqua>флаг противника и защитить
- <&c><dark_aqua>свой. Доступно несколько
- <&c><dark_aqua>интересных карт для игры с
- <&c><dark_aqua>друзьями.
- <&c>
- <&c><green>➜ Подключиться
- <&c><gold>• <gray>игроков: 24<gold> •
#PaintBall
PBMaterial:
type: assignment
item scripts:
- PBItem
PBItem:
type: item
material: snow
display name: <yellow>PaintBall
lore:
- <&c><dark_aqua>Стреляйте из пистолетов с
- <&c><dark_aqua>краской, бросайте гранаты,
- <&c><dark_aqua>уничтожайте врагов, качайте
- <&c><dark_aqua>свой ранг и покупайте новое
- <&c><dark_aqua>мощное оружие. Динамическая
- <&c><dark_aqua>и интересная мини-игра.
- <&c>
- <&c><green>➜ Подключиться
- <&c><gold>• <gray>игроков: 5<gold> •
#BedWars
BWMaterial:
type: assignment
item scripts:
- BWItem
BWItem:
type: item
material: bed
display name: <yellow>BedWars
lore:
- <&c><dark_aqua>Игроки делятся на 4 команды<&co>
- <&c><dark_aqua>У каждой команды своя кровать.
- <&c><dark_aqua>Задача - сломать кровать команды
- <&c><dark_aqua>противника и умудриться выжить
- <&c><dark_aqua>самому. Доступен магазин для
- <&c><dark_aqua>покупки вещей за ресурсы. Этот
- <&c><dark_aqua>сервер не заставит вас скучать!
- <&c>
- <&c><green>➜ Подключиться
- <&c><gold>• <gray>игроков: 83<gold> •
#Spleef
SpleefMaterial:
type: assignment
item scripts:
- SpleefItem
SpleefItem:
type: item
material: grass
display name: <yellow>Spleef
lore:
- <&c><dark_aqua>Стреляйте из лопаты снежками
- <&c><dark_aqua>в блоки, на которых стоят
- <&c><dark_aqua>соперники. Побеждает тот, кто
- <&c><dark_aqua>останется наверху. Ваша
- <&c><dark_aqua>задача - как можно дольше
- <&c><dark_aqua>продержаться и выиграть.
- <&c>
- <&c><green>➜ Подключиться
- <&c><gold>• <gray>игроков: 8<gold> •
#SPAWN
SpawnMaterial:
type: assignment
item scripts:
- SpawnItem
SpawnItem:
type: item
material: beacon
display name: <yellow>Лобби
lore:
- <&c><gray>Вернуться в Лобби
- <&c>
- <&c><green>➜ Подключитьсяw
- <&c><gold>• <gray>игроков: 8<gold> •
MiniGamesWorldSpawn: #Quake
type: world
debug: false
events:
on player clicks m@beacon in in@MINIGAMESINV with m@air:
- ^execute as_server "say <dark_green>Улетаем <dark_green>на <dark_green>спавн"
- ^inventory close in@MINIGAMESINV
- ^execute as_server "tp <player.name> 962 4 -1127"
- ^playeffect cloud <player.location> qty:60
- ^determine CANCELLED
#BeginScripts
MiniInv:
type: interact
steps:
"Need a games*":
click trigger:
script:
- run MiniGamesTask
MiniGamesWorldQuake: #Quake
type: world
debug: false
events:
on player clicks m@glass in in@MINIGAMESINV with m@air:
- ^execute as_server "say Играем в <dark_red>Quake"
- ^inventory close in@MINIGAMESINV
- ^determine CANCELLED
MiniGamesWorldAnni: #Annihilation
type: world
debug: false
events:
on player clicks m@cactus in in@MINIGAMESINV with m@air:
- ^execute as_server "say Играем в <dark_purple>Annihilation"
- ^inventory close in@MINIGAMESINV
- ^determine CANCELLED
MiniGamesWorldSkyWars: #SkyWars
type: world
debug: false
events:
on player clicks m@sandstone in in@MINIGAMESINV with m@air:
- ^execute as_server "say Играем в <dark_green>SkyWars"
- ^inventory close in@MINIGAMESINV
- ^determine CANCELLED
MiniGamesWorldHnS: #Hide`n`Seek
type: world
debug: false
events:
on player clicks m@chest in in@MINIGAMESINV with m@air:
- ^execute as_server "say Играем в <dark_gray>Hide`n`Seek"
- ^inventory close in@MINIGAMESINV
- ^determine CANCELLED
MiniGamesWorldTntRun: #TNT-Run
type: world
debug: false
events:
on player clicks m@tnt in in@MINIGAMESINV with m@air:
- ^execute as_server "say Играем в <dark_aqua>TNT <dark_aqua>Run"
- ^inventory close in@MINIGAMESINV
- ^determine CANCELLED
MiniGamesWorldWar: #War
type: world
debug: false
events:
on player clicks m@bow in in@MINIGAMESINV with m@air:
- ^execute as_server "say Играем в <light_purple>War"
- ^inventory close in@MINIGAMESINV
- ^determine CANCELLED
MiniGamesWorldPB: #PaintBall
type: world
debug: false
events:
on player clicks m@snow in in@MINIGAMESINV with m@air:
- ^execute as_server "say Играем в <gold>PaintBall"
- ^inventory close in@MINIGAMESINV
- ^determine CANCELLED
MiniGamesWorldVampireZ: #VampireZ
type: world
debug: false
events:
on player clicks m@cobblestone in in@MINIGAMESINV with m@air:
- ^execute as_server "say Играем в <green>VampireZ"
- ^inventory close in@MINIGAMESINV
- ^determine CANCELLED
MiniGamesWorldBW: #BedWars
type: world
debug: false
events:
on player clicks m@bed in in@MINIGAMESINV with m@air:
- ^execute as_server "say Играем в <aqua>BedWars"
- ^inventory close in@MINIGAMESINV
- ^determine CANCELLED
MiniGamesWorldSpleef: #Spleef
type: world
debug: false
events:
on player clicks m@grass in in@MINIGAMESINV with m@air:
- ^execute as_server "say Играем в <dark_blue>Spleef"
- ^inventory close in@MINIGAMESINV
- ^determine CANCELLED
MiniGamesWorldItem: #Просто клик
type: world
debug: false
events:
on player clicks in in@MINIGAMESINV with m@air:
- ^determine CANCELLED
MiniGamesTask:
type: task
debug: false
script:
- ^inventory open d:in@MINIGAMESINV
MINIGAMESINV:
type: inventory
debug: false
inventory: CHEST
title: 'Миниигры сервера'
size: 54
slots:
- "[<i@SpawnItem>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@SpawnItem>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@AnniItem>] [<i@VampireZItem>]"
- "[<i@SpleefItem>] [<i@HnSItem>]"
- "[<i@QuakeItem>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@WarItem>]"
- "[<i@SkyItem>] [<i@TNTItem>]"
- "[<i@PBItem>] [<i@BWItem>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@SpawnItem>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@SpawnItem>]"
#КВЕСТ ПОПЫТКА
QuestYes:
type: assignment
item scripts:
- ItemQuestYes
ItemQuestYes:
type: item
material: emerald_block
display name: <green>Согласен!
lore:
- <&c><dark_green>Подтвердить квест!
QuestNo:
type: assignment
item scripts:
- ItemQuestNo
ItemQuestNo:
type: item
material: redstone_block
display name: <dark_red>Не согласен!
lore:
- <&c><red>Отказаться от квеста!
QuestCancel:
type: assignment
item scripts:
- ItemQuestCancel
ItemQuestCancel:
type: item
material: gray_wool
display name: <gray>Отменить
no_id:
WQ1Cancel:
type: world
debug: false
events:
on player clicks m@gray_wool in in@QUEST1INV:
- ^inventory close d:in@QUEST1INV
- ^determine CANCELLED
WQ1Yes:
type: world
debug: false
events:
on player clicks m@emerald_block in in@QUEST1INV:
- ^announce "<white>Ты теперь принял <green>участие<white> в квесте!"
- ^run Q1Task
- ^inventory close d:in@QUEST1INV
- ^determine CANCELLED
WQ1No:
type: world
debug: false
events:
on player clicks m@redstone_block in in@QUEST1INV:
- announce "Как-нибудь в другой раз приходи."
- ^inventory close in@QUEST1INV
- ^determine CANCELLED
WQ1Air:
type: world
debug: false
events:
on player clicks in in@QUEST1INV with m@air:
- determine CANCELLED
#Инвентарь Квест1
QUEST1INV:
type: inventory
debug: false
inventory: CHEST
title: Квест
size: 54
slots:
- "[<i@ItemQuestCancel>] [<i@ItemQuestCancel>]"
- "[<i@ItemQuestCancel>] [<i@ItemQuestCancel>]"
- "[<i@ItemQuestCancel>] [<i@ItemQuestCancel>]"
- "[<i@ItemQuestCancel>] [<i@ItemQuestCancel>]"
- "[<i@ItemQuestCancel>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@ItemQuestYes>]"
- "[<i@ItemQuestYes>] [<i@ItemQuestYes>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@ItemQuestNo>]"
- "[<i@ItemQuestNo>] [<i@ItemQuestNo>]"
- "[<i@ItemQuestYes>] [<i@ItemQuestYes>]"
- "[<i@ItemQuestYes>] [<i@air>]"
- "[<i@air>] [<i@air>]"
- "[<i@ItemQuestNo>] [<i@ItemQuestNo>]"
- "[<i@ItemQuestNo>] [<i@ItemQuestYes>]"
- "[<i@ItemQuestYes>] [<i@ItemQuestYes>]"
- "[<i@air>] [<i@air>]"
- "[<i@air>] [<i@ItemQuestNo>]"
- "[<i@ItemQuestNo>] [<i@ItemQuestNo>]"
Quests1:
type: assignment
interact scripts:
- RunQuest1
RunQuest1:
type: interact
debug: false
steps:
InventoryQ1:
click trigger:
script:
- if !<player.flag[WQDone]> {
- chat "Привет, <player.name>!"
- wait 2
- chat "Предлагаю тебе пройти квест и получить награду."
- wait 2
- ^chat "Ты готов пройти его?"
- ^narrate "<white>Тебе нужно выбрать <dark_green>Да <white>или <dark_red>Нет<white>."
- wait 2
- ^flag player WQ1Do
- ^inventory open d:in@QUEST1INV
} else {
- chat "Вы уже участвовали в квесте сегодня. Приходи завтра!"
}
Q1Task:
type: task
debug: false
script:
- narrate "Тебе предстоит найти нашего царя и выслушать его историю."
- wait 2
- ^narrate "Удачных поисков!"
- ^zap script:RunQuests2 step:start
#Квест2
Quest2:
type: assignment
interact scripts:
- 10 RunQuests2
RunQuests2:
type: interact
steps:
start*:
click trigger:
script:
- if <player.flag[WQ1Do]> {
- chat "Приветствую!"
- wait 1
- chat "Я хотел тебе рассказать про то, как правильно ходить в туалет..."
- wait 3
- chat "Но мне придётся отложить это дело."
- wait 2
- chat "Тебе нужно будет найти и убить 1 зомби!"
- wait 3
- chat "Как будешь готов - приходи"
- ^zap step:repeat
- ^flag server WMembers:->:<player>
} else {
- chat "Возьмите задание у Quest1."
}
repeat*:
click trigger:
script:
- if <player.flag[WQ1Do]> {
- random {
- chat "Снова здравствуй, <player.name>"
- chat "Приветствую тебя снова"
- chat "Рад, что ты жив :)"
}
- wait 4
- chat "Ты готов к выполнению?"
- wait 1
} else {
- chat "Вы не взяли задание"
}
chat trigger:
1:
trigger: /Да/, конечно!
script:
- random {
- chat "Прекрасно слышать!"
- chat "Прекрасно!"
- chat "Отлично!"
}
- wait 2
- chat "Тебе требуется убить 1 зомби"
- ^flag player WQCount:0
- ^listen kill type:entity target:zombie qty:1 script:WQCheck
- ^flag player WQCont
- wait 1
- chat "Возвращайся тогда, когда выполнишь моё задание."
- ^zap step: waiting
2:
trigger: /Нет/, не хочу.
script:
- chat "Возращайся позже"
waiting*:
click trigger:
script:
- chat "Ты убил <player.flag[WQCount].asint> из 1 зомби."
- wait 1
- chat "Возвращайся после выполнения задания."
surprise*:
click trigger:
script:
- if <player.flag[WQ1Do]> && <player.flag[WQCont] {
- chat "Отлично, <red><player.name>"
- wait 2
- chat "Вот награды за твою помощь мне!"
- wait 1
- ^narrate "<red>Вы получили <gold>100 <yellow>монет <red>от <npc.name>!"
- ^execute as_server "say Типо /give econ"
- ^flag player WQCooldown duration:10s
- ^zap step:cooldown
- ^flag player WQ1Do:!
- ^flag player WQDone
- ^flag player WQCont:!
} else {
- ^random {
- chat "Вы не взяли задание."
- chat "У вас не взято задание."
}
- ^chat "Возьмите его у Quest1"
}
cooldown*:
click trigger:
script:
- chat "Ты уже выполнил это задание сегодня!"
- wait 2
- chat "Возвращайся завтра и проверяй снова!"
WQCheck:
type: task
script:
- flag player WQCount:++
- narrate "<gold>**<red>Вы убили <dark_green><player.flag[WQCount].asint> <red>из 1 зомби.<gold>**"
- if <player.flag[WQCount].asint> >= 1 run WQReward
else run WQContinue
WQContinue:
type: task
script:
- ^listen kill type: entity target:zombie qty:1 script:WQCheck
WQReward:
type: task
script:
- narrate "Возвращайся к Квесту для получения награды."
- zap script:RunQuests2 step:surprise
WQWorld:
type: world
debug: false
events:
on time changes in w@McOnly:
- ^if <server.flag[WMembers]> == "null" queue clear
- ^foreach <server.flag[WMembers].as_list> {
- ^if !<%value%.as_player.flag[WQCooldown]> && <s@RunQuests2.step[%value%]> != "return" && <%value%.flag[WQDone]> {
- ^zap script:RunQuests2 step:repeat player:%value%
- ^flag %value% WQDone:!
- ^if <%value%.as_player.is_online> {
- ^narrate player:%value% "<red>Бот Квест нуждается в твоей помощи!"
- ^narrate player:%value% "<red>Возвращайся за заданием."
}
}
}