Paste #43345: Earth

Date: 2017/08/06 13:42:21 UTC-07: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
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
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027


Toph:
    type: assignment
    actions:
        on assignment: 
        - trigger name:click state:true
        - trigger name:chat state:true
    interact scripts:
    - 10 toph_interact

kill_spider_quest_world_toph:
    type: world
    debug: false
    events: 
        on player kills spider:
        - if !<player.has_flag[kill_spider_quest_toph]> queue clear
        - flag player kill_spider_quest_count_toph:++
        - if <player.flag[kill_spider_quest_count_toph]> == 3 {
          - narrate "<&2>[Return to Prof]"
          - flag player kill_spider_quest_toph:!
          - zap 5 s@toph_interact
        }
kill_entity_world_toph:
    type: world
    debug: false
    events:
        on player kills entity:
        - if !<player.has_flag[kill_entity_toph]> queue clear
        - flag player kill_entity_count_toph:++
        - if <player.flag[kill_entity_count_toph]> == 30 {
          - flag player kill_entity_toph:!
          - narrate "<&2>[Return to your Guild NPC for killing 30 mobs!]"
          - zap 7 s@toph_interact
          }
        - if <player.flag[kill_entity_count_toph]> == 10 {
          - narrate "<&2>[10/30 Entities killed]"
          }
        - if <player.flag[kill_entity_count_toph]> == 20 {
          - narrate "<&2>[20/30 Entities killed]"
          }
2kill_entity_world_toph:
    type: world
    debug: false
    events:
        on player kills entity:
        - if !<player.has_flag[2kill_entity_toph]> queue clear
        - flag player 2kill_entity_count_toph:++
        - if <player.flag[2kill_entity_count_toph]> == 200 {
          - flag player 2kill_entity_toph:!
          - narrate "<&2>[Return to your Guild NPC for killing 200 mobs!]"
          - zap 9 s@toph_interact
          }
        - if <player.flag[2kill_entity_count_toph]> == 50 {
          - narrate "<&2>[50/200 Entities killed]"
          }
        - if <player.flag[2kill_entity_count_toph]> == 100 {
          - narrate "<&2>[100/200 Entities killed]"
          }
        - if <player.flag[2kill_entity_count]> == 150 {
          - narrate "<&2>[150/200 Entities killed]"
          }
3kill_entity_world_toph:
    type: world
    debug: false
    events:
        on player kills entity:
        - if !<player.has_flag[3kill_entity_toph]> queue clear
        - flag player 3kill_entity_count_toph:++
        - if <player.flag[3kill_entity_count_toph]> == 500 {
          - flag player 3kill_entity_toph:!
          - narrate "<&2>[Return to your Guild NPC for killing 500 mobs!]"
          - zap 12 s@toph_interact
          }
        - if <player.flag[3kill_entity_count_toph]> == 100 {
          - narrate "<&2>[100/500 Entities killed]"
          }
        - if <player.flag[3kill_entity_count_toph]> == 200 {
          - narrate "<&2>[200/500 Entities killed]"
          }
        - if <player.flag[3kill_entity_count_toph]> == 300 {
          - narrate "<&2>[300/500 Entities killed]"
          }     
        - if <player.flag[3kill_entity_count_toph]> == 400 {
          - narrate "<&2>[400/500 Entities killed]"
          }
4kill_entity_world_toph:
    type: world
    debug: false
    events:
        on player kills entity:
        - if !<player.has_flag[4kill_entity_toph]> queue clear
        - flag player 4kill_entity_count_toph:++
        - if <player.flag[4kill_entity_count_toph]> == 700 {
          - flag player 4kill_entity_toph:!
          - narrate "<&2>[Return to your Guild NPC for killing 700 mobs!]"
          - zap 14 s@toph_interact
          }
        - if <player.flag[4kill_entity_count_toph]> == 100 {
          - narrate "<&2>[100/700 Entities killed]"
          }
        - if <player.flag[4kill_entity_count_toph]> == 200 {
          - narrate "<&2>[200/700 Entities killed]"
          }
        - if <player.flag[4kill_entity_count_toph]> == 300 {
          - narrate "<&2>[300/700 Entities killed]"
          } 
        - if <player.flag[4kill_entity_count_toph]> == 400 {
          - narrate "<&2>[400/700 Entities killed]"
          }    
        - if <player.flag[4kill_entity_count_toph]> == 500 {
          - narrate "<&2>[500/700 Entities killed]"
          }    
        - if <player.flag[4kill_entity_count_toph]> == 600 {
          - narrate "<&2>[600/700 Entities killed]"
          }                                  
5kill_entity_world_toph:
    type: world
    debug: false
    events:
        on player kills entity:
        - if !<player.has_flag[5kill_entity_toph]> queue clear
        - flag player 5kill_entity_count_toph:++
        - if <player.flag[5kill_entity_count_toph]> == 1000 {
          - flag player 5kill_entity_toph:!
          - narrate "<&2>[Return to your Guild NPC for killing 1000 mobs!]"
          - zap 18 s@toph_interact
          }
        - if <player.flag[5kill_entity_count_toph]> == 250 {
          - narrate "<&2>[250/1000 Entities killed]"
          }
        - if <player.flag[5kill_entity_count_toph]> == 500 {
          - narrate "<&2>[500/1000 Entities killed]"
          }
        - if <player.flag[5kill_entity_count_toph]> == 750 {
          - narrate "<&2>[750/1000 Entities killed]"
          }   
6kill_entity_world_toph:
    type: world
    debug: false
    events:
        on player kills entity:
        - if !<player.has_flag[6kill_entity_toph]> queue clear
        - flag player 6kill_entity_count_toph:++
        - if <player.flag[6kill_entity_count_toph]> == 1250 {
          - flag player 6kill_entity_toph:!
          - narrate "<&2>[Return to your Guild NPC for killing 1250 Entities!]"
          - zap 20 s@toph_interact
          }
        - if <player.flag[6kill_entity_count_toph]> == 250 {
          - narrate "<&2>[250/1250 Entities killed]"
          }
        - if <player.flag[6kill_entity_count_toph]> == 500 {
          - narrate "<&2>[500/1250 Entities killed]"
          }
        - if <player.flag[6kill_entity_count_toph]> == 750 {
          - narrate "<&2>[750/1250 Entities killed]"
          }   
        - if <player.flag[6kill_entity_count_toph]> == 1000 {
          - narrate "<&2>[1000/1250 Entities killed]"
          }   
7kill_entity_world_toph:
    type: world
    debug: false
    events:
        on player kills entity:
        - if !<player.has_flag[7kill_entity_toph]> queue clear
        - flag player 7kill_entity_count_toph:++
        - if <player.flag[7kill_entity_count_toph]> == 1500 {
          - flag player 7kill_entity_toph:!
          - narrate "<&2>[Return to your Guild NPC for killing 1500 Entities!]"
          - zap 23 s@toph_interact
          }
        - if <player.flag[6kill_entity_count_toph]> == 250 {
          - narrate "<&2>[250/1500 Entities killed]"
          }
        - if <player.flag[6kill_entity_count_toph]> == 500 {
          - narrate "<&2>[500/1500 Entities killed]"
          }
        - if <player.flag[6kill_entity_count_toph]> == 750 {
          - narrate "<&2>[750/1500 Entities killed]"
          }   
        - if <player.flag[6kill_entity_count_toph]> == 1000 {
          - narrate "<&2>[1000/1500 Entities killed]"
          }   
        - if <player.flag[6kill_entity_count_toph]> == 1250 {
          - narrate "<&2>[1250/1500 Entities killed]"
          }      
8kill_entity_world_toph:
    type: world
    debug: false
    events:
        on player kills entity:
        - if !<player.has_flag[8kill_entity_toph]> queue clear
        - flag player 8kill_entity_count_toph:++
        - if <player.flag[8kill_entity_count_toph]> == 2000 && <player.factions.power> == 10 {
          - flag player 8kill_entity_toph:!
          - narrate "<&2>[Return to your Guild NPC for killing 2000 Entities and having 10 faction power!]"
          - zap 26 s@toph_interact
          }
        - if <player.flag[7kill_entity_count_toph]> == 500 {
          - narrate "<&2>[500/2000 Entities killed]"
          }
        - if <player.flag[7kill_entity_count_toph]> == 1000 {
          - narrate "<&2>[1000/2000 Entities killed]"
          }
        - if <player.flag[7kill_entity_count_toph]> == 1500 {
          - narrate "<&2>[1500/2000 Entities killed]"
          }  
        - if <player.flag[7kill_entity_count_toph]> == 2000 {
          - narrate "<&2>You've killed 2000 Entities, but not 10 faction power!"
          }  
toph_interact:
    type: interact
    debug: false
    steps:
        1:

            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate format:cchat "Hey <player.name>! Welcome to the Earthbender's Training Guild!"
                - wait 2s
                - narrate format:cchat "Now that you're a Earthbender, you'd probably like to learn some abilities!"
                - wait 3s
                - narrate format:cchat "Before I teach you anything, I must tell you that as an Earthbender, you will be able to see in the dark through feeling the vibrations in the earth as if you have a light!"
                - wait 6s
                - 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 <&a>EarthBlast<&2>."
                    - wait 4s
                    - narrate "<&2>Type <&d>/b b earthblast <&2>to bind the ability to your currently selected slot in your hotbar<&2>."
                    - 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 "<&a>EarthBlast <&2>is a fundamental bending move for an Earthbender." 
                - wait 3s
                - narrate format:cchat "To use, <&d>tap sneak<&2> at an earthbendable block (dirt, stone, ore, etc) and then <&d>Left Click<&2> in a direction to send the earthblast."
                - wait 5s
                - narrate format:cchat "Additionally, you can <&d>left click <&2>again to change the direction of the earthblast."
                - wait 3s
                - narrate format:cchat "You can also redirect other player's earthblasts by <&d>Left Clicking<&2>."
                - wait 3s
                - narrate format:cchat "If it hits an enemy, it will do damage and knockback."
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>Type <&d>Ok <&2>when you're ready to learn your next move!"
                - disengage
                - flag player npc_enaged:!
                - zap 4                 
        4:

            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - narrate format:cchat "Congratulations on learning your first move!"
                    - wait 2s
                    - narrate "<&b><npc.name><&co> <&2>The next move I would like to teach you is the move <&a>Tremorsense<&2>."
                    - wait 3s
                    - narrate format:cchat "Type <&d>/b b tremorsense <&2>in a different slot than <&a>EarthBlast <&2>to bind the ability to your currently selected slot in your hotbar"
                    - wait 4s
                    - narrate format:cchat "Tremorsense is a pure utility move for earthbenders."
                    - wait 3s
                    - narrate format:cchat "This is the ability that allows you to <&sq>see<&sq> in the dark, like what I mentioned earlier."
                    - wait 4s
                    - narrate format:cchat "You can also <&d>Left Click<&2> and smoke will appear above earth with pockets of air beneath them."
                    - wait 4s
                    - narrate format:cchat "This is especially useful when looking for caves!"
                    - wait 3s
                    - narrate format:cchat "Ok try to use your new abilities to kill these spiders!"
                    - wait 4s
                    - spawn spider|spider|spider <l@1217,67,-888,Arena>  
                    - flag player kill_spider_quest_toph
                    - flag player kill_spider_quest_count_toph:0
                    - flag player npc_engaged:!
                    - disengage
                    - zap 5

        5:

            click trigger:
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - narrate format:cchat "Great work!"
                    - wait 10t
                    - narrate format:cchat "That seems like enough moves to learn for now!"
                    - wait 2s
                    - narrate format:cchat "Go forth and use your abilities to better yourself and benefit the world around you!"
                    - 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_toph:!
                    - flag player kill_entity_toph
                    - flag player kill_entity_count_toph:0
                    - flag player npc_engaged:!
                    - disengage     
                    - zap 6
        6:

            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!"
                      }   
        7:

            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 bend new abilities!"
                - group set NEarthBender
                - wait 5s
                - narrate format:cchat "The first move I'd like to teach you today is called <&a>RaiseEarth<&2>."
                - wait 3s
                - narrate format:cchat "Type <&d>/b b raiseearth <&2> like with any ability to bind the ability to your hotbar."
                - wait 4s
                - narrate format:cchat "To use, simply <&d>left-click <&2>on an earthbendable block."
                - wait 3s
                - narrate format:cchat "A column of earth will shoot upwards from that location."
                - wait 3s
                - narrate format:cchat "Anything in the way of the column will be brought up with it, leaving talented benders the ability to trap brainless entities up there!"
                - wait 4s
                - narrate format:cchat "Additionally, simply <&d>sneak (default shift) <&2>looking at an earthbendable block."
                - wait 3s
                - narrate format:cchat "A wall of earth will shoot upwards from that location."
                - wait 3s
                - narrate format:cchat "Anything in the way of the wall will be brought up with it."
                - wait 4s
                - narrate format:cchat "That's all there is to it!"
                - wait 3s
                - narrate format:cchat "Go ahead and try your new abilities until you think you've got them down."
                - wait 4s
                - narrate format:cchat "Type <&d>Ok <&2>when you are ready to learn your next moves for today."
                - flag player kill_entity_count_toph:!
                - flag player kill_entity_toph:!
                - flag player npc_engaged:!
                - disengage
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - group set NEarthBender
                    - narrate format:cchat "Alright, so the next move I have for you is called <&a>Collapse<&2>, which goes very handy with <&a>RaiseEarth<&2>."
                    - wait 4s
                    - narrate format:cchat "To use, simply <&d>left-click <&2>on an earthbendable block."
                    - wait 3s 
                    - narrate format:cchat "That block and the earthbendable blocks above it will be shoved back into the earth below them, if they can."
                    - wait 4s
                    - narrate format:cchat "This ability does have the capacity to trap something inside of it, although it is incredibly difficult to do so."
                    - wait 4s
                    - narrate format:cchat "Additionally, press <&d>sneak <&2>with this ability to affect an area around your targetted location - all earth that can be moved downwards will be moved downwards."
                    - wait 6s
                    - narrate format:cchat "This ability is especially risky or deadly in caves, depending on the earthbender's goal and technique."
                    - 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 npc_engaged:!
                    - flag player 2kill_entity_toph
                    - flag player 2kill_entity_count_toph:0
                    - disengage
                    - zap 8
        8:
            click trigger:
                    script:
                    - group set NEarthBender
                    - 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_toph]> mobs<&2>! Come back when you have killed <&d>200 mobs<&2>!"
                      }
        9:
            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 Earthbender<&2>!"
                - group set AEarthBender
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>The next move I would like to teach you is called <&a>EarthArmor<&2>."
                - wait 4s
                - narrate "<&2>Type <&d>/b b eartharmor <&2>to a new slot similarly to the other moves."
                - wait 5s
                - narrate format:cchat "This ability encases the earthbender in temporary armor."
                - wait 3s
                - narrate format:cchat "To use, <&d>click <&2>on a block that is earthbendable, including metal."
                - wait 3s
                - narrate format:cchat "If there is another block under it that is earthbendable, the block will fly to you and grant you temporary armor and damage reduction."
                - wait 4s
                - narrate format:cchat "This ability has a long cooldown."
                - wait 2s
                - narrate "<&b><npc.name><&co> <&2>Type <&d>Ok <&2>when you're ready to learn the next ability!"
                - flag player 2kill_entity_count_toph:!
                - flag player npc_engaged:!
                - disengage
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - group set AEarthBender
                    - narrate format:cchat "Sweet!"
                    - wait 1s
                    - narrate "<&b><npc.name><&co> <&2>The next move is called <&a>EarthTunnel<&2>."
                    - wait 3s
                    - narrate format:cchat "This ability is just a utility for earthbenders."
                    - wait 3s
                    - narrate format:cchat "It allows you to dig a hole that lowers players down while you use it or create fast escape routes!"
                    - wait 4s
                    - narrate format:cchat "To use, <&d>hold sneak<&2> while looking at an earthbendable block to tunnel the blocks away."
                    - wait 3s
                    - narrate format:cchat "<&d>Releasing sneak<&2> or looking at a block that isn't earthbendable will cancel the ability."
                    - wait 4s
                    - narrate format:cchat "Type <&d>Ok <&2>once again when you're ready to learn your final move for today."
                    - flag player npc_engaged:!
                    - disengage
                    - zap 10

                2: 
                    trigger: /No/, screw you Prof!
                    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!"
                      }
        10:
            chat trigger: 
                1:
                    trigger: /Ok/, I'm ready
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - group set AEarthBender
                    - narrate format:cchat "Great!"
                    - wait 1s
                    - narrate format:cchat "The last move is called <&a>EarthSmash<&2>."
                    - wait 3s
                    - narrate format:cchat "To raise an EarthSmash <&d>hold sneak (Default<&co> Shift) <&2>for approximately 1.5 seconds, then release while aiming at dirt."
                    - wait 5s
                    - narrate format:cchat "To grab the EarthSmash aim at the center and <&d>hold sneak<&2>, the EarthSmash will follow your mouse."
                    - wait 4s
                    - narrate format:cchat "You can shoot the EarthSmash by grabbing onto it and <&d>left clicking<&2>."
                    - wait 3s
                    - narrate format:cchat "To ride the EarthSmash simply hop ontop of it and <&d>hold sneak <&2>while aiming in the direction that you wish to go."
                    - wait 5s
                    - narrate format:cchat "Another way to ride an EarthSmash is to grab it with <&d>sneak <&2>and then <&d>right click <&2>it."
                    - wait 4s
                    - narrate format:cchat "Use EarthSmash as a defensive shield, a powerful attack, or an advanced means of transportation."
                    - wait 4s
                    - 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_toph
                    - flag player 3kill_entity_count_toph:0
                    - disengage
                    - flag player npc_engaged:!
                    - zap 11

        11:
            click trigger:
                script:
                - group set AEarthBender
                - 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_toph]> mobs<&2>! Come back when you have killed <&d>500 mobs<&2>!"
                  - narrate format:cchat "Don't play games with me."
                  }
        12:

            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate "<&b><npc.name><&co> <&2>Congratulations! You're an <&d>Expert Earthbender<&2>!"
                - group set EEarthBender
                - wait 2s
                - narrate format:cchat "As an <&d>Expert Earthbender<&2>, you are able to make a firm landing negating all fall damage on any earthbendable surface."
                - wait 5s
                - narrate "<&b><npc.name><&co> <&2>One new move that comes with your rank is called <&a>EarthRift<&2>."
                - wait 3s
                - narrate format:cchat "Create a line of earth spikes, damaging anything near it!"
                - wait 3s
                - narrate format:cchat "To use, simply <&d>sneak<&2>. When you <&d>release sneak<&2>, the ability will stop."
                - wait 3s
                - narrate format:cchat "Move your cursor to change the direction of the line."
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>Alright, type <&d>Ok <&2>when you're ready to learn your next move"
                - flag player 3kill_entity_count_toph:!
                - flag player npc_engaged:!
                - disengage
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - group set EEarthBender
                    - narrate "<&b><npc.name><&co> <&2>Alright, the next move for you to learn today is move called <&a>Catapult<&2>."
                    - wait 4s
                    - narrate "<&b><npc.name><&co> <&2>Catapult is an advanced earthbending ability that allows you to forcefully push yourself using earth, reaching great heights."
                    - wait 5s
                    - narrate format:cchat "This technique is best used when travelling, but it can also be used to quickly escape a battle."
                    - wait 4s
                    - narrate format:cchat "To use, <&d>Hold sneak <&2>until you see particles and hear a sound and then <&d>release <&2>to be propelled in the direction you're looking."
                    - wait 4s
                    - narrate format:cchat "Additionally, you can <&d>left-click <&2>to be propelled with less power."
                    - wait 6s
                     - 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, including players<&2>!"
                    - flag player 4kill_entity_toph
                    - flag player 4kill_entity_count_toph:0
                    - flag player npc_engaged:!
                    - disengage
                    - zap 13
        13:
            click trigger:
                script:
                - group set EEarthBender
                - 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_toph]> mobs<&2>! Come back when you have killed <&d>700 mobs<&2>!"
                  }
        14:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate "<&b><npc.name><&co> <&2>Congratulations! You're an <&d>Elite Earthbender<&2> now!"
                - group set EliteEarthBender
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>The next move in your arsenal is called <&a>EarthWave<&2>."
                - wait 3s
                - narrate format:cchat "With this ability bound, <&d>left-click <&2>at your target to send a wave to push them back."
                - wait 3s
                - narrate format:cchat "You can also <&d>tap shift <&2>when the wave is moving to launch the blocks upwards to launch an enemy."
                - wait 4s
                - narrate format:cchat "It doesn't do any damage, but it can be useful when trying to get away from enemies!"
                - wait 3s
                - 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_toph:!
                - disengage
                - zap 15
        15:
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - group set EliteEarthBender
                    - narrate format:cchat "Alright, the next move is called <&a>EarthGrab<&2>."
                    - wait 2s
                    - narrate format:cchat "EarthGrab is one of the best defence abilities in an earthbender's aresenal."
                    - wait 3s
                    - narrate format:cchat "It allows you to trap someone who is running away so that you can catch up to someone, or quickly create a dome to protect yourself from incomming attacks."
                    - wait 5s
                    - narrate format:cchat "Although this ability is basic, it requires fast reactions to reach its full potential."
                    - wait 3s
                    - narrate format:cchat "To grab an entity, <&d>hold sneak <&2>and <&d>left click <&2>in the direction of the target."
                    - wait 4s
                    - narrate format:cchat "Earth will expand out and create an earth dome around the target, trapping them."
                    - wait 3s
                    - narrate format:cchat "To encase yourself in an earth dome, simply <&d>left click <&2>at an earthbendable block under you."
                    - wait 3s
                    - narrate format:cchat "I know you're probably getting tired of typing Ok all the time, so just <&d>right click <&2>me when you're ready for your next move."
                    - flag player npc_engaged:!
                    - disengage
                    - zap 16
        16:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - group set EliteEarthBender
                - narrate format:cchat "Aren't you happy I didn't require you to type?"
                - wait 2s
                - narrate format:cchat "Just kidding, I know I had to make you walk up to me and right click me instead."
                - wait 4s
                - narrate format:cchat "Ok, so the final move I have to teach you today is called <&a>ShockWave<&2>."
                - wait 4s
                - narrate "<&b><npc.name><&co> <&2>This is one of the most powerful moves in the earthbender's arsenal."
                - wait 3s
                - narrate format:cchat "To use, you must first charge it by <&d>holding sneak (Default<&co> Shift)<&2>."
                - wait 3s
                - narrate format:cchat "Once charged, you can <&d>release sneak <&2>to create an enormous shockwave of earth, disturbing all earth around you and expanding radially outwards."
                - wait 5s
                - narrate format:cchat "Anything caught in the shockwave will be blasted back and dealt damage."
                - wait 3s
                - narrate format:cchat "If you instead <&d>click <&2>while charged, the disruption is focused in a cone in front of you."
                - wait 4s
                - narrate format:cchat "Lastly, if you fall from a great enough height with this ability selected, you will automatically create a shockwave."
                - wait 5s
                - narrate "<&b><npc.name><&co> <&2>Alright, that's all I got for you today, I hope your new abilities are useful in combat for you!"
                - 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_toph
                - flag player 5kill_entity_count_toph:0
                - flag player npc_engaged:!
                - disengage
                - zap 17
        17:
            click trigger:
                script:
                - group set EliteEarthBender
                - 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_toph]> mobs<&2>! Come back when you have killed <&d>1000 mobs<&2>!"
                  }
        18:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate format:cchat "Wow! I can tell you are a very dedicated Earthbender!"
                - 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 Earthbender<&2>!"
                - group set MEarthBender
                - 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 <&a>EarthRing<&2>."
                - wait 5s
                - narrate "<&b><npc.name><&co> <&2>Using advanced techniques, benders can make earth circle them, protecting them from basic abilities and damaging entities that come near it."
                - wait 4s
                - narrate format:cchat "They can also shoot the earth from the ring, creating a damaging blast."
                - wait 3s
                - narrate format:cchat "The particles change color based on the source block that is automatically selected."
                - wait 3s
                - narrate format:cchat "To use, <&d>Sneak <&2>to form ring, then <&d>Click <&2>to shoot."
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>Type <&d>Ok <&2>when you're ready to learn your next move after you've practiced your ability."
                - flag player 5kill_entity_count_toph:!
                - flag player npc_engaged:!
                - disengage
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - group set MEarthBender
                    - narrate "<&b><npc.name><&co> <&2>Ok so the next move I would like to teach you is called <&a>DustCloud<&2>."
                    - wait 4s
                    - narrate format:cchat "By shaking the ground back and forth, earthbenders can create dust clouds of various sizes to provide cover."
                    - wait 4s
                    - narrate format:cchat "To use, simply <&d>tap shift<&2>."
                    - wait 3s
                    - narrate format:cchat "Well, that's all the moves 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 5s
                    - narrate "<&b><npc.name><&co> <&2>Since you've learned so many moves, you can do the command <&d>/b d earth<&2>, which is short for /bending display Earth."
                    - wait 5s
                    - 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_toph
                    - flag player 6kill_entity_count_toph:0
                    - flag player npc_engaged:!
                    - disengage
                    - zap 19
        19:
            click trigger:
                script:
                - group set MEarthBender
                - 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_toph]> mobs<&2>! Come back when you have killed <&d>1250 mobs<&2>!"
                  }
        20:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - narrate format:cchat "Amazing work on your skills!"
                - wait 2s
                - narrate format:cchat "You are now a Champion Earthbender."
                - group set CEarthBender
                - narrate format:cchat "Today, we are going to work on Sandbending!"
                - wait 3s
                - narrate format:cchat "The first move I'd like to teach you is called <&a>SandBlast<&2>."
                - wait 3s
                - narrate format:cchat "Type <&d>/b b sandblast <&2>to bind the ability to your hotbar."
                - wait 3s
                - narrate format:cchat "This ability lets an earthbender blast a bunch of sand at an enemy damaging them and temporarily blinding them!"
                - wait 6s
                - narrate format:cchat "Simply <&d>sneak (Default<&co> Shift)<&2> on a sand bendable block, then <&d>left click <&2>in a direction to shoot a blast of sand!"
                - wait 7s
                - narrate format:cchat "Type <&d>Ok <&2>when you are ready to learn your next sand ability!"
                - flag player 6kill_entity_count_toph:!
                - flag player npc_engaged:!
                - disengage
                - zap 21
        21:
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - group set CEarthBender
                    - narrate format:cchat "Sweet, the next move I have for you is called <&a>SandSurf<&2>."
                    - wait 3s
                    - narrate format:cchat "This move is pretty straigt forward as it does what it says."
                    - wait 3s
                    - narrate format:cchat "By <&d>holding sneak<&2> you are able to glide across sand only, but it's very useful when traveling through deserts!"
                    - wait 5s
                    - narrate format:cchat "Alright, that's all I have to teach you today, go ahead and kill 1500 mobs or players, and I'll make you a Grandmaster with new abilities!"
                    - flag player 7kill_entity_toph
                    - flag player 7kill_entity_count_toph:0
                    - flag player npc_engaged:!
                    - disengage
                    - zap 22
        22:
            click trigger:
                script:
                - group set CEarthBender
                - random {
                  - narrate format:cchat "You haven't killed <&d>1500 mobs <&2>yet!"
                  - narrate format:cchat "Hey what do you think you're doing? Kill <&d>1500 mobs <&2>first!"
                  - narrate format:cchat "I know you are anxious to learn new moves, but you have to kill <&d>1500 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>1500 mobs<&2>!"
                  - narrate format:cchat "Haha, nice try. Go and kill <&d>1500 mobs <&2>first."
                  - narrate format:cchat "Hey stop bothering me and kill <&d>1500 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_toph]> mobs<&2>! Come back when you have killed <&d>1500 mobs<&2>!"
                  }
        23:
            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 Earthbender<&2>!"
                - group set GEarthBender
                - wait 4s
                - narrate format:cchat "Whew, I'm almost done teaching you everything there is to know about Earthbending!"
                - wait 5s
                - narrate "<&b><npc.name><&co> <&2>Alright, today, we are going to begin Metalbending!"
                - wait 5s
                - narrate format:cchat "All metal consists of tiny pieces of earth inside them and Earthbenders can focus on those pieces to Metalbend!"
                - wait 4s
                - narrate format:cchat "The only metal which is the densest and purest on earth that a metalbender cannot bend is Platinum."
                - wait 3s
                - narrate format:cchat "Anyways, the first metal move is called <&a>Extraction<&2>."
                - wait 3s
                - narrate "<&b><npc.name><&co> <&2>This ability allows metalbenders to extract the minerals from ore blocks."
                - wait 3s
                - narrate format:cchat "This ability is extremely useful for gathering materials as it has a chance to extract double or tripple the ores."
                - wait 3s
                - narrate format:cchat "<&d>Tap sneak <&2>while looking at an earthbendable ore to extract the ore."
                - wait 4s
                - narrate format:cchat "Type <&d>Ok <&2>when you're ready to learn more Metalbending."
                - flag player npc_engaged:!
                - flag player 7kill_entity_count_toph:!
                - disengage
                - zap 24
        24:
            chat trigger:
                1:
                    trigger: /Ok/, I'm ready!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - group set GEarthBender
                    - narrate format:cchat "Alright, the next metal move I'd like you to learn is <&a>MetalClips<&2>."
                    - wait 3s
                    - narrate format:cchat "MetalClips is an advanced metalbending ability that allows you to take control of a fight."
                    - wait 4s
                    - narrate format:cchat "It gives the metalbender the ability to control an entity, create space between them and a player and even added utility."
                    - wait 5s
                    - narrate format:cchat "This ability requires iron ingots in your inventory."
                    - wait 3s
                    - narrate format:cchat "<&d>Left click <&2>to throw an ingot at an entity, dealing damage to them."
                    - wait 3s
                    - narrate format:cchat "This ingot will form into armor, wrapping itself around the entity."
                    - wait 3s
                    - narrate format:cchat "Once enough armor pieces are around the entity, you can then control them."
                    - wait 3s
                    - narrate format:cchat "To control them, <&d>hold sneak <&2>while looking at them and then they will be moved in the direction you look."
                    - wait 4s
                    - narrate format:cchat "Additionally, you can <&d>release sneak <&2>to throw them in the direction you're looking."
                    - wait 4s
                    - narrate format:cchat "<&d>Hold sneak <&2>with this ability to pull iron ingots towards you."
                    - 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 Earthbender 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 8kill_entity_toph
                    - flag player 8kill_entity_count_toph:0
                    - disengage
                    - zap 25

        25:
            click trigger:
                script:
                - group set GEarthBender
                - if <player.flag[8kill_entity_count_toph]> >= 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[8kill_entity_count_toph]> mobs<&2>! Come back when you have killed <&d>2000 mobs<&2>!"
                  }
        26:
            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 Earthbender <&2>rank!"
                - group set LEarthBender
                - wait 3s
                - narrate format:cchat "Ok, so today we are going to finish metal and then learn lavabending!"
                - wait 4s
                - narrate format:cchat "Lava is just a form of liquid rock, so I am going to teach it to you now because it is very powerful yet very dangerous."
                - wait 5s
                - narrate "<&b><npc.name><&co> <&2>Alright so first, now that you are comfortable enough with metal, you are now able to passively open iron doors just by shifting!"
                - wait 5s
                - narrate format:cchat "No need for a button or a lever!"
                - wait 2s
                - narrate format:cchat "Ok, the first move I'm going to teach you is called <&a>MetalCables<&2>."
                - wait 4s
                - narrate format:cchat "This move is a bit advanced so get ready!"
                - wait 3s
                - narrate format:cchat "MetalCables allows a metalbender to extend metal cables from their arms, granting great mobility and a small attack function."
                - wait 5s
                - narrate format:cchat "The cables can be used to pull yourself to certain places, pull entities towards you, and damage entities."
                - wait 5s
                - narrate format:cchat "Each sub ability has a left and right version, one for both hands."
                - wait 3s
                - narrate format:cchat "To <&d>Grapple<&2>, launch a cable that will travel forward by <&d>left clicking<&2>." 
                - wait 3s
                - narrate format:cchat "Once it has hit something, you'll hear a metal sound."
                - wait 3s
                - narrate format:cchat "Then <&d>hold sneak <&2>to pull yourself towards the hit point."
                - wait 3s
                - narrate format:cchat "<&d>Releasing sneak <&2>near the hit point will cause the cable to disappear."
                - wait 3s
                - narrate format:cchat "The <&d>Grapple both<&2>function will launch both grapple cables at once."
                - wait 3s
                - narrate format:cchat "<&d>Sneaking <&2>on this ability will pull you towards the middle point of both cables, or to a single one if only a single one is shot and has hit something."
                - wait 5s
                - narrate format:cchat "The <&d>Grapple clear<&2> function will make all shot grapple cables disappear."
                - wait 3s
                - narrate format:cchat "The <&d>Grab <&2>function will shoot out a cable that will wrap around the first entity in it's path (Not the user)."
                - wait 4s
                - narrate format:cchat "<&d>Sneak <&2>to pull the entity towards yourself."
                - wait 3s
                - narrate format:cchat "Note that the tangled entity can resist."
                - wait 2s
                - narrate format:cchat "A firejetting target will be harder to pull in than a walking one."
                - wait 3s
                - narrate format:cchat "The tangled entity can only use basic bending moves while tangled."
                - wait 3s
                - narrate format:cchat "The <&d>Slam <&2>function will shoot out a cable that will damage the first entity it hits."
                - wait 3s
                - narrate format:cchat "Lastly the <&d>Exit <&2>slot allows you to cancel the move."
                - wait 3s
                - narrate format:cchat "Wow, that was a lot to say."
                - wait 2s
                - narrate format:cchat "Again if you forget any of this just type <&d>/b h (Move) <&2>to see what each move does!"
                - wait 4s
                - narrate format:cchat "Alright type <&d>Ok <&2>when you're ready to learn your final move!"
                - flag player 8kill_entity_count_toph:!
                - flag player npc_engaged:!
                - disengage
            chat trigger:
                1:
                    trigger: /Ok/, this is it!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - group set LEarthBender
                    - narrate format:cchat "Ok, the last move I'm going to teach you is called <&a>LavaFlow<&2>."
                    - wait 4s
                    - narrate "<&b><npc.name><&co> <&2>LavaFlow is an extremely advanced, and dangerous ability."
                    - wait 3s
                    - narrate format:cchat "It allows the earthbender to create pools of lava around them, or to solidify existing lava."
                    - wait 4s
                    - narrate format:cchat "This ability can be deadly when combined with <&a>EarthGrab<&2>."
                    - wait 3s
                    - narrate format:cchat "To use, <&d>hold sneak <&2>and lava will begin expanding outwards."
                    - wait 3s
                    - narrate format:cchat "Once the lava has stopped expanding, you can <&d>release sneak<&2>."
                    - wait 3s
                    - narrate format:cchat "Additionally, if you <&d>tap sneak <&2>the lava you created will revert back to the earthbendable block."
                    - wait 4s
                    - narrate format:cchat "You can also <&d>Left click <&2>to slowly transform earthbendable blocks into a pool of lava."
                    - wait 3s
                    - narrate format:cchat "Lastly, you can <&d>left click <&2>on any lava source to solidify it, turning it to stone."
                    - wait 4s
                    - 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 27

        27:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - engage
                - group set LEarthBender
                - 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<&2>."
                - flag player npc_engaged:!
                - disengage
                - zap 28
        28:
            chat trigger:
                1:
                    trigger: /Yes/ please!
                    script:
                    - if <player.has_flag[npc_engaged]> queue clear
                    - engage
                    - 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 Earth<&2>."
                    - wait 5s
                    - narrate format:cchat "If you need help with a specific move or combo, type <&d>/b h (move or combo)<&2>."
                    - 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 5s
                    - narrate format:cchat "Alright that's all, good luck on your travels!"
                    - flag player npc_engaged:!
                    - disengage
                    - zap 27
                2:
                    trigger: /No/ thanks!
                    script:
                    - narrate format:cchat "Alright good luck, you can chill here if you'd like."
                    - zap 27