找回密码
 注册
搜索
查看: 1493|回复: 16

发个SMY练功模块

[复制链接]
发表于 2016-8-17 20:46:26 | 显示全部楼层 |阅读模式
首先改动job.lua的这个函数,添加红色部分
function ypt_kill_over()
    EnableTrigger("ypt_weapon1",false)
    EnableTriggerGroup("ypt_weapon",false)
       fight.time.e=os.time()
       fight.time.over=fight.time.e-fight.time.b
    messageShowT('报效国家任务:杀死第【'..yptteam..'】组武士,战斗用时:【'..fight.time.over..'】秒。')
    print('正在颂摩崖任务中,杀死第【'.. yptteam ..'】组武士完成。设定杀死武士组数上限为【'.. smyteam ..'】组。')
    if yptteam >= smyteam*1 then
       return check_halt(fangqiypt)
    end
    EnableTrigger("yptFight1",true)
        job.killer={}
    EnableTriggerGroup("yptdz",true)
        yptlian=1
    exe('yun jing;yun jingli;yun qi;hp')
    return check_busy(ckypt)
end
然后找到function yptdazuo_desc()整体替换为下面的东西
liantimes=1
yptlian=1
function yptlian_trigger()
    DeleteTriggerGroup("yptliantrigger")
    create_trigger_t('yptlian1',"^>*\\s*由于实战经验不足,阻碍了你的「\\D*」进步",'','yptlian_next')
        create_trigger_t('yptlian2',"^>*\\s*你现在的修为不足以提高(\\D*)了。",'','yptlian_next')
        SetTriggerOption("yptlian1","group","yptliantrigger")
        SetTriggerOption("yptlian2","group","yptliantrigger")
    EnableTriggerGroup("yptliantrigger",true)
end

function yptdazuo_desc()
   yptlian_trigger()
   skillslian= {}
   skillslian = utils.split(GetVariable("lianskills"),'|')
   local skill=skillslian[liantimes]
   local skillcheck=skills["force"].lvl
   if skillcheck<hp.pot_max-100 then
   liantimes=1
   end
   if skill=="sword" then
      exe('unwield blade;unwield '..leweapon..';wield sword')
            elseif skill=="blade" then
            exe('unwield sword;unwield '..leweapon..';wield blade')
          else
          exe('unwield sword;unwield '..leweapon..';unwield blade')
   end
   if yptlian==1 then
      exe('yun qi;lian '..skill..';yun jingli;dazuo '..hp.dazuo)
          yptlian=yptlian+1
          else
          exe('yun qi;yun jingli;dazuo '..hp.dazuo)          
    end
end

function yptlian_next()
    EnableTriggerGroup("yptliantrigger",false)
    liantimes=liantimes+1
        local length=table.getn(skillslian)
        if liantimes>length then
        liantimes=1
        end
end
再改动shujian.lua,在function pfmSet()函数尾部添加如下内容:
    l_result=utils.inputbox ("你送信1需要练习武功的SKILLS(格式:force|dodge|sword|blade|parry)是?", "lianskills", GetVariable("lianskills"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("lianskills",l_result)
       Note ("练习技能设定完成")
        print(GetVariable("lianskills"))
           end
    Note("使用默认PFM")
    exe('pfmset')




门派:姑苏慕容
发表于 2016-8-17 20:55:51 | 显示全部楼层
一直在山下晃荡,没上过山
门派:峨嵋派
发表于 2016-8-17 22:33:47 | 显示全部楼层
确实山上的时间不干点啥太浪费了
门派:桃花岛
发表于 2016-8-17 22:38:47 | 显示全部楼层
又一个为人民服务的伟人
门派:古墓派
发表于 2016-8-17 22:57:56 | 显示全部楼层
山上练武功会不会危险啊
门派:不明
发表于 2016-8-17 23:08:27 | 显示全部楼层
很热心                 
门派:不明
发表于 2016-8-17 23:14:25 | 显示全部楼层
模版看不懂                  
门派:桃花岛
发表于 2016-8-17 23:31:42 | 显示全部楼层
高手!先收藏了                                 
 楼主| 发表于 2016-8-17 23:41:19 | 显示全部楼层
完全么危险,我现在杀8组(可以打9组,不过浪费pot啊),带练功的,山上浪费太多时间
门派:不明
发表于 2016-8-17 23:43:27 | 显示全部楼层
viciousm@tj 发表于 2016-8-17 23:41
完全么危险,我现在杀8组(可以打9组,不过浪费pot啊),带练功的,山上浪费太多时间

嗯。回头研究下。实现了就太舒坦了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-17 06:20 , Processed in 0.019919 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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