|
需要改的是lujing文件的如下两个函数:
- function path_start()
- --print("run path_start")
- EnableTrigger("hp12",false)
- EnableTimer("roadWait",false)
- DeleteTimer("roadWait",false)
- local l_road
- road.i=road.i + 1
- if flag.find==1 then return end
- if road.i>table.getn(road.detail) then
- locate()
- --if job.name=='huashan' then
- -- return road.act()
- --else
- return check_halt(go_confirm)
- --end
- end
- l_road=road.detail[road.i]
- if string.find(l_road,'#') then
- local _,_,func,params = string.find(l_road,"^#(%a%w*)%s*(.-)$")
- if func then
- return _G[func](params)
- end
- else
- exe(l_road)
- exe('yun jingli')
- return walk_wait()
- end
- end
复制代码
- function searchFunc(path)
- --Note("run searchFunc")
- if flag.find==1 then return end
- if flag.wait==1 then return end
- road.pathset = road.pathset or {}
- if path then
- road.pathset=utils.split(path,";")
- for i=1,table.getn(road.pathset) do
- for p=1, table.getn(road.pathset) do
- if isNil(road.pathset[p]) or road.pathset[p]=="halt" then
- table.remove(road.pathset,p)
- break
- end
- end
- end
- end
- if table.getn(road.pathset)==0 then
- return searchStart()
- end
- --for i=1,table.getn(road.pathset) do
- --Note(road.pathset[1])
- if string.find(road.pathset[1],'#') then
- local _,_,func,params = string.find(road.pathset[1],"^#(%a%w*)%s*(.-)$")
- if func then
- table.remove(road.pathset,1)
- return _G[func](params)
- else
- exe(road.pathset[1])
- table.remove(road.pathset,1)
- return walk_wait()
- end
- else
- exe(road.pathset[1])
- table.remove(road.pathset,1)
- return walk_wait()
- end
- --end
- --return searchWait()
- end
复制代码
|
评分
-
1
查看全部评分
-
|