找回密码
 注册
搜索
查看: 7781|回复: 139

自己的山下山上2套不同克制skills的方法

[复制链接]
门派:天龙寺
发表于 2017-11-29 22:41:36 | 显示全部楼层 |阅读模式
1.想做2套克制的缘由:山上山下使用到的skills可以分别修改,不受到互相的干扰。

2.打开shujian.lua,在其中中找到如下代码:

l_result=utils.inputbox ("填写你的险属性PFM(用verify 来查看你的pfm的属性再填写。格式:verify yunu-jianfa)是?         【被克制属性为:奇。属性克制数值为:险130 慢空120 柔110 无正奇100】无险属性可按后面的数值高低来填入对你有对应属性的FPM!", "pxian", GetVariable("pxian"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pxian",l_result)
      perform.xian=l_result
      l_pfm = perform.xian
      create_alias('pfmxian','pfmxian','alias pfmpfm '.. l_pfm)
      Note("险属性PFM")
      exe('pfmxian')
   end

3.在这段后面加上以下的代码

  l_result=utils.inputbox ("战斗默认准备PFM1(格式:bei none;bei claw;jifa parry jiuyin-baiguzhua;perform sanjue)是?", "PerformPre1", GetVariable("performpre1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("performpre1",l_result)
      perform.pre1=l_result
      l_pfm1 = perform.pre
      create_alias('pfmset1','pfmset1','alias pfmpfm1 '.. l_pfm1)
      Note("默认PFM1")
      exe('pfmset1')
   end
   l_result=utils.inputbox ("你的空手PFM1(不使用武器的PFM)是?", "pfmks1", GetVariable("pfmks1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pfmks1",l_result)
      l_pfm1=l_result
      create_alias('pfmks1','pfmks1','alias pfmpfm1 '.. l_pfm1)
      Note("空手PFM1")
      exe('pfmks1')
   end
   l_result=utils.inputbox ("遇到慕容剑法用的PFM1(使用不拿剑可以克制慕容的skills,慕容剑法的属性为:险)是?", "pfmmrjf1", GetVariable("pfmmrjf1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pfmmrjf1",l_result)
      l_pfm1=l_result
      create_alias('pfmmrjf1','pfmmrjf1','alias pfmpfm1 '.. l_pfm1)
      Note("不用剑的PFM1")
      exe('pfmmrjf1')
   end
   l_result=utils.inputbox ("遇到明教圣火令法PFM1(使用拿武器克制明教的skills,圣火令法的属性为:奇)是?", "pfmshlf1", GetVariable("pfmshlf1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pfmshlf1",l_result)
      l_pfm1=l_result
      create_alias('pfmshlf1','pfmshlf1','alias pfmpfm1 '.. l_pfm1)
      Note("带兵器PFM1")
      exe('pfmshlf1')
   end
   l_result=utils.inputbox ("填写你的无属性PFM1(使用无属性的skills,玄铁剑法改归属为空)是?", "pfmwu1", GetVariable("pfmwu1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pfmwu1",l_result)
      l_pfm1=l_result
      create_alias('pfmwu1','pfmwu1','alias pfmpfm1 '.. l_pfm1)
      Note("无属性PFM1")
      exe('pfmwu1')
   end
   l_result=utils.inputbox ("填写你的正属性PFM1(用verify 来查看你的pfm的属性再填写。格式:verify yunu-jianfa)是?         【被克制属性为:险。属性克制数值为:正130 刚空120 快110 妙险无100】无正属性可按后面的数值高低来填入对你有对应属性的FPM!", "pzhen1", GetVariable("pzhen1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pzhen1",l_result)
      perform.zhen1=l_result
      l_pfm1 = perform.zhen1
      create_alias('pfmzhen1','pfmzhen1','alias pfmpfm1 '.. l_pfm1)
      Note("正属性PFM1")
      exe('pfmzhen1')
   end
   l_result=utils.inputbox ("填写你的奇属性PFM1(用verify 来查看你的pfm的属性再填写。格式:verify yunu-jianfa)是?         【被克制属性为:妙。属性克制数值为:奇130 柔空120 慢110 无妙险100】无奇属性可按后面的数值高低来填入对你有对应属性的FPM!", "pqi1", GetVariable("pqi1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pqi1",l_result)
      perform.qi1=l_result
      l_pfm1 = perform.qi1
      create_alias('pfmqi1','pfmqi1','alias pfmpfm1 '.. l_pfm1)
      Note("奇属性PFM1")
      exe('pfmqi1')
   end
   l_result=utils.inputbox ("填写你的刚属性PFM1(用verify 来查看你的pfm的属性再填写。格式:verify yunu-jianfa)是?         【被克制属性为:慢。属性克制数值为:刚130 正空120 险110 慢快无100】无刚属性可按后面的数值高低来填入对你有对应属性的FPM!", "pgang1", GetVariable("pgang1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pgang1",l_result)
      perform.gang1=l_result
      l_pfm1 = perform.gang1
      create_alias('pfmgang1','pfmgang1','alias pfmpfm1 '.. l_pfm1)
      Note("刚属性PFM1")
      exe('pfmgang1')
   end
   l_result=utils.inputbox ("填写你的柔属性PFM1(用verify 来查看你的pfm的属性再填写。格式:verify yunu-jianfa)是?         【被克制属性为:快。属性克制数值为:柔130 奇空120 妙110 快慢无100】无柔属性可按后面的数值高低来填入对你有对应属性的FPM!", "prou1", GetVariable("prou1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("prou1",l_result)
      perform.rou1=l_result
      l_pfm1 = perform.rou1
      create_alias('pfmrou1','pfmrou1','alias pfmpfm1 '.. l_pfm1)
      Note("柔属性PFM1")
      exe('pfmrou1')
   end
   l_result=utils.inputbox ("填写你的快属性PFM1(用verify 来查看你的pfm的属性再填写。格式:verify yunu-jianfa)是?         【被克制属性为:刚。属性克制数值为:快130 妙空120 奇110 无刚柔100】无快属性可按后面的数值高低来填入对你有对应属性的FPM!", "pkuai1", GetVariable("pkuai1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pkuai1",l_result)
      perform.kuai1=l_result
      l_pfm1 = perform.kuai1
      create_alias('pfmkuai1','pfmkuai1','alias pfmpfm1 '.. l_pfm1)
      Note("快属性PFM1")
      exe('pfmkuai1')
   end
   l_result=utils.inputbox ("填写你的慢属性PFM1(用verify 来查看你的pfm的属性再填写。格式:verify yunu-jianfa)是?         【被克制属性为:柔。属性克制数值为:慢130 险空120 正110 无刚柔100】无慢属性可按后面的数值高低来填入对你有对应属性的FPM!", "pman1", GetVariable("pman1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pman1",l_result)
      perform.man1=l_result
      l_pfm1 = perform.man1
      create_alias('pfmman1','pfmman1','alias pfmpfm1 '.. l_pfm1)
      Note("慢属性PFM1")
      exe('pfmman1')
   end
   l_result=utils.inputbox ("填写你的秒属性PFM1(用verify 来查看你的pfm的属性再填写。格式:verify yunu-jianfa)是?         【被克制属性为:正。属性克制数值为:妙130 快空120 刚110 无正奇100】无妙属性可按后面的数值高低来填入对你有对应属性的FPM!", "pmiao1", GetVariable("pmiao1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pmiao1",l_result)
      perform.miao1=l_result
      l_pfm1 = perform.miao1
      create_alias('pfmmiao1','pfmmiao1','alias pfmpfm1 '.. l_pfm1)
      Note("妙属性PFM1")
      exe('pfmmiao1')
   end
   l_result=utils.inputbox ("填写你的险属性PFM1(用verify 来查看你的pfm的属性再填写。格式:verify yunu-jianfa)是?         【被克制属性为:奇。属性克制数值为:险130 慢空120 柔110 无正奇100】无险属性可按后面的数值高低来填入对你有对应属性的FPM!", "pxian1", GetVariable("pxian1"), "宋体" , "12")
   if not isNil(l_result) then
      SetVariable("pxian1",l_result)
      perform.xian1=l_result
      l_pfm1 = perform.xian1
      create_alias('pfmxian1','pfmxian1','alias pfmpfm1 '.. l_pfm1)
      Note("险属性PFM1")
      exe('pfmxian1')
   end

4.这样在iset中就又多出了一套设置克制pfm的填空选项,这套新的克制选项是为专门针对山上使用的,原来那套还是山下使用

5.打开songmoya.lua,搜索function ypt_check_skills(n,l,w)这段代码,并用我给的代码予以代替(其实就是所有的pfm函数后面加个1)

  function ypt_check_skills(n,l,w)
        if sxjob.killer1==tostring(w[1]) then
                sxjob.id1=string.lower(w[2])  
                sxjob.skills1=tostring(w[3])
                if skills["dugu-jiujian"] then setpo=yptsetpo[sxjob.skills1] end
--print(sxjob.id1)
--print(sxjob.skills1)
                if yptteam*1 > 7 then
                  if falsesk[yptjob.skills1] then
                         exe('halt;down')
                         return yptfail()
                  end
                end
   if Yptlastsk[sxjob.skills1] then
      sxkiller1=1
   elseif Yptdangersk[sxjob.skills1] then
      sxkiller1=9
   else
      sxkiller1=5
   end
    if yptteam*1 > 10 then
      if fearsk[sxjob.skills1] then
      sxkiller1=0
      end
    end
    local l_cmd=GetVariable("performpre1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    if skillsjineng1[sxjob.skills1] then
    local l_cmd=GetVariable("pzhen1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    if skillsjineng2[sxjob.skills1] then
    local l_cmd=GetVariable("pqi1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    if skillsjineng3[sxjob.skills1] then
    local l_cmd=GetVariable("pgang1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    if skillsjineng4[sxjob.skills1] then
    local l_cmd=GetVariable("prou1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    if skillsjineng5[sxjob.skills1] then
    local l_cmd=GetVariable("pkuai1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    if skillsjineng6[sxjob.skills1] then
    local l_cmd=GetVariable("pman1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    if skillsjineng7[sxjob.skills1] then
    local l_cmd=GetVariable("pmiao1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    if skillsjineng8[sxjob.skills1] then
    local l_cmd=GetVariable("pxian1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    if skillsjineng9[sxjob.skills1] then
    local l_cmd=GetVariable("pfmmrjf1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    if skillsjineng10[sxjob.skills1] then
    local l_cmd=GetVariable("pfmshlf1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    if skillsjineng11[sxjob.skills1] then
    local l_cmd=GetVariable("pfmwu1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
       exe('yptpfm1')
    end
    messageShow('当前组第一个武士:姓名【'..sxjob.killer1..'】,ID【'..sxjob.id1..'】,使用技能【'..sxjob.skills1..'】!')
   end

        if sxjob.killer2==tostring(w[1]) then
                sxjob.id2=string.lower(w[2])  
                sxjob.skills2=tostring(w[3])
                if skills["dugu-jiujian"] then setpo=yptsetpo[sxjob.skills2] end
    if yptteam*1 > 7 then
      if falsesk[sxjob.skills2] then
         exe('halt;down')
         return yptfail()
      end
    end
--print(sxjob.id2)
--print(sxjob.skills2)
   if Yptlastsk[sxjob.skills2] then
      sxkiller2=1
   elseif Yptdangersk[sxjob.skills2] then
      sxkiller2=9
   else
      sxkiller2=5
   end
    if yptteam*1 > 10 then
      if fearsk[sxjob.skills2] then
      sxkiller2=0
      end
    end
    local l_cmd=GetVariable("performpre1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm1','yptpfm1','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm1')
    if skillsjineng1[sxjob.skills2] then
    local l_cmd=GetVariable("pzhen1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
    if skillsjineng2[sxjob.skills2] then
    local l_cmd=GetVariable("pqi1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
    if skillsjineng3[sxjob.skills2] then
    local l_cmd=GetVariable("pgang1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
    if skillsjineng4[sxjob.skills2] then
    local l_cmd=GetVariable("prou1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
    if skillsjineng5[sxjob.skills2] then
    local l_cmd=GetVariable("pkuai1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
    if skillsjineng6[sxjob.skills2] then
    local l_cmd=GetVariable("pman1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
    if skillsjineng7[sxjob.skills2] then
    local l_cmd=GetVariable("pmiao1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
    if skillsjineng8[sxjob.skills2] then
    local l_cmd=GetVariable("pxian1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
    if skillsjineng9[sxjob.skills2] then
    local l_cmd=GetVariable("pfmmrjf1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
    if skillsjineng10[sxjob.skills2] then
    local l_cmd=GetVariable("pfmshlf1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
    if skillsjineng11[sxjob.skills2] then
    local l_cmd=GetVariable("pfmwu1")
    if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
      create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
       exe('yptpfm2')
    end
  messageShow('当前组第二个武士:姓名【'..sxjob.killer2..'】,ID【'..sxjob.id2..'】,使用技能【'..sxjob.skills2..'】!')
  return checkWait(yptKillgo,0.5)
  end
end

6.在songmoya.lua中找到function yptHaltover(),并用以下代码来代替(注意:我是写死了是我自己的id,你们可以自己予以修改,另外我是用kmq做憋气skills的,如果你们不想用kmq,可以把exe('unwield fengyun sword;bei none;jifa cuff kongming-quan;bei kongming-quan') 这里自行修改一下)

function yptHaltover()
        exe('halt;yun qi;yun jingli;yun jing')
        if perform.force and perform.force=="bihai-chaosheng" then
       exe('yun maze')
    end
    if score.id and score.id=='coolstar' then exe('unwield fengyun sword;bei none;jifa cuff kongming-quan;bei kongming-quan')
end
                print('准备完毕,坏人快出来!')
end

7.在buffpfm中,我填写如下(因为我自己用的kmq,如果你们用其他的,请自行代替)

     perform cuff.ming;perform cuff.kong;perform finger.liumai;jiali max


以上为我自己想的办法,请各位师兄们多指正

评分

1

查看全部评分

门派:天龙寺
发表于 2017-12-1 10:25:30 | 显示全部楼层
师弟你是大神啊,这样的话山上山下就可以分开了,方便了很多啊
门派:明教
发表于 2017-12-1 10:49:34 | 显示全部楼层
哇,完全看不懂怎么办,好复杂        
门派:天龙寺
发表于 2017-12-1 11:31:55 | 显示全部楼层
以前最不满意就是这点,山下山上一套pfm,很不方便。
门派:天龙寺
发表于 2017-12-1 11:32:32 | 显示全部楼层
看来小星星对于mush的钻研很上心,32个赞!!!
门派:天龙寺
发表于 2017-12-1 11:33:11 | 显示全部楼层
收藏了                                                   
门派:天龙寺
发表于 2017-12-1 16:28:55 | 显示全部楼层
小星星逐渐靠近大神了                                    
门派:天龙寺
发表于 2017-12-1 16:30:02 | 显示全部楼层
xiren@tj 发表于 2017-12-1 10:49
哇,完全看不懂怎么办,好复杂

不用看懂,直接复制使用就行了!感谢小星星的分享                     
门派:天龙寺
发表于 2017-12-1 21:05:37 | 显示全部楼层
现在发pfm方便多了 不然激发bei 和 pfm 也得拆开  更麻烦
门派:天龙寺
 楼主| 发表于 2017-12-1 21:55:45 | 显示全部楼层
rone@tj 发表于 2017-12-1 10:25
师弟你是大神啊,这样的话山上山下就可以分开了,方便了很多啊

我一直很郁闷每次去山上都要把所有的pfmalias修改一遍才能去,觉得太烦了,所以才产生了修改成2套克制skills的方法,经过我这几天的测试,完全没有问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-11 04:18 , Processed in 0.034545 second(s), 28 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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