|
看到好多hsdz在问怎么设置任务解9J
ptbx版本的mush对解9J的提示和任务都是有过设置的
只是代码里面有些BUG,可能会导致9J提示很难出
这边我说一下,希望后来的hsdz可以早些出提示
1.checkjob函数中如下代码是抓取hs,sx和gbjob的任务数的。
三个任务数之和能整除50的那次hsjob就有可能出提示。
这里代码有个错误就是:大理王府送信任务,丐帮吴长老杀人任务,这里的任务两个字都要去掉。
不然是抓不到sx和gbjob的任务数的。
if score.party and score.party=="华山派" and countTab(job.zuhe) > 2 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["华山岳不群惩恶扬善"]
else
t_hs = 0
end
if jobtimes["大理王府送信任务"] then
t_sx = jobtimes["大理王府送信任务"]
else
t_sx = 0
end
if jobtimes["丐帮吴长老杀人任务"] then
t_gb = jobtimes["丐帮吴长老杀人任务"]
else
t_gb = 0
end
local t_times = math.fmod((t_hs+t_sx+t_gb),50)
if t_times > 47 then
exe('pray pearl')
if job.last ~= "huashan" then
return huashan()
else
for p in pairs(job.zuhe) do
if p~= "huashan" and p~="songxin" and p~="hubiao" and p~="husong" and p~="songmoya" then
return _G[p]()
end
end
end
end
end
改成如下的样子:
if score.party and score.party=="华山派" and countTab(job.zuhe) > 2 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["华山岳不群惩恶扬善"]
else
t_hs = 0
end
if jobtimes["大理王府送信"] then
t_sx = jobtimes["大理王府送信"]
else
t_sx = 0
end
if jobtimes["丐帮吴长老杀人"] then
t_gb = jobtimes["丐帮吴长老杀人"]
else
t_gb = 0
end
local t_times = math.fmod((t_hs+t_sx+t_gb),50)
if t_times > 47 then
exe('pray pearl')
if job.last ~= "huashan" then
return huashan()
else
for p in pairs(job.zuhe) do
if p~= "huashan" and p~="songxin" and p~="hubiao" and p~="husong" and p~="songmoya" then
return _G[p]()
end
end
end
end
end
2.任务数可以抓到了,但是不是每次做完job都有刷新任务数。
这里就要在代码里面加个jobtimes来查看任务数。在checkPrepare函数里,修改成如下样子。
exe('wear all;jobtimes')
return checkPrepareOver()
附件为我已经修改好的shujian.lua文件。
基于PTBX MUSH 9月11日的版本。
任务选择sx1(或sx2),hs,wd
然后就坐等提示吧。
addoil hs! |
评分
-
1
查看全部评分
-
|