Paste #38769: ChiMaster

Date: 2017/01/05 14:37: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
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


Luke:
    type: assignment
    actions:
        on assignment: 
        - trigger name:click state:true
        - trigger name:chat state:true
    interact scripts:
    - 10 luke_interact


kill_spider_quest_world_luke:
    type: world
    events: 
        on player kills spider:
        - if !<player.has_flag[kill_spider_quest_luke]> queue clear
        - flag player kill_spider_quest_count_luke:++
        - if <player.flag[kill_spider_quest_count_luke]> == 3 {
          - narrate "<&2>[Return to Luke]"
          - flag player kill_spider_quest_luke:!
          - zap 5 s@luke_interact
        }
kill_entity_world_luke:
    type: world
    events:
        on player kills entity:
        - if !<player.has_flag[kill_entity_luke]> queue clear
        - flag player kill_entity_count_luke:++
        - if <player.flag[kill_entity_count_luke]> == 30 {
          - flag player kill_entity_luke:!
          - narrate "<&2>[Return to your Guild NPC for killing 30 mobs!]"
          - zap 7 s@luke_interact
          }
        - if <player.flag[kill_entity_count_luke]> == 10 {
          - narrate "<&2>[10/30 Entities killed]"
          }
        - if <player.flag[kill_entity_count_luke]> == 20 {
          - narrate "<&2>[20/30 Entities killed]"
          }
2kill_entity_world_luke:
    type: world
    events:
        on player kills entity:
        - if !<player.has_flag[2kill_entity_luke]> queue clear
        - flag player 2kill_entity_count_luke:++
        - if <player.flag[2kill_entity_count_luke]> == 200 {
          - flag player 2kill_entity_luke:!
          - narrate "<&2>[Return to your Guild NPC for killing 200 mobs!]"
          - zap 9 s@luke_interact
          }
        - if <player.flag[2kill_entity_count_luke]> == 50 {
          - narrate "<&2>[50/200 Entities killed]"
          }
        - if <player.flag[2kill_entity_count_luke]> == 100 {
          - narrate "<&2>[100/200 Entities killed]"
          }
        - if <player.flag[2kill_entity_count]> == 150 {
          - narrate "<&2>[150/200 Entities killed]"
          }
3kill_entity_world_luke:
    type: world
    events:
        on player kills entity:
        - if !<player.has_flag[3kill_entity_luke]> queue clear
        - flag player 3kill_entity_count_luke:++
        - if <player.flag[3kill_entity_count_luke]> == 500 {
          - flag player 3kill_entity_luke:!
          - narrate "<&2>[Return to your Guild NPC for killing 500 mobs!]"
          - zap 12 s@luke_interact
          }
        - if <player.flag[3kill_entity_count_luke]> == 100 {
          - narrate "<&2>[100/500 Entities killed]"
          }
        - if <player.flag[3kill_entity_count_luke]> == 200 {
          - narrate "<&2>[200/500 Entities killed]"
          }
        - if <player.flag[3kill_entity_count_luke]> == 300 {
          - narrate "<&2>[300/500 Entities killed]"
          }     
        - if <player.flag[3kill_entity_count_luke]> == 400 {
          - narrate "<&2>[400/500 Entities killed]"
          }
4kill_entity_world_luke:
    type: world
    events:
        on player kills entity:
        - if !<player.has_flag[4kill_entity_luke]> queue clear
        - flag player 4kill_entity_count_luke:++
        - if <player.flag[4kill_entity_count_luke]> == 700 {
          - flag player 4kill_entity_luke:!
          - narrate "<&2>[Return to your Guild NPC for killing 700 mobs!]"
          - zap 16 s@luke_interact
          }
        - if <player.flag[4kill_entity_count_luke]> == 100 {
          - narrate "<&2>[100/700 Entities killed]"
          }
        - if <player.flag[4kill_entity_count_luke]> == 200 {
          - narrate "<&2>[200/700 Entities killed]"
          }
        - if <player.flag[4kill_entity_count_luke]> == 300 {
          - narrate "<&2>[300/700 Entities killed]"
          } 
        - if <player.flag[4kill_entity_count_luke]> == 400 {
          - narrate "<&2>[400/700 Entities killed]"
          }    
        - if <player.flag[4kill_entity_count_luke]> == 500 {
          - narrate "<&2>[500/700 Entities killed]"
          }    
        - if <player.flag[4kill_entity_count_luke]> == 600 {
          - narrate "<&2>[600/700 Entities killed]"
          }                                  
5kill_entity_world_luke:
    type: world
    events:
        on player kills entity:
        - if !<player.has_flag[5kill_entity_luke]> queue clear
        - flag player 5kill_entity_count_luke:++
        - if <player.flag[5kill_entity_count_luke]> == 1000 {
          - flag player 5kill_entity_luke:!
          - narrate "<&2>[Return to your Guild NPC for killing 1000 mobs!]"
          - zap 20 s@luke_interact
          }
        - if <player.flag[5kill_entity_count_luke]> == 250 {
          - narrate "<&2>[250/1000 Entities killed]"
          }
        - if <player.flag[5kill_entity_count_luke]> == 500 {
          - narrate "<&2>[500/1000 Entities killed]"
          }
        - if <player.flag[5kill_entity_count_luke]> == 750 {
          - narrate "<&2>[750/1000 Entities killed]"
          }     
6kill_entity_world_luke:
    type: world
    events:
        on player kills entity:
        - if !<player.has_flag[6kill_entity_luke]> queue clear
        - flag player 6kill_entity_count_luke:++
        - if <player.flag[6kill_entity_count_luke]> == 1250 {
          - flag player 6kill_entity_luke:!
          - narrate "<&2>[Return to your Guild NPC for killing 1250 Entities!]"
          - zap 23 s@luke_interact
          }
        - if <player.flag[6kill_entity_count_luke]> == 250 {
          - narrate "<&2>[250/1250 Entities killed]"
          }
        - if <player.flag[6kill_entity_count_luke]> == 500 {
          - narrate "<&2>[500/1250 Entities killed]"
          }
        - if <player.flag[6kill_entity_count_luke]> == 750 {
          - narrate "<&2>[750/1250 Entities killed]"
          }   
        - if <player.flag[6kill_entity_count_luke]> == 1000 {
          - narrate "<&2>[1000/1250 Entities killed]"
          }      
7kill_entity_world_luke:
    type: world
    events:
        on player kills entity:
        - if !<player.has_flag[7kill_entity_luke]> queue clear
        - flag player 7kill_entity_count_luke:++
        - if <player.flag[7kill_entity_count_luke]> == 2000 && <player.factions.power> == 10 {
          - flag player 7kill_entity_luke:!
          - narrate "<&2>[Return to your Guild NPC for killing 2000 Entities and having 10 faction power!]"
          - zap 27 s@luke_interact
          }
        - if <player.flag[7kill_entity_count_luke]> == 500 {
          - narrate "<&2>[500/2000 Entities killed]"
          }
        - if <player.flag[7kill_entity_count_luke]> == 1000 {
          - narrate "<&2>[1000/2000 Entities killed]"
          }
        - if <player.flag[7kill_entity_count_luke]> == 1500 {
          - narrate "<&2>[1500/2000 Entities killed]"
          }  
        - if <player.flag[7kill_entity_count_luke]> == 2000 {
          - narrate "<&2>You've killed 2000 Entities, but not 10 faction power!"
          }  
luke_interact:
    type: interact
    steps:
        1:

            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate format:cchat "Hey <player.name>! Welcome to the Chiblocker's Training Guild!"
                - wait 2s
                - narrate format:cchat "Now that you're a Chiblocker, you'd probably like to learn some abilities!"
                - wait 3s
                - narrate format:cchat "Before I teach you anything, I must tell you that you cannot bend and can only do bare handed combat to block a bender's chi, disabling them from bending."
                - wait 5s
                - narrate format:cchat "Also, as a Chiblocker, you are able to run on walls by simply running and jumping toward a wall."
                - wait 4s
                - narrate format:cchat "Additionally, you can gain speed while you run!"
                - wait 3s
                - narrate format:cchat "Alright, type <&d>Ok <&2>when you are ready to begin learning your first move"
                - disengage
                - flag player npc_engaged:!  
                - zap 2    

        2:
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - narrate "<&b><npc.name><&co> <&2>Alright, so the first move I would like to teach you is <&6>QuickStrike<&2>."
                    - wait 4s
                    - narrate "<&2>Type <&d>/b b quickstrike <&2>to bind the ability to your currently selected slot in your hotbar."
                    - wait 3s
                    - narrate "<&d>Right Click <&2>me when you have bound your ability!"
                    - disengage
                    - flag player npc_engaged:!
                    - zap 3 
        3:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate format:cchat "Great!"
                - wait 1s
                - narrate format:cchat "QuickStrike enables a chiblocker to quickly strike an enemy, potentially blocking their chi."
                - wait 4s
                - narrate format:cchat "Ok try to use your new ability to kill these spiders!"
                - wait 3s
                - spawn spider|spider|spider <l@-94,103,353,Arena>  
                - flag player kill_spider_quest_luke
                - flag player kill_spider_quest_count_luke:0
                - flag player npc_engaged:!
                - disengage
                - zap 4                                  
        4:

            click trigger:
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - flag player npc_engaged
                    - engage
                    - narrate format:cchat "Great work!"
                    - wait 10t
                    - narrate format:cchat "That seems like enough to learn for now, considering the fact that there are only a few moves in total."
                    - wait 4s
                    - narrate format:cchat "Go forth and use your abilities to help you fight when you need the help against benders!"
                    - wait 3s
                    - narrate "<&b><npc.name><&co> <&2>Come back when you have killed about <&d>30 mobs <&2>or so and I'll teach you a couple more moves!"
                    - flag player kill_spider_quest_count_luke:!
                    - flag player kill_entity_luke
                    - flag player kill_entity_count_luke:0
                    - flag player npc_engaged:!
                    - disengage     
                    - zap 5
        5:

            click trigger:
                    script:
                    - random {
                      - narrate format:cchat "You haven't killed 30 mobs yet!"
                      - narrate format:cchat "Hey what do you think you're doing? Kill 30 mobs first!"
                      - narrate format:cchat "I know you are anxious to learn new moves, but you have to kill 30 mobs first!"
                      - narrate format:cchat "I know, I'm pretty great to be around, but if you want to hear something new from me, you have to kill 30 mobs!"
                      - narrate format:cchat "Haha, nice try. Go and kill 30 mobs first."
                      - narrate format:cchat "Feel free to practice your moves here in the guild or in the arena!"
                      }   
        6:

            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate format:cchat "Welcome back!"
                - wait 1s
                - narrate "<&b><npc.name><&co> <&2>You've been promoted to the <&d>Novice Rank<&2>, and you can now use new abilities!"
                - group set NChiBlocker
                - wait 5s
                - narrate "<&b><npc.name><&co> <&2>The first ability is called <&6>Backstab<&2>."
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>Go ahead and type <&d>/b b backstab <&2> similarly to all other moves."
                - wait 4s
                - narrate format:cchat "Strike your foe in the back with a hard jab, temporariliy blocking their Chi, and inflicting a lot of damage!"
                - wait 5s
                - narrate format:cchat "Because this ability is so powerful, it has a long cooldown."
                - wait 4s
                - narrate format:cchat "You must hit the target in the back or this ability won't work!"
                - wait 3s
                - narrate format:cchat "That's all there is to it! The next move I would like to teach you is called <&6>HighJump<&2>."
                - wait 4s
                - narrate format:cchat "To use this ability, simply <&d>click<&2>."
                - wait 2s
                - narrate format:cchat "You will jump quite high."
                - wait 2s
                - narrate format:cchat "This ability also has a short cooldown."
                - wait 3s
                - narrate format:cchat "Ok, you have learned all the moves available for a Novice."
                - wait 4s
                - narrate "<&b><npc.name><&co> <&2>Come back when you have killed about <&d>200 mobs<&2>."
                - wait 4s
                - narrate format:cchat "It doesn't matter what mob it is. You can even <&d>kill players <&2>if you like!"
                - wait 4s
                - narrate format:cchat "Good Luck, and I'll be here to teach you more moves when you're done!"
                - flag player kill_entity_count_luke:!
                - flag player npc_engaged:!
                - flag player 2kill_entity_luke
                - flag player 2kill_entity_count_luke:0
                - disengage
                - zap 7
        7:
            click trigger:
                    script:
                    - random {
                      - narrate format:cchat "You haven't killed <&d>200 mobs <&2>yet!"
                      - narrate format:cchat "Hey what do you think you're doing? Kill <&d>200 mobs <&2>first!"
                      - narrate format:cchat "I know you are anxious to learn new moves, but you have to kill <&d>200 mobs <&2>first!"
                      - narrate format:cchat "I know, I'm pretty great to be around and beautiful, but if you want to hear something new from me, you have to kill <&d>200 mobs<&2>!"
                      - narrate format:cchat "Haha, nice try. Go and kill <&d>200 mobs <&2>first."
                      - narrate format:cchat "Hey stop bothering me and kill <&d>200 mobs <&2>first. I need a little break, and you need some training!"
                      - narrate format:cchat "Are you the same guy who asked me last time without fulfilling the requirements? Come on!"
                      - narrate "<&b><npc.name><&co> <&2>You've only killed <&d><player.flag[2kill_entity_count_luke]> mobs<&2>! Come back when you have killed <&d>200 mobs<&2>!"
                      }
        8:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate format:cchat "Wow! Amazing work for killing 200 mobs!"
                - wait 2s
                - narrate "<&b><npc.name><&co> <&2>You are now an <&d>Advanced Chiblocker<&2>!"
                - group set AChiBlocker
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>The next move I would like to teach you is called <&6>AcrobatStance<&2>."
                - wait 4s
                - narrate "<&2>Type <&d>/b b acrobatstance <&2>to a new slot similarly to the other moves."
                - wait 7s
                - narrate format:cchat "AcrobatStance gives a Chiblocker a higher probability of blocking a Bender's Chi while granting them a Speed and Jump Boost."
                - wait 5s
                - narrate format:cchat "It also increases the rate at which the hunger bar depletes."
                - wait 3s
                - narrate format:cchat "To use, simply <&d>left click<&2>."
                - wait 2s
                - narrate format:cchat "<&d>Left clicking <&2>again will de-activate the stance."
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>Type <&d>Ok <&2>when you're ready to learn the next ability!"
                - flag player 2kill_entity_count_luke:!
                - flag player npc_engaged:!
                - disengage
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - narrate format:cchat "Sweet!"
                    - wait 1s
                    - narrate "<&b><npc.name><&co> <&2>The next move is called <&6>WarriorStance<&2>."
                    - wait 3s
                    - narrate format:cchat "WarriorStance gives a Chiblocker increased damage but makes them a tad more vulnerable."
                    - wait 4s
                    - narrate format:cchat "To activate, simply <&d>left click<&2>."
                    - wait 3s"
                    - narrate format:cchat "To deactivate, <&d>left click <&2>as well."
                    - wait 3s
                    - narrate "<&b><npc.name><&co> <&2>For your next task, I would like for you to <&d>kill 500 mobs or players<&2>, and I will promote you to the Expert Rank!"
                    - flag player 3kill_entity_katara
                    - flag player 3kill_entity_count_katara:0
                    - flag player npc_engaged:!
                    - disengage
                    - zap 9


                2: 
                    trigger: /No/, screw you luke!
                    script: 
                    - random {
                      - narrate format:cchat "Jeez pal, take a chill pill and just say Ok already!"
                      - narrate format:cchat "Well then, I don't have to teach you, good luck learning on your own!"
                      - narrate format:cchat "Ok, well I don't have to rank you up!"
                      - narrate format:cchat "Screw yourself!"
                      }

        9:
            click trigger:
                script:
                - random {
                  - narrate "<&b><npc.name><&co> <&2>You haven't killed <&d>500 mobs <&2>yet!"
                  - narrate "<&b><npc.name><&co> <&2>Hey what do you think you're doing? Kill <&d>500 mobs <&2>first!"
                  - narrate "<&b><npc.name><&co> <&2>I know you are anxious to learn new moves, but you have to kill <&d>500 mobs <&2>first!"
                  - narrate "<&b><npc.name><&co> <&2>I know, I'm pretty great to be around, but if you want to hear something new from me, you have to kill <&d>500 mobs<&2>!"
                  - narrate "<&b><npc.name><&co> <&2>Haha, nice try. Go and kill <&d>500 mobs <&2>first."
                  - narrate "<&b><npc.name><&co> <&2>Hey stop bothering me and kill <&d>500 mobs <&2>first. I need a little break, and you need some training!"
                  - narrate "<&b><npc.name><&co> <&2>Are you the same guy who asked me last time without fulfilling the requirements? Come on!"
                  - narrate "<&b><npc.name><&co> <&2>You've only killed <&d><player.flag[3kill_entity_count_luke]> mobs<&2>! Come back when you have killed <&d>500 mobs<&2>!"
                  - narrate format:cchat "Don't play games with me."
                  }
        10:

            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate "<&b><npc.name><&co> <&2>Congratulations! You're an <&d>Expert Chiblocker<&2>!"
                - group set EChiBlocker
                - wait 2s
                - narrate "<&b><npc.name><&co> <&2>One new move that comes with your rank is called <&6>Jab<&2>."
                - wait 3s
                - narrate format:cchat "This ability allows fast paced attacking."
                - wait 3s
                - narrate format:cchat "<&d>Left Clicking will activate this ability, as will right clicking, but it has to be on an entity."
                - wait 4s
                - narrate format:cchat "It can be used a certain number of times before going on cooldown."
                - wait 4s
                - narrate "<&b><npc.name><&co> <&2>Type <&d>Ok <&2>when you're ready to learn your next move"
                - flag player 3kill_entity_count_luke:!
                - flag player npc_engaged:!
                - disengage
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - narrate "<&b><npc.name><&co> <&2>Alright, the next move for you to learn today is called <&6>SwiftKick<&2>."
                    - wait 5s
                    - narrate "<&b><npc.name><&co> <&2>SwiftKick allows a chiblocker to swiftly kick an enemy, potentially blocking their chi."
                    - wait 5s
                    - narrate format:cchat "To use, <&d>left click <&2>while in the air."
                    - wait 3s
                    - narrate "<&b><npc.name><&co> <&2>Ok, so go ahead and try your new moves on any entity you want."
                    - wait 4s
                    - narrate "<&b><npc.name><&co> <&2>You can go crazy with them because the next quest I would like you to do is kill <&d>700 entities, players included<&2>!"
                    - flag player 4kill_entity_luke
                    - flag player 4kill_entity_count_luke:0
                    - flag player npc_engaged:!
                    - disengage
                    - zap 11
        11:
            click trigger:
                script:
                - random {
                  - narrate format:cchat "You haven't killed <&d>700 mobs <&2>yet!"
                  - narrate format:cchat "Hey what do you think you're doing? Kill <&d>700 mobs <&2>first!"
                  - narrate format:cchat "I know you are anxious to learn new moves, but you have to kill <&d>700 mobs <&2>first!"
                  - narrate format:cchat "I know, I'm pretty great to be around, but if you want to hear something new from me, you have to kill <&d>700 mobs<&2>!"
                  - narrate format:cchat "Haha, nice try. Go and kill <&d>700 mobs <&2>first."
                  - narrate format:cchat "Hey stop bothering me and kill <&d>700 mobs <&2>first. I need a little break, and you need some training!"
                  - narrate format:cchat "Are you the same guy who asked me last time without fulfilling the requirements? Come on!"
                  - narrate "<&b><npc.name><&co> <&2>You've only killed <&d><player.flag[4kill_entity_count_luke]> mobs<&2>! Come back when you have killed <&d>700 mobs<&2>!"
                  }
        12:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate "<&b><npc.name><&co> <&2>Congratulations! You're an <&d>Elite Chiblocker<&2> now!"
                - group set EliteChiBlocker
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>The next move in your arsenal is called <&6>SmokeScreen<&2>."
                - wait 3s
                - narrate format:cchat "Smokescreen, if used correctly, can serve as a defensive and offensive ability for Chiblockers."
                - wait 3s
                - narrate format:cchat "To use, simply <&d>left click <&2>and you will toss out a Smoke Bomb."
                - wait 3s
                - narrate format:cchat "When the bomb hits the ground, it will explode and give all players within a small radius of the explosion temporary blindness, allowing you to either get away, or move in for the kill."
                - wait 5s
                - narrate format:cchat "This ability has a long cooldown."
                - wait 2s
                - narrate format:cchat "Type <&d>OK <&2>when you're ready to learn the next move."
                - flag player npc_engaged:!
                - flag player 4kill_entity_count_luke:!
                - disengage
                - zap 13
        13:
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - narrate format:cchat "Alright, the next move is called <&6>ShadowSuit<&2>."
                    - wait 2s
                    - narrate format:cchat "This is an ability that enhances a chiblocker's strength in the shadows."
                    - wait 3s
                    - narrate format:cchat "<&d>Tap shift <&2>with this ability bound to enter stealth mode."
                    - wait 3s
                    - narrate format:cchat "While active, you will not be able to sprint, as this will disable the ability."
                    - wait 4s
                    - narrate format:cchat "Changing slots, attacking, or being attacked will also disable it."
                    - wait 3s
                    - narrate "<&b><npc.name><&co> <&2>Alright, that's all I got for you today, I hope your new abilities are useful in both combat and utility purposes!"
                    - wait 5s
                    - narrate "<&b><npc.name><&co> <&2>I would like for you to slay <&d>1000 mobs<&2>!"
                    - wait 3s
                    - narrate format:cchat "I know it's a lot of kills, but it is what is required for one to become a Master and learn new moves!"
                    - wait 5s
                    - narrate format:cchat "See you then!"
                    - flag player 5kill_entity_luke
                    - flag player 5kill_entity_count_luke:0
                    - flag player npc_engaged:!
                    - disengage
                    - zap 14
        14:
            click trigger:
                script:
                - random {
                  - narrate format:cchat "You haven't killed <&d>1000 mobs <&2>yet!"
                  - narrate format:cchat "Hey what do you think you're doing? Kill <&d>1000 mobs <&2>first!"
                  - narrate format:cchat "I know you are anxious to learn new moves, but you have to kill <&d>1000 mobs <&2>first!"
                  - narrate format:cchat "I know, I'm pretty great to be around, but if you want to hear something new from me, you have to kill <&d>1000 mobs<&2>!"
                  - narrate format:cchat "Haha, nice try. Go and kill <&d>1000 mobs <&2>first."
                  - narrate format:cchat "Hey stop bothering me and kill <&d>1000 mobs <&2>first. I need a little break, and you need some training!"
                  - narrate format:cchat "Are you the same guy who asked me last time without fulfilling the requirements? Come on!"
                  - narrate "<&b><npc.name><&co> <&2>You've only killed <&d><player.flag[5kill_entity_count_luke]> mobs<&2>! Come back when you have killed <&d>1000 mobs<&2>!"
                  }
        15:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate format:cchat "Wow! I can tell you are a very dedicated Chiblocker!"
                - wait 3s
                - narrate format:cchat "I'm extremely proud of your hard work!"
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>You are now a <&d>Master Chiblocker<&2>!"
                - group set MChiBlocker
                - wait 3s
                - narrate format:cchat "Alright, back to business!"
                - wait 2s
                - narrate "<&b><npc.name><&co> <&2>The next move I would like to teach you is called <&6>RapidPunch<&2>."
                - wait 4s
                - narrate "<&b><npc.name><&co> <&2>This ability allows the chiblocker to punch rapidly in a short period."
                - wait 4s
                - narrate format:cchat "To use, simply <&d>punch an entity<&2>."
                - wait 2s
                - narrate format:cchat "This has a short cooldown."
                - wait 2s
                - narrate "<&b><npc.name><&co> <&2>Type <&d>Ok <&2>when you're ready to learn your first combo after you've practiced your ability."
                - flag player 5kill_entity_count_luke:!
                - flag player npc_engaged:!
                - disengage
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - narrate "<&b><npc.name><&co> <&2>Ok so the first combo I would like to teach you is called <&6>ChiblockJab<&2>."
                    - wait 4s
                    - narrate format:cchat "This combo allows you to completely chiblock a player, disabling them from bending temporarily." 
                    - wait 3s
                    - narrate format:cchat "Usage<&co> Jab (Right Click) > Jab (Left Click) > Jab (Right Click)"
                    - wait 4s
                    - narrate format:cchat "Well, that's all the moves and combos I have for you today."
                    - wait 3s
                    - narrate format:cchat "Alright so I know that you have a lot of moves to remember and there are too many to have all of them in your hotbar."
                    - wait 7s
                    - narrate "<&b><npc.name><&co> <&2>Since you've learned so many moves, you can do the command <&d>/b d Chi<&2>, which is short for /bending display Chi."
                    - wait 7s
                    - narrate "<&b><npc.name><&co> <&2>Additionally, you can do <&d>/b h (bendingmove) <&2>to see how to use the move."
                    - wait 5s
                    - narrate "<&b><npc.name><&co> <&2>And then obviously, <&d>/b b (bendingmove) <&2>binds the ability to your selected slot in your hotbar."
                    - wait 6s
                    - narrate "<&b><npc.name><&co> <&2>Ok, now I would like for you to train by killing another <&d>1250 entities including players <&2>for your next lesson!"
                    - flag player 6kill_entity_luke
                    - flag player 6kill_entity_count_luke:0
                    - flag player npc_engaged:!
                    - disengage
                    - zap 16
        16:
            click trigger:
                script:
                - random {
                  - narrate format:cchat "You haven't killed <&d>1250 mobs <&2>yet!"
                  - narrate format:cchat "Hey what do you think you're doing? Kill <&d>1250 mobs <&2>first!"
                  - narrate format:cchat "I know you are anxious to learn new moves, but you have to kill <&d>1250 mobs <&2>first!"
                  - narrate format:cchat "I know, I'm pretty great to be around, but if you want to hear something new from me, you have to kill <&d>1250 mobs<&2>!"
                  - narrate format:cchat "Haha, nice try. Go and kill <&d>1250 mobs <&2>first."
                  - narrate format:cchat "Hey stop bothering me and kill <&d>1250 mobs <&2>first. I need a little break, and you need some training!"
                  - narrate format:cchat "Are you the same guy who asked me last time without fulfilling the requirements? Come on!"
                  - narrate "<&b><npc.name><&co> <&2>You've only killed <&d><player.flag[6kill_entity_count_luke]> mobs<&2>! Come back when you have killed <&d>1250 mobs<&2>!"
                  }
        17:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate "<&b><npc.name><&co> <&2>Congratulations! You are now a <&d>Grandmaster Chiblocker<&2>!"
                - group set GChiBlocker
                - wait 4s
                - narrate format:cchat "Whew, I'm almost done teaching you everything there is to know about Chiblocking!"
                - wait 5s
                - narrate "<&b><npc.name><&co> <&2>Alright, today I'm going to teach you a new combo called <&6>FlyingKick<&2>."
                - wait 4s
                - narrate "<&b><npc.name><&co> <&2>Leap through the air, kicking entities you may encounter along the way."
                - wait 4s
                - narrate format:cchat "This combo ends when you hit the ground!"
                - wait 3s 
                - narrate format:cchat "Usage<&co> SwiftKick (Hold Sneak) > SwiftKick (Left Click)"
                - wait 4s
                - narrate format:cchat "Type <&d>Ok <&2>when you're ready to learn your next deadly move."
                - flag player npc_engaged:!
                - disengage
                - zap 18
        18:
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player,has_flag[npc_engaged]> queue clear
                    - engage
                    - narrate format:cchat "Alright, the next move is called <&6>Paralyze<&2>."
                    - wait 3s
                    - narrate format:cchat "Hit benders to paralyze them."
                    - wait 3s
                    - narrate format:cchat "If you hit them normally, they will be slowed and won't be able to click to bend."
                    - wait 4s
                    - narrate format:cchat "If you hit them while <&d>holding sneak<&2>, they won't be able to use sneak to bend for a while."
                    - wait 4s
                    - narrate format:cchat "This ability has a long cooldown."
                    - wait 3s
                    - narrate "<&b><npc.name><&co> <&2>Alright, that's all for now, come back to earn your last and final rank as a Chiblocker when you have killed <&d>2000 <&2>entities and have 10 faction power!"
                    - wait 7s
                    - narrate format:cchat "Good luck, and I'll be waiting!"
                    - flag player npc_engaged:!
                    - flag player 7kill_entity_luke
                    - flag player 7kill_entity_count_luke:0
                    - disengage
                    - zap 19

        19:
            click trigger:
                script:
                - if <player.flag[7kill_entity_count_luke] >= 2000 && <player.factions.power> < 10 {
                  - random {
                    - narrate format:cchat "I can see that you have killed 2000 mobs, but you haven't reached <&d>10 <&2>power in your faction."
                    - narrate format:cchat "Don't forget to get your <&d>10 <&2>faction power as well!"
                    - narrate format:cchat "Congratulations on 2000 mobs! The only sad thing is that you didn't get <&d>10 <&2>faction power yet!"
                    - narrate format:cchat "You are so close to the legendary rank! All you need now is earn <&d>10 <&2>faction power."
                    }
                }
                - random {
                  - narrate format:cchat "You haven't killed <&d>2000 mobs <&2>yet!"
                  - narrate format:cchat "Hey what do you think you're doing? Kill <&d>2000 mobs <&2>first!"
                  - narrate format:cchat "I know you are anxious to learn new moves, but you have to kill <&d>2000 mobs <&2>first!"
                  - narrate format:cchat "I know, I'm pretty great to be around, but if you want to hear something new from me, you have to kill <&d>2000 mobs<&2>!"
                  - narrate format:cchat "Haha, nice try. Go and kill <&d>2000 mobs <&2>first."
                  - narrate format:cchat "Hey stop bothering me and kill <&d>2000 mobs <&2>first. I need a little break, and you need some training!"
                  - narrate format:cchat "Are you the same guy who asked me last time without fulfilling the requirements? Come on!"
                  - narrate "<&b><npc.name><&co> <&2>You've only killed <&d><player.flag[7kill_entity_count_luke]> mobs<&2>! Come back when you have killed <&d>2000 mobs<&2>!"
                  }
        20:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate format:cchat "Well, this is it, the last lesson from your old Guild Master."
                - wait 4s
                - narrate format:cchat "It is my honor to grant you the <&b>Legendary Chiblocker <&2>rank!"
                - group set LChiBlocker
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>Ok so I'm going to teach you a combo called <&6>Immobilize<&2>."
                - wait 4s
                - narrate "<&b><npc.name><&co> <&2>With this, you will be able to Immobilize your opponent for several seconds."
                - wait 4s
                - narrate format:cchat "Usage<&co> QuickStrike (Left Click) > SwiftKick (Left Click) > QuickStrike (Left Click Twice)"
                - wait 4s
                - narrate format:cchat "Alright type <&d>Ok <&2>when you're ready to learn your final move."
                - flag player 7kill_entity_count_luke:!
                - flag player npc_engaged:!
                - disengage
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - narrate format:cchat "Alright, this move is called <&6>DaggerThrow<&2>."
                    - wait 4s
                    - narrate format:cchat "With this ability bound, <&d>Left-Click <&2>in rapid succession to shoot arrows out of your inventory at your target!"
                    - wait 3s
                    - narrate format:cchat "Well, that's all I have to teach you!"
                    - wait 3s
                    - narrate format:cchat "I am very proud of your hard work and dedication."
                    - wait 3s
                    - narrate format:cchat "I still remember when you were just a Rookie; you've come so far."
                    - wait 4s
                    - narrate format:cchat "Ok so I'll let you go now, and come back to pay me a visit from time to time!"
                    - wait 5s
                    - narrate format:cchat "See ya later!"
                    - flag player npc_engaged:!
                    - disengage
                    - zap 21
        21:
            click trigger:
                script:
                - narrate format:cchat "Hey <player.name>! How's it going!"
                - wait 3s
                - narrate format:cchat "Do you need any help as a reminder of the commands? Just say <&d>Yes <&2>or <&d>No"
            chat trigger:
                1:
                    trigger: /Yes/ please!
                    script:
                    - narrate format:cchat "Ok to bind your ability type <&d>/b b (bending move)<&2>."
                    - wait 4s
                    - narrate format:cchat "To see a list of all possible abilities you can bind, type <&d>/b d Chi"
                    - wait 5s
                    - narrate format:cchat "If you need help with a specific move or combo, type <&d>/b h (move or combo)"
                    - wait 5s
                    - narrate format:cchat "Lastly, a new command I haven't taught you is to see what element each person is by doing <&d>/b w"
                    - wait 7s
                    - narrate format:cchat "Alright that's all, good luck on your travels!"
                2:
                    trigger: /No/ thanks!
                    script:
                    - narrate format:cchat "Alright good luck, you can chill here if you like or practice your moves!"