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

新公版负重超过30%的问题

[复制链接]
门派:少林派
发表于 2019-11-14 09:43:23 | 显示全部楼层 |阅读模式
新公版在一些限制负重的地方都改了不背尸体,但是对于跑山下根骨臂力设置低,然后又像少林这样身上背跟多武器的同学,偶尔还是会被卡住饿死,想了想身上只有黄金和白银可以省了,所以改了一下,请无法帮看看可以不可以?因为我是瞎改的,有的判断没看明白

首先shujian.lua里count.gold_max=5  ---数字改小

function checkPrepare() 里面的数字改小
    if Bag and Bag["白银"] and Bag["白银"].cnt and (Bag["白银"].cnt>500 or Bag["白银"].cnt<50) 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


function check_gold()     里面的数字同样改小
function check_gold_count()
   if Bag['壹仟两银票'] and Bag['壹仟两银票'].cnt>10 then  
      exe('score;chazhang')
      if score.goldlmt and score.gold and (score.goldlmt-score.gold)>5 then
         return check_cash_cun()
          end
   end
   if Bag and Bag["白银"] and Bag["白银"].cnt and (Bag["白银"].cnt>100 or Bag["白银"].cnt<50) then
      return check_silver_qu()
   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*3) then
      return check_gold_qu()
   end

   return check_gold_over()
end
function check_cash_cun()
   if Bag['壹仟两银票'] then
      local l_cnt
      if score.goldlmt and score.gold and (score.goldlmt-score.gold)<Bag['壹仟两银票'].cnt*10 then
             l_cnt = math.modf((score.goldlmt-score.gold)/10) - 1
          else
             l_cnt = Bag['壹仟两银票'].cnt
          end
          if l_cnt > 0 then
         exe('cun '.. l_cnt ..' cash')
          end
   end
   checkBags()
   return checkWait(check_gold_check,3)
end
function check_silver_qu()
   local l_cnt=Bag["白银"].cnt-50
   exe('cun '.. l_cnt ..' silver')
   exe('qu 50 silver')
   --checkBags()
   --return checkWait(check_gold_check,3)
   return checkPrepareOver()
end
function check_gold_qu()
   local l_cnt=Bag["黄金"].cnt-count.gold_max*2
   exe('cun '.. l_cnt ..' gold')
   if Bag["黄金"].cnt<count.gold_max then
      exe('qu '.. count.gold_max ..' gold')
   end
   --checkBags()
   --return checkWait(check_gold_check,3)
   return checkPrepareOver()
end

huashan.lua里面也有同样的部分,也需要改吧

具体请无法大神有精力改一下吧,因为具体那些计算判断,我有点算不明白,身上白银有时候还是会很多
门派:峨嵋派
发表于 2019-11-14 10:54:41 | 显示全部楼层
大师  你需要一把神器啊
门派:峨嵋派
发表于 2019-11-14 10:55:18 | 显示全部楼层
大师日常背几件啊 刀 棍 鞭子 剑 ?
门派:姑苏慕容
发表于 2019-11-14 11:56:23 | 显示全部楼层
alphago@tj 发表于 2019-11-14 10:54
大师  你需要一把神器啊

大师好像已经有神器了啊                          
门派:姑苏慕容
发表于 2019-11-14 12:09:55 | 显示全部楼层
这么现在有神器都不用啊
门派:明教
发表于 2019-11-14 14:19:21 | 显示全部楼层
贴一个卡住饿死的log,看看什么原因?

搞这个治标不治本!而且我也不知道对不对症。
门派:少林派
 楼主| 发表于 2019-11-14 15:04:22 | 显示全部楼层
log最近没有了,被我删掉了,就是到潭底卡住饿死了,当时我看了一下log发现是负重超了,身上是首级,没有其他大件物品,就是武器太多,身上多背几个可以防身啊,另外练习技能的时候用,用神器shape来去的也需要改练习那段,我就是建议一下,避免其他同学出现类似问题
门派:铁掌帮
发表于 2019-11-14 16:05:33 | 显示全部楼层
2.x的版本,同样在绝情谷潭底卡住饿死了。负重高就潜不上去。手动发现时仍掉silver. gold。否则就饿死了。
门派:明教
发表于 2019-11-14 16:22:06 | 显示全部楼层
buddhism@tj 发表于 2019-11-14 15:04
log最近没有了,被我删掉了,就是到潭底卡住饿死了,当时我看了一下log发现是负重超了,身上是首级,没有其 ...

水潭底卡住我定制版有code的,以前是掉护具太多,卡住就把打出的护具丢掉。

不过你说得武器太多,这个还没观察到!应该是负重大于30%就会卡住。

你最好抓个log!

调试机器没log作为证明,我也没法修改啊!
门派:少林派
 楼主| 发表于 2019-11-15 09:07:06 | 显示全部楼层
kkfromch@tj 发表于 2019-11-14 16:22
水潭底卡住我定制版有code的,以前是掉护具太多,卡住就把打出的护具丢掉。

不过你说得武器太多,这个 ...

我把黄金和白银改了以后没有出现了,目前没有log,有log的同学可以发一下啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-8 04:37 , Processed in 0.028933 second(s), 25 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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