-
Notifications
You must be signed in to change notification settings - Fork 1
/
daag_aard.xml
1044 lines (967 loc) · 40.5 KB
/
daag_aard.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.0">
<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>dmap</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>Check for 'other' exits</name>
<script>
setRoomChar(gmcp.room.info.num, ">")</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>^\[ Exits: .*other.* \]$</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>specialExitsTracker</name>
<script>toRoom = damp.map.current_room
damp.log:debug("fromRoom: "..fromRoom)
damp.log:debug("toRoom: "..toRoom)
disableTrigger("specialExitsTracker")
addSpecialExit(fromRoom, toRoom, specialExitCommand) </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>^\[ Exits:.* \]$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</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>chat</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>newbie</name>
<script>enableTrigger("blankline")
selectString(matches[2],1)
replace("")
demonnic.chat:append("Newbie")
deselect()</script>
<triggerType>0</triggerType>
<conditonLineDelta>1</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^(\{chan ch=newbie\})(.*)</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>auction</name>
<script>enableTrigger("blankline")
selectString(matches[2],1)
replace("")
demonnic.chat:append("Auc")
deselect()</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>^(\{chan ch=auction\})(.*)</string>
<string>^(\{chan ch=barter\})(.*)</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<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>all</name>
<script>--showCaptureGroups()
selectString(matches[2],1)
replace("")
--copy()
chat:Append("Test")
--deleteLine()
deselect()</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>^(\{chan ch=.*\})(.*)</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>question</name>
<script>enableTrigger("blankline")
selectString(matches[2],1)
replace("")
demonnic.chat:append("?")
deselect()</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>^(\{chan ch=question\})(.*)</string>
<string>^(\{chan ch=answer\})(.*)</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<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>blankline</name>
<script>disableTrigger("blankline")
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>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>tech</name>
<script>enableTrigger("blankline")
selectString(matches[2],1)
replace("")
demonnic.chat:append("Tech")
deselect()</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>^(\{chan ch=tech\})(.*)</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</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>status</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>noexp_on</name>
<script>raiseEvent("noexp", 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>^You will no longer receive experience. Happy questing!$</string>
<string>^You have set your character to receive no experience points!$</string>
<string>>\*\[NOEXP\]\*</string>
</regexCodeList>
<regexCodePropertyList>
<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>noexp_off</name>
<script>raiseEvent("noexp", 0)</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 will now receive experience. Happy leveling!$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
</TriggerGroup>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>connect complete</name>
<script>raiseEvent("inGame")
</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>^Welcome to Aardwolf. May your adventures be mystical, challenging and rewarding.$</string>
<string>^############# Reconnecting to Game #############$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
</TriggerPackage>
<TimerPackage/>
<AliasPackage>
<Alias isActive="yes" isFolder="no">
<name>initialize damp</name>
<script>dampOnStart()</script>
<command></command>
<packageName></packageName>
<regex>^damp$</regex>
</Alias>
<AliasGroup isActive="yes" isFolder="yes">
<name>dmap</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Reinit Map</name>
<script>-- Reinitalize the map
damp.init_map()</script>
<command></command>
<packageName></packageName>
<regex>^dmap$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Reset Zone</name>
<script>damp.map:resetZone(matches[2])
damp.map.current_room = nil
damp.map.prior_room = nil
</script>
<command></command>
<packageName></packageName>
<regex>^dmreset (.*)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>dmzones</name>
<script>-- Show all visted zones (as far as the mapper knows)
display(getAreaTable())</script>
<command></command>
<packageName></packageName>
<regex>^dmzones$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>add door</name>
<script>-- Add a door visually to the map in the direction indicated, with the status
-- Ex., "]w closed" for a closed door to the west
local status
if (matches[3] == "open") then status = 1
elseif (matches[3] == "closed") then status = 2
elseif (matches[3] == "locked") then status = 3
else status = matches[3]
end
setDoor(damp.map.current_room, matches[2], status)</script>
<command></command>
<packageName></packageName>
<regex>^](.?) (\w+)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>remove door</name>
<script>setDoor(damp.map.current_room, matches[2], 0)</script>
<command></command>
<packageName></packageName>
<regex>^\[(.?)$</regex>
</Alias>
<Alias isActive="no" isFolder="no">
<name>link rooms</name>
<script>-- Given a direction, link the current room to the room is noted direction
connectExitStub(damp.map.current_room, matches[2])
centerview()</script>
<command></command>
<packageName></packageName>
<regex>^\.\.(\w)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Create Special Exit</name>
<script>-- Create a special exit with the command given. For example,
-- >climb rope
-- Be sure to use 'long' directions when using this alias for doors!
-- Ex., >open north, north
specialExitCommand = string.gsub(matches[2], ",", ";")
fromRoom = damp.map.current_room
enableTrigger("specialExitsTracker")
send(specialExitCommand)
</script>
<command></command>
<packageName></packageName>
<regex>^>(.*)$</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>dgui</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>GUI init</name>
<script>
if not system_init then
init()
end
init_gui()
</script>
<command></command>
<packageName></packageName>
<regex>^dgui$</regex>
</Alias>
</AliasGroup>
</AliasPackage>
<ActionPackage/>
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>damp</name>
<packageName></packageName>
<script>damp = damp or {}
damp.gui = damp.gui or {}
damp.map = damp.map or {}
damp.log = damp.log or {}
</script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>config</name>
<packageName></packageName>
<script>
-----------------------
-- User Config
-----------------------
-- Set this path to where you cloned/downloaded the scripts
damp.script_path = "d:/dev/github/damp"
-- Set to true to enable the GUI functionality
damp.gui.enable = true
-- Set to true to enable the mapping script
damp.map.enable = true
-- Turn on debug output. Tends to be pretty spammy.
damp.log.enableDebug = false</script>
<eventHandlerList/>
</Script>
<Script isActive="yes" isFolder="no">
<name>dampOnStart</name>
<packageName></packageName>
<script>function dampOnStart()
-- Initialize logging. Note that debug mode is overly spammy when mapping!
dofile(damp.script_path.."/dlog/logger.lua")
damp.command = nil
sendGMCP("request quest")
sendGMCP("request char")
enableTimer("gmcp_request_quest")
if (damp.gui.enable) then damp:init_gui() end
if (damp.map.enable) then damp:init_map() end
damp.init = true
damp.log:info("Scripts initialized")
if not(demonnic.chat) then
damp.log:info("This package is designed to optionally work with Demonnic's Tabbed Chat plugin")
damp.log:info("Please visit http://code.google.com/p/mudlet-packages/downloads/list")
damp.log:info("and download YATCO-2.3.xml (or newer)")
disableTrigger("chat")
end
end</script>
<eventHandlerList>
<string>sysLoadEvent</string>
</eventHandlerList>
</Script>
<Script isActive="yes" isFolder="no">
<name>onSysDataSendRequest</name>
<packageName></packageName>
<script>function onSysDataSendRequest(event, args)
damp.command = args
if (table.contains(damp.CARDINAL_EXITS_SHORT, damp.command)) then
for k,v in pairs(getSpecialExitsSwap(damp.map.current_room)) do
for key, value in pairs(getRoomExits(damp.map.current_room)) do
if v == value and key == damp.CARDINAL_EXITS_EXPAND[damp.command] then
damp.log:debug("Found special exit to follow")
--damp.special_move = true
gotoRoom(v)
denyCurrentSend()
--damp.command = ""
return
end
end
end
--damp.log:debug(damp.command)
--send("west", false)
end
end
</script>
<eventHandlerList>
<string>sysDataSendRequest</string>
</eventHandlerList>
</Script>
</ScriptGroup>
<ScriptGroup isActive="yes" isFolder="yes">
<name>dmap</name>
<packageName></packageName>
<script>mudlet = mudlet or {}
mudlet.mapper_script = true
</script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>init_map</name>
<packageName></packageName>
<script>function damp:init_map()
sendGMCP("rawcolor on")
dofile(damp.script_path.."/dmap/gmcp_room.lua")
dofile(damp.script_path.."/dmap/exits.lua")
dofile(damp.script_path.."/dmap/rooms.lua")
dofile(damp.script_path.."/dmap/zones.lua")
dofile(damp.script_path.."/dmap/continents.lua")
dofile(damp.script_path.."/dmap/speedwalk.lua")
damp.map.current_zone = nil
damp.map.current_room = nil
damp.map.prior_room = nil
damp.map.prior_room_data = {}
damp.map.seen_room = nil
damp.map.terrain = {}
damp.map.sectors = nil
damp.map.init = true
damp.log:info("Initalized damp mapper")
end</script>
<eventHandlerList/>
</Script>
<Script isActive="yes" isFolder="no">
<name>onRoom</name>
<packageName></packageName>
<script>function onRoom()
if not (damp.map.init) then return end
if (damp.special_move) then
damp.special_move = false
return
end
damp.log:debug("Parsing room")
damp.map:parseGmcpRoom()
end</script>
<eventHandlerList>
<string>gmcp.room</string>
</eventHandlerList>
</Script>
</ScriptGroup>
<ScriptGroup isActive="yes" isFolder="yes">
<name>dgui</name>
<packageName></packageName>
<script></script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>map</name>
<packageName></packageName>
<script>
function damp.gui:drawMap()
damp.gui.main = Geyser.Container:new({x=0,y=0,width="100%",height="100%",name="mapper container"})
damp.gui.mapper = Geyser.Mapper:new({
name = "mapper",
x = "70%", y = "50%", -- edit here if you want to move it
width = "30%", height = "50%"
}, main)
end</script>
<eventHandlerList/>
</Script>
<Script isActive="yes" isFolder="no">
<name>bars</name>
<packageName></packageName>
<script>function damp.gui:drawCharBars()
damp.gui.bar_container = Geyser.Container:new({
name = "bar_container",
x=0, y=-80,
width="25%", height=80,
})
damp.gui.bar_container2 = Geyser.Container:new({
name = "bar_container",
x="26%", y=-80,
width="25%", height=80,
})
damp.gui.hp_bar = Geyser.Gauge:new({
name = "hp_bar",
x="1%", y=5,
width="100%", height=15,
},damp.gui.bar_container)
damp.gui.hp_bar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f04141, stop: 1 #cc0000);
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
border-radius: 2;
padding: 1px;]])
damp.gui.hp_bar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #666, stop: 1 #333);
border-width: 1px;
border-color: black;
border-style: solid;
border-radius: 2;
padding: 1px;
]])
damp.gui.mana_bar = Geyser.Gauge:new({
name = "mana_bar",
x="1%", y=25,
width="100%", height=15,
},damp.gui.bar_container)
damp.gui.mana_bar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #1ca1d0 , stop: 1 #04739c );
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
border-radius: 2;
padding: 1px;]])
damp.gui.mana_bar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #666, stop: 1 #333);
border-width: 1px;
border-color: black;
border-style: solid;
border-radius: 2;
padding: 1px;
]])
damp.gui.moves_bar = Geyser.Gauge:new({
name = "moves_bar",
x="1%", y=45,
width="100%", height=15,
},damp.gui.bar_container)
damp.gui.moves_bar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #22b026, stop: 1 #0a890d);
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
border-radius: 2;
padding: 1px;]])
damp.gui.moves_bar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #666, stop: 1 #333);
border-width: 1px;
border-color: black;
border-style: solid;
border-radius: 2;
padding: 1px;
]])
damp.gui.enemy_bar = Geyser.Gauge:new({
name = "enemy_bar",
x="1%", y=5,
width="100%", height=15,
},damp.gui.bar_container2)
damp.gui.enemy_bar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f04141, stop: 1 #cc0000);
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
border-radius: 2;
padding: 1px;]])
damp.gui.enemy_bar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #666, stop: 1 #333);
border-width: 1px;
border-color: black;
border-style: solid;
border-radius: 2;
padding: 1px;
]])
damp.gui.tnl_bar = Geyser.Gauge:new({
name = "tnl_bar",
x="1%", y=25,
width="100%", height=15,
},damp.gui.bar_container2)
damp.gui.tnl_bar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #aaa , stop: 1 #666 );
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
border-radius: 2;
padding: 1px;]])
damp.gui.tnl_bar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #666, stop: 1 #333);
border-width: 1px;
border-color: black;
border-style: solid;
border-radius: 2;
padding: 1px;
]])
damp.gui.align_bar = Geyser.Gauge:new({
name = "align_bar",
x="1%", y=45,
width="100%", height=15,
},damp.gui.bar_container2)
damp.gui.align_bar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #aeb037 , stop: 1 #4e4f19 );
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
border-radius: 2;
padding: 1px;]])
damp.gui.align_bar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #666, stop: 1 #333);
border-width: 1px;
border-color: black;
border-style: solid;
border-radius: 2;
padding: 1px;
]])
setBorderBottom(80)
end
</script>
<eventHandlerList/>
</Script>
<Script isActive="yes" isFolder="no">
<name>status_bars</name>
<packageName></packageName>
<script>function damp.gui:drawStatusBar()
damp.gui.status_bar = Geyser.Container:new({
name = "status_bar",
x=0, y=-17,
width="65%", height=15,
})
damp.gui.noexp_label = Geyser.Label:new({
name = "noexp_label",
x=3, y=0,
width="75", height="100%",
}, damp.gui.status_bar)
damp.gui.questtimer_label = Geyser.Label:new({
name = "questtimer_label",
x=81, y=0,
width="75", height="100%",
}, damp.gui.status_bar)
end</script>
<eventHandlerList/>
</Script>
<Script isActive="yes" isFolder="no">
<name>init_gui</name>
<packageName></packageName>
<script>function damp:init_gui()
--send("P")
damp.gui:drawMap()
damp.gui:drawCharBars()
damp.gui:drawStatusBar()
damp.gui.init = true
damp.log:info("Initalized damp GUI")
end</script>
<eventHandlerList/>
</Script>
</ScriptGroup>
<ScriptGroup isActive="yes" isFolder="yes">
<name>gmcp events</name>
<packageName></packageName>
<script>
</script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>onVitals</name>
<packageName></packageName>
<script>function onVitals()
if not (damp.gui.init) then return end
-- On startup, char.vitals can come in before maxstats
if not (gmcp.char.maxstats) then return end
local hp, maxhp = gmcp.char.vitals.hp, gmcp.char.maxstats.maxhp
local mp, maxmp = gmcp.char.vitals.mana, gmcp.char.maxstats.maxmana
local mv, maxmv = gmcp.char.vitals.moves, gmcp.char.maxstats.maxmoves
local hp_pct = getPercent(hp, maxhp)
local mp_pct = tostring(getPercent(mp, maxmp))
local mv_pct = tostring(getPercent(mv, maxmv))
damp.gui.hp_bar:setValue(hp, maxhp,"<b>"..hp.."hp | "..string.format("%i", hp_pct).."%</b>")
damp.gui.mana_bar:setValue(mp, maxmp,"<b>"..mp.."sp | "..string.format("%i", mp_pct).."%</b>")
damp.gui.moves_bar:setValue(mv, maxmv,"<b>"..mv.."mv | "..string.format("%i", mv_pct).."%</b>")
end
function getPercent(top, bottom)
return (tonumber(top)/tonumber(bottom)) * 100
end</script>
<eventHandlerList>
<string>gmcp.char.vitals</string>
<string>gmcp.char.maxstats</string>
</eventHandlerList>
</Script>
<Script isActive="yes" isFolder="no">
<name>onQuest</name>
<packageName></packageName>
<script>
function onQuest()
if not (damp.gui.init) then return end
if (gmcp.comm.quest.wait) then
damp.gui.questtimer_label:echo("<center>Q: "..gmcp.comm.quest.wait.."m</center>")
damp.gui.questtimer_label:setColor(100,100,100)
elseif (gmcp.comm.quest.status == "ready") then
damp.gui.questtimer_label:echo("<center>Quest!</center>")
damp.gui.questtimer_label:setColor(0,150,0)
--disableTimer("gmcp_request_quest")
elseif (gmcp.comm.quest.action == "start" or gmcp.comm.quest.action == "status") then
if (gmcp.comm.quest.timer) then
damp.gui.questtimer_label:echo("<center>Q: "..gmcp.comm.quest.timer.."m</center>")
damp.gui.questtimer_label:setColor(150,0,0)
elseif (gmcp.comm.quest.time) then
damp.gui.questtimer_label:echo("<center>Q: "..gmcp.comm.quest.time.."m</center>")
damp.gui.questtimer_label:setColor(150, 150, 0)
end
end
end
</script>
<eventHandlerList>
<string>gmcp.comm.quest</string>
</eventHandlerList>
</Script>
<Script isActive="yes" isFolder="no">
<name>onStatus</name>
<packageName></packageName>
<script>function onStatus()
if not (damp.gui.init) then return end
local enemy_name, enemy_pct = gmcp.char.status.enemy, gmcp.char.status.enemypct or 0
local tnl = gmcp.char.status.tnl
local align = gmcp.char.status.align
damp.gui.enemy_bar:setValue(enemy_pct, 100, "<b>"..enemy_name.." | "..string.format("%i", enemy_pct).."%</b>")
damp.gui.tnl_bar:setValue(1000-tnl, 1000, "<b>TNL: "..tnl.."</b>")
damp.gui.align_bar:setValue(align+2500, 5000, "<b>Align: "..align.."</b>")
end</script>
<eventHandlerList>
<string>gmcp.char.status</string>
</eventHandlerList>
</Script>
<Script isActive="yes" isFolder="no">
<name>onSectors</name>
<packageName></packageName>
<script>function onSectors()
if(damp.map.sectors) then return end
dofile(damp.script_path.."/dmap/sectors.lua")
damp.map:setCustomColors()
damp.map.sectors = true
end
</script>
<eventHandlerList>
<string>gmcp.room.sectors</string>
</eventHandlerList>
</Script>
</ScriptGroup>
<ScriptGroup isActive="yes" isFolder="yes">
<name>non-gmcp events</name>
<packageName></packageName>
<script></script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>onNoexp</name>
<packageName></packageName>
<script>
function onNoexp(event, arg)
if not (damp.gui.init) then return end
if (arg == 0) then
damp.gui.noexp_label:echo([[<center>EXP</center>]])
damp.gui.noexp_label:setColor(40, 40, 40)
elseif (arg == 1) then
damp.gui.noexp_label:echo([[<center>NOEXP</center>]])
damp.gui.noexp_label:setColor(225, 0, 0)
end
end
</script>
<eventHandlerList>
<string>noexp</string>
</eventHandlerList>
</Script>
<Script isActive="yes" isFolder="no">
<name>onInGame</name>
<packageName></packageName>
<script>-- Actions to occur once we are truly 'in' the game.
-- Will only fire on first connect/reconnect
function onInGame()
--local roomSetup = tempTrigger("[ Exits:", [[sendGMCP("request room") sendGMCP("request sectors") damp:roomInit()]])
-- Need to be fully in-game before getting room/sector info
sendGMCP("request room")
sendGMCP("request sectors")
-- Force a prompt to display to init various prompt-based flags
send("P",false)
--send("look",false)
end
</script>
<eventHandlerList>
<string>inGame</string>
</eventHandlerList>
</Script>
</ScriptGroup>
</ScriptPackage>
<KeyPackage>
<KeyGroup isActive="yes" isFolder="yes">
<name>dmap</name>
<packageName></packageName>
<script></script>
<command></command>
<keyCode>-1</keyCode>
<keyModifier>-1</keyModifier>
<Key isActive="yes" isFolder="no">
<name>North</name>
<packageName></packageName>
<script></script>
<command>n</command>
<keyCode>56</keyCode>
<keyModifier>536870912</keyModifier>
</Key>
<Key isActive="yes" isFolder="no">
<name>South</name>
<packageName></packageName>
<script></script>
<command>s</command>
<keyCode>50</keyCode>
<keyModifier>536870912</keyModifier>
</Key>
<Key isActive="yes" isFolder="no">
<name>East</name>
<packageName></packageName>
<script></script>
<command>e</command>
<keyCode>54</keyCode>
<keyModifier>536870912</keyModifier>
</Key>
<Key isActive="yes" isFolder="no">
<name>West</name>
<packageName></packageName>
<script></script>
<command>w</command>
<keyCode>52</keyCode>
<keyModifier>536870912</keyModifier>
</Key>
<Key isActive="yes" isFolder="no">
<name>Northeast</name>
<packageName></packageName>
<script></script>
<command>ne</command>
<keyCode>57</keyCode>
<keyModifier>536870912</keyModifier>
</Key>
<Key isActive="yes" isFolder="no">
<name>Northwest</name>
<packageName></packageName>
<script></script>
<command>nw</command>
<keyCode>55</keyCode>
<keyModifier>536870912</keyModifier>
</Key>
<Key isActive="yes" isFolder="no">
<name>Southeast</name>