Update ScanMobs.xml

master
AardCrowley 2 years ago committed by GitHub
parent 30e26135e0
commit 0cf0c06936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -81,12 +81,14 @@
<script> <script>
<![CDATA[ <![CDATA[
require 'tprint' require 'gmcphelper'
checkNames = {} checkNames = {}
TSROutput = {} TSROutput = {}
dirTemp = {} dirTemp = {}
function scanMobs(name, line, wildcards) function scanMobs(name, line, wildcards)
scanCmd = (gmcp("char.status.state") == "8" and "survey") or "scan"
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
@ -100,7 +102,7 @@ function scanMobs(name, line, wildcards)
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("scan") Send(scanCmd)
end end
function scannedDir(name, line, wildcards) function scannedDir(name, line, wildcards)

Loading…
Cancel
Save