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

公版的mush怎么会自动去买木剑?怎么修改为不去买

[复制链接]
门派:丐帮
发表于 2018-10-31 20:18:41 | 显示全部楼层
我也不知道,有时候几天就2、3把,有时候就多很多
门派:姑苏慕容
发表于 2018-10-31 20:30:31 | 显示全部楼层
还没人解决这问题吗?悬赏啊
门派:嵩山派
发表于 2018-11-4 01:43:30 | 显示全部楼层
本帖最后由 marmot@tj 于 2018-11-4 01:45 编辑

function checkPrepare()
      EnableTriggerGroup("poison",false)
      DeleteTriggerGroup("poison")
    drugPrepare = drugPrepare or {}
   
    if hp.exp<150000 then
       return checkPrepareOver()
    end
   
    if Bag["镣铐"] then
           return tiaoshui()
        end

    if Bag and Bag["白银"] and Bag["白银"].cnt and Bag["白银"].cnt>500 then
       return check_gold()
    end
    if (Bag and Bag["黄金"] and Bag["黄金"].cnt and Bag["黄金"].cnt<count.gold_max and score.gold>count.gold_max) or (Bag and Bag["黄金"] and Bag["黄金"].cnt and Bag["黄金"].cnt>count.gold_max*4) then
      return check_gold()
        end
       
    if score.gold and score.gold>100 and nxw_cur<5 and drugPrepare["川贝内息丸"] then
       return checkNxw()
    end
       
          if score.gold and score.gold>100 and cty_cur<5 and drugPrepare["蝉蜕金疮药"] then
       return checkHxd()
    end
       
        --[[if job.zuhe["wudang"] and job.zuhe["xueshan"] and job.last=="wudang" and (not Bag["邪气丸"] or Bag["邪气丸"].cnt<2) then
       return checkXqw()
        end
       
        if job.zuhe["wudang"] and job.zuhe["xueshan"] and job.last=="wudang" and (not Bag["正气丹"] or Bag["正气丹"].cnt<2) then
       return checkZqd()
        end
       
        if job.zuhe["huashan"] and job.zuhe["xueshan"] and job.last=="huashan" and (not Bag["邪气丸"] or Bag["邪气丸"].cnt<2) then
       return checkXqw()
        end
       
        if job.zuhe["huashan"] and job.zuhe["xueshan"] and job.last=="huashan" and (not Bag["正气丹"] or Bag["正气丹"].cnt<2) then
       return checkZqd()
        end]]
       
        if not flag.item then
       if score.party and score.party=="峨嵋派" and not Bag["腰带"] then
          return check_item()
           end
       if score.party=="少林派" and not Bag["护腰"] and not Bag["护腕"] then
              return check_item()
           end
        end
       
        if not Bag["火折"] and drugPrepare["火折"] then
       return checkFire()
    end
        if score.gold and score.gold>100 and hxd_cur<3 and drugPrepare["活血疗精丹"] then
       return checkLjd()
    end

        if score.tb and score.tb>100 and dhd_cur<1 and drugPrepare["大还丹"] then
       return checkdhd()
    end
   
        for p in pairs(weaponPrepare) do
            if weaponStore[p] and not Bag[p] and Bag["黄金"].cnt>3 then
                   return checkWeapon(p)
                end
                if weaponFunc[p] and not Bag[p] then
                   return _G[weaponFuncName[p]]()
                end
            if  weaponPrepare["飞镖"] and Bag["枚飞镖"].cnt<100 then
                   return checkWeapon("飞镖")
                end
        end
--[[
        local l_cut = false
        for p in pairs(Bag) do
            if weaponKind[Bag[p].kind] and weaponKind[Bag[p].kind]=="cut" then
                   l_cut = true
                end
        end
        if not l_cut and not Bag["木剑"] then
           weaponPrepare["木剑"] = true
           return checkWeapon("木剑")
        end
]]
                if Bag["韦兰之锤"] then
                   return checkHammer()
                end

        for p in pairs(Bag) do
            if Bag[p] and itemSave[p] then
           return checkYu(p)
                end
            if Bag[p].id and Bag[p].id["yu"] and string.find(p,"玉") then
                   return checkYu(p)
                end
                  if Bag[p].id and Bag[p].id["jintie chui"] and string.find(p,"金铁锤") then
                   return checkYu(p)
                end
                  if Bag[p].id and Bag[p].id["shentie chui"] and string.find(p,"神铁锤") then
                   return checkYu(p)
                end
    end
        exe('wear all')
    return checkPrepareOver()
end
门派:嵩山派
发表于 2018-11-4 01:48:12 | 显示全部楼层
忘记说了:---------------------shujian.lua------------------------------------------
门派:神龙教
发表于 2018-11-8 15:03:38 | 显示全部楼层
忘记说了:---------------------shujian.lua------------------------------------------


感谢大神,我也遇到这个问题了,把这个注释掉不会影响其他地方吧?

门派:天龙寺
发表于 2018-11-8 15:47:34 | 显示全部楼层
chaoti@tj 发表于 2018-10-15 17:06
暂时加上drop mujian顶一阵子先

我都顶几个月了。                 
门派:不明
发表于 2018-11-9 10:40:46 | 显示全部楼层
11111111111111111111
门派:少林派
发表于 2018-11-10 23:52:27 | 显示全部楼层
直接注释掉,没有cut没问题?
门派:少林派
发表于 2018-11-16 16:54:25 | 显示全部楼层
lovecold@tj 发表于 2018-11-10 23:52
直接注释掉,没有cut没问题?

按目前的克制系统,应该所有的门派都有cut武器吧
门派:武当派
发表于 2018-11-16 22:53:59 | 显示全部楼层
sbknight@tj 发表于 2018-10-31 20:30
还没人解决这问题吗?悬赏啊

在iset里设置第二把武器就不会买木剑
出现买木剑的时候,一般是武器丢失了
shujian.lua --> checkPrepare()
里面找这段代码
for p in pairs(Bag) do
        if weaponKind[Bag[p].kind] and weaponKind[Bag[p].kind] == "cut" then
           l_cut = true
        end
    end

    --if not l_cut and not Bag["木剑"] then
    --  weaponPrepare["木剑"] = true
     -- return checkWeapon("木剑")
   -- end
    --单钩
    if not l_cut and not Bag["单钩"] then
      weaponPrepare["单钩"] = true
      return checkWeapon("单钩")
    end
不想买木剑,可以换成别的,可以对照weapon.lua-->weaponKind这里的定义
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-14 14:15 , Processed in 0.040388 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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