|
本帖最后由 feixiong 于 2012-4-24 09:59 PM 编辑
Error raised in timer function (in wait module).
stack traceback:
D:\MUSHclient1\worlds\mods\quest_tlsnew.lua:232: in function
Run-time error
World: pkuxkx_2011
Function/Sub: wait.timer_resume called by timer
Reason: 正在处理定时器 "wait_trigger_91252"
D:\MUSHclient1\lua\wait.lua:51: D:\MUSHclient1\worlds\mods\quest_tlsnew.lua:232: attempt to index local 'w' (a nil value)
stack traceback:
[C]: in function 'error'
D:\MUSHclient1\lua\wait.lua:51: in function
232行就是脚本里的lostcname=w[1]
- function qtlsnew.lostman()
- wait.make(function()
- local l,w=wait.regexp("^(> )*( )*(.+)慌慌张张地走了过来,似乎迷了路。\\w",80)
- lostcname=w[1]
- print(w[3])
- print(w[2])
- print(w[1])
- if l==nil then
- Execute("l=nil")
- return
- end
- if string.find(l,"似乎迷了路") then
- Execute("id here")
- local l,w=wait.regexp(lostcname.."\\s*=\\s*(.+),.*",25)
- lostename=string.low(w[1])
- Execute("ask "..lostename.." about lost")
- wait.time(2)
- Execute("ask "..lostename.." about lead")
- return
- end
- end)
- end
复制代码
北大侠客行MUD,中国最好的MUD |
|