|
|
@ -32,16 +32,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Triggers -->
|
|
|
|
<!-- Triggers -->
|
|
|
|
<triggers>
|
|
|
|
<triggers>
|
|
|
|
<trigger group="scans"
|
|
|
|
<trigger group="scans" enabled="y"
|
|
|
|
match="{scan}" name="scanOpen"
|
|
|
|
match="{scan}" name="scanOpen"
|
|
|
|
omit_from_output="y" send_to="12" sequence="10" keep_evaluating="y">
|
|
|
|
omit_from_output="y" send_to="12" sequence="10" keep_evaluating="y">
|
|
|
|
<send>
|
|
|
|
<send>
|
|
|
|
|
|
|
|
if startScan then
|
|
|
|
TSROutput = {}
|
|
|
|
TSROutput = {}
|
|
|
|
dirTemp = {}
|
|
|
|
dirTemp = {}
|
|
|
|
EnableTrigger("scanDir")
|
|
|
|
EnableTrigger("scanDir")
|
|
|
|
EnableTrigger("scanLine")
|
|
|
|
EnableTrigger("scanLine")
|
|
|
|
EnableTrigger("scanClose")
|
|
|
|
EnableTrigger("scanClose")
|
|
|
|
EnableTrigger("scanOpen", false)</send>
|
|
|
|
end</send>
|
|
|
|
></trigger>
|
|
|
|
></trigger>
|
|
|
|
|
|
|
|
|
|
|
|
<trigger group="scans"
|
|
|
|
<trigger group="scans"
|
|
|
@ -71,7 +72,7 @@
|
|
|
|
</trigger>
|
|
|
|
</trigger>
|
|
|
|
|
|
|
|
|
|
|
|
<trigger group="scans"
|
|
|
|
<trigger group="scans"
|
|
|
|
match="{/scan}" name="scanClose"
|
|
|
|
match="{/scan}" name="scanClose" enabled="y"
|
|
|
|
omit_from_output="y" script="scanClosed" sequence="10" keep_evaluating="y">
|
|
|
|
omit_from_output="y" script="scanClosed" sequence="10" keep_evaluating="y">
|
|
|
|
></trigger>
|
|
|
|
></trigger>
|
|
|
|
</triggers>
|
|
|
|
</triggers>
|
|
|
@ -87,8 +88,11 @@ TSROutput = {}
|
|
|
|
dirTemp = {}
|
|
|
|
dirTemp = {}
|
|
|
|
|
|
|
|
|
|
|
|
function scanMobs(name, line, wildcards)
|
|
|
|
function scanMobs(name, line, wildcards)
|
|
|
|
|
|
|
|
|
|
|
|
scanCmd = (gmcp("char.status.state") == "8" and "survey") or "scan"
|
|
|
|
scanCmd = (gmcp("char.status.state") == "8" and "survey") or "scan"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
startScan = false
|
|
|
|
|
|
|
|
|
|
|
|
if #wildcards[1] > 0 then
|
|
|
|
if #wildcards[1] > 0 then
|
|
|
|
checkNames = {}
|
|
|
|
checkNames = {}
|
|
|
|
for word in wildcards[1]:gmatch("%w+") do
|
|
|
|
for word in wildcards[1]:gmatch("%w+") do
|
|
|
@ -97,12 +101,12 @@ function scanMobs(name, line, wildcards)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if #checkNames > 0 then
|
|
|
|
if #checkNames > 0 then
|
|
|
|
EnableTrigger("scanOpen")
|
|
|
|
startScan = true
|
|
|
|
else
|
|
|
|
else
|
|
|
|
ColourNote("white", "black", "No mobs to scan for, executing regular scan.")
|
|
|
|
ColourNote("white", "black", "No mobs to scan for, executing regular scan.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
Send(scanCmd)
|
|
|
|
Send("scan")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function scannedDir(name, line, wildcards)
|
|
|
|
function scannedDir(name, line, wildcards)
|
|
|
@ -124,22 +128,24 @@ function scanCheck(name, line, wildcards)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function scanClosed()
|
|
|
|
function scanClosed()
|
|
|
|
EnableTrigger("scanDir", false)
|
|
|
|
if startScan then
|
|
|
|
EnableTrigger("scanLine", false)
|
|
|
|
EnableTrigger("scanDir", false)
|
|
|
|
EnableTrigger("scanClose", false)
|
|
|
|
EnableTrigger("scanLine", false)
|
|
|
|
|
|
|
|
|
|
|
|
if #TSROutput > 0 then
|
|
|
|
if #TSROutput > 0 then
|
|
|
|
for i,j in pairs(TSROutput) do
|
|
|
|
for i,j in pairs(TSROutput) do
|
|
|
|
for _,v in pairs(j) do
|
|
|
|
for _,v in pairs(j) do
|
|
|
|
ColourTell (RGBColourToName (v.textcolour),
|
|
|
|
ColourTell (RGBColourToName (v.textcolour),
|
|
|
|
RGBColourToName (v.backcolour),
|
|
|
|
RGBColourToName (v.backcolour),
|
|
|
|
v.text)
|
|
|
|
v.text)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
Note("")
|
|
|
|
Note("")
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
ColourNote("white", "blue", "Nothing found!")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
|
|
|
|
ColourNote("white", "blue", "Nothing found!")
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
startScan = false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|