找回密码
 注册
搜索
查看: 699|回复: 25

说一下mush关于解9J的一些修改

[复制链接]
门派:华山派
发表于 2016-9-24 13:31:22 | 显示全部楼层 |阅读模式
看到好多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!

shujian.zip

27.21 KB, 下载次数: 60

评分

1

查看全部评分

门派:桃花岛
发表于 2016-9-24 14:07:35 | 显示全部楼层
反正每天看一下,能面壁了就行            
门派:古墓派
发表于 2016-9-24 14:27:53 | 显示全部楼层
多谢指点,已修改好文件,希望能尽快解出9J。
门派:嵩山派
发表于 2016-9-24 17:18:21 | 显示全部楼层
高手啊 为解九剑的兄弟们提供福利了
门派:古墓派
发表于 2016-9-24 23:39:30 | 显示全部楼层
这都是要全自动的想法啊
门派:古墓派
发表于 2016-9-25 11:07:19 | 显示全部楼层
完全的看不懂mush哈哈  
门派:丐帮
发表于 2016-9-25 11:08:09 | 显示全部楼层
现在的mush高手真是多啊
门派:不明
发表于 2016-9-25 13:36:04 | 显示全部楼层
zxxz@tj 发表于 2016-9-24 14:27
多谢指点,已修改好文件,希望能尽快解出9J。

祝早日解开9剑,O(∩_∩)O哈哈~
门派:不明
发表于 2016-9-25 13:36:20 | 显示全部楼层
sanguang@tj 发表于 2016-9-25 11:08
现在的mush高手真是多啊

是滴是滴,O(∩_∩)O哈哈~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|书剑永恒MUD ( 闽ICP备14012032号|闽公网安备 35050202000162号 )

GMT+8, 2025-10-21 07:33 , Processed in 0.027685 second(s), 31 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表