-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAA.xml
3472 lines (3282 loc) · 135 KB
/
AA.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.001">
<TriggerPackage>
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>generic_mapper</name>
<script></script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName>generic_mapper</packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList />
<regexCodePropertyList />
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>onNewLine Trigger</name>
<script></script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>raiseEvent("onNewLine")</string>
</regexCodeList>
<regexCodePropertyList>
<integer>4</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Tab Trigger</name>
<script>local text = line
local pos = selectString("\t",1)
while pos ~= -1 do
replace(string.rep(" ",8 - math.fmod(pos,8)))
pos = selectString("\t",1)
end</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>\t</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>English Trigger Group</name>
<script></script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList />
<regexCodePropertyList />
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>English Exits Trigger</name>
<script>raiseEvent("onNewRoom",matches[2] or "")</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^\s*\[\s*[Ee]xits:\s*(.*)\]</string>
<string>^\s*There (?:is|are) \w+ (?:visible|obvious) exit[s]?:\s*(.*)</string>
<string>^\[?\s*(?:[Vv]isible|[Oo]bvious) (?:[Pp]ath|[Ee]xit)[s]?(?: is| are)?:?\s*(.*)\]?</string>
<string>^\s*You see[\w\s]* exit[s]? leading (.*)</string>
<string>Exits:\s*(.*)</string>
<string>There are no obvious exits.</string>
<string>^\s*The (?:only )?obvious exit[s]? (?:is|are):? (.*)</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>2</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>English Failed Move Trigger</name>
<script>raiseEvent("onMoveFail")</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^(?:Alas, )?[Yy]ou can(?:no|')t (?:go|move) .*$</string>
<string>^The .+ (?:is|seems to be) closed.$</string>
<string>.+ (?:is not going to|will not) let you pass.$</string>
<string>^That exit is blocked.$</string>
<string>^You are blocked by .*$</string>
<string>^There is no exit in that direction.$</string>
<string>^The .* is locked.$</string>
<string>^Alas, you cannot go that way\.\.\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>English Vision Fail Trigger</name>
<script>raiseEvent("onVisionFail")</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^It is pitch black...</string>
<string>^It(?:'s| is) too dark</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>English Forced Move Trigger</name>
<script>raiseEvent("onForcedMove",matches[2])</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^Carefully getting your bearings, you set off (\w+) toward your goal.</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>English Multi-Line Exits Trigger</name>
<script>map.prompt.exits = ""</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>1</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^Visible Exits:</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Exit Line Trigger</name>
<script>map.prompt.exits = map.prompt.exits .. ", " .. string.trim(matches[2])
setTriggerStayOpen("Multi-Line Exits Trigger",1)</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^([\w\s]+)\s+: [\w\s]+</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
</Trigger>
</TriggerGroup>
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Russian Trigger Group</name>
<script></script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList />
<regexCodePropertyList />
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Russian Exits Trigger</name>
<script>raiseEvent("onNewRoom",matches[2] or "")</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^\s*\[\s*Выходы:\s*(.*)\]</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Russian Failed Move Trigger</name>
<script>raiseEvent("onMoveFail")</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>Извини, но ты не можешь туда идти.</string>
</regexCodeList>
<regexCodePropertyList>
<integer>0</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Russion Vision Fail Trigger</name>
<script>raiseEvent("onVisionFail")</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>Здесь слишком темно ...</string>
</regexCodeList>
<regexCodePropertyList>
<integer>0</integer>
</regexCodePropertyList>
</Trigger>
</TriggerGroup>
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Chinese Trigger Group</name>
<script></script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList />
<regexCodePropertyList />
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Chinese Exits Trigger</name>
<script>raiseEvent("onNewRoom",matches[2] or "")</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^\s*这里明显的方向有 (.*)。</string>
<string>^\s*这里明显的出口有 (.*)。</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Chinese Failed Movement Trigger</name>
<script>raiseEvent("onMoveFail")</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>你又渴又饿,浑身无力,根本就走不动路。</string>
</regexCodeList>
<regexCodePropertyList>
<integer>0</integer>
</regexCodePropertyList>
</Trigger>
</TriggerGroup>
</TriggerGroup>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="yes" isColorizerTrigger="yes" isFilterTrigger="yes" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Map Trigger</name>
<script>print("Updating coords to " .. matches[2] .. matches[3] )
clearWindow("map")
xCords = matches[2]
yCords = matches[3]
displayMap(mapTable, matches[2],matches[3], 6)</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string> You seem to be at coordinates (.*),(.*).</string>
<string>coordinates (.*), (.*).</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="yes" isColorizerTrigger="no" isFilterTrigger="yes" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Prompt Trigger</name>
<script>--debugc("Initial We got " .. table.getn(matches) .. "matches!")
if(table.getn(matches)==3) then
--debugc("We got " .. table.getn(matches) .. "matches!")
--debugc("We're in combat")
-- in combat
hp = matches[2]
sp = matches[3]
GUI.hpbar:setValue(tonumber(hp), tonumber(maxhp), " HP: " .. hp .. "/" .. maxhp)
GUI.spbar:setValue(tonumber(sp), tonumber(maxsp), " SP: " .. sp .. "/" .. maxsp)
else
if(table.getn(matches)==5) then
-- Regular prompt
--debugc("We got " .. table.getn(matches) .. "matches!")
-- prompt
hp = matches[2]
maxhp = matches[3]
sp = matches[4]
maxsp = matches[5]
--print("Updating coords to " .. matches[6] .. matches[7] )
GUI.hpbar:setValue(tonumber(hp), tonumber(maxhp), " HP: " .. hp .. "/" .. maxhp)
GUI.spbar:setValue(tonumber(sp), tonumber(maxsp), " SP: " .. sp .. "/" .. maxsp)
end
if(table.getn(matches)==7) then
-- CLIENT prompt
xCords = matches[2]
yCords = matches[3]
clearWindow("map")
displayMap(mapTable, tonumber(xCords),tonumber(yCords), 6)
-- `prompt set |HP|/|MAXHP|:|SP|/|MAXSP|>|NEWLINE|CLIENT:X:|XCOORD|:Y:|YCOORD|:|NAME|:|CLASS|:|COINS|:|XP|`
charclass = matches[5]
charcoins = matches[6]
charxp = matches[7]
if url == nil then
charname = matches[4]
first_letter = string.sub(charname, 1, 1)
debugc("Init charname")
url = "http://ancient.anguish.org/images/profiles/" .. first_letter:lower() .. "/" .. charname:lower() .. ".jpg"
debugc("Trying to load " .. url)
downloadFile("images/charpic.jpg", url)
GUI.CharProfile:setStyleSheet([[background-image : url(/images/charpic.jpg);background-size: auto;background-repeat: no-repeat;]]);
end
print("URL" .. url)
status_bar:echo("<bold>Name: " .. charname .. "<br>Class: " .. charclass .. "<br>Coins: " .. charcoins .. "<br>XP: " .. charxp .. "</bold>")
deleteLine()
end
end
</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^(.*)/(.*):(.*)/(.*)></string>
<string>^HP: (.*) SP: (.*)</string>
<string>^CLIENT:X:(.*):Y:(.*):(.*):(.*):(.*):(.*)</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
</TriggerPackage>
<TimerPackage />
<AliasPackage>
<AliasGroup isActive="yes" isFolder="yes">
<name>generic_mapper</name>
<script></script>
<command></command>
<packageName>generic_mapper</packageName>
<regex></regex>
<AliasGroup isActive="yes" isFolder="yes">
<name>Setup Aliases</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Map Show Alias</name>
<script>map.showMap()</script>
<command></command>
<packageName></packageName>
<regex>^map show$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Find Map Prompt Alias</name>
<script>map.find_prompt()</script>
<command></command>
<packageName></packageName>
<regex>^find prompt$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Set Map Prompt Alias</name>
<script>-- USE PATTERNS FOR STRING.GSUB
if matches[2] then
map.make_prompt_pattern(matches[2])
else
display(map.save.prompt_pattern)
end</script>
<command></command>
<packageName></packageName>
<regex>^map prompt(?: (.*))?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Set Map Ignore Alias</name>
<script>-- USE PATTERNS FOR STRING.GSUB
if matches[2] then
map.make_ignore_pattern(matches[2])
else
display(map.save.ignore_patterns)
end</script>
<command></command>
<packageName></packageName>
<regex>^map ignore(?: (.*))?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Debug Alias</name>
<script>map.configs.debug = not map.configs.debug
map.echo("Map debug set to: " .. (map.configs.debug and "on" or "off"))</script>
<command></command>
<packageName></packageName>
<regex>^map debug$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Update Alias</name>
<script>map.updateVersion()</script>
<command></command>
<packageName></packageName>
<regex>^map update$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Config Alias</name>
<script>-- adjust pattern to allow no argument, if no argument show general help about configs
if not matches[2] then
cecho(map.help.configs)
else
local startStr, endStr = string.match(matches[2],"(.*) ([%w%.]+)")
local vals = {'on', 'off', 'true', 'false'}
local modes = {'simple','normal','complex'}
if (table.contains(vals, endStr) or tonumber(endStr)) or (startStr == "mode" and table.contains(modes, endStr)) then
map.setConfigs(startStr, endStr)
else
map.setConfigs(matches[2])
end
end</script>
<command></command>
<packageName></packageName>
<regex>^map config(?: ([\w\s\.]+))?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Window Config Alias</name>
<script>map.setConfigs("map_window",matches[3],matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^map window (x|y|w|h|origin|shown)(?: ([\w%]+))?</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Translate Config Alias</name>
<script>map.setConfigs("lang_dirs", {matches[3], matches[4]}, matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^map translate (\w+) (\w+) (\w+)$</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>Information Aliases</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Map Quick Start Alias</name>
<script>map.show_help("quick_start")</script>
<command></command>
<packageName></packageName>
<regex>^map basics$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Help Alias</name>
<script>map.show_help(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^map help(?: (.*))?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Rooms Alias</name>
<script>map.echoRoomList(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^map rooms (.*)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Areas Alias</name>
<script>map.echoAreaList()</script>
<command></command>
<packageName></packageName>
<regex>^map areas$</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>Regular Use Aliases</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Map Me Alias</name>
<script>map.find_me(nil, nil, nil, true)</script>
<command></command>
<packageName></packageName>
<regex>^map me$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Path Alias</name>
<script>map.find_path(matches[2],matches[3])</script>
<command></command>
<packageName></packageName>
<regex>^map path ([^;]+)(?:\s*;\s*(.+))?</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Set Recall Alias</name>
<script>map.set_recall()</script>
<command></command>
<packageName></packageName>
<regex>^map recall$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Set Character Alias</name>
<script>map.character = matches[2]</script>
<command></command>
<packageName></packageName>
<regex>^map character (.*)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Stop Alias</name>
<script>raiseEvent("mapStop")</script>
<command></command>
<packageName></packageName>
<regex>^map stop$</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>Map Creation Aliases</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Set Room Area Alias</name>
<script>map.set_area(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^set area (.*)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Start Mapping Alias</name>
<script>map.start_mapping(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^start mapping(?: (.*))?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Stop Mapping Alias</name>
<script>map.stop_mapping()</script>
<command></command>
<packageName></packageName>
<regex>^stop mapping$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Shift Room Alias</name>
<script>map.shift_room(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^shift (.*)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Add Portal Alias</name>
<script>map.set_portal(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^add portal (.*)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Clear Moves Alias</name>
<script>map.clear_moves()</script>
<command></command>
<packageName></packageName>
<regex>^clear moves$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Add Door Alias</name>
<script>map.set_door(matches[2],matches[3],matches[4])</script>
<command></command>
<packageName></packageName>
<regex>^add door (\w+)(?: (none|open|closed|locked))?(?: (yes|no))?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Merge Rooms Alias</name>
<script>map.merge_rooms()</script>
<command></command>
<packageName></packageName>
<regex>^merge rooms$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Set Map Mode Alias</name>
<script>map.set_mode(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^map mode (\w+)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Set Room Exit Alias</name>
<script>map.set_exit(matches[2],matches[3])</script>
<command></command>
<packageName></packageName>
<regex>^set exit (.+) (\d+)</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>Map Sharing Aliases</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Save Map Alias</name>
<script>saveMap(getMudletHomeDir() .. "/map.dat")</script>
<command></command>
<packageName></packageName>
<regex>^map save$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Load Map Alias</name>
<script>map.load_map(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^map load(?: (.*))?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Import Map Area Alias</name>
<script>map.import_area(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^map import (.*)</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Export Map Area Alias</name>
<script>map.export_area(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^map export (.*)</regex>
</Alias>
</AliasGroup>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>deleteOldProfiles</name>
<script></script>
<command></command>
<packageName>deleteOldProfiles</packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>delete old profiles</name>
<script>deleteOldProfiles(matches[3], matches[2]=="maps")
--Syntax examples: "delete old profiles" -> deletes profiles older than 31 days
-- "delete old maps 10" -> deletes maps older than 10 days</script>
<command></command>
<packageName></packageName>
<regex>^delete old (profiles|maps)(?: (\d+))?$</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>echo</name>
<script></script>
<command></command>
<packageName>echo</packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>`echo</name>
<script>local s = matches[2]
s = string.gsub(s, "%$", "\n")
feedTriggers("\n" .. s .. "\n")
echo("\n")</script>
<command></command>
<packageName></packageName>
<regex>`echo (.+)</regex>
</Alias>
</AliasGroup>
</AliasPackage>
<ActionPackage />
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>generic_mapper</name>
<packageName>generic_mapper</packageName>
<script></script>
<eventHandlerList />
<Script isActive="yes" isFolder="no">
<name>Map Script</name>
<packageName></packageName>
<script>-- Jor'Mox's Generic Map Script
-- 11/07/2018
local version = "2.0.15"
-- look into options for non-standard door usage for speedwalk
-- come up with aliases to set translations and custom exits, add appropriate help info
mudlet = mudlet or {}
mudlet.mapper_script = true
map = map or {}
map.help = {[[
<cyan>Generic Map Script<reset>
This script allows for semi-automatic mapping using the included triggers.
While different games can have dramatically different ways of displaying
information, some effort has been put into giving the script a wide range of
potential patterns to look for, so that it can work with minimal effort in
many cases. The script locates the room name by searching up from the
detected exits line until a prompt is found or it runs out of text to
search, clearing saved text each time a prompt is detected or a movement
command is sent, with the room name being set to the last line of text
found. An accurate prompt pattern is necessary for this to work well, and
sometimes other text can end up being shown between the prompt and the room
name, or on the same line as the room name, which can be handled by
providing appropriate patterns telling the script to ignore that text. Below
is an overview of the included commands and important events that this
script uses to work. Additional information on each command or event is
available in individual help files.
<cyan>Fundamental Commands:<reset>
These are commands used to get the mapper functional on a basic level
<link: show>map show</link> - Displays or hides a map window
<link: quick start>map basics</link> - Shows a quick-start guide with some basic information to
help get the script working
<link: 1>map help <optional command name></link> - Shows either this help file or the
help file for the command given
<link: find prompt>find prompt</link> - Instructs the script to look for a prompt that matches
a known pattern
<link: prompt>map prompt</link> - Provides a specific pattern to the script that matches
your prompt, uses Lua string-library patterns
<link: ignore>map ignore</link> - Provides a specific pattern for the script to ignore,
uses Lua string-library patterns
<link: debug>map debug</link> - Toggles on debug mode, in which extra messages are shown
with the intent of assisting in troubleshooting getting the
script setup
<link: me>map me</link> - Locates the user on the map, if possible
<link: path>map path <room name> <; optional area name></link> - Finds a walking path to
the named room, in the named area if specified
<link: character>map character <name></link> - Sets a given name as the current character for
the purposes of the script, used for different prompt patterns
and recall locations
<link: recall>map recall</link> - Sets the current room as the recall location of the
current character
<link: config>map config <configuration> <optional value></link> - Sets or toggles the
given configuration either turning it on or off, if no value is
given, or sets it to the given value
<link: window>map window <configuration> <value></link> - Sets the given configuration for
the map window to the given value
<link: translate>map translate <english direction> <translated long direction></link>
<link: translate><translated short direction></link> - Sets the provided translations for
the given english direction word.
<cyan>Mapping Commands:<reset>
These are commands used in the process of actually creating a map
<link: start mapping>start mapping <optional area name></link> - Starts adding content to the
map, using either the area of the room the user is currently in,
or the area name provided
<link: stop mapping>stop mapping</link> - Stops adding content to the map
<link: set area>set area <area name></link> - Moves the current room to the named area
<link: mode>map mode <simple, normal, or complex></link> - Sets the mapping mode
<link: add door>add door <direction> <optional door status> <optional one way></link> -
Creates a door in the given direction, with the given status
(default closed), in both directions, unless a one-direction door
is specified
<link: add portal>add portal <entry command></link> - Creates a portal in the current room,
using the given command for entry
<link: shift>shift <direction></link> - Moves the current room on the map in the given
direction
<link: merge rooms>merge rooms</link> - Combines overlapping rooms that have the same name into
a single room
<link: clear moves>clear moves</link> - Clears the list of movement commands maintained by the
script
<link: set exit>set exit <direction> <roomID></link> - Creates a one-way exit in the given
direction to the room with the specified roomID, can also be used
with portals
<link: areas>map areas</link> - Shows a list of all area, with links to show a list of
rooms in the area
<link: rooms>map rooms <area name></link> - Shows a list of rooms in the named area
<cyan>Sharing and Backup Commands:<reset>
<link: save>map save</link> - Creates a backup of the map
<link: load>map load <remote address></link> - Loads a map backup, or a map file from a
remote address
<link: export>map export <area name></link> - Creates a file from the named area that can
be shared
<link: import>map import <area name></link> - Loads an area from a file
<cyan>Mapping Events:<reset>
These events are used by triggers to direct the script's behavior
<link: onNewRoom>onNewRoom</link> - Signals that a room has been detected, optional exits
argument
<link: onMoveFail>onMoveFail</link> - Signals that an attempted move failed
<link: onForcedMove>onForcedMove</link> - Signals that the character moved without a command
being entered, required direction argument
<link: onRandomMove>onRandomMove</link> - Signals that the character moved in an unknown
direction without a command being entered
<link: onVisionFail>onVisionFail</link> - Signals that the character moved but some or all of
the room information was not able to be gathered
<cyan>Key Variables:<reset>
These variables are used by the script to keep track of important
information
<yellow>map.prompt.room<reset> - Can be set to specify the room name
<yellow>map.prompt.exits<reset> - Can be set to specify the room exits
<yellow>map.character<reset> - Contains the current character name
<yellow>map.save.recall<reset> - Contains a table of recall roomIDs for all
characters
<yellow>map.save.prompt_pattern<reset> - Contains a table of prompt patterns for all
characters
<yellow>map.save.ignore_patterns<reset> - Contains a table of patterns of text the
script ignores
<yellow>map.configs<reset> - Contains a number of different options that can be set
to modify script behavior
<yellow>map.currentRoom<reset> - Contains the roomID of the room your character is
in, according to the script
<yellow>map.currentName<reset> - Contains the name of the room your character is in,
according to the script
<yellow>map.currentExits<reset> - Contains a table of the exits of the room your
character is in, according to the script
<yellow>map.currentArea<reset> - Contains the areaID of the area your character is
in, according to the script
]]}
map.help.save = [[
<cyan>Map Save<reset>
syntax: <yellow>map save<reset>
This command creates a copy of the current map and stores it in the
profile folder as map.dat. This can be useful for creating a backup
before adding new content, in case of problems, and as a way to share an
entire map at once.
]]
map.help.load = [[
<cyan>Map Load<reset>
syntax: <yellow>map load <optional download address><reset>
This command replaces the current map with the map stored as map.dat in
the profile folder. Alternatively, if a download address is provided, a
map is downloaded from that location and loaded to replace the current
map. If no filename is given with the download address, the script tries
to download map.dat. If a filename is given it MUST end with .dat.
]]
map.help.show = [[
<cyan>Map Show<reset>
syntax: <yellow>map show<reset>
This command shows a map window, as specified by the window configs set
via the <link: window>map window command</link>. It isn't necessary to use this method to
show a map window to use this script, any map window will work.
]]
map.help.export = [[
<cyan>Map Export<reset>
syntax: <yellow>map export <area name><reset>
This command creates a file containing all the informatino about the
named area and stores it in the profile folder, with a file name based
on the area name. This file can then be imported, allowing for easy
sharing of single map areas. The file name will be the name of the area
in all lower case, with spaces replaced with underscores, and a .dat
file extension.
]]
map.help.import = [[
<cyan>Map Import<reset>
syntax: <yellow>map import <area name><reset>
This command imports a file from the profile folder with a name matching
the name of the file, and uses it to create an area on the map. The area
name used can be capitalized or not, and may have either spaces or
underscores between words. The actual area name is stored within the
file, and is not set by the area name used in this command.
]]
map.help.start_mapping = [[
<cyan>Start Mapping<reset>
syntax: <yellow>start mapping <optional area name><reset>
This command instructs the script to add new content to the map when it
is seen. When first used, an area name is mandatory, so that an area is
created for new rooms to be placed in. If used with an area name while
the map shows the character within a room on the map, that room will be
moved to be in the named area, if it is not already in it. If used
without an area name, the room is not moved, and mapping begins in the
area the character is currently located in.
]]
map.help.stop_mapping = [[
<cyan>Stop Mapping<reset>