找回密码
 注册
搜索
查看: 474|回复: 5

磨得慢有空帮忙看看,实在是弄不了

[复制链接]
门派:大轮寺
发表于 2017-4-6 13:38:40 | 显示全部楼层 |阅读模式
local Yptlihuazhenshoot = {
        ["玄阴剑法"] = true,
        ["回风拂柳剑"] = true,           --以下为柔平降龙掌            
        ["玄铁剑法"] = true,       --盘根错节斧已经分在14,这里加上玄铁剑可以射杀,待以后分组
        ["打狗棒法"] = true,
}
function if yptlihuazhenshoot[sxjob.skills1] then
      yptlihuazhenshootsxkiller1=1
          elseif yptlihuazhenshoot[sxjob.skills2] then
          yptlihuazhenshootsxkiller2=1
          end

function gbluSmyWait()
    if locl.room~="颂摩崖" then
       return go(gbluSmyWait,"星宿海","颂摩崖")
    end
    EnableTriggerGroup("yptFight",true)
          exe('halt;unset no_kill_ap')
                  yptjob.lihuazhen=1 --modman加入梨花针变量
    messageShow('报效国家:已经到达【星宿海颂摩崖】!')
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=="dulong-dafa" then
      if not flag.wudi or flag.wudi==0 then
       exe('yun wudi')
      else
       print('神龙无敌正在运行中。')
      end
    end
    exe('jiali 0;set wimpycmd pfmbuff\\hp;set wimpy 100')
    --if ((yptteam*1 > 7 and (sxkiller1<5 or sxkiller2<5)) or yptteam*1 >= smyteam*1) and yptjob.lihuazhen==1 then --危险大于8出现就shoot
      --if sxkiller1>sxkiller2 and yptjob.name1~='无威胁' then
             --exe('shoot '..sxjob.id1)
      --elseif yptjob.name2~='无威胁' then
             exe('shoot '..sxjob.id2)
      --end
      --chats_log('有危险人物,先干掉一个再说!','cyan')
    --end--modman 9组或最后组根据危险性shoot smy 武士
        if (yptteam*1 >= 7 ) and yptjob.lihuazhen==1 then
        if yptlihuazhenshootsxkiller1==1
        exe ('shoot '..sxjob.id1)
        elseif yptlihuazhenshootsxkiller2==1
        exe ('shoot'..sxjob.id2 )
        elseif yptteam*1 >= smyteam*1 then
        if sxkiller1>sxkiller2
        exe('shoot '..sxjob.id2)
        else
        exe('shoot '..sxjob.id1)
        end
        end
        end
门派:不明
发表于 2017-4-6 13:58:12 | 显示全部楼层
不懂,帮顶了。还不如群里喊一下他。
门派:不明
发表于 2017-4-6 14:37:23 | 显示全部楼层
粘贴的时候可以选择代码格式,那样就要好看多啦
门派:武当派
发表于 2017-4-6 15:38:59 | 显示全部楼层
mush是方便使用,不方便修改            
门派:桃花岛
发表于 2017-4-6 22:12:14 | 显示全部楼层
local Yptlihuazhenshoot = {
        ["玄阴剑法"] = true,
        ["回风拂柳剑"] = true,           --以下为柔平降龙掌            
        ["玄铁剑法"] = true,       --盘根错节斧已经分在14,这里加上玄铁剑可以射杀,待以后分组
        ["打狗棒法"] = true,
}
function yptlihuazhenshootwush()
      if yptlihuazhenshoot[sxjob.skills1] then
      yptlihuazhenshootsxkiller1=1
          elseif yptlihuazhenshoot[sxjob.skills2] then
          yptlihuazhenshootsxkiller2=1
          end
          end

function gbluSmyWait()
    if locl.room~="颂摩崖" then
       return go(gbluSmyWait,"星宿海","颂摩崖")
    end
    EnableTriggerGroup("yptFight",true)
          exe('halt;unset no_kill_ap')
                  yptjob.lihuazhen=1 --modman加入梨花针变量
    messageShow('报效国家:已经到达【星宿海颂摩崖】!')
end

function ypt_lihuazhen(n,l,w)
    if w[1]==sxjob.killer1 then
    messageShow('报告!【'..sxjob.killer1..'】,这头驴又打滚了!')
    elseif w[1]==sxjob.killer2 then
    messageShow('报告!【'..sxjob.killer2..'】,这头驴又打滚了!')
    end
    yptjob.lihuazhen=0
end
function ypt_lihuazhen2(n,l,w)
    if w[1]==sxjob.killer1 then
    messageShow('哈哈!【'..sxjob.killer1..'】变刺猬了!')
    elseif w[1]==sxjob.killer2 then
    messageShow('哈哈!【'..sxjob.killer2..'】变刺猬了!')
    end
    yptjob.lihuazhen=0
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=="dulong-dafa" then
      if not flag.wudi or flag.wudi==0 then
       exe('yun wudi')
      else
       print('神龙无敌正在运行中。')
      end
    end
    exe('jiali 0;set wimpycmd pfmbuff\\hp;set wimpy 100')
    --if ((yptteam*1 > 7 and (sxkiller1<5 or sxkiller2<5)) or yptteam*1 >= smyteam*1) and yptjob.lihuazhen==1 then --危险大于8出现就shoot
      --if sxkiller1>sxkiller2 and yptjob.name1~='无威胁' then
             --exe('shoot '..sxjob.id1)
      --elseif yptjob.name2~='无威胁' then
             exe('shoot '..sxjob.id2)
      --end
      --chats_log('有危险人物,先干掉一个再说!','cyan')
    --end--modman 9组或最后组根据危险性shoot smy 武士
        if yptteam*1 >= 7 and yptjob.lihuazhen==1 then
        if yptlihuazhenshootsxkiller1==1 then
        exe('shoot '..'sxjob.id1')
        elseif yptlihuazhenshootsxkiller2==1 then
        exe('shoot'..'sxjob.id2')
        elseif yptteam*1 >= smyteam*1 then
        if sxkiller1>sxkiller2 then
        exe('shoot '..'sxjob.id2')
        else
        exe('shoot '..'sxjob.id1')
        end
        end
        end

能射了,修改了上面的语法错误
但是上去第一种就射了
另外,每组都射一次,好像根本不知道lihuazhen为0了
门派:天龙寺
发表于 2017-4-7 00:30:58 | 显示全部楼层
zhubang@tj 发表于 2017-4-6 22:12
local Yptlihuazhenshoot = {
        ["玄阴剑法"] = true,
        ["回风拂柳剑"] = true,           --以下为柔平降 ...

yptlihuazhenshootwush()  你这个是在那里调用的?

还有yptlihuazhenshootsxkiller1 这个东西,你定义了1就射,那么最后杀完了你要清零一下吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-15 13:48 , Processed in 0.058526 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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