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

风神,咨询个公版上山的问题

[复制链接]
门派:丐帮
发表于 2018-6-6 16:16:07 | 显示全部楼层
kuer@tj 发表于 2018-6-6 13:58
而且我发现用金蛇剑法憋合气要比空明拳快好多,因为武器上的属性起很大做用。

金蛇剑法加kmq debuff武士,现在来看应该是初期普遍憋合气的方法
门派:古墓派
发表于 2018-6-7 11:01:56 | 显示全部楼层
风神,鹰版的mush里面没有kezhiwugong这个变量,原先的是不是要删除后再添加红色命令?原来的命令要删除那些?
门派:古墓派
发表于 2018-6-7 11:04:39 | 显示全部楼层
function ypttest()
  sxjob.id1='wushi'
create_trigger_t('ypt_fight5','^(> )*你把 "ppp1" 设定为 "\\D*;perform\\s*(\\D*)\\s*" 成功完成。','','ypt_pfm1')
end
function ypt_pfm1(n,l,w)
--print(w[2],w[3])
   local pp1=string.lower(w[2])
   --print(pp1)
   create_alias('yptpp1','yptpp1','alias pp1 perform '.. pp1 ..';perform '.. pp1)
       exe('yptpp1')
end
function ypt_pfm2(n,l,w)
--print(w[2],w[3])
   local pp2=string.lower(w[2])
   --print(pp2)
   create_alias('yptpp2','yptpp2','alias pp2 perform '.. pp2 ..';perform '.. pp2)
       exe('yptpp2')
end
function ypt_cimu()
      exe('kill '..sxjob.id1)
      exe('kill '..sxjob.id2)
end
function ypt_print_1(n,l,w)
    EnableTrigger("ypt_fight1",false)
    EnableTrigger("ypt_fight4",false)
    sxjob.id1=string.lower(w[1])
--print('sxjob.id1')
--print(sxjob.id1)
exe('look '..sxjob.id1)
end
function ypt_print_2(n,l,w)
    EnableTrigger("ypt_fight2",false)
    sxjob.id2=string.lower(w[1])
--print('sxjob.id2')
--print(sxjob.id2)
           wait.make(function()
          wait.time(0.5)
    EnableTrigger("ypt_fight3",false)
    EnableTrigger("ypt_fight4",true)
       exe('look '..sxjob.id2)
       end)
end
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("performpre")
    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("pzhen")
    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("pqi")
    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("pgang")
    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("prou")
    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("pkuai")
    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("pman")
    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("pmiao")
    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("pxian")
    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("pfmmrjf")
    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("pfmshlf")
    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("pfmwu")
    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("performpre")
    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("pzhen")
    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("pqi")
    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("pgang")
    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("prou")
    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("pkuai")
    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("pman")
    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("pmiao")
    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("pxian")
    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("pfmmrjf")
    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("pfmshlf")
    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("pfmwu")
    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

风神指导下这一段怎么改吧?谢谢
门派:古墓派
发表于 2018-6-7 14:29:54 | 显示全部楼层
我是这样的
function ypttest()
  sxjob.id1='wushi'
create_trigger_t('ypt_fight5','^(> )*你把 "pppp1" 设定为 "\\D*;perform\\s*(\\D*)\\s*" 成功完成。','','ypt_pfm1')
end
function ypt_pfm1(n,l,w)
--print(w[2],w[3])
   local pp1=string.lower(w[2])
   --print(pp1)
   create_alias('yptpp1','yptpp1','alias pp1 perform '.. pp1 ..';perform '.. pp1)
       exe('yptpp1')
end
function ypt_pfm2(n,l,w)
--print(w[2],w[3])
   local pp2=string.lower(w[2])
   --print(pp2)
   create_alias('yptpp2','yptpp2','alias pp2 perform '.. pp2 ..';perform '.. pp2)
       exe('yptpp2')
end
function ypt_cimu()
      exe('kill '..sxjob.id1)
      exe('kill '..sxjob.id2)
end
function ypt_print_1(n,l,w)
    EnableTrigger("ypt_fight1",false)
    EnableTrigger("ypt_fight4",false)
    sxjob.id1=string.lower(w[1])
--print('sxjob.id1')
--print(sxjob.id1)
exe('look '..sxjob.id1)
end
function ypt_print_2(n,l,w)
    EnableTrigger("ypt_fight2",false)
    sxjob.id2=string.lower(w[1])
--print('sxjob.id2')
--print(sxjob.id2)
           wait.make(function()
          wait.time(0.5)
    EnableTrigger("ypt_fight3",false)
    EnableTrigger("ypt_fight4",true)
       exe('look '..sxjob.id2)
       end)
end
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 Yptdangersk8[sxjob.skills1] then
      sxkiller1=8
   elseif Yptdangersk[sxjob.skills1] then
      sxkiller1=9
   elseif gmtempsk[sxjob.skills1] then
      sxkiller1=10
   else
      sxkiller1=5
   end
    if yptteam*1 > 10 then
      if fearsk[sxjob.skills1] then
      sxkiller1=0
      end
    end
    --local l_cmd=GetVariable("ypttab")
        if yptteam*1 > 13 then
      exe('shoot '..sxjob.id1)
    end       
        kezhiwugong()
        kezhiwugongAddTarget(sxjob.killer1,sxjob.id1)
        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 Yptdangersk8[sxjob.skills2] then
      sxkiller2=8
   elseif Yptdangersk[sxjob.skills2] then
      sxkiller2=9
   elseif gmtempsk[sxjob.skills2] then
      sxkiller2=10
   else
      sxkiller2=5
   end
    if yptteam*1 > 10 then
      if fearsk[sxjob.skills2] then
      sxkiller2=0
      end
    end
        messageShow('当前组第二个武士:姓名【'..sxjob.killer2..'】,ID【'..sxjob.id2..'】,使用技能【'..sxjob.skills2..'】!')
        return checkWait(yptKillgo,0.5)
  end
end
function yptKillgo()
    EnableTrigger("yptFight1",false)
    EnableTrigger("ypt_catch_id",false)
    if yptteam*1 > 10 then
               
      if sxkiller1*1==0 and sxkiller2*1==0 then
         exe('halt;down')
         return yptfail()
      end
    end
    hqpd=1
    exe('kill '..sxjob.id1)
    exe('kill '..sxjob.id2)
        if perform.force and perform.force=="yunu-xinjing" and yptteam*1 > 10 then
      exe('yun xinjing')
    end
    if perform.force and perform.force=="dulong-dafa" then
      if not flag.wudi or flag.wudi==0 then
       exe('yun wudi')
      else
       print('神龙无敌正在运行中。')
      end
    end
        kezhiwugongAddTarget(sxjob.killer2,sxjob.id2)
end
门派:神龙教
发表于 2018-6-7 17:31:21 | 显示全部楼层
感谢风神无私指导!           

门派:桃花岛
发表于 2018-6-7 18:59:05 | 显示全部楼层
本帖最后由 zhubang@tj 于 2018-6-7 20:09 编辑

感谢  明白了   试试                                       
门派:昆仑派
发表于 2018-6-15 17:28:17 | 显示全部楼层
syayas@tj 发表于 2018-6-6 12:18
在songmoya.lua里找        
        kezhiwugong()
        kezhiwugongAddTarget(sxjob.killer1,sxjob.id1)

我加入之后  一使用独孤九剑 就错误是咋回事。Run-time error
World: tj.sjever.net
Function/Sub: ypt_check_skills called by trigger
Reason: 正在处理触发器 "ypt_catch_id"
F:\MUSHS\lua\songmoya.lua:407: attempt to concatenate global 'setpo' (a nil value)
stack traceback:
        F:\MUSHS\lua\songmoya.lua:407: in function <F:\MUSHS\lua\songmoya.lua:282
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-14 03:41 , Processed in 0.030398 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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