找回密码
 注册
搜索
查看: 405|回复: 4

修改yun liao不知是否可用

[复制链接]
门派:天龙寺
发表于 2019-3-7 16:39:29 | 显示全部楼层 |阅读模式
在job.lua原代码如下:
function fightHpCheck()
    --if score.party and score.party=="峨嵋派" and hp.qixue_per<75 then
    --   exe('yun yinyang')
    --end
    --if score.party and score.party=="峨嵋派" and hp.qixue_per<40 then
    --   exe('yield yes;fu '..drug.heal..';yield no')
    --end
    --if score.party and score.party=="神龙教" and hp.qixue_per<50 then
    --   exe('yun wudi '.. score.id)
    --end
        if hp.qixue_per<50 and cty_cu>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
end
我改为:
function fightHpCheck()
    if score.party and score.party=="天龙寺" and hp.qixue_per<40 then
       exe('yun liao')
    end
    --if score.party and score.party=="峨嵋派" and hp.qixue_per<40 then
    --   exe('yield yes;fu '..drug.heal..';yield no')
    --end
    --if score.party and score.party=="神龙教" and hp.qixue_per<50 then
    --   exe('yun wudi '.. score.id)
    --end
        if hp.qixue_per<50 and cty_cu>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
end
今天一直气血没掉下来过,也不知是否能用,高手们测试一下看看,谢谢
门派:明教
发表于 2019-3-7 17:06:57 | 显示全部楼层
最好加上id,仿照上边格式——

exe('yun liao '.. score.id)
门派:天龙寺
 楼主| 发表于 2019-3-7 18:25:05 | 显示全部楼层
恩,好的,看实测有没有实际用处
门派:天龙寺
发表于 2019-3-8 00:14:26 | 显示全部楼层
zhaoziyu@tj 发表于 2019-3-7 18:25
恩,好的,看实测有没有实际用处

小于90%,就可以yun liao xxx(自己的id)
门派:明教
发表于 2019-3-8 16:27:59 | 显示全部楼层
每次liao是固定的血量还是百分比?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-8 13:45 , Processed in 0.029961 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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