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

【桃花岛】指南系列 -- 2M之后

[复制链接]
门派:桃花岛
 楼主| 发表于 2018-11-10 10:28:26 | 显示全部楼层
kkfromch@tj 发表于 2018-11-10 01:21
小师姐辛苦啦!赞一个!

我提一点建议,原来的帖子简洁好看,现在的黑底绿字,我看着有点累眼,能不能 ...

Sxlian 從前公版要自己加,現在新版的我沒用所以不知道,謝謝提醒
门派:明教
发表于 2018-11-10 11:58:05 | 显示全部楼层
reclus@tj 发表于 2018-11-10 10:27
關於parry 那個是學習的,不影響

是的,parry是管学习的,不过parry学到450级后,就会触发领悟,那么parry后边的没学到450级,就统统不能学了。

因为mush公版机器人判断是否要去门派学习,就是根据这个parry的等级。

shujian.lua

hp_pot_check=function(n,l,w)
         hp.food     =tonumber(w[1])
         hp.pot      =tonumber(w[2])
         hp.pot_max  =tonumber(w[3])
         
         for p in pairs(skillEnable) do
             -- ain 200level->160
             q=skillEnable[p]
             if skills[p] and skills[q] then
                skills[p].full=0
                
                     if q=='force' and (hp.pot<50 or skills[p].lvl<150) then
                   skills[p].full=1
                end
                --if (skills[p].lvl==skills[q].lvl and skills[p].pot==(skills[p].lvl+1)*(skills[p].lvl+1)) or skills[p].lvl>skills[q].lvl then
                        if skills[p].lvl>=skills[q].lvl then
                   skills[p].full=1   
                end
                        if skills[p].fullever then
                           skills[p].full=1
                        end
                        if skills[p].lvl>=hp.pot_max-100 then
                           skills[p].full=1
                        end
                        if p=="wuxiang-zhi" then
                           if not skills[p].olvl then skills[p].olvl=skills[p].lvl end
                           if skills[p].lvl > skills[p].olvl then
                              flag.wxjz=0
                                  skills[p].olvl=skills[p].lvl
                           end
                        end
                        if p=="wuxiang-zhi" and (skills[p].lvl<200 or flag.wxjz==0) then
                           skills[p].full=1
                        end
             end
         end
         if perform.force then
           if not skills[perform.force] then
              perform.force = nil
           end
         end
         if not perform.force then
            tmp.lvl = 0
            for p in pairs(skills) do
                q=skillEnable[p]
                    if q=="force" then
                       if skills[p].lvl > tmp.lvl then
                                tmp.lvl = skills[p].lvl
                                  perform.force = p
                           end
                    end
            end
         end
         if skills["parry"] and skills["parry"].lvl<hp.pot_max-100 and skills["parry"].lvl<450 then
        flag.xuexi=1
-- (这里是说,如果parry小于450级的话,学习标记=1,也就意味着可以学习。)
     end
end

而在函数function check_pot(p_cmd)中。。

      if flag.type and flag.type~='lingwu' and flag.xuexi==1 and hp.pot>=l_pot then
         return checkxue()
      end
          end
      if hp.pot>=l_pot and skills["parry"] and skills["parry"].lvl<hp.pot_max-100 and skills["parry"].lvl>=450 then
         flag.lingwu=1
      end
--(parry依然作为判断条件,如果parry>=450,那么领悟的标记=1,也就意味着触发领悟。)
      if flag.lingwu==1 then
         return checklingwu()
      end

所以parry最好放在最后边,作为判断学习还是领悟的触发条件,当然不这么做的话,如果有特殊武功没学到450就去领悟,只需要把最后边的武功名称和parry替换一下,修改上边的code也可以,我只是担心有些新人不会改而已,毕竟我当初是研究了好几个小时,问了一圈高手,才给弄明白的!
门派:桃花岛
 楼主| 发表于 2018-11-10 12:06:08 | 显示全部楼层
領悟那個已是這樣寫了
     
门派:桃花岛
发表于 2018-11-26 22:11:53 | 显示全部楼层
快出师了,得好好看看这贴了。
门派:姑苏慕容
发表于 2019-6-12 04:47:01 | 显示全部楼层
提前领悟用这个
打开shujian.lua,按ctrl+f,寻找checkxue(),多找几次,找到下面这句话,把checkxue()替换成checklingwu()
然后关掉mush,重新打开,(或者对话框选是,然后start)就能去领悟了setlingwu里面填你想领悟的技能
不过这样会一直领悟了,除非你重新改回来

if score.party~="普通百姓" and perform.skill and skills[perform.skill] and skills[perform.skill].lvl<450 and hp.pot>=l_pot then
      return checklingwu() --checkxue() 已经被我替换掉了,这里修改领悟或者学习
门派:桃花岛
发表于 2019-10-2 14:13:32 | 显示全部楼层
萌新前来学习 受益匪浅
门派:桃花岛
发表于 2019-10-2 19:51:24 | 显示全部楼层
先收藏,慢慢看,,,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-1 01:46 , Processed in 0.020419 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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