I keep getting this error ...
... when trying to execute this script ...
Here's the timer_resume function:
Error number: 0
Event: Run-time error
Description: C:\Program Files\MUSHclient\lua\wait.lua:47: [string "Alias: "]:8: attempt to compare number with string
stack traceback:
[C]: in function 'assert'
C:\Program Files\MUSHclient\lua\wait.lua:47: in function <C:\Program Files\MUSHclient\lua\wait.lua:43>
Called by: Function/Sub: wait.timer_resume called by timer
Reason: processing timer "wait_timer_16944"... when trying to execute this script ...
require "wait"
load_data() -- make sure the skill table is populated
wait.make (function ()
for i, v in ipairs(skill) do
Send("slookup '".. v.name .."'")
wait.time(5)
if v.sn > 10 then -- for testing, don't want to do all of them
break
end
end
end)Here's the timer_resume function:
function timer_resume (name)
local thread = threads [name]
if thread then
threads [name] = nil
assert (coroutine.resume (thread)) -- line 47
end -- if
end -- function timer_resume