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

pk-蝶梦楼-机器人

[复制链接]
门派:武当派
发表于 2018-12-27 11:07:37 | 显示全部楼层
机器版人气不足啊 帮忙顶上去
门派:桃花岛
发表于 2018-12-27 13:20:48 | 显示全部楼层
好东西  学习了                        
门派:武当派
发表于 2018-12-27 14:08:49 | 显示全部楼层
就等着无法风维护机器人了,这个我还是不太明白加哪里
门派:丐帮
发表于 2018-12-27 15:04:12 | 显示全部楼层
收藏一下留着备用,虽然我不玩pk。
门派:姑苏慕容
发表于 2018-12-27 17:54:30 | 显示全部楼层
这个看起来真的是高大上啊
门派:桃花岛
发表于 2018-12-27 21:12:15 来自手机 | 显示全部楼层
护搏识别会不会有频繁切换的可能
门派:武当派
发表于 2019-1-3 23:15:33 | 显示全部楼层
这个下载完 直接复制   比如 job。lua替换掉以前的 ,可我的 job.lua 有些改动
这个怎么办         
门派:明教
 楼主| 发表于 2019-1-3 23:20:51 | 显示全部楼层
zxao@tj 发表于 2019-1-3 23:15
这个下载完 直接复制   比如 job。lua替换掉以前的 ,可我的 job.lua 有些改动
这个怎么办

function hp_heqi_check(n,l,w)
    heqi = tonumber(w[1])
    print("heqi="..heqi)
if hp.qixue_per<35 and dhd_cur>0 then
    exe('fu dahuan dan')
end
if hp.qixue_per<70 and cty_cur>0 then
       exe('eat chantui yao')
    end
        if (hp.qixue / (hp.qixue_max / hp.qixue_per ) < 35) and cty_cur>0 then
       exe('eat chantui yao')
    end
    if hp.qixue<hp.qixue_max*0.7 then
       exe('yun qi')
    end
    if hp.jingxue<hp.jingxue_max*0.5 then
       exe('yun jing')
    end
        if hp.neili<hp.neili_max*0.5 and nxw_cur>0 then
       exe('eat '.. drug.neili)
    end
    if hp.jingli<hp.jingli_max*0.5 or hp.jingli<500 then
       exe('yun jingli')
    end
   if hp.neili<hp.neili_max*0.5 and nxw_cur>0 then
       exe('eat '.. drug.neili)
    end
------pk攒合气设置--------
                if pkheqi==1 and (job.name=='pk' or job.name=='diemenglou' or job.name == 'guanfu') then
                   if heqi > tonumber(GetVariable("heqi_number")) then
                            print ('合气憋足了!老子要放大招刷死你!')
                                print ('天!地!玄!黄!唯!我!独!尊!杀。。。。。。')
                exe('set wimpy 100;set wimpycmd pppp1\\mypfm\\hp')
                return
           end
                end       
       
------pk攒合气设置--------       

if job.name=='songmoya' then
  if hp.qixue_per<80 then
        exe('eat '.. drug.heal)
   end
   if perform.force and perform.force=="dulong-dafa" and (not flag.wudi or flag.wudi==0) then
       exe('yun wudi')
   end
  if perform.force and perform.force=="dulong-dafa" and hp.qixue_per<70 then
       exe('yun wudi')
      end
        if os.time()>fight.time.b+120 then
     exe('set wimpycmd halt\\down')
  return
  end
        if heqi==1000 and hp.qixue_per<55 then
        chats_log('报效国家任务:合气到达1000满值,放弃任务!','cyan')
  exe('set wimpycmd halt\\down')
  return
   end
  if yptjob.fengzhao==false then
   if yptjob.name2 == '无威胁' then
              if heqi > 320 then
                exe('ppp1;pp1;set wimpycmd pfmbuff\\ppp1\\pp1\\hp')
                hqpd=0
                return
              elseif hqpd==0 then
                exe('set wimpycmd hp')
                hqpd=1
                print ('积攒合气!')
                return
              end
        end

   if yptjob.name1 == '无威胁' then
              if heqi > 320 then
                exe('ppp2;pp2;set wimpycmd pfmbuff\\ppp2\\pp2\\hp')
                hqpd=0
                return
              elseif hqpd==0 then
                exe('set wimpycmd hp')
                hqpd=1
                print ('积攒合气!')
                return
              end
        end
  end
  if yptjob.name1~='无威胁' and yptjob.name2~='无威胁' then      
   if heqi > 400 then
    if GetVariable("double_kill")~=nil and GetVariable("double_kill")=="yes" then
     if sxkiller1 >= sxkiller2 then
       exe('set wimpycmd pfmbuff\\ppp1\\ppp2\\hp')
       hqpd=0
     else
       exe('set wimpycmd pfmbuff\\ppp2\\ppp1\\hp')
       hqpd=0
     end
    else
     if sxkiller1 >= sxkiller2 then
       exe('ppp1;pp1;set wimpycmd pfmbuff\\ppp1\\pp1\\hp')
       hqpd=0
     else
       exe('ppp2;pp2;set wimpycmd pfmbuff\\ppp2\\pp2\\hp')
       hqpd=0
     end
    end
   elseif hqpd==0 then
    exe('set wimpycmd hp')
    hqpd=1
    print ('开始积攒合气!')
   end
  end
end

就加了蓝色字部分,你改这个函数就行了!
门派:武当派
发表于 2019-1-3 23:44:38 | 显示全部楼层
kkfromch@tj 发表于 2019-1-3 23:20
function hp_heqi_check(n,l,w)
    heqi = tonumber(w[1])
    print("heqi="..heqi)

好的  明白了                                    
门派:桃花岛
发表于 2019-1-7 23:22:31 | 显示全部楼层
受教了,之后   实践试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-7-27 09:13 , Processed in 0.032378 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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