找回密码
 注册
搜索
楼主: marmot@tj

新版本--全自动蝶梦楼11月2日更新--修复昨天出的乌龙

[复制链接]
门派:嵩山派
 楼主| 发表于 2018-11-2 12:43:15 | 显示全部楼层
ddadao@tj 发表于 2018-11-2 12:32
大神终于又更新了,这两天经常卡住

重新下载一下,我昨天有个地方复制后忘记改了。。。。
门派:嵩山派
 楼主| 发表于 2018-11-2 12:44:32 | 显示全部楼层
nishan@tj 发表于 2018-11-2 12:26
为啥升级完后 不启动碟梦搂模块了?

理论上来讲应该会启动的。。。。不行的话你试试照说明里的把shujian.lua也改一下看看呢?
门派:姑苏慕容
发表于 2018-11-2 14:53:35 | 显示全部楼层
marmot@tj 发表于 2018-11-2 12:44
理论上来讲应该会启动的。。。。不行的话你试试照说明里的把shujian.lua也改一下看看呢?

我觉得之前挺好的,现在为什么要改成每次job之后都检查呢?
门派:嵩山派
 楼主| 发表于 2018-11-2 15:02:08 | 显示全部楼层
ddadao@tj 发表于 2018-11-2 14:53
我觉得之前挺好的,现在为什么要改成每次job之后都检查呢?

原来也有检查的,这一块基本上没有改变,只是我改了下变量的名字,其实不修改shujian.lua也不影响使用的。但就是每次都会检查。想每天只检查一遍的话就是按新版的说明改一下shujian.lua。把原来的dml_cnt改为dmlFightCnt。这个变量等于5时就不会检查了,只有在每天的竞技开始时会重置成0
门派:古墓派
发表于 2018-11-2 15:12:12 | 显示全部楼层
[quote][url=forum.php?mod=redirect

都改了 现在不启动了 是不是因为我加装了你的洪七公做菜代码造成的?
门派:嵩山派
 楼主| 发表于 2018-11-2 15:20:51 | 显示全部楼层
nishan@tj 发表于 2018-11-2 15:12
[quote][url=forum.php?mod=redirect

都改了 现在不启动了 是不是因为我加装了你的洪七公做菜代码造成的?

你把shujian.lua的check_job函数发上来看一下
门派:明教
发表于 2018-11-2 16:29:14 | 显示全部楼层
越来越好了,加油!!!
门派:古墓派
发表于 2018-11-2 17:01:59 | 显示全部楼层
marmot@tj 发表于 2018-11-2 15:20
你把shujian.lua的check_job函数发上来看一下

function check_job()
   if xcexp==0 and hp.exp<1000000 then
      print('巡城到1M')
      kdummy=0
      return xunCheng()
   end
   if xcexp==1 and hp.exp<2000000 then
      print('巡城到2M')
      kdummy=0
      return xunCheng()
   end
   create_triggerex_lvl('dmlflag1','^(> )*【江湖传闻】玩家竞技活动开始了!','','dml_on',95)
    SetTriggerOption('dmlflag1','group','hp')
    if not dmlFightCnt then dmlFightCnt = 0
    if dmlFightCnt < 5 and (not condition.busy or condition.busy == 0) then
       local fn = 'logs\\diemenglou_mark_'..score.id..'.log'
           local f = io.open(fn,"r")
           if not f then
          ColourNote('orange','black','未检测到蝶梦楼记录,准备进行蝶梦楼竞技!')
              return dml_check()
           else
              local s = f:read()
              f:close()
              if s ~= os.date("%Y%m%d%H") then
                     if os.date("%Y%m%d%H") - s >= 100 then
                            ColourNote('lime','black','找到'..s..'蝶梦楼记录,已经过24小时。准备进行蝶梦楼竞技!')
                        return dml_check()
                     end
              end
           end
        end
        end
   if score.party=="桃花岛" and (hp.shen>150000 or hp.shen<-150000) then
      return thdJiaohui()
   end
   --if score.gold and score.gold>150 and weaponUsave and countTab(weaponUsave)>0 and math.random(1,5)==1 then
      --return weaponUcheck()
   --end
   return check_halt(weaponUcheck)
end
function check_jobx()
   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["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()
   else
      return checkJob()
   end
end
function checkJob()
if job.last ~= 'hqgzc' then
           local fn = 'logs\\hqgzc_mark_'..score.id..'.log'
           local f = io.open(fn,"r")
           if not f then
              return hqgzc()
           else
              local s = f:read()
              f:close()
              if s ~= os.date("%Y%m%d%H") then
                     if os.date("%Y%m%d%H") - s >= 100 then
                        return hqgzc()
                     end
              end
           end
        end
   --if hp.exp>2000000 then job.zuhe["zhuoshe"]=nil end
   --if hp.shen>0 or hp.exp>6000000 then job.zuhe["songshan"]=nil end
门派:嵩山派
 楼主| 发表于 2018-11-2 18:27:20 | 显示全部楼层
nishan@tj 发表于 2018-11-2 17:01
function check_job()
   if xcexp==0 and hp.exp= 100 then
                            ColourNote( ...

hmmm.........应该没有问题啊,你试试把logs文件夹里的diemenglou_mark_nishan.log删除看看
门派:古墓派
发表于 2018-11-2 19:35:43 | 显示全部楼层
marmot@tj 发表于 2018-11-2 18:27
hmmm.........应该没有问题啊,你试试把logs文件夹里的diemenglou_mark_nishan.log删除看看

好的我试试                     
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-6 13:27 , Processed in 0.032619 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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