-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPanelSafeHelper.xml
More file actions
740 lines (684 loc) · 20.3 KB
/
PanelSafeHelper.xml
File metadata and controls
740 lines (684 loc) · 20.3 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
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, October 31, 2020, 4:03 PM -->
<!-- MuClient version 5.06 -->
<!-- Plugin "PanelSafeHelper" generated by Plugin Wizard -->
<muclient>
<plugin
name="PanelSafeHelper"
author="Kalu"
id="71a76b438ec6fa4671b9c4b6"
language="Lua"
purpose="Help keep track of which contacts, letters and wires have been eliminated"
date_written="2020-10-31 15:52:21"
requires="5.06"
version="1.2"
>
<description trim="y">
<![CDATA[
Help keep track of which contacts, letters and wires have been eliminated.
In progress v1.1 - Added button to perform all possible moves
v1.0 - Initial release
v0.1
If a successful panel safe crack is detected
- create a table of contacts, letters and wires each with a state of in-
play=true
- create a window that displays the current in-play state of contacts, letters and wires.
If a contact is eliminated, set that contact's in-play state to false.
If a letter is eliminated, set that letter's in-play state to false.
If a wire is eliminated change that wire's in-play state to false.
If a connection attempt is detected update the window to reflect the current in-play state of contacts, letters and wires.
All in-play (colours green):
C C C | A B C | R O Y
C C C | D E F | G B
C C C | G H
None in-play (colours red):
c c c | a b c | r o y
c c c | d e f | g b
c c c | g h
v0.2
Display status of components in a window
Track status of charged/discharged letters
Hyperlink to select wire
Hyperlink to select letter
If both wire and letter (charged)
- connect <colour> wire to <letter>.
- change letter state to discharged.
Set state PanelCracking to true if succesful crack message is triggered.
Set state PanelCracking to false
- if true and you give up your attempt to crack the safe; or
- the safe is successfully unlocked.
v0.3
Varous shenanigans
v0.4
Fixed successful unlock trigger
v0.5
Added suggested pan parameters
v0.6-1.0
Many rethinks
Close X
Hyperlinks for suggeted connections
v1.1
Addition of pan alias hyperlink
v1.2
Code review and tidy.
]]>
</description>
SetVariable("InPlayColour", "green")
SetVariable("NotInPlayColour","red")
ResetTable
</plugin>
<!-- Triggers -->
<triggers>
<trigger
custom_colour="3"
enabled="y"
group="panelsafe"
match="^On the front of the safe is a grid of nine contact regions\, above which are eight lock pieces\, labelled \"A\" to \"H\"\, that can slide from one contact region to another\. To the side of the grid are five colour\-coded retractable wires\, each ending with a connector that fits any of the lock pieces\. From studying the mechanism you deduce that the best strategy is to inspect the control panel to work out how the lock pieces are positioned\, slide one to new contact region if required and connect one of the coloured wires to it\. Finding the correct combination will unlock the safe\.$"
regexp="y"
sequence="100"
script="SuccessfulPanelCrack"
>
</trigger>
<trigger
custom_colour="3"
enabled="y"
group="panelsafe"
match="^The (?P<component>.*?) wire doesn\'t appear to be involved in cracking the lock\.$"
regexp="y"
sequence="100"
script="OutPlay"
>
</trigger>
<trigger
custom_colour="3"
enabled="y"
group="panelsafe"
match="^pan complete$"
regexp="y"
sequence="100"
script="TestPanel"
>
</trigger>
<trigger
custom_colour="15"
enabled="y"
group="panelsafe"
lines_to_match="13"
keep_evaluating="y"
match=
"\+\-\-\-\-\-\-\-\+\-\-\-\-\-\-\-\+\-\-\-\-\-\-\-\+\n\| \| \| \|\n\| +(?<tl>[A-H]|\s) +(?<tm>[A-H]|\s) +(?<tr>[A-H]|\s) \|\n\| \| \| \|\n\+\-\- \-\-\+\-\- \-\-\+\-\- \-\-\+\n\| \| \| \|\n\| +(?<ml>[A-H]|\s) +(?<mm>[A-H]|\s) +(?<mr>[A-H]|\s) \|\n\| \| \| \|\n\+\-\- \-\-\+\-\- \-\-\+\-\- \-\-\+\n\| \| \| \|\n\| +(?<bl>[A-H]|\s) +(?<bm>[A-H]|\s) +(?<br>[A-H]|\s) \|\n\| \| \| \|\n\+\-\-\-\-\-\-\-\+\-\-\-\-\-\-\-\+\-\-\-\-\-\-\-\+\Z"
multi_line="y"
regexp="y"
sequence="10"
script="UpdateGrid"
>
</trigger>
<trigger
custom_colour="15"
enabled="y"
group="panelsafe"
match="^The (?P<component>.*?) contact doesn\'t seem important for cracking the lock\.$"
regexp="y"
sequence="100"
script="OutPlay"
>
</trigger>
<trigger
custom_colour="15"
enabled="y"
group="panelsafe"
match="^You connect the (?P<wire>.*?) wire to lock piece \"(?P<piece>.*?)\"(.*?)$"
regexp="y"
sequence="100"
script="DisChargeLetter"
>
</trigger>
<trigger
name="InspectSafe"
custom_colour="15"
enabled="n"
group="panelsafe"
match="^You inspect the control panel on the safe\.$"
regexp="y"
sequence="100"
script="DisplayComponents"
>
</trigger>
<trigger
custom_colour="3"
enabled="y"
group="panelsafe"
match="^There is a brief spark and a puff of smoke from the contact (.*?)$"
regexp="y"
sequence="100"
script="SafeCracked"
>
</trigger>
<trigger
custom_colour="15"
enabled="y"
group="panelsafe"
match="^You realise that lock piece \"(?P<component>.*?)\" is not required for cracking the lock\.$"
regexp="y"
sequence="100"
script="OutPlay"
>
</trigger>
<trigger
custom_colour="15"
enabled="y"
group="panelsafe"
match="^You stop attempting to crack the safe\.$"
regexp="y"
sequence="100"
script="AbandonSafe"
>
</trigger>
<trigger
custom_colour="15"
enabled="y"
group="panelsafe"
match="^You slide piece \"(?P<Letter>.*?)\" (.*?)$"
regexp="y"
sequence="100"
script="ChargeLetter"
>
</trigger>
</triggers>
<!-- Plugin help -->
<aliases>
<alias
script="OnHelp"
match="PanelSafeHelper:help"
enabled="y"
>
</alias>
<alias
script="DisplayComponents"
match="DisplayComponents"
enabled="y"
>
</alias>
<alias
script="OutPlay"
match="OutPlay *"
enabled="y"
>
</alias>
<alias
script="ResetTable"
match="ResetPSHTable"
enabled="y"
>
</alias>
<alias
script="TestPanel"
match="TestPanel"
enabled="y"
>
</alias>
</aliases>
<script>
<![CDATA[
--FUNCTIONS
require("tprint")
function OnHelp ()
world.Note (world.GetPluginInfo (world.GetPluginID (), 3))
end -- function OnHelp
function ResetTable ()
require "tprint"
local InPlayColour = "green"
local NotInPlayColour = "red"
SafePieces={
["top-left"] = {
["ID"]="top-left",
["InPlay"]="C",
["Colour"]=InPlayColour,
["Type"]="Panel",
["Column"]=2,
["Row"]=2,
},
["top-centre"] = {
["ID"]="top-centre",
["InPlay"]="C",
["Colour"]=InPlayColour,
["Type"]="Panel",
["Column"]=3,
["Row"]=2,
},
["top-right"] = {
["ID"]="top-right",
["InPlay"]="C",
["Colour"]=InPlayColour,
["Type"]="Panel",
["Column"]=4,
["Row"]=2,
},
["middle-left"] = {
["ID"]="middle-left",
["InPlay"]="C",
["Colour"]=InPlayColour,
["Type"]="Panel",
["Column"]=2,
["Row"]=3,
},
["centre"] = {
["ID"]="center",
["InPlay"]="C",
["Colour"]=InPlayColour,
["Type"]="Panel",
["Column"]=3,
["Row"]=3,
},
["middle-right"] = {
["ID"]="middle-right",
["InPlay"]="C",
["Colour"]=InPlayColour,
["Type"]="Panel",
["Column"]=4,
["Row"]=3,
},
["bottom-left"] = {
["ID"]="bottom-left",
["InPlay"]="C",
["Colour"]=InPlayColour,
["Type"]="Panel",
["Column"]=2,
["Row"]=4,
},
["bottom-centre"] = {
["ID"]="bottom-centre",
["InPlay"]="C",
["Colour"]=InPlayColour,
["Type"]="Panel",
["Column"]=3,
["Row"]=4,
},
["bottom-right"] = {
["ID"]="bottom-right",
["InPlay"]="C",
["Colour"]=InPlayColour,
["Type"]="Panel",
["Column"]=4,
["Row"]=4,
},
["A"] = {
["ID"]="A",
["InPlay"]="A",
["Colour"]=InPlayColour,
["Type"]="Letter",
["Column"]=5,
["Row"]=2,
["Charged"]=true,
["Selected"]=false,
},
["B"] = {
["ID"]="B",
["InPlay"]="B",
["Colour"]=InPlayColour,
["Type"]="Letter",
["Column"]=6,
["Row"]=2,
["Charged"]=true,
["Selected"]=false,
},
["C"] = {
["ID"]="C",
["InPlay"]="C",
["Colour"]=InPlayColour,
["Type"]="Letter",
["Column"]=7,
["Row"]=2,
["Charged"]=true,
["Selected"]=false,
},
["D"] = {
["ID"]="D",
["InPlay"]="D",
["Colour"]=InPlayColour,
["Type"]="Letter",
["Column"]=5,
["Row"]=3,
["Charged"]=true,
["Selected"]=false,
},
["E"] = {
["ID"]="E",
["InPlay"]="E",
["Colour"]=InPlayColour,
["Type"]="Letter",
["Column"]=6,
["Row"]=3,
["Charged"]=true,
["Selected"]=false,
},
["F"] = {
["ID"]="F",
["InPlay"]="F",
["Colour"]=InPlayColour,
["Type"]="Letter",
["Column"]=7,
["Row"]=3,
["Charged"]=true,
["Selected"]=false,
},
["G"] = {
["ID"]="G",
["InPlay"]="G",
["Colour"]=InPlayColour,
["Type"]="Letter",
["Column"]=5,
["Row"]=4,
["Charged"]=true,
["Selected"]=false,
},
["H"] = {
["ID"]="H",
["InPlay"]="H",
["Colour"]=InPlayColour,
["Type"]="Letter",
["Column"]=6,
["Row"]=4,
["Charged"]=true,
["Selected"]=false,
},
["red"] = {
["ID"]="red",
["InPlay"]="R",
["Colour"]=InPlayColour,
["Type"]="Wire",
["Column"]=9,
["Row"]=2,
["Selected"]=false,
},
["orange"] = {
["ID"]="orange",
["InPlay"]="O",
["Colour"]=InPlayColour,
["Type"]="Wire",
["Column"]=10,
["Row"]=2,
["Selected"]=false,
},
["yellow"] = {
["ID"]="yellow",
["InPlay"]="Y",
["Colour"]=InPlayColour,
["Type"]="Wire",
["Column"]=11,
["Row"]=2,
["Selected"]=false,
},
["green"] = {
["ID"]="green",
["InPlay"]="G",
["Colour"]=InPlayColour,
["Type"]="Wire",
["Column"]=9,
["Row"]=3,
["Selected"]=false,
},
["blue"] = {
["ID"]="blue",
["InPlay"]="B",
["Colour"]=InPlayColour,
["Type"]="Wire",
["Column"]=10,
["Row"]=3,
["Selected"]=false,
}
}
--tprint (SafePieces)
-- recreate the window the correct size
WindowCreate (win,
0, 0, -- left, top (auto-positions)
300, -- width
150, -- height
miniwin.pos_center_right, -- position
0, -- flags
0x696969) -- yellow background
WindowShow (win, true)
DisplayComponents ()
end -- function ResetTable
function DisplayComponents ()
WindowCreate (win, 0, 0, 300, 150, miniwin.pos_center_all, 0, ColourNameToRGB("white"))
if (SafePieces == null) then
ResetTable ()
--Note ("Debug: SafePieces table wasn't set up, but now is.")
WindowCreate (win, 0, 0, 300, 150, miniwin.pos_center_all, 0, ColourNameToRGB("white"))
DisplayComponents ()
Execute("inspect safe")
else
-- iterate through components
for k, v in pairs (SafePieces) do
-- if Inplay lower case, font colour red, otherwise green.
if (v["InPlay"] == string.lower(v["InPlay"])) then
FontColour = ColourNameToRGB("red")
else
FontColour = ColourNameToRGB("green")
end -- if
-- Set window font for this component
WindowFont (win, "f", "Trebuchet MS", 12, v["Charged"], false, v["Selected"], false) -- define font
-- Place this component
WindowText (win, "f", v["InPlay"], v["Column"] * 20, v["Row"] * 20, 0, 0, FontColour, false)
--add hotspot for letters and wires
WindowAddHotspot(win, v["ID"],
v["Column"] * 20, v["Row"] * 20, (v["Column"] * 20) + 20, (v["Row"] * 20) + 20,
"", -- mouseover (do nothing)
"", -- cancelmouseover (do nothing)
"MouseDown",
"", -- cancelmousedown (do nothing)
"", -- mouseup (do nothing)
hint, -- hint text if they hover over it
miniwin.cursor_hand, 0)
end -- for
WindowShow (win, true)
end -- if
end -- function DisplayComponents
function MouseDown (name, line, wildcards)
--Note (SafePieces[line]["Selected"])
if ((SafePieces[line]["Type"]) == "Letter" ) then
-- is a wire selected?
local SelectedWire = GetVariable "SelectedWire" or "None"
if (SelectedWire ~= "None") then
-- yes, attempt to connect wire to letter
Send ("connect " .. SelectedWire .. " wire to " .. string.lower(line))
-- deselect wires
DeselectWires ()
else
-- no wire selected, slide the letter
Send ("slide " .. string.lower(line))
end -- if
elseif ((SafePieces[line]["Type"]) == "Wire" ) then
SafePieces[line]["Selected"] = not(SafePieces[line]["Selected"])
if (SafePieces[line]["Selected"]) then
DeselectWires ()
SafePieces[line]["Selected"] = true
SetVariable ("SelectedWire", line)
end -- if
end -- if
DisplayComponents ()
end -- function MouseDown
function DeselectWires ()
for k, v in pairs (SafePieces) do
if (v["Type"] == "Wire") then
v["Selected"] = false
end -- if
end -- for
SetVariable ("SelectedWire", "None")
end -- function DeselectWires
function OutPlay (Name, Line, Wildcards)
if (SafePieces == null) then
ResetTable ()
end -- if
SafePieces[Wildcards[1]] ["InPlay"] = string.lower(SafePieces[Wildcards[1]] ["InPlay"])
SafePieces[Wildcards[1]] ["Colour"] = "red"
DisplayComponents ()
end -- function OutPlay
function SafeCracked()
ResetTable ()
ColourTell ("green", "", "S U C C E S S !")
Note ("")
world.EnableTrigger("InspectSafe", false)
WindowShow (win, false)
Execute("frimble raidsafe alias")
Execute("raidsafe")
end -- function SafeCracked
function OnPluginInstall ()
win = "A" .. GetPluginID ()
font_id = "fn"
bold_font_id = "fb"
font_name = "Sylfaen" -- the actual font
font_size = 8
-- make window so I can grab the font info
WindowCreate (win,
0, 0, 0, 0, -- empty window
miniwin.pos_top_left, -- position (irrelevant)
0, -- flags (none)
0) -- background colour (black - irrelevant)
-- add font in normal and bold styles
WindowFont (win, font_id, font_name, font_size,
false, false, false, false, -- normal
miniwin.font_charset_ansi, miniwin.font_family_any)
WindowFont (win, bold_font_id, font_name, font_size,
true, false, false, false, -- bold
miniwin.font_charset_ansi, miniwin.font_family_any)
-- find height of font for future calculations
font_height = WindowFontInfo (win, font_id, 1) -- height
end -- OnPluginInstall
function AbandonSafe ()
ResetTable ()
WindowShow (win, false)
world.EnableTrigger("InspectSafe", false)
end -- function AbandonSafe
function ChargeLetter (name, line, wildcards)
--Note (wildcards[1])
SafePieces[wildcards[1]] ["Charged"] = true
DisplayComponents ()
end -- function ChargeLetter
function DisChargeLetter (name, line, wildcards)
SafePieces[wildcards[2]] ["Charged"] = false
DisplayComponents ()
end -- function DisChargeLetter
function SuccessfulPanelCrack ()
world.EnableTrigger("InspectSafe", true)
DisplayComponents ()
end -- function SuccessfulPanelCrack
function UpdateGrid (name, line, wildcards)
--Note ("UpdateGrid: " .. line)
--tprint (wildcards)
--Attempt to assign each location's tile value to a variable to enable tracking of that value tile.
--Note("tl: ".. wildcards.tl)
tl = wildcards.tl
tm = wildcards.tm
tr = wildcards.tr
mr = wildcards.mr
mm = wildcards.mm
ml = wildcards.ml
bl = wildcards.bl
bm = wildcards.bm
br = wildcards.br
for k,v in pairs (wildcards) do
if (v == " " and type(k) ~= "number") then
space = tostring(k)
end -- if
end -- for
--Note ("Space: " .. space)
pan = "pan:"
if space == "tl" then
pan = "pan " .. ml .. " " .. bl .. " " .. bm .. " " .. br .. " " .. mr .. " " .. tr .. " " .. tm
end -- if
if space == "tm" then
pan = "pan " .. tl .. " " .. ml .. " " .. bl .. " " .. bm .. " " .. br .. " " .. mr .. " " .. tr
end -- if
if space == "tr" then
pan = "pan " .. tm .. " " .. tl .. " " .. ml .. " " .. bl .. " " .. bm .. " " .. br .. " " .. mr
end -- if
if space == "ml" then
pan = "pan " .. bl .. " " .. bm .. " " .. br .. " " .. mr .. " " .. tr .. " " .. tm .. " " .. tl
end -- if
if space == "mm" then
--Note("mm: " .. mm)
pan = "pan " .. tm .. " " .. tl .. " " .. ml .. " " .. bl .. " " .. bm .. " " .. br .. " " .. mr
end -- if
if space == "mr" then
pan = "pan " .. tr .. " " .. tm .. " " .. tl .. " " .. ml .. " " .. bl .. " " .. bm .. " " .. br
end -- if
if space == "bl" then
pan = "pan " .. bm .. " " .. br .. " " .. mr .. " " .. tr .. " " .. tm .. " " .. tl .. " " .. ml
end -- if
if space == "bm" then
pan = "pan " .. br .. " " .. mr .. " " .. tr .. " " .. tm .. " " .. tl .. " " .. ml .. " " .. bl
end -- if
if space == "br" then
pan = "pan " .. mr .. " " .. tr .. " " .. tm .. " " .. tl .. " " .. ml .. " " .. bl .. " " .. bm
end -- if
--Note (pan)
pan =string.lower(pan)
Hyperlink(pan,pan,pan,"blue","green",0)
SetVariable("pan", pan)
end -- function
function TestPanel ()
--tprint(SafePieces)
--Iterate through SafePieces
IPLetters = {}
IPWires = {}
for k, v in pairs (SafePieces) do
--if Safepiece is in play and charged
--Note("k: " .. SafePieces [k] ["InPlay"])
--Only check wires and letters
if (SafePieces [k] ["Type"] == "Letter" or SafePieces [k] ["Type"] == "Wire") then
--Note (k .. " is a " .. SafePieces [k] ["Type"])
if (SafePieces [k] ["InPlay"] == string.lower(SafePieces [k] ["InPlay"])) then
--not in play
--Note (k .. " is not in play.")
else
--in play
--Note (k .. " is in play.")
if SafePieces [k] ["Type"] == "Letter" then
IPLetters [#IPLetters + 1] = k
--Note("Letter " .. k .. " added to IPLetters (" .. #IPLetters .. ")")
else
IPWires [#IPWires + 1] = k
--Note("Wire " .. k .. " added to IPWires (" .. #IPWires .. ")")
end -- if
-- iterate through wires
--if wire is in play
--attach wire to piece and mark as discharged
end -- if
-- Build picture of panels
if (SafePieces [k] ["Type"] == "Panel") then
end -- if
end -- if
end -- for
--Note("IPLetters: " .. #IPLetters)
--Note("#IPWires: " .. #IPWires)
strPanelStart = "alias panelexecute "
--Note (math.min(#IPWires,#IPLetters))
Tell("|")
panelsalias = ""
for wirekey = 1, math.min(#IPWires,#IPLetters), 1 do
Hyperlink("connect " .. IPWires [wirekey] .. " to " .. string.lower(IPLetters [wirekey]),"connect " .. IPWires [wirekey] .. " to " .. string.lower(IPLetters [wirekey]) , "connect " .. IPWires [wirekey] .. " to " .. string.lower(IPLetters [wirekey]), "blue", "green",0)
Tell("|")
panelsalias = panelsalias .. "connect " .. IPWires [wirekey] .. " to " .. string.lower(IPLetters [wirekey]) .. ";"
end -- for
pan = GetVariable("pan")
--Note ("pan: " .. pan)
panelsalias = panelsalias .. pan
Hyperlink(pan,pan,pan,"blue","green",0)
SetVariable("panelsalias",panelsalias)
Tell("|")
Hyperlink("!!71a76b438ec6fa4671b9c4b6:PanelsAlias()","panelsalias","panelsalias","blue","green",0)
end --function TestPanel
function PanelsAlias()
panelsalias = GetVariable("panelsalias") or ""
if (panelsalias ~= "") then
Execute ("alias panelsalias " .. panelsalias .. ";unalias panelsalias")
Execute ("panelsalias")
end -- if
end -- function
--END FUNCTIONS
]]>
</script>
</muclient>