|
本帖最后由 dbm@ts2 于 2024-6-7 22:45 编辑
1、讲巡逻添加到了任务列表,iset可以选择
2、出了九阳提示,自动在窗口提示,并在log文件夹中添加一个文件记录
比较小众,有问题留言
一、shujian.lua
替换以下函数
- function checkJoblast(n,l,w)
- local joblast = {
- ["武当锄奸"] = "wudang",
- ["大理送信"] = "songxin",
- ["强抢美女"] = "xueshan",
- ["惩恶扬善"] = "huashan",
- ["长乐帮"] = "clb",
- ["天地会"] = "tdh",
- ["嵩山并派"] = "songshan",
- ["丐帮任务"] = "gaibang",
- ["颂摩崖抗敌任务"] = "songmoya",
- ["明教巡逻"] = "mjxunluo",
- }
- if joblast[w[2]] then
- job.last = joblast[w[2]]
- end
- end
复制代码
- function check_job()
- job_exp_tongji()
- if score.party=='明教' and job.zuhe["mjxunluo"] then ---xunluo
- return check_halt(weaponUcheck)
- end
- if hp.exp<1000000 then
- print('巡城到1M')
- kdummy=0
- return xunCheng()
- end
- if score.party=="桃花岛" and (hp.shen>150000 or hp.shen<-150000) then
- return thdJiaohui()
- end
- if condition.busy and condition.busy > 10 then
- return check_halt(weaponUcheck)
- end
- if job.last=="xueshan" or job.last=="wudang" or job.last=="songxin" or hsruntime~=0 then
- return check_halt(check_jobx)--雪山、武当任务结束后不检查武器状态,直接做下一个任务。
- else
- return check_halt(weaponUcheck)
- end
- end
复制代码
- function check_jobx()
- for p in pairs(weaponUsave) do
- if Bag and not Bag[p] then
- job.zuhe["songmoya"]=nil
- end
- end
- if fqyytmp.goArmorD==1 then
- return fqyyArmorGoCheck()
- end
- if job.zuhe==nil then job.zuhe={} end
- if job.zuhe["zhuoshe"] and score.party~="丐帮" then job.zuhe["zhuoshe"]=nil end
- if job.zuhe["mjxunluo"] and score.party~="明教" then job.zuhe["mjxunluo"]=nil end
- if job.zuhe["sldsm"] and score.party~="神龙教" then job.zuhe["sldsm"]=nil end
- if job.zuhe["songmoya"] and hp.exp<5000000 then job.zuhe["songmoya"]=nil end
- if smydie*1>=smyall*1 then job.zuhe["songmoya"]=nil end
- if job.zuhe["husong"] and (score.party~="少林派" or hp.exp<2000000) then job.zuhe["husong"]=nil end
- if job.zuhe["songmoya"] and job.last~="songmoya" and mytime<=os.time() then return songmoya() end
- if job.zuhe["hubiao"] and job.last~="hubiao" and job.teamname and ((not condition.hubiao) or (condition.hubiao and condition.hubiao<=0)) then
- return hubiao()
- elseif job.zuhe["husong"] then
- return husong()
- elseif job.zuhe["mjxunluo"] then
- return xunluo()
- else
- return checkJob()
- end
- end
复制代码
- function idle_set()
- if job.name=='ptbx' then return exe('praise ptbx') end
- if job.name=='songmoya' then
- print('正在颂摩崖任务中,当前死亡次数【'.. smydie ..'】次!设定杀死武士组数上限为【'.. smyteam ..'】组。进行组数为第【'.. yptteam ..'】组。')
- exe('flatter')
- return
- end
- if job.name=='husong' then
- exe('aq')
- print('正在护送任务中')
- tmp.husong=tmp.husong+1
- if tmp.husong>=40 then return husongQuit() end
- return
- end
- if job.name=='mjxunluo' then
- exe('aq')
- print('正在巡逻中')
- tmp.mjxunluo=tmp.mjxunluo+1
- if tmp.mjxunluo>=40 then return xunluo() end
- return
- end
- if job.name=='refine' then
- exe('admire2')
- print('正在提练矿石中')
- return
- end
- if job.name=='hubiao' then
- exe('admire2')
- print('正在护镖中')
- return
- end
- print(flag.idle)
- exe('poem')
- if not flag.idle or type(flag.idle)~="number" then
- flag.idle = 0
- end
- flag.idle = flag.idle + 1
- if flag.idle<10 then
- DeleteTimer("walkWait10")
- DeleteTimer("walkWait9")
- if dest.area==nil then return end
- if dest.area=='铁掌山' or dest.area=='苗疆' then
- locate()
- if locl.room ~= job.room then
- return walk_wait()
- else
- if job.name=='wudang' then return wudangFindAct() end
- if job.name=='huashan' then return huashanFindAct() end
- if job.name=='xueshan' then return xueshan_find_act() end
- if job.name=='songxin' or job.name=='songxin2' then return songxin_find_go() end
- end
- end
- return
- end
- if flag.idle<8 then
- if job.name=='xuncheng' then return xuncheng_huodu() end
- end
- if flag.idle<11 then
- if job.name=='wudang' then return wudangFindFail() end
- if job.name=='huashan' then return huashanFindFail() end
- if job.name=='xueshan' then return xueshanFindFail() end
- if job.name=='songxin' or job.name=='songxin2' then return songxinFindFail() end
- end
- if flag.idle<12 then
- chats_log("ROBOT 可能已发呆".. flag.idle/2 .."分钟!","deepskyblue")
- return
- end
- scrLog()
- dis_all()
- chats_locate('定位系统:发呆6分钟后,于【'.. locl.area .. locl.room ..'】重新启动系统!','red')
- Disconnect()
- Connect()
- end
复制代码
- function dnyTrigger()
- DeleteTriggerGroup("qk_dny")
- create_trigger_t('qk_dny1','^(> )*\\s*你把 "action" 设定为 "讨教大挪移中" 成功完成','','taoJiaozhang')
- create_trigger_t('qk_dny2',"^(> )*你现在正忙着呢。",'','taoJiaozhang')
- create_trigger_t('qk_dny3',"^(> )*(由于实战经验不足,阻碍了你的「乾坤大挪移」进步!|什么?|你的内力不够|你潜能不够,已经用完了。)",'','taojiao_over')
- create_trigger_t('qk_dny4',"^(> )*你感觉全身气息翻腾,原来你真气不够,不能装备\\D*。",'','taojiao_over')
- for i=1,4 do SetTriggerOption("qk_dny"..i,"group","qk_dny") end
- EnableTriggerGroup("qk_dny",false)
- end
复制代码
这个函数太长了,替换前面就行,后面没动
- function jobSet()
- local l_result,l_tmp,t
-
- t={
- ["wudang"] ="武当宋远桥",
- ["huashan"] ="华山岳不群",
- ["gaibang"] ="丐帮吴长老",
- ["songmoya"] ="颂摩崖抗敌任务",
- ["zhuoshe"] ="丐帮捉蛇",
- ["songxin"] ="大理送信",
- ["songxin2"]="大理送信2",
- ["xueshan"] ="雪山抢美女",
- ["sldsm"] ="神龙岛师门",
- ["songshan"]="嵩山左冷禅",
- -- ["hubiao"] ="福州护镖",
- ["tmonk"] ="少林教和尚",
- ["clb"] ="长乐帮任务1",
- ["husong"] ="少林护送",
- ["hqgzc"] ="洪七公做菜",
- ["mjxunluo"] ="明教巡逻",
- }
-
- t={}
-
- for p,q in pairs(job.list) do
- t[p] = q
- end
-
- if score.party~="丐帮" then t["zhuoshe"]=nil end
- if score.party~="明教" then t["mjxunluo"]=nil end
- if score.party~="神龙教" then t["sldsm"]=nil end
- if score.party~="少林派" or hp.exp>2000000 or hp.exp<300000 then t["tmonk"]=nil end
- if score.party~="少林派" or hp.exp<2000000 then t["husong"]=nil end
- if hp.exp<5000000 then t["songmoya"]=nil end
- if hp.shen<0 then t["gaibang"]=nil end
- if hp.shen<0 and score.party=="华山派" then t["huashan"]=nil end
- if hp.shen<0 then t["wudang"]=nil end
- if hp.shen>0 then t["songshan"]=nil end
复制代码
check_pot函数里面增加,放到学习literate后面
- if score.party=='明教' and skills["qiankun-danuoyi"] and skills["qiankun-danuoyi"].lvl>200 and (skills["qiankun-danuoyi"].lvl<210 or skills["qiankun-danuoyi"].lvl>450) and skills["qiankun-danuoyi"].lvl<hp.pot_max-100 then
- return check_dny()
- end
复制代码
二、 lujing.lua 中替换
- function find(l_area,l_room)
- if job.room~=nil and (job.room=='紫杉林' or string.find(job.room,"字门")) and job.name~="mjxunluo" then create_timer_st('zsl_timer',30,'.') end
- do return search() end
- end
复制代码
- function walk_goon()
- EnableTriggerGroup("walk",false)
- EnableTimer('walkwait',false)
- EnableTrigger("hp12",false)
- if tmp.find then
- return check_halt(searchFunc) --xunluo
- end
- EnableTrigger("hp12",true)
- create_timer_s('roadWait',road.wait,'path_start')
- 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 job.name=="mjxunluo" and table.getn(road.pathset)==0 and job.xunluonpc then ----xunluo
- return check_halt(xunluoHuayin)
- end
- if table.getn(road.pathset)==0 then
- return searchStart()
- end
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
评分
-
1
查看全部评分
-
|