找回密码
 注册
搜索
查看: 1709|回复: 19

smy 抓 id 失误

[复制链接]
门派:不明
发表于 2016-12-2 14:09:18 | 显示全部楼层 |阅读模式
第9组时mush没有抓到id导致失败

你将手中的天宇炼狱剑一弹,电光闪耀中,已不见了天宇炼狱剑的踪迹。
>
你将手一挥,一柄天宇炼狱剑从身后飞出,电光一闪,已经握在了你手中。
> 你决定用华山身法作为你的轻功。
>
一阵风吹过,把枯干的骸骨化成骨灰吹散了。
一阵风吹过,把枯干的骸骨化成骨灰吹散了。
山崖北面的小路上闪出两条人影,你纵身而起,立即和人影战在了一起。
看起来孙福祥想杀死你!
看起来候冬想杀死你!
西夏一品堂 武士 候冬(Hou dong)
这是西夏一品堂从江湖上重金招聘的一名武林高手。
此人看上去师承古墓派,擅长使用玄铁剑法伤敌!
他看起来约六十多岁。
他的武功看不出深浅。
他看起来气血充盈,并没有受伤。
他穿戴着:
  □西夏长袍(Cloth)
他装备着:
  □长剑(Changjian)
> 西夏一品堂 武士 孙福祥(Sun fuxiang)
这是西夏一品堂从江湖上重金招聘的一名武林高手。
此人看上去师承天龙寺,擅长使用一阳指伤敌!
他看起来约四十多岁。
他的武功看不出深浅。
他看起来气血充盈,并没有受伤。
他穿戴着:
  □西夏长袍(Cloth)
他装备着:
  □钢杖(Gangzhang)
> 你并没有装备这样东西作为武器。
> 你已经装备著了。
> 你决定用华山剑法作为你的招架。
> 你决定用华山剑法作为你的剑法。
> 你决定用华山身法作为你的轻功。
> 你把 "action" 设定为 "check_wushi_ok" 成功完成。

正常情况下应该是

<!-- Produced by MUSHclient v 4.84 - www.mushclient.com -->


正在颂摩崖任务中,设定杀死武士组数上限为【13】组。进行组数为第【3】组。
傍晚了,树上刚刚发芽的嫩叶在风中摇弋着。
正在颂摩崖任务中,设定杀死武士组数上限为【13】组。进行组数为第【3】组。
山崖北面的小路上闪出两条人影,你纵身而起,立即和人影战在了一起。
看起来顾登想杀死你!
看起来上官登想杀死你!
顾登 上官登
西夏一品堂 武士 上官登(Shangguan deng)
这是西夏一品堂从江湖上重金招聘的一名武林高手。
此人看上去师承
姑苏慕容,擅长使用慕容刀法伤敌!
他看起来约二十多岁。
他的武艺看上去
平淡无奇,出手似乎极重。
看起来气血充盈,并没有受伤。
他穿戴着:
  □西夏长袍(Cloth)
他装备着:
  □钢刀(Blade)
武士1 的 po 是 气 武士2 的 po 是刀
> 西夏一品堂 武士 顾登(Gu deng)
这是西夏一品堂从江湖上重金招聘的一名武林高手。
此人看上去师承
昆仑派,擅长使用迅雷十六剑伤敌!
他看起来约五十多岁。
他的武艺看上去
平淡无奇,出手似乎极重。
看起来气血充盈,并没有受伤。
他穿戴着:
  □西夏长袍(Cloth)
他装备着:
  □长剑(Changjian)
武士1 的 po 是 剑
> 你并没有装备这样东西作为武器。
> 你已经装备著了。
> 你决定用华山剑法作为你的招架。
> 你决定用华山剑法作为你的剑法。
> 你决定用华山身法作为你的轻功。
> 你把 "action" 设定为 "check_wushi_ok" 成功完成。
> 你把 "action" 设定为 "等待一下" 成功完成。



门派:不明
 楼主| 发表于 2016-12-2 14:12:41 | 显示全部楼层
本帖最后由 faint@tj 于 2016-12-6 12:58 编辑
  1. function yptLook(n,l,w)

  2.     if job.killer[sxjob.killer1]~=true then

  3.     sxjob.killer1=tostring(w[1])

  4.     yptjob.name1=sxjob.killer1

  5.     job.killer[sxjob.killer1]=true

  6.     fight.time.b=os.time()

  7.     yptteam=yptteam+1

  8.     return

  9.     end

  10.     if job.killer[sxjob.killer1]==true then

  11.     sxjob.killer2=tostring(w[1])

  12.     yptjob.name2=sxjob.killer2

  13.     end

  14.     print(sxjob.killer1,sxjob.killer2)

  15.     sxjob.id1='wu shi'

  16.     sxjob.id2='wu shi'

  17.     DeleteTriggerGroup("ypt_fight")

  18.     --create_trigger_t('ypt_fight1','^>*\\s*\\D*'..sxjob.killer1..'\\((\\D*)\\)','','ypt_print_1')

  19.     --create_trigger_t('ypt_fight2','^>*\\s*\\D*'..sxjob.killer2..'\\((\\D*)\\)','','ypt_print_2')

  20.     --create_trigger_t('ypt_fight3','^(> )*此人看上去师承(\\D*),擅长使用(\\D*)伤敌!','','ypt_chksk')

  21.     --create_trigger_t('ypt_fight4','^(> )*此人看上去师承(\\D*),擅长使用(\\D*)伤敌!','','ypt_chksk2')

  22.         

  23.         --换用别的触发方式抓id和skills

  24.         

  25.     create_trigger_t('ypt_fight5','^>*\\s*(\\D*)「啪」的一声倒在地上','','ypt_kill_die')

  26.     create_trigger_t('ypt_fight6','^>*\\s*(\\D*)神志迷糊,脚下一个不稳,倒在地上昏了过去。','','ypt_kill_faint')

  27.     create_trigger_t('ypt_fight7','^>*\\s*(看清楚一点,那并不是|你想攻击谁?)','','ypt_kill_over')

  28.     create_trigger_t('ypt_fight8','^>*\\s*\\( 你气息不匀,暂时不能施用外功。\\)','','yptfail')

  29.     --只见「呼呼」连响,你手中的上品无极剑已经被长鞭卷中一个把持不定脱手飞出! --日月鞭搞掉武器了。这个时候应该处理一下pfm加上get weapon的设定。

  30.         --啊!总算双目没有被真正刺伤,你又可以看见事物啦!

  31.         create_trigger_t('ypt_fight9','^>*\\s*啊!总算双目没有被真正刺伤,你又可以看见事物啦!','','ypt_cimu')

  32.         

  33.         create_trigger_t('ypt_catch_id','^>*\\s*西夏一品堂\\s*武士\\s*(\\D*)\\s*\\((\\D*)\\)\\n这是西夏一品堂从江湖上重金招聘的一名武林高手。\\n此人看上去师承\\D*,擅长使用(\\D*)伤敌!','','ypt_define_skills') --new



  34.         SetTriggerOption("ypt_catch_id","multi_line","y") --new

  35.         SetTriggerOption("ypt_catch_id","lines_to_match","3") --new

  36.         EnableTrigger("ypt_catch_id",true) --new

  37.         

  38.     SetTriggerOption("ypt_fight1","group","ypt_fight")

  39.     SetTriggerOption("ypt_fight2","group","ypt_fight")

  40.     SetTriggerOption("ypt_fight3","group","ypt_fight")

  41.     SetTriggerOption("ypt_fight4","group","ypt_fight")

  42.     SetTriggerOption("ypt_fight5","group","ypt_fight")

  43.     SetTriggerOption("ypt_fight6","group","ypt_fight")

  44.     SetTriggerOption("ypt_fight7","group","ypt_fight")

  45.     SetTriggerOption("ypt_fight8","group","ypt_fight")

  46.         SetTriggerOption("ypt_fight9","group","ypt_fight")

  47.         --exe('look')
  48.     DeleteTriggerGroup("ypt_weapon")
  49.     create_trigger_t('ypt_weapon1',"^(他|她)装备着:$",'','npcWeapon')
  50.     SetTriggerOption("ypt_weapon1","group","ypt_weapon")
  51.     EnableTriggerGroup("ypt_weapon",true)

  52.     yptjob.weapon1 = '气'
  53.     yptjob.weapon2 = '气'

  54.     exe('look wu shi 1;look wu shi 2;unwield dao;wield lianyu sword;jifa parry huashan-jianfa;jifa sword huashan-jianfa;jifa dodge huashan-shenfa;alias action check_wushi_ok')  --new
  55. end
复制代码

评分

1

查看全部评分

门派:不明
 楼主| 发表于 2016-12-2 14:13:53 | 显示全部楼层
function npcWeapon()



    DeleteTriggerGroup("npcWeapon")



    create_trigger_t('npcWeapon1',"^  □(\\D*)\\(",'','npcWP')



    SetTriggerOption("npcWeapon1","group","npcWeapon")



    EnableTriggerGroup("npcWeapon",true)



    EnableTrigger("xueshan_guard4",true)



end



function npcWP(n,l,w)



  local n_words=tostring(w[1])



  --print(n_words)
   local po_set = '掌'

   if string.find(n_words,"铁棍") then



       po_set = '枪'



    elseif string.find(n_words,"钢杖") then



       po_set = '枪'



    elseif string.find(n_words,"竹棒") then



    job.weapon='stick'



       po_set = '枪'



    elseif string.find(n_words,"长剑") then



  job.weapon='sword'



       po_set = '剑'



    elseif string.find(n_words,"箫") then



  job.weapon='xiao'



       po_set = '剑'



    elseif string.find(n_words,"针") then



       po_set = '剑'



    elseif string.find(n_words,"钢刀") then



  job.weapon='blade'



       po_set = '刀'



    elseif string.find(n_words,"鞭") then



  job.weapon='whip'



       po_set = '索'



    elseif string.find(n_words,"石") then



       po_set = '箭'



    elseif string.find(n_words,"匕首") then



       po_set = '鞭'



    elseif string.find(n_words,"钢斧") then



       po_set = '鞭'



    elseif string.find(n_words,"流星锤") then



       po_set = '鞭'



    elseif string.find(n_words,"铁令") then



  job.weapon='dagger'



       po_set = '鞭'



    elseif string.find(n_words,"单钩") then



       po_set = '鞭'



    elseif string.find(n_words,"**") then



       po_set = '鞭'



    elseif string.find(n_words,"铁笔") then



       po_set = '鞭'



    else



  job.weapon='unarmed'



       po_set = '掌'



    end

        if job.name~='songmoya' then
                    exe('set po '..po_set)
        end

   if yptjob.weapon1 == nil then
        yptjob.weapon1 = po_set
        Note('武士1 的 po 是 '..yptjob.weapon1 )
   elseif yptjob.weapon2 == nil then
        yptjob.weapon2 = po_set
        Note('武士1 的 po 是 '..yptjob.weapon1..' 武士2 的 po 是'..yptjob.weapon2)
   end

    EnableTrigger("npcWeapon1",false)



    DeleteTriggerGroup("npcWeapon")



end
门派:不明
 楼主| 发表于 2016-12-2 14:14:52 | 显示全部楼层
不知道哪里出了错,平时都是正常的,就这次发现了...

话说ypt各种意外
门派:不明
 楼主| 发表于 2016-12-2 14:19:01 | 显示全部楼层
look 的时候把对应 wushi 的武器清除掉

function ypt_define_skills(n,l,w)

        if sxjob.killer1==tostring(w[1]) then

                yptjob.weapon1 = nil

                sxjob.id1=string.lower(w[2])  --获取武士一的id

                yptjob.id1=sxjob.id1

                yptjob.skills1=tostring(w[3]) --获取武士二的技能

                --实装武士技能的克制

                if yptteam*1 > 9 then

                  if falsesk[yptjob.skills1] then

                         exe('halt;down')

                         return yptfail()

                  end

                end

               

                ----技能分级比较重新规划,优先对付数值最大的技能。

           if Yptlastsk[yptjob.skills1] then

                  sxkiller1=1

           elseif Yptdangersk9[yptjob.skills1] then

                  sxkiller1=9

           elseif Yptdangersk8[yptjob.skills1] then

                  sxkiller1=8

           elseif Yptdangersk7[yptjob.skills1] then

                  sxkiller1=7

           elseif Yptdangersk6_6[yptjob.skills1] then

                  sxkiller1=6.6

           elseif Yptdangersk6_5[yptjob.skills1] then

                  sxkiller1=6.5

           elseif Yptdangersk6[yptjob.skills1] then

                  sxkiller1=6

           elseif Yptdangersk5_1[yptjob.skills1] then

                  sxkiller1=5.1

           else

                  sxkiller1=5

           end

           yptjob.skills1_level=sxkiller1

           --------------------------------------------------

                if yptteam*1 > 10 then

                  if fearsk[yptjob.skills1] then

                  sxkiller1=0

                  end

                end

                --
        end

        if sxjob.killer2==tostring(w[1]) then

                yptjob.weapon2 = nil

                sxjob.id2=string.lower(w[2])  --获取武士二的id

                yptjob.id2=sxjob.id2

                yptjob.skills2=tostring(w[3]) --获取武士二的技能

                --实装武士技能的克制

                if yptteam*1 > 9 then

                  if falsesk[yptjob.skills2] then

                         exe('halt;down')

                         return yptfail()

                  end

                end

               

                ----技能分级比较重新规划,优先对付数值最大的技能。

           if Yptlastsk[yptjob.skills2] then

                  sxkiller2=1

           elseif Yptdangersk9[yptjob.skills2] then

                  sxkiller2=9

           elseif Yptdangersk8[yptjob.skills2] then

                  sxkiller2=8

           elseif Yptdangersk7[yptjob.skills2] then

                  sxkiller2=7

           elseif Yptdangersk6_6[yptjob.skills2] then

                  sxkiller2=6.6

           elseif Yptdangersk6_5[yptjob.skills2] then

                  sxkiller2=6.5

           elseif Yptdangersk6[yptjob.skills2] then

                  sxkiller2=6

           elseif Yptdangersk5_1[yptjob.skills2] then

                  sxkiller2=5.1

           else

                  sxkiller2=5

           end

           yptjob.skills2_level=sxkiller2

           --------------------------------------------------

                if yptteam*1 > 10 then

                  if fearsk[yptjob.skills2] then

                  sxkiller2=0

                  end

                end
        end
end
门派:不明
 楼主| 发表于 2016-12-2 14:20:28 | 显示全部楼层
id 和 名字都抓好了

12/02/16 13:46:12【boiha】报效国家任务:当前死亡次数【0】次!杀死第【8】组武士,战斗用时:【6】秒。
12/02/16 13:48:43【boiha】当前组第一个武士:姓名【孙福祥】,ID【sun fuxiang】,使用技能【一阳指】!
12/02/16 13:48:43【boiha】当前组第一个武士:姓名【候冬】,ID【hou dong】,使用技能【玄铁剑法】!
12/02/16 13:50:32【boiha】挂了!
12/02/16 13:51:01【boiha】报效国家:任务失败!
门派:不明
 楼主| 发表于 2016-12-2 14:24:29 | 显示全部楼层
看样子可能是程序的顺序有点问题,我把
    yptjob.weapon1 = '气'
     yptjob.weapon2 = '气'
提到
        create_trigger_t('ypt_catch_id','^>*\\s*西夏一品堂\\s*武士\\s*(\\D*)\\s*\\((\\D*)\\)\\n这是西夏一品堂从江湖上重金招聘的一名武林高手。\\n此人看上去师承\\D*,擅长使用(\\D*)伤敌!','','ypt_define_skills') --new

之前看看效果
门派:华山派
发表于 2016-12-2 14:27:04 | 显示全部楼层
你这是想存po的对象么?
求教。。。
华山怎么用九剑双杀。。。
门派:不明
 楼主| 发表于 2016-12-2 14:35:06 | 显示全部楼层
jecchs@tj 发表于 2016-12-2 14:27
你这是想存po的对象么?
求教。。。
华山怎么用九剑双杀。。。

这些代码就是我用来双杀而修改的代码,主要是在 yptjob里面添加两个变量  yptjob.weapon1,yptjob.weapon2
分别对应2个武士,这个道理和 sxjob.id1 一样
然后就能在 alias 里写上  set po yptjob.weapon1;perform po sxjob.id1;set po yptjob.weapon2;perform po sxjob.id2
门派:华山派
发表于 2016-12-2 14:37:38 | 显示全部楼层
boiha@tj 发表于 2016-12-2 14:35
这些代码就是我用来双杀而修改的代码,主要是在 yptjob里面添加两个变量  yptjob.weapon1,yptjob.weapon2 ...

wimpycmd 这么长,容易出错吧。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-16 01:24 , Processed in 0.029630 second(s), 29 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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