-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLuminariGUI.xml
More file actions
5060 lines (4671 loc) · 178 KB
/
LuminariGUI.xml
File metadata and controls
5060 lines (4671 loc) · 178 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.024">
<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()
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")
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
return
end
-- Process map line with error handling
pcall(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)
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()
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")
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
return
end
-- Process room map line with error handling
pcall(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)
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.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.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.horizontalScrollToggle()</script>
<command></command>
<packageName></packageName>
<regex>^hscroll$</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>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.
-- =============================================================================
if GUI and GUI.initializeOrRefresh then
GUI.initializeOrRefresh("fix gui command")
else
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>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>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>if demonnic.chat.config.blink then
demonnic.chat.config.blink = false
demonnic.chat.tabsToBlink = {}
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>-- Toggle chat sound notifications
if demonnic and demonnic.chat and demonnic.chat.config then
demonnic.chat.config.soundEnabled = not demonnic.chat.config.soundEnabled
if demonnic.chat.config.soundEnabled then
cecho("\n<green>Chat sound notifications ENABLED<reset>\n")
-- Play a test sound
local soundPath = getMudletHomeDir():gsub("\\", "/") .. "/LuminariGUI/" .. demonnic.chat.config.soundFile
local file = io.open(soundPath, "r")
if file then
file:close()
playSoundFile(soundPath, demonnic.chat.config.soundVolume)
else
-- Try user's home directory as fallback
soundPath = getMudletHomeDir():gsub("\\", "/") .. "/" .. demonnic.chat.config.soundFile
file = io.open(soundPath, "r")
if file then
file:close()
playSoundFile(soundPath, demonnic.chat.config.soundVolume)
else
-- Try system beep as final fallback
playSoundFile("") -- Empty string triggers system beep in Mudlet
end
end
else
cecho("\n<red>Chat sound notifications DISABLED<reset>\n")
end
-- Save to GUI.toggles for persistence
if GUI and GUI.toggles then
GUI.toggles.chatSound = demonnic.chat.config.soundEnabled
table.save(getMudletHomeDir():gsub("\\", "/") .. "/GUI.toggles.lua", GUI.toggles)
end
else
cecho("\n<red>Chat system not initialized. Type 'fix chat' to reinitialize.<reset>\n")
end</script>
<command></command>
<packageName></packageName>
<regex>^dsound$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>set chat sound</name>
<script>local args = matches[2]:split(" ")
local command = args[1]
local value = args[2]
if command == "on" or command == "off" then
-- Enable/disable sounds
demonnic.chat.config.soundEnabled = (command == "on")
GUI.toggles.chatSound = demonnic.chat.config.soundEnabled
table.save(getMudletHomeDir():gsub("\\", "/") .. "/GUI.toggles.lua", GUI.toggles)
cecho(string.format("\n<yellow>Chat sounds %s<reset>\n", command:upper()))
elseif command == "volume" and value then
-- Set volume (0-100)
local vol = tonumber(value)
if vol and vol >= 0 and vol <= 100 then
demonnic.chat.config.soundVolume = vol
cecho(string.format("\n<yellow>Chat sound volume set to %d<reset>\n", vol))
else
cecho("\n<red>Volume must be between 0 and 100<reset>\n")
end
elseif command == "file" and value then
-- Set sound file
demonnic.chat.config.soundFile = value
cecho(string.format("\n<yellow>Chat sound file set to: %s<reset>\n", value))
elseif command == "cooldown" and value then
-- Set cooldown between sounds
local cd = tonumber(value)
if cd and cd >= 0 then
demonnic.chat.config.soundCooldown = cd
cecho(string.format("\n<yellow>Chat sound cooldown set to %d seconds<reset>\n", cd))
else
cecho("\n<red>Cooldown must be 0 or positive number<reset>\n")
end
elseif command == "test" then
-- Test the sound
local soundPath = getMudletHomeDir():gsub("\\", "/") .. "/LuminariGUI/" .. demonnic.chat.config.soundFile
local file = io.open(soundPath, "r")
if file then
file:close()
playSoundFile(soundPath, demonnic.chat.config.soundVolume)
cecho("\n<green>Playing test sound...<reset>\n")
else
-- Try user's home directory as fallback
soundPath = getMudletHomeDir():gsub("\\", "/") .. "/" .. demonnic.chat.config.soundFile
file = io.open(soundPath, "r")
if file then
file:close()
playSoundFile(soundPath, demonnic.chat.config.soundVolume)
cecho("\n<green>Playing test sound from user directory...<reset>\n")
else
playSoundFile("") -- Empty string triggers system beep in Mudlet
cecho("\n<yellow>Sound file not found, playing default beep<reset>\n")
end
end
else
-- Show help
cecho("\n<cyan>Chat Sound Commands:<reset>\n")
cecho(" <white>set chat sound on/off<reset> - Enable or disable sounds for ALL channels\n")
cecho(" <white>set chat sound volume <0-100><reset> - Set volume level\n")
cecho(" <white>set chat sound file <filename><reset> - Set sound file\n")
cecho(" <white>set chat sound cooldown <seconds><reset> - Set cooldown between sounds\n")
cecho(" <white>set chat sound test<reset> - Test the current sound\n")
cecho("\n<yellow>Current settings:<reset>\n")
cecho(string.format(" Enabled: %s (plays for ALL channels)\n", demonnic.chat.config.soundEnabled and "YES" or "NO"))
cecho(string.format(" Volume: %d\n", demonnic.chat.config.soundVolume))
cecho(string.format(" File: %s\n", demonnic.chat.config.soundFile))
cecho(string.format(" Cooldown: %d seconds\n", demonnic.chat.config.soundCooldown))
end</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.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>MSDPMapper</name>
<packageName></packageName>
<script></script>
<eventHandlerList />
<Script isActive="yes" isFolder="no">
<name>MSDPMapper</name>
<packageName></packageName>
<script>-------------------------------------------------
-- MSDPMapper: MSDP protocol handling and room mapping
-- Handles map creation, navigation, and ASCII minimap display
-------------------------------------------------
map = map or {}
map.room_info = map.room_info or {}
map.prev_info = map.prev_info or {}
map.aliases = map.aliases or {}
map.enabled = false
map.downloading = false
map.minimap_font_size = 8
map.minimap_width = 21
map.minimap_height = 21
local defaults = {
-- using Geyser to handle the mapper in this, since this is a totally new script
mapper = {x = "75%", y = "0%", width = "25%", height = "50%"}
}
local terrain_types = {
-- used to make rooms of different terrain types have different colors
-- add a new entry for each terrain type, and set the color with RGB values
-- each id value must be unique, terrain types not listed here will use mapper default color
["Inside"] = {id = 1, r = 130, g = 130, b = 130},
["City"] = {id = 2, r = 200, g = 200, b = 200},
["Field"] = {id = 3, r = 0, g = 170, b = 0},
["Forest"] = {id = 4, r = 0, g = 122, b = 0},
["Hills"] = {id = 5, r = 122, g = 69, b = 0},
["Low Mountains"] = {id = 6, r = 100, g = 100, b = 100},
["Water (Swim)"] = {id = 7, r = 0, g = 0, b = 255},
["Water (No Swim)"] = {id = 8, r = 0, g = 0, b = 130},
["In Flight"] = {id = 9, r = 200, g = 200, b = 255},
["Underwater"] = {id = 10, r = 43, g = 43, b = 124},
["Zone Entrance"] = {id = 211, r = 255, g = 0, b = 0},
["Road North-South"] = {id = 12, r = 119, g = 101, b = 86},
["Road East-West"] = {id = 13, r = 119, g = 101, b = 86},
["Road Intersection"] = {id = 14, r = 119, g = 101, b = 86},
["Desert"] = {id = 15, r = 234, g = 219, b = 124},
["Ocean"] = {id = 16, r = 0, g = 90, b = 90},
["Marshland"] = {id = 17, r = 81, g = 47, b = 109},
["High Mountains"] = {id = 18, r = 255, g = 255, b = 255},
["Outer Planes"] = {id = 19, r = 168, g = 42, b = 138},
["Underdark - Wild"] = {id = 20, r = 131, g = 110, b = 145},
["Underdark - City"] = {id = 21, r = 183, g = 178, b = 186},
["Underdark - Inside"] = {id = 22, r = 132, g = 132, b = 132},
["Underdark - Water (Swim)"] = {id = 23, r = 70, g = 139, b = 175},
["Underdark - Water (No Swim)"] = {id = 24, r = 34, g = 68, b = 86},
["Underdark - In Flight"] = {id = 25, r = 158, g = 178, b = 188},
["Lava"] = {id = 26, r = 255, g = 119, b = 0},
["Dirt Road North-South"] = {id = 27, r = 142, g = 85, b = 0},
["Dirt Road East-West"] = {id = 28, r = 142, g = 85, b = 0},
["Dirt Road Intersection"] = {id = 29, r = 142, g = 85, b = 0},
["Cave"] = {id = 30, r = 80, g = 80, b = 80},
["Jungle"] = {id = 31, r = 21, g = 132, b = 101},
["Tundra"] = {id = 32, r = 224, g = 224, b = 224},
["Taiga"] = {id = 33, r = 103, g = 137, b = 104},
["Beach"] = {id = 34, r = 239, g = 235, b = 0},
}
-- list of possible movement directions and appropriate coordinate changes
local move_vectors = {
north = {0,1,0}, south = {0,-1,0}, east = {1,0,0}, west = {-1,0,0},
northwest = {-1,1,0}, northeast = {1,1,0}, southwest = {-1,-1,0}, southeast = {1,-1,0},
up = {0,0,1}, down = {0,0,-1}
}
-- used to convert short dirs for full dirs
local exits = {
n = "north", s = "south", w = "west", e = "east",
nw = "northwest", ne = "northeast", sw = "southwest", se = "southeast",
u = "up", d = "down"
}
local exitmap = {
north = 1, northeast = 2, northwest = 3, east = 4,
west = 5, south = 6, southeast = 7, southwest = 8,
up = 9, down = 10, ["in"] = 11, out = 12,
[1] = "north", [2] = "northeast", [3] = "northwest", [4] = "east",
[5] = "west", [6] = "south", [7] = "southeast", [8] = "southwest",
[9] = "up", [10] = "down", [11] = "in", [12] = "out",
}
local function make_room()
local info = map.room_info
local coords = {0,0,0}
addRoom(info.VNUM)
local areas = getAreaTable()
local areaID = areas[info.AREA]
if not areaID then
areaID = addAreaName(info.AREA)
else
coords = {getRoomCoordinates(map.prev_info.VNUM)}
local shift = {0,0,0}
for k,v in pairs(map.prev_info.EXITS) do
if v == info.VNUM and move_vectors[k] then
shift = move_vectors[k]
break
end
end
for n = 1,3 do
coords[n] = coords[n] + shift[n]
end
-- map stretching
local overlap = getRoomsByPosition(areaID,coords[1],coords[2],coords[3])
if not table.is_empty(overlap) then
local rooms = getAreaRooms(areaID)
local rcoords
for _,id in ipairs(rooms) do
local x, y, z = getRoomCoordinates(id)
rcoords = {x, y, z}
for n = 1,3 do
if shift[n] ~= 0 and (rcoords[n] - coords[n]) * shift[n] >= 0 then
rcoords[n] = rcoords[n] + shift[n]
end
end
setRoomCoordinates(id,rcoords[1],rcoords[2],rcoords[3])
end
end
end
setRoomArea(info.VNUM, areaID)
setRoomCoordinates(info.VNUM, coords[1], coords[2], coords[3])
if terrain_types[info.TERRAIN] then
setRoomEnv(info.VNUM, terrain_types[info.TERRAIN].id + 16)
end
-- Set the room name from MSDP data
if info.NAME then
setRoomName(info.VNUM, info.NAME)
end
if map.prev_info then -- Check if you moved into here from another room.
local prev_exits = getRoomExits(map.prev_info.VNUM)
for dir, id in pairs(map.prev_info.EXITS) do
if prev_exits[dir] == nil then
if not setExit(map.prev_info.VNUM, id, exitmap[dir]) then
setExitStub(map.prev_info.VNUM, exitmap[dir], true)
end
end
end
end
for dir, id in pairs(info.EXITS) do
-- need to see how special exits are represented to handle those properly here
if not setExit(info.VNUM, id, exitmap[dir]) then
setExitStub(info.VNUM, exitmap[dir], true)
end
end
end
local function shift_room(dir)
local ID = map.room_info.VNUM
local x,y,z = getRoomCoordinates(ID)
local x1,y1,z1 = move_vectors[dir]
x = x + x1
y = y + y1
z = z + z1
setRoomCoordinates(ID,x,y,z)
updateMap()
end
local function handle_move()
if map.enabled == true and map.room_info.ENVIRONMENT ~= "Wilderness" then
if not getRoomName(map.room_info.VNUM) then
make_room()
else
if terrain_types[map.room_info.TERRAIN] then
setRoomEnv(map.room_info.VNUM, terrain_types[map.room_info.TERRAIN].id + 16)
end
local stubs = getExitStubs1(map.room_info.VNUM)
if stubs then
for _, n in ipairs(stubs) do
local dir = exitmap[n]
local id = map.room_info.EXITS[dir]
-- need to see how special exits are represented to handle those properly here
if getRoomName(id) then
setExit(map.room_info.VNUM, id, exitmap[dir])
end
end
end
end
end
centerview(map.room_info.VNUM)
end
local function make_aliases()
-- Create mapping control aliases
-- Uses named keys in map.aliases for proper cleanup on reload
local id
local tbl = {
["Start Mapping Alias"] = {[[^start mapping$]], [[map.start_mapping()]]},
["Stop Mapping Alias"] = {[[^stop mapping$]], [[map.stop_mapping()]]},
["Mapping On Alias"] = {[[^mc on$]], [[map.start_mapping()]]},
["Mapping Off Alias"] = {[[^mc off$]], [[map.stop_mapping()]]},
["Shift Room Alias"] = {[[^shift (\w+)$]], [[raiseEvent("shiftRoom",matches[2])]]},
}
for k, v in pairs(tbl) do
if map.aliases[k] and exists(map.aliases[k], "alias") ~= 0 then