|
最近正在练一个hs的小号,解dgjj的过程中发现放弃sx任务是会减少sx任务次数的,造成完成hs任务的时候,这两个任务次数之和会变成单数,这样就肯定不能被50整除;
所以我把songxin.lua文件做了一下修改:接到sx任务时,先判断一下当前任务次数之和,如果当前任务数之和是双数,那么完成了sx任务以后就会变成单数,hs任务后就会变成双数了,这种情况就继续任务,反之,就放弃sx任务;
这样做必须要满足以下几个条件:
1. gb任务次数必须保证是50的倍数(我干脆就没做过gb任务);
2. 任务选择 sx1+hs1 , sx1不等杀手;
3. 虽然现在还没解开9j,但是我相信很快能解开
在songxin.lua文件中找到这个函数:songxin_consider(n,l,w),
改成下面这个样子:
- function songxin_consider(n,l,w)
- nobusy=1
- EnableTriggerGroup("songxin_letter",false)
- EnableTrigger("songxin_killer1",true)
- job.where=tostring(w[1])
- job.target=tostring(w[2])
- if score.party and score.party=="华山派" and not skills["dugu-jiujian"] and job.zuhe["huashan"] and job.zuhe["songxin"] then
- local t_hs,t_sx,t_gb
- if jobtimes["华山岳不群惩恶扬善"] then
- t_hs = jobtimes["华山岳不群惩恶扬善"]
- print('华山任务:'..t_hs)
- else
- t_hs = 0
- end
- if jobtimes["大理王府送信"] then
- t_sx = jobtimes["大理王府送信"]
- print('送信任务:'..t_sx)
- else
- t_sx = 0
- end
- if jobtimes["丐帮吴长老杀人"] then
- t_gb = jobtimes["丐帮吴长老杀人"]
- print('丐帮任务:'..t_gb)
- else
- t_gb = 0
- end
- local dgjj_check = math.fmod((t_hs+t_sx),2)
- if dgjj_check > 0 then
- print('放弃任务!')
- return check_halt(songxin_fangqi)
- else
- print('继续任务!')
- end
- end
- if string.find(sxjob.cancel,job.target) then
- messageShow('送信任务:任务目标【'..job.target..'】不可送达,任务放弃。')
- return check_halt(songxin_fangqi)
- end
- exe('pfmset;nick 送信一'..job.where)
- songxin_find()
- --------------------
- job.area,job.room = locateroom(job.target)
- if not job.area then
- job.room,job.area=getAddr(job.where)
- dest.room=job.room
- dest.area=job.area
- if not job.room or not path_cal() then
- messageShow('送信任务:任务地点【'..job.where..'】不可到达,任务放弃。')
- return check_halt(songxin_fangqi)
- end
- end
- if Yiliaddr[job.where] and MidNight[locl.time] then
- messageShow('送信任务:任务地点【'..job.where..'】时间不对,任务放弃。')
- return check_halt(songxin_fangqi)
- end
- if Yiliaddr[job.where] then
- messageShow('送信任务:任务目标【'..job.target..'】地伊犁城内,直送。')
- return go(songxin_find_go,job.area,job.room)
- end
- if wait_kill=='yes' then
- messageShow('送信任务:任务目标【'..job.target..'】,开始前往【'..job.where..'】。')
- return check_bei(songxin_find_begin)
- end
- messageShow('送信任务:任务目标【'..job.target..'】,开始前往【'..job.where..'】。')
- return go(songxin_find_go,job.area,job.room)
- end
复制代码 |
|