找回密码
 注册
搜索
查看: 1617|回复: 39

hs job get corpse修改版,大家帮忙测试

[复制链接]
门派:武当派
发表于 2019-3-1 00:52:09 | 显示全部楼层 |阅读模式
huashan.lua顶部定义两具变量:
-------华山
job.list["huashan"] ="华山惩恶扬善"
SslCanOut=0
local l_corpseNum=1
local l_huashanItem='corpse'



  1. huashan_cut=function()
  2.     EnableTriggerGroup("huashan_fight",false)
  3.     EnableTriggerGroup("huashan_find",false)
  4.     DeleteTriggerGroup("huashan_cut")
  5.     create_trigger_t('huashan_cut1','^(> )*只听“咔”的一声,你将(\\D*)的首级斩了下来,提在手中。','','huashan_cut_con')
  6.     create_trigger_t('huashan_cut2','^(> )*(乱切别人杀的人干嘛啊|你手上这件兵器无锋无刃|你得用件锋利的器具才能切下这尸体的头来)','','huashan_cut_weapon')
  7.     create_trigger_t('huashan_cut3','^(> )*你将(\\D*)的尸体扶了起来背在背上。','','huashan_cut_con')
  8.         create_trigger_t('huashan_cut4','^(> )*光天化日的想抢劫啊?','','huashan_cut_con1')
  9.         create_trigger_t('huashan_cut5','^(> )*你现在正忙着呢。','','huashan_cut_weapon')
  10.     SetTriggerOption("huashan_cut1","group","huashan_cut")
  11.     SetTriggerOption("huashan_cut2","group","huashan_cut")
  12.         SetTriggerOption("huashan_cut3","group","huashan_cut")
  13.         SetTriggerOption("huashan_cut4","group","huashan_cut")
  14.         SetTriggerOption("huashan_cut5","group","huashan_cut")
  15.         wudangPfmAnClose()
  16.         l_corpseNum=1
  17.         road.id=nil
  18.         job.killer={}
  19.     fight.time.e=os.time()
  20.     fight.time.over=fight.time.e-fight.time.b
  21.         messageShowT('华山任务:战斗用时:【'..fight.time.over..'】秒,搞定蒙面人:【'..job.target..'】。')
  22.     return check_halt(huashan_cut_act)
  23. end

  24. 上述几个函数修改即可,其他的不用动。
  25. 更改点:绝情谷corpse过重,会qian不上来,改为qie corpse
  26.              按无聊师兄的思路,get不到正确的corpse,会0.5后再get
  27. huashan_cut_act=function()
  28.     DeleteTimer('perform')
  29.     --weapon_unwield()
  30.     --weaponWieldCut()
  31.         if string.find(job.where,'绝情谷') then
  32.             for i=1,2 do
  33.                 exe('get ling pai from corpse '..i)
  34.             end
  35.                 exe('qie corpse ')
  36.                 l_huashanItem='head'
  37.         else
  38.            check_halt(exe('get corpse'))
  39.            l_huashanItem='corpse'
  40.         end
  41. end
  42. huashan_cut_weapon=function()
  43.     return check_halt(huashan_cut_act,1)
  44. end
  45. huashan_cut_con=function(n,l,w)
  46.     if job.target~=tostring(w[2]) then
  47.        --exe('drop head')
  48.            l_corpseNum=l_corpseNum+1
  49.            check_halt(exe('drop corpse;get corpse '..l_corpseNum))
  50.     else
  51.        DeleteTriggerGroup("all_fight")
  52.        EnableTriggerGroup("huashan_cut",false)
  53.            if l_huashanItem=='corpse' then check_halt(exe('get ling pai from corpse')) end
  54.        return go(huashan_yls,'华山','祭坛')
  55.     end
  56. end
  57. huashan_cut_con1=function()
  58.     local l_cmdStr='get corpse '..l_corpseNum
  59.     DoAfterSpecial(0.5,'exe(l_cmdStr)',12)
  60. end
  61. huashan_yls=function()
  62.     DoAfterSpecial(1,'return AntiFloodTimer()',12)
  63.         antiFlood="huashan_yls"
  64.     DeleteTriggerGroup("huashan_yls")
  65.     create_trigger_t('huashan_yls1','^(> )*(这里没有这个人。|你身上没有这样东西。|这人好象不是你杀的吧?|你的令牌呢|你还没有去找恶贼,怎么就来祭坛了?)','','huashan_yls_fail')
  66.     create_trigger_t('huashan_yls2','^(> )*岳灵珊在你的令牌上写下了一个 (一|二) 字。','','huashan_yls_ask')
  67.         create_trigger_t('huashan_yls3','^(> )*这好象不是你领的令牌吧?','','huashan_yls_lingpai')
  68.     SetTriggerOption("huashan_yls1","group","huashan_yls")
  69.     SetTriggerOption("huashan_yls2","group","huashan_yls")
  70.         SetTriggerOption("huashan_yls3","group","huashan_yls")
  71.     --return exe('give head to yue lingshan;hp')
  72.         return exe('give '..l_huashanItem..' to yue lingshan;hp')
  73. end
复制代码


门派:武当派
发表于 2019-3-1 02:13:10 | 显示全部楼层
红色的是加的吧,今天我来试哈哈     
门派:武当派
发表于 2019-3-1 02:13:51 | 显示全部楼层
下面就直接复制下来就是吧      
门派:武当派
 楼主| 发表于 2019-3-1 15:22:53 | 显示全部楼层
taot@tj 发表于 2019-3-1 02:13
红色的是加的吧,今天我来试哈哈

是的,红色的加在最上面,师兄拿小号测试,有发呆的log下来
门派:武当派
 楼主| 发表于 2019-3-1 15:23:26 | 显示全部楼层
taot@tj 发表于 2019-3-1 02:13
下面就直接复制下来就是吧

下面的直接复制就行了           
门派:武当派
发表于 2019-3-1 21:39:27 | 显示全部楼层
这里边还有好多其他的修改的 防flood之类的 没法直接拿来用吧 明儿再看看吧  
门派:武当派
 楼主| 发表于 2019-3-2 00:27:13 | 显示全部楼层
alphadog@tj 发表于 2019-3-1 21:39
这里边还有好多其他的修改的 防flood之类的 没法直接拿来用吧 明儿再看看吧

嗯,虽然提高了效率,还不太稳定,有待继续测试
门派:武当派
发表于 2019-3-2 07:10:34 | 显示全部楼层
freely@tj 发表于 2019-3-1 15:22
是的,红色的加在最上面,师兄拿小号测试,有发呆的log下来

就是说还有点小问题咯         
门派:武当派
发表于 2019-3-2 07:11:45 | 显示全部楼层
freely@tj 发表于 2019-3-1 15:23
下面的直接复制就行了

我昨天喝酒去了没有去试呢,只知道绝情谷背着corpse在呀璧上不停的跳跳不上去
门派:武当派
 楼主| 发表于 2019-3-2 11:24:11 | 显示全部楼层
taot@tj 发表于 2019-3-2 07:10
就是说还有点小问题咯

huashan_cut_con=function(n,l,w)
    if job.target~=tostring(w[2]) then
       --exe('drop head')
           EnableTriggerGroup("huashan_cut",true)
           l_corpseNum=l_corpseNum+1
           exe('drop corpse;get corpse '..l_corpseNum)
    else
       DeleteTriggerGroup("all_fight")
       EnableTriggerGroup("huashan_cut",false)
           if l_huashanItem=='corpse' then
              exe('get ling pai from corpse')
           end
       return go(huashan_yls,'华山','祭坛')
    end
end

上面这个函数要修改一下,加上红色的那句,不知道为什么这个触发会被关,导致第二次get corpse后面停了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-17 00:02 , Processed in 0.044931 second(s), 26 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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