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

hs任务改为get corpse,能提高1-2k/h

[复制链接]
门派:武当派
发表于 2019-2-26 17:56:38 | 显示全部楼层
freelya@tj 发表于 2019-2-26 17:29
挂了十几个小时,遇到两次发呆,都是边上刚好有别的corpse同时躺下。
还要改进,我再完善完善

延时一下再get corpse,不要加数字试试。。
门派:武当派
 楼主| 发表于 2019-2-26 18:15:13 | 显示全部楼层
我完善了一下,谁用小号先测试一下
  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_con')
  9.         --create_trigger_t('huashan_cut3','^(> )*你现在正忙着呢。','','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.         road.id=nil
  17.         job.killer={}
  18.        fight.time.e=os.time()
  19.        fight.time.over=fight.time.e-fight.time.b
  20.         messageShowT('华山任务:战斗用时:【'..fight.time.over..'】秒,搞定蒙面人:【'..job.target..'】。')
  21.     return check_halt(huashan_cut_act)
  22. end
  23. huashan_cut_act=function()
  24.     DeleteTimer('perform')
  25.     --weapon_unwield()
  26.     --weaponWieldCut()
  27.     --for i=1+l_corpseNum,2+l_corpseNum do
  28.            check_halt(exe('get corpse'))
  29.        --exe('get ling pai from corpse '..i)
  30.        --exe('qie corpse '..i)
  31.     --end
  32. end
  33. huashan_cut_weapon=function()
  34.     return check_halt(huashan_cut_act,1)
  35. end
  36. huashan_cut_con=function(n,l,w)
  37.     if job.target~=tostring(w[2]) and tostring(w[2])~='日' then
  38.        --exe('drop head')
  39.            check_halt(exe('drop corpse'))
  40.     elseif job.target=tostring(w[2]) then
  41.            l_corpseNum=1
  42.        DeleteTriggerGroup("all_fight")
  43.        EnableTriggerGroup("huashan_cut",false)
  44.            EnableTrigger("huashan_look_corpse",false)
  45.            check_halt(exe('get ling pai from corpse'))
  46.        return go(huashan_yls,'华山','祭坛')
  47.     end
  48.         l_corpseNum=1
  49.         DeleteTrigger('huashan_look_corpse')
  50.         Create_trigger_t('huashan_look_corpse','^(\\D*)的尸体 = corpse, shi ti','','hua_cut_con1')
  51.         exe('id here')
  52. end
  53. hua_cut_con1=function(n,l,w)
  54.     if job.target~=tostring(w[2]) then
  55.        l_corpseNum=l_corpseNum+1
  56.     else
  57.            check_halt(exe('get corpse '..l_corpseNum))
  58.     end
  59. end
复制代码
门派:武当派
 楼主| 发表于 2019-2-26 18:16:31 | 显示全部楼层
freely@tj 发表于 2019-2-26 18:15
我完善了一下,谁用小号先测试一下
  1. hua_cut_con1=function(n,l,w)
  2.     if job.target~=tostring(w[2]) then
  3.        l_corpseNum=l_corpseNum+1
  4.     else
  5.            check_halt(exe('get corpse '..l_corpseNum))
  6.     end
  7. end
复制代码


最后一个函数取参数错了,应该是w[1]
门派:武当派
发表于 2019-2-26 18:23:29 | 显示全部楼层
freely@tj 发表于 2019-2-26 18:16
最后一个函数取参数错了,应该是w[1]

我先试下!那个武当打坐你说是什么原因啊!要在哪里关闭啊
门派:武当派
发表于 2019-2-26 18:31:45 | 显示全部楼层
Run-time error
World: tj.sjever.net
Immediate execution
error loading module 'huashan' from file 'C:\MUSHShs\lua\huashan.lua':
        C:\MUSHShs\lua\huashan.lua:352: 'then' expected near '='
stack traceback:
        [C]: ?
        [C]: in function 'require'
        [string "Script file"]:19: in main chunk

--- 连接时间 2019年 二月 26日 星期二, 下午 6:31 ---
没用啊
门派:武当派
 楼主| 发表于 2019-2-26 19:20:21 | 显示全部楼层
taot@tj 发表于 2019-2-26 18:31
Run-time error
World: tj.sjever.net
Immediate execution

elseif job.target==tostring(w[2]) then
这句少了一个”=“号
门派:武当派
发表于 2019-2-26 20:02:59 | 显示全部楼层
freely@tj 发表于 2019-2-26 19:20
elseif job.target==tostring(w[2]) then
这句少了一个”=“号

<!-- Produced by MUSHclient v 4.84 - www.mushclient.com -->
<table border=0 cellpadding=5 bgcolor="#000000">
<tr><td>
<pre><code><font size=2 face="新宋体, FixedSys, Lucida Console, Courier New, Courier"><font color="#0">

</font><font color="#008000">你手中的三才</font><font color="#FF00FF">风云剑</font><font color="#008000">一晃,满场游走,一身青衫化成了一片青影,一招「苍松迎客」直刺项义铜的颈部!
结果几乎没有对项义铜造成任何伤害。
( 项义铜</font><font color="#800000">受伤过重,已经有如风中残烛,随时都可能断气。</font><font color="#008000"> )

项义铜「啪」的一声倒在地上,挣扎着抽动了几下就死了。
</font><font color="#FF4500">Run-time error
World: tj.sjever.net
Function/Sub: huashan_cut called by trigger
Reason: 正在处理触发器 &quot;huashan_fight1&quot;
C:\MUSHShs\lua\huashan.lua:327: attempt to call global 'wudangPfmAnClose' (a nil value)
stack traceback:
        C:\MUSHShs\lua\huashan.lua:327: in function &lt;C:\MUSHShs\lua\huashan.lua:313&gt;

</font><font color="#FF00FF">【谣言】某人:听说韦小宝从韦兰铁匠那里得到了很多</font><font color="#FFFF00">武器</font><font color="#FF00FF">!
</font></font></code></pre>
</td></tr></table>
又出现了这个呢      
门派:武当派
发表于 2019-2-26 20:12:12 | 显示全部楼层
太好了 这个能省不少时间啊 就是有可能背错尸体 这个应该难不倒师弟们 加油
门派:武当派
发表于 2019-2-26 20:13:21 | 显示全部楼层
alphadog@tj 发表于 2019-2-26 20:12
太好了 这个能省不少时间啊 就是有可能背错尸体 这个应该难不倒师弟们 加油

好东西多吧!我都看的眼花了        
门派:武当派
发表于 2019-2-26 20:20:27 | 显示全部楼层
taot@tj 发表于 2019-2-26 20:13
好东西多吧!我都看的眼花了

是啊 等你们更新好了 我就捡现成的了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-28 00:01 , Processed in 0.030941 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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