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

【新公版使用技巧】-杀拦路bei none 和 武当搜索调快

[复制链接]
门派:明教
发表于 2019-10-5 01:50:17 | 显示全部楼层 |阅读模式
bei none的原因大家基本都找到了,就是渡江渡河练功之后bei none了。

shujian.lua
tmp_lxskill=tmp_lxskill..'hp;unset 积蓄'

hp前边可以加上bei finger; 或者大家门派专有的空手,再或者像本紫说的那样在渡江渡河后加一个beiUnarmed()

不过还有一个原因大家不知道,就是杀拦路npc其实是应该拿着恢复武器来杀的。

dujiang_over=function()
    EnableTriggerGroup("dujiang",false)
    DeleteTriggerGroup("dujiang")
    weapon_unwield()
    weapon_wield()
-- 渡江后换武器,防止空手bei none无法杀拦路npc
        djdh_open()
        fpk_prepare()--防pk技能准备。
    return walk_wait()
end

上边2个我原来测试时都是有的,后来为了怕指令太多容易flood就给去掉了,现在我把装备武器的函数给加回来。

大家记得去weapon.lua里去添加你自己的专属武器。

门派:明教
 楼主| 发表于 2019-10-5 01:51:44 | 显示全部楼层
  1. weapon_unwield=function()
  2.     for p in pairs(Bag) do
  3.             if Bag[p].kind and (not itemWield or itemWield[p]) then
  4.                    local _,l_cnt = isInBags(Bag[p].fullid)
  5.                    for i = 1,l_cnt do
  6.                        exe('unwield '.. Bag[p].fullid ..' '..i)
  7.                    end
  8.                 end
  9.         end
  10.         -- ain
  11.         --exe('uweapon shape zhanlu sword')
  12.                 exe('unwield taiji sword')
  13.                 exe('unwield gongbu')
  14.                 --exe('unwield dagger')
  15.                 --exe('unwield whip')
  16.                 --exe('unwield xiao')
  17.         --exe('unwield ansha bishou')
  18.                 --exe('unwield shizi')
  19.                 --exe('unwield coin')
  20.         exe('unwield mu jian')
  21.     exe('unwield lianyu sword')
  22.         checkWield()
  23. end
复制代码

  1. weapon_wield=function()
  2. --[[       if hp.neili<hp.neili_max*0.5 and cbb_cur>0 then
  3.           exe('eat '.. drug.neili)
  4.            end                     ]]
  5.        if perform and perform.skill and skillEnable[perform.skill] and weaponKind[skillEnable[perform.skill]] then
  6.        if weapon.first and Bag[weapon.first] then
  7.               exe('wield '.. Bag[weapon.first].fullid)
  8.            end
  9.            for p in pairs(Bag) do
  10.            if Bag[p].kind and Bag[p].kind==skillEnable[perform.skill] and perform.skill~="yuxiao-jian" then
  11.            if not weapon.first or weapon.first~=p then
  12.                   exe('wield '.. Bag[p].fullid)
  13.            end
  14.            end
  15.                   if Bag[p].kind and Bag[p].kind=="xiao" and perform.skill=="yuxiao-jian" then
  16.                      if not weapon.first or weapon.first~=p then
  17.                         exe('wield '.. Bag[p].fullid)
  18.                          end
  19.                   end
  20.            end
  21.     end
  22.         exe('wield lianyu sword')
  23.         checkWield()
  24. end
复制代码
门派:明教
 楼主| 发表于 2019-10-5 01:54:35 | 显示全部楼层
上边2个函数里边,靠下边的exe部分都是可以增加自己的专属武器的,换句话说,写死在里边。

另外一个可以优化的地方,武当搜索有点慢,大家可以把每一步的时间间隔从0.4秒改成0.3秒。

如果你的机器或网速较慢,0.3秒来不及反应的话,那最好还是改回0.4秒。

shujian.lua

function walk_wait()
       EnableTriggerGroup("walk",true)
           EnableTrigger("hp12",true)
           if tmp.find then
                 create_timer_s('walkWait',0.3,'walkTimer')
                  if cntr1() > 0 then
                     exe('alias action 正在赶路中')
                  else
                     cntr1 = countR(15)
                  end
           else
             create_timer_s('walkWait',0.1,'walk_goon')
           end
end
门派:武当派
发表于 2019-10-5 12:21:40 | 显示全部楼层
ok 收到 无法辛苦了
门派:丐帮
发表于 2019-10-5 12:27:47 | 显示全部楼层
辛苦小风神,你是强迫症加细节控啊   
门派:明教
发表于 2019-10-20 22:14:44 | 显示全部楼层
翡翠姐也用新公版了?如何呀
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-7 17:33 , Processed in 0.044282 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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