找回密码
 注册
搜索
查看: 430|回复: 9

新版检查内力问题

[复制链接]
门派:桃花岛
发表于 2021-3-31 13:32:38 | 显示全部楼层 |阅读模式
新手请教一下,新版MUSH在打开内力检查的时候,经常会在老祖那里busy,然后就卡住了,要手动打坐一下才能触发。请问这个怎么才能解决?
门派:明教
发表于 2021-3-31 17:30:46 | 显示全部楼层
把那段代码发出来才知道啊              
门派:桃花岛
 楼主| 发表于 2021-3-31 21:03:28 | 显示全部楼层
end
zbneili_w=function()
   locate()
   check_bei(zbneili_g)
end
zbneili_g=function()
   exe(locl.dir)
   checkWait(zhunbeineili_a,1)
end
zhunbeineili_a=function()
   if hp.qixue_per<50 and isInBags(drug.heal) then
      exe('eat chantui yao')
   end   
   exe('set 积蓄')               
   exe('dazuo '..hp.dazuo)                       
end
zhunbeineili_b=function()
   if mydummy==true then
      EnableTriggerGroup("zbneili",false)
      DeleteTriggerGroup("zbneili")
      return dummyfind()
   end
   exe('yun qi;hp')
   check_bei(zhunbeineili_c)
end
zhunbeineili_c=function()
   if hp.neili>=hp.neili_max*1.6 then
      EnableTriggerGroup("zbneili",false)
      DeleteTriggerGroup("zbneili")
      exe('yun jing;yun qi;yun jingli')
      check_bei(job.prepare)
   else
      zhunbeineili_a()
   end        
end


就是这段,set 积蓄就检查内力并打坐,但是走到宝象那里经常会被busy,提示:你正在忙,就卡住了。我想在set积蓄的后面加个等待时间再开始检查内力并打坐,这样就完美了。我用wait语句,试了很多次都不行,要不是不能触发,要不就是报错。请高手指点。
门派:天龙寺
发表于 2021-3-31 23:41:28 | 显示全部楼层
autumn@tj 发表于 2021-3-31 21:03
end
zbneili_w=function()
   locate()

zhunbeineili_a=function()
   if hp.qixue_per<50 and isInBags(drug.heal) then
      exe('eat chantui yao')
   end   
   exe('set 积蓄')               
   exe('dazuo '..hp.dazuo)                       
end

改为:
zhunbeineili_a=function()
   if hp.qixue_per<50 and isInBags(drug.heal) then
      exe('eat chantui yao')
   end
   DoAfter (1.0, "set 积蓄")
   DoAfter (1.5, 'dazuo '..hp.dazuo)
end
你试试看。
门派:桃花岛
 楼主| 发表于 2021-4-1 12:05:48 | 显示全部楼层
好的,我再测试一下,非常感谢
门派:桃花岛
 楼主| 发表于 2021-4-1 14:45:26 | 显示全部楼层
试过了,还是会卡住,而且有时候在岳不群那里也是这样的。
门派:铁掌帮
发表于 2021-4-1 15:46:39 | 显示全部楼层
弄个函数
function dazuofunc()
    exe('dazuo '..hp.dazuo)
end
然后用check_bei(dazuofunc)试一试
门派:桃花岛
 楼主| 发表于 2021-4-1 16:00:50 | 显示全部楼层
这个加在什么地方呢?
门派:铁掌帮
发表于 2021-4-2 15:02:56 | 显示全部楼层
autumn@tj 发表于 2021-4-1 16:00
这个加在什么地方呢?

不知道为什么回复不了代码了

  1. 把这一段
  2. zhunbeineili_a=function()
  3.    if hp.qixue_per<50 and isInBags(drug.heal) then
  4.       exe('eat chantui yao')
  5.    end   
  6.    exe('set 积蓄')               
  7.    exe('dazuo '..hp.dazuo)                       
  8. end

  9. 替换为
  10. function dazuofunc()
  11.     exe('dazuo '..hp.dazuo)
  12. end
  13. zhunbeineili_a=function()
  14.    if hp.qixue_per<50 and isInBags(drug.heal) then
  15.       exe('eat chantui yao')
  16.    end   
  17.    exe('set 积蓄')               
  18.    check_bei(dazuofunc)
  19. end
复制代码
门派:明教
发表于 2021-4-4 22:29:37 | 显示全部楼层
http://www.sjever.net/bbs/forum. ... d=248253&extra=
你可以去GM 看一下我发的帖子,这个打开内力准备回发呆问题的解决方法
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-4 21:08 , Processed in 0.033266 second(s), 26 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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