-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLuminariGUI.xml
More file actions
7031 lines (6524 loc) · 240 KB
/
Copy pathLuminariGUI.xml
File metadata and controls
7031 lines (6524 loc) · 240 KB
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="2.0.4.045">
<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>LuminariGUI</name>
<script></script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName>LuminariGUI</packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList />
<regexCodePropertyList />
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>YATCOConfig</name>
<script></script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName>YATCOConfig</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>Tell</name>
<script>-- Tell Trigger: Captures private messages between players
-- Regex patterns:
-- 1. ^(\w+) tells you, '(.*)' - Captures incoming tells: player name and message
-- 2. You tell - Captures outgoing tell confirmations
demonnic.chat:append("Tell")
if GUI.toggles.gagChat == true then
deleteLineP()
end</script>
<triggerType>0</triggerType>
<conditonLineDelta>39</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+) tells you, '(.*)'</string>
<string>You tell </string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>2</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>Congrats</name>
<script>-- Congrats Trigger: Captures congratulations channel messages
-- Regex patterns:
-- 1. ^(\w+) congrats, '(.*)' - Captures congrats messages: player name and content
-- 2. You congrat, ' - Captures outgoing congrats confirmations
demonnic.chat:append("Congrats")
if GUI.toggles.gagChat == true then
deleteLineP()
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>^(\w+) congrats, '(.*)</string>
<string>You congrat, '</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>2</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>Chat</name>
<script>demonnic.chat:append("Chat")
if GUI.toggles.gagChat == true then
deleteLineP()
end</script>
<triggerType>0</triggerType>
<conditonLineDelta>39</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+) chats, '(.*)</string>
<string>You chat, '</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>2</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>Say</name>
<script>demonnic.chat:append("Say")
if GUI.toggles.gagChat == true then
deleteLineP()
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>You say, '</string>
<string>You shout, '</string>
<string>You holler, '</string>
<string>You whisper to</string>
<string>You ask</string>
<string>You say out-of-character, '</string>
<string>^(\w+) says, '</string>
<string>^(\w+) shouts, '</string>
<string>^(\w+) hollers, '</string>
<string>whispers to you, '</string>
<string>asks you, '</string>
<string>^(\w+) says out-of-character, '</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</integer>
<integer>2</integer>
<integer>2</integer>
<integer>2</integer>
<integer>2</integer>
<integer>2</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>2</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>Auction</name>
<script>demonnic.chat:append("Auction")
if GUI.toggles.gagChat == true then
deleteLineP()
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>^(\w+) auctalks, '(.*)</string>
<string>You auctalk, '</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>2</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>Group</name>
<script>demonnic.chat:append("Group")
if GUI.toggles.gagChat == true then
deleteLineP()
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>[Group]</string>
<string>You group-say, '</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</integer>
<integer>2</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>Wiznet</name>
<script>demonnic.chat:append("Wiz")
if GUI.toggles.gagChat == true then
deleteLineP()
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>[wiznet]</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</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>GUI</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>Capture Wilderness Map</name>
<script>deleteLine()
GUI.debug("TRIGGER/MAP", "Capture Wilderness Map matched", {
minimap = type(map and map.minimap),
mapContainer = type(map and map.container),
asciiMapContainer = type(GUI.asciiMapContainer),
})
clearUserWindow("map.minimap")
map.container:hide()
GUI.asciiMapContainer:show()
map.maplineTrig = tempLineTrigger(1,23,[[onMapLine()]]) -- Edit the max lines to how many your MAP display shows.
map.padding = map.calcMinimapPadding()
-- Map Line Processing Handler
-- Processes individual lines of ASCII map data and handles map display completion
-- Enhanced with comprehensive error handling for robust map processing
function onMapLine()
-- Validate that we have a valid line to process
if not line or line == "" then
print("Warning: Empty or invalid map line received")
GUI.debugError("TRIGGER/MAP/WILDERNESS", "empty or invalid map line")
return
end
-- Check for map completion marker
local isLastLine = string.findPattern(line, "</WILDERNESS_MAP>")
if isLastLine then
deleteLine()
-- Safely cleanup trigger with validation
if map.maplineTrig and exists(map.maplineTrig, "trigger") ~= 0 then
killTrigger(map.maplineTrig)
end
map.maplineTrig = nil
GUI.debug("TRIGGER/MAP/WILDERNESS", "map completion marker received")
return
end
-- Process map line with error handling
local success, failure = xpcall(function()
selectCurrentLine()
copy()
if map.minimap and map.minimap.echo then
for i = 1, map.padding do
map.minimap:echo(" ")
end
map.adjustMinimapFontSize()
appendBuffer("map.minimap")
else
print("Warning: map.minimap not available for line processing")
end
deleteLine()
end, debug.traceback)
if success then
GUI.debug("TRIGGER/MAP/WILDERNESS", "map line appended", {
line = line,
padding = map.padding,
})
else
GUI.debugError("TRIGGER/MAP/WILDERNESS", failure)
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><WILDERNESS_MAP></string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</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>Capture Room Map</name>
<script>deleteLine()
GUI.debug("TRIGGER/MAP", "Capture Room Map matched", {
mode = GUI.buttonWindow and GUI.buttonWindow.mudletOrAscii,
minimap = type(map and map.minimap),
mapContainer = type(map and map.container),
asciiMapContainer = type(GUI.asciiMapContainer),
})
clearUserWindow("map.minimap")
if GUI.buttonWindow.mudletOrAscii == "ASCII" then
map.container:hide()
GUI.asciiMapContainer:show()
elseif GUI.buttonWindow.mudletOrAscii == "Mudlet" then
map.container:show()
GUI.asciiMapContainer:hide()
end
map.minimap:echo("\n")
map.maplineTrig = tempLineTrigger(1,11,[[onRoomMapLine()]]) -- Edit the max lines to how many your MAP display shows.
map.padding = map.calcAsciimapPadding()
-- Room Map Line Processing Handler
-- Processes individual lines of room-specific ASCII map data
-- Enhanced with comprehensive error handling for robust map processing
function onRoomMapLine()
-- Validate that we have a valid line to process
if not line or line == "" then
print("Warning: Empty or invalid room map line received")
GUI.debugError("TRIGGER/MAP/ROOM", "empty or invalid room map line")
return
end
-- Check for room map completion marker
local isLastLine = string.findPattern(line, "</ROOM_MAP>")
if isLastLine then
deleteLine()
-- Safely cleanup trigger with validation
if map.maplineTrig and exists(map.maplineTrig, "trigger") ~= 0 then
killTrigger(map.maplineTrig)
end
map.maplineTrig = nil
GUI.debug("TRIGGER/MAP/ROOM", "room map completion marker received")
return
end
-- Process room map line with error handling
local success, failure = xpcall(function()
selectCurrentLine()
copy()
if map.minimap and map.minimap.echo then
map.minimap:echo(" ")
map.adjustAsciimapFontSize()
appendBuffer("map.minimap")
else
print("Warning: map.minimap not available for room map line processing")
end
deleteLine()
end, debug.traceback)
if success then
GUI.debug("TRIGGER/MAP/ROOM", "room map line appended", {
line = line,
padding = map.padding,
})
else
GUI.debugError("TRIGGER/MAP/ROOM", failure)
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><ROOM_MAP></string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</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>Gag blank lines</name>
<script>deleteLine()</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>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>Cast Console</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>Started Cast</name>
<script>GUI.castConsole_startCast(matches[2], matches[3])</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>^Casting\: (.+) (\*+)$</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>Cast Complete</name>
<script>GUI.castConsole_completeCast()</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 complete your spell...</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</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>Cast Aborted</name>
<script>GUI.castConsole_abortedCast()</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 abort your spell.</string>
<string>Your spell is aborted!</string>
<string>You are unable to find the target for your spell!</string>
<string>You are unable to find the object for your spell!</string>
<string>You are unable to continue your spell in your current position!</string>
</regexCodeList>
<regexCodePropertyList>
<integer>3</integer>
<integer>3</integer>
<integer>3</integer>
<integer>3</integer>
<integer>3</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>Cast Canceled</name>
<script>GUI.castConsole_canceledCast()</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 are unable to continue casting!</string>
<string>You are too nauseated to continue casting!</string>
</regexCodeList>
<regexCodePropertyList>
<integer>3</integer>
<integer>3</integer>
</regexCodePropertyList>
</Trigger>
</TriggerGroup>
</TriggerGroup>
</TriggerGroup>
</TriggerPackage>
<TimerPackage />
<AliasPackage>
<AliasGroup isActive="yes" isFolder="yes">
<name>LuminariGUI</name>
<script></script>
<command></command>
<packageName>LuminariGUI</packageName>
<regex></regex>
<AliasGroup isActive="yes" isFolder="yes">
<name>Toggles</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Gag Chat</name>
<script>--[[Toggling this will determine if the line and follow up
prompt are removed from the main buffer for chat.]]
GUI.debug("ALIAS", "gag chat matched", matches)
GUI.gagChatToggle()</script>
<command></command>
<packageName></packageName>
<regex>^gag chat$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Show Self</name>
<script>--Toggles whether or not you are shown in the group tab.
GUI.debug("ALIAS", "show self matched", matches)
GUI.showSelfToggle()</script>
<command></command>
<packageName></packageName>
<regex>^show self$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Horizontal Scroll</name>
<script>--Toggles horizontal scroll bar on main window
GUI.debug("ALIAS", "hscroll matched", matches)
GUI.horizontalScrollToggle()</script>
<command></command>
<packageName></packageName>
<regex>^hscroll$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Sound</name>
<script>GUI.debug("ALIAS", "sound matched", matches)
GUI.Sound.handleCommand(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^sound(?:\s+(.*))?$</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>YATCO</name>
<script></script>
<command></command>
<packageName>YATCO</packageName>
<regex></regex>
<AliasGroup isActive="yes" isFolder="yes">
<name>Demonnic</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<AliasGroup isActive="yes" isFolder="yes">
<name>Shared</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Reset chasing</name>
<script>GUI.debug("ALIAS", "chaseres matched", matches)
demonnic.chaser:reset()</script>
<command></command>
<packageName></packageName>
<regex>^chaseres$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Fix GUI Events</name>
<script>-- =============================================================================
-- FIX GUI COMMAND
-- This command uses the centralized initialization system to refresh all
-- GUI components. It's the user-facing command for manual refresh.
-- =============================================================================
GUI.debug("ALIAS", "fix gui matched", {
matches = matches,
GUI = type(GUI),
initializeOrRefresh = type(GUI and GUI.initializeOrRefresh),
initialized = GUI and GUI.initialized,
initFailures = GUI and GUI.initFailures,
bootResults = GUI and GUI.debugBootResults,
})
if GUI and GUI.initializeOrRefresh then
GUI.initializeOrRefresh("fix gui command")
else
if GUI and type(GUI.debugSnapshot) == "function" then
GUI.debugCall(
"SNAPSHOT/fix gui unavailable",
GUI.debugSnapshot,
"fix gui found initializeOrRefresh unavailable"
)
end
cecho("\n<yellow>GUI system not fully loaded. Please close and reopen your profile, then try again.")
end</script>
<command></command>
<packageName></packageName>
<regex>^fix gui$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Debug</name>
<script>GUI.debug("ALIAS", "debug matched", matches)
if matches[2] then
demonnic:listCategories()
else
demonnic:toggleDebug()
end</script>
<command></command>
<packageName></packageName>
<regex>^debug(?: (list))?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>debug categories</name>
<script>GUI.debug("ALIAS", "debugc matched", matches)
if matches[2] then
demonnic:watchCategory( matches[2] )
else
demonnic:listCategories()
end</script>
<command></command>
<packageName></packageName>
<regex>^debugc(?: (.*))?$</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>Tabbed Chat</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Toggle blinking (temporary change)</name>
<script>GUI.debug("ALIAS", "dblink matched", matches)
if demonnic.chat.config.blink then
demonnic.chat.config.blink = false
demonnic.chat.tabsToBlink = {}
demonnic.chat:stopBlinking()
demonnic:echo("Blinking temporarily turned <red>off<grey>. It will reset if you edit your tabbed chat configuration, or close and reopen mudlet. To make it permanent, change demonnic.chat.config.blink to false in \"Demonnic->Tabbed Chat->Configuration options\" under scripts\n")
else
demonnic.chat.config.blink = true
demonnic.chat:blink()
demonnic:echo("Blinking temporarily turned <red>on<grey>. It will reset if you edit your tabbed chat configuration, or close and reopen mudlet. To make it permanent, change demonnic.chat.config.blink to true in \"Demonnic->Tabbed Chat->Configuration options\" under scripts\n")
end</script>
<command></command>
<packageName></packageName>
<regex>^dblink$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>dsound</name>
<script>GUI.debug("ALIAS", "dsound matched", matches)
GUI.Sound.toggleChat()</script>
<command></command>
<packageName></packageName>
<regex>^dsound$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>set chat sound</name>
<script>GUI.debug("ALIAS", "set chat sound matched", matches)
GUI.Sound.handleLegacyChatCommand(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^set chat sound(?:\s+(.*))?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>fixChat</name>
<script>-- =============================================================================
-- FIX CHAT COMMAND
-- This command uses the centralized initialization system with focus on chat.
-- It ensures the chat system is properly initialized and visible.
-- =============================================================================
GUI.debug("ALIAS", "fix chat matched", matches)
GUI.initializeOrRefresh("fix chat command")
-- Additional chat-specific actions
if GUI.chatContainer then
GUI.chatContainer:raise()
if demonnic.chat and demonnic.chat.container then
demonnic.chat:showAllTabs()
end
end</script>
<command></command>
<packageName></packageName>
<regex>^fix chat$</regex>
</Alias>
</AliasGroup>
</AliasGroup>
</AliasGroup>
</AliasGroup>
</AliasPackage>
<ActionPackage />
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>LuminariGUI</name>
<packageName>LuminariGUI</packageName>
<script></script>
<eventHandlerList />
<ScriptGroup isActive="yes" isFolder="yes">
<name>LuminariDebug</name>
<packageName>LuminariGUI</packageName>
<script></script>
<eventHandlerList />
<Script isActive="yes" isFolder="no">
<name>Debug Bootstrap</name>
<packageName></packageName>
<script>-- =============================================================================
-- LUMINARIGUI MASTER DEBUG TOGGLE
-- =============================================================================
-- This is the ONE switch for all LuminariGUI diagnostic output.
-- Set it to true temporarily when collecting startup diagnostics.
GUI = GUI or {}
GUI.DEBUG = false
-- Everything below this point is infrastructure. Do not add another debug
-- enable/disable flag elsewhere; all package diagnostics must use GUI.DEBUG.
GUI.debugSequence = 0
GUI.debugBootResults = GUI.debugBootResults or {}
local luaDebugLibrary = debug
local unpackValues = table.unpack or unpack
local function packValues(...)
return {n = select("#", ...), ...}
end
local function cleanString(value)
local rendered = tostring(value)
rendered = rendered:gsub("\r", "\\r"):gsub("\n", "\\n")
if #rendered > 600 then
rendered = rendered:sub(1, 600) .. "...<truncated>"
end
return rendered
end
local function summarize(value, depth, seen)
local valueType = type(value)
if valueType ~= "table" then
return cleanString(value)
end
depth = depth or 0
seen = seen or {}
if seen[value] then
return "{<cycle>}"
end
if depth >= 2 then
return "{...}"
end
seen[value] = true
local entries = {}
local keys = {}
for key in pairs(value) do
keys[#keys + 1] = key
end
table.sort(keys, function(left, right)
return tostring(left) < tostring(right)
end)
for index, key in ipairs(keys) do
if index > 20 then
entries[#entries + 1] = "...(" .. tostring(#keys - 20) .. " more)"
break
end
entries[#entries + 1] =
cleanString(key) .. "=" .. summarize(value[key], depth + 1, seen)
end
seen[value] = nil
return "{" .. table.concat(entries, ", ") .. "}"
end
local function writeToMainConsole(line)
if type(echo) == "function" then
echo("\n" .. line)
elseif type(cecho) == "function" then
cecho("\n" .. line)
else
print(line)
end
end
local function tracebackMessage(errorValue)
local rendered = tostring(errorValue)
if luaDebugLibrary and type(luaDebugLibrary.traceback) == "function" then
return luaDebugLibrary.traceback(rendered, 2)
end
return rendered
end
function GUI.debugValue(value)
return summarize(value, 0, {})
end
function GUI.debug(scope, message, details)
if GUI.DEBUG ~= true then
return
end
GUI.debugSequence = (GUI.debugSequence or 0) + 1
local timestamp = os.date("%H:%M:%S")
local line = string.format(
"[LGUI-DEBUG #%05d %s][%s] %s",
GUI.debugSequence,
timestamp,
tostring(scope or "GENERAL"),
tostring(message or "")
)
if details ~= nil then
line = line .. " | " .. GUI.debugValue(details)
end
writeToMainConsole(line)
end
function GUI.debugError(scope, errorValue)
if GUI.DEBUG ~= true then
return
end
local rendered = tostring(errorValue)
if not rendered:find("stack traceback", 1, true) then
rendered = tracebackMessage(errorValue)
end
GUI.debugSequence = (GUI.debugSequence or 0) + 1
writeToMainConsole(string.format(
"[LGUI-ERROR #%05d %s][%s] ERROR + STACK TRACE",
GUI.debugSequence,
os.date("%H:%M:%S"),
tostring(scope or "ERROR")
))
for traceLine in rendered:gmatch("[^\r\n]+") do
writeToMainConsole("[LGUI-TRACE] " .. traceLine)
end
end
-- Execute a function with entry/exit/error tracing while debug mode is on.
-- With debug mode off this deliberately calls the function directly, so
-- production error propagation remains exactly as it was before debugging.
function GUI.debugCall(scope, callable, ...)
if type(callable) ~= "function" then
local message = "attempted to call " .. type(callable) .. " instead of function"
if GUI.DEBUG == true then
GUI.debugError(scope, message)
return false, message
end
error(message)
end
if GUI.DEBUG ~= true then
return true, callable(...)
end
local arguments = packValues(...)
GUI.debug(scope, "ENTER", arguments)
local results = packValues(xpcall(function()
return callable(unpackValues(arguments, 1, arguments.n))
end, tracebackMessage))
if not results[1] then
GUI.debugError(scope, results[2])
return false, results[2]
end
local returned = {n = results.n - 1}
for index = 2, results.n do
returned[index - 1] = results[index]
end
GUI.debug(scope, "EXIT", returned)
return true, unpackValues(returned, 1, returned.n)
end
function GUI.debugWrap(scope, callable)
return function(...)
local results = packValues(GUI.debugCall(scope, callable, ...))
if not results[1] then
return nil, results[2]
end
return unpackValues(results, 2, results.n)
end
end
function GUI.debugWrapFunction(owner, functionName, scope)
if type(owner) ~= "table" or type(owner[functionName]) ~= "function" then
GUI.debug("INSTRUMENT", "function unavailable", {
scope = scope,
functionName = functionName,
ownerType = type(owner),
})
return false
end
owner[functionName] = GUI.debugWrap(scope or functionName, owner[functionName])
GUI.debug("INSTRUMENT", "wrapped function", scope or functionName)
return true
end
function GUI.debugResolve(functionPath)
local current = _G
for segment in tostring(functionPath):gmatch("[^%.]+") do
if type(current) ~= "table" then
return nil
end
current = current[segment]
end
return current
end
function GUI.debugCountEntries(value)
local count = 0
if type(value) == "table" then
for _ in pairs(value) do
count = count + 1
end
end
return count
end
GUI.debug("BOOT", "debug bootstrap loaded; GUI.DEBUG is TRUE")
GUI.debug("BOOT", "early environment", {
GUI = type(GUI),
Geyser = type(Geyser),
Adjustable = type(Adjustable),
msdp = type(msdp),
registerAnonymousEventHandler = type(registerAnonymousEventHandler),
})</script>
<eventHandlerList />
</Script>
</ScriptGroup>
<ScriptGroup isActive="yes" isFolder="yes">
<name>LuminariResources</name>
<packageName>LuminariGUI</packageName>
<script></script>
<eventHandlerList />
<Script isActive="yes" isFolder="no">
<name>Resource Ownership</name>
<packageName></packageName>
<script>-- Central ownership for runtime-created handlers and timers.
-- This fragment loads before the mapper and GUI so every subsystem can use
-- the same replace-before-register behavior.
GUI = GUI or {}
GUI.ownedTimerIds = GUI.ownedTimerIds or {}
local function resourceError(scope, message)
if type(GUI.debugError) == "function" then
GUI.debugError("RESOURCE/" .. scope, message)
else
print("[LuminariGUI resource error] " .. tostring(message))