找回密码
 注册
搜索
查看: 2225|回复: 28

来段天龙寺领悟学习两不误的代码!

[复制链接]
门派:不明
发表于 2016-12-3 21:28:43 | 显示全部楼层 |阅读模式
这段代码已经在机器工厂贴过了,不过因为天龙的弟子可以不用修改直接用,所以就再贴一次!
主要针对对象
1.大昏版的机器(PTBX)的应该也可以
2.450级以下技能不满的id,
3.可以领悟cuff,然后学习其他技能。
  1. function check_pot(p_cmd)
  2. if hp.exp<5000000 then
  3.    l_pot=hp.pot_max-100
  4. else
  5.    l_pot=hp.pot_max-200
  6. end
  7.    flag.lingwu=0
  8.    local l_skill
  9.    if perform.skill then
  10.       l_skill=skillEnable[perform.skill]
  11.    end
  12.    
  13.    job_exp_tongji()

  14.    for p in pairs(skillEnable) do
  15.       if skills[p] then
  16.          q=skillEnable[p]
  17.          -- ain 提前领悟
  18.              if q and skills[q] and q~="force" and (skills[q].lvl>219 or (score.party=="普通百姓" and skills[q].lvl>100)) and skills[q].lvl<hp.pot_max-100 and skills[q].lvl<=skills[p].lvl and hp.pot>=l_pot then
  19.                 flag.lingwu=1
  20.              end
  21.       end
  22.    end
  23.    if GetVariable("lingwuskill") or (tmp.xskill and skills[tmp.xskill] and skillEnable[tmp.xskill] and skills[skillEnable[tmp.xskill]]) then
  24.       flag.lingwu = 0
  25.           
  26.           if tmp.xskill and skills[tmp.xskill] and skillEnable[tmp.xskill] and skills[skillEnable[tmp.xskill]] then
  27.              local p = tmp.xskill
  28.                  local q = skillEnable[p]
  29.              if skills[q].lvl<hp.pot_max-100 and skills[q].lvl<=skills[p].lvl and skills[q].lvl<hp.pot_max-100 then
  30.                     flag.lingwu=1
  31.                  end
  32.       end
  33.           if GetVariable("lingwuskill") then
  34.                  local q = GetVariable("lingwuskill")
  35.                  for p in pairs(skills) do
  36.                 if skillEnable[p]==q and skills[q].lvl<hp.pot_max-100 and skills[q].lvl<=skills[p].lvl and skills[q].lvl<hp.pot_max-100 then
  37.                        flag.lingwu=1
  38.                     end
  39.                  end
  40.           end
  41.         end
  42.    if score.party=="普通百姓" and hp.pot>=l_pot and score.gold and skills["literate"] and score.gold>1000 and skills["literate"].lvl<hp.pot_max-100 then
  43.       return literate()
  44.    end

  45.     if score.party=="普通百姓" and flag.lingwu==1 then return checklingwu() end

  46.     if score.party=="普通百姓" and skills["force"].lvl>50 then
  47.                 if skills["force"].lvl<101 then
  48.                        return huxi()
  49.                         end
  50.         if score.party=="普通百姓" and skills["force"].lvl==101 then
  51.                exe('fangqi force 1;y;y;y')                       
  52.                        return huxi()
  53.                         end
  54.               if score.party=="普通百姓" and skills["shenzhao-jing"] and skills["shenzhao-jing"].lvl<200 then
  55.                     return learnSzj()
  56.                  end
  57.         end

  58.    if score.party~="普通百姓" and hp.pot>=l_pot and flag.autoxuexi and flag.autoxuexi==1 then
  59.       if score.gold and skills["literate"] and score.gold>1000 and skills["literate"].lvl<hp.pot_max-100 then
  60.          return literate()
  61.       end

  62.           if score.party~="普通百姓" and score.party == '天龙寺'  then  --------这里新增【and score.party == '天龙寺'】 跳出这个判断
  63.       for p in pairs(skills) do
  64.           local q=qrySkillEnable(p)
  65.               if q and q['force'] and perform.force and p==perform.force and skills[p].lvl<100 and hp.pot>=l_pot then
  66.                  if skills[p].mstlvl and skills[p].mstlvl<=skills[p].lvl then
  67.                      else
  68.                     return checkxue()
  69.                      end
  70.               end
  71.       end

  72.       for p in pairs(skills) do
  73.           if flagFull[p] and not skillEnable[p] and skills[p].lvl<450 and skills[p].lvl<=skills["dodge"].lvl and hp.pot>=l_pot then
  74.                  if not skills[p].mstlvl or skills[p].mstlvl>skills[p].lvl then
  75.                     return checkxue()
  76.                  end
  77.               end
  78.       end

  79.    if score.party~="普通百姓" and perform.skill and skills[perform.skill] and skills[perform.skill].lvl<450 and hp.pot>=l_pot then
  80.       return checkxue()
  81.    end

  82.       if flag.type and flag.type~='lingwu' and flag.xuexi==1 and hp.pot>=l_pot then
  83.          return checkxue()
  84.       end
  85.   end  -------------对应上面跳出判断的if
  86.       if skills["parry"] and skills["parry"].lvl<hp.pot_max-100 and skills["parry"].lvl>450 then
  87.          flag.lingwu=1
  88.       end
  89.       if skills["cuff"] and skills["cuff"].lvl<hp.pot_max-100 and skills["cuff"].lvl>120 then
  90.          flag.lingwu=1
  91.       end
  92.         -----分割线-----这是天龙弟子有太祖拳,需要领悟cuff 的新增语句------------------------------------------------
  93.                 if score.party=="天龙寺" and skills['cuff'].lvl <= skills['taizu\-\quan'].lvl+10 and skills['cuff'].lvl < l_pot and skills['kurong\-\changong'].lvl == l_pot then
  94.                         flag.lingwu=1
  95.                         Note('去少林领悟')
  96.                         else
  97.                         flag.lingwu=0
  98.                         flag.xuexi=1
  99.                         Note('找师傅学习')
  100.                 end
  101.      --------------------------------------------------------------------------------------------------------------------------------------------
  102.       if flag.lingwu==1 then
  103.          return checklingwu()
  104.       end

  105.           
  106.       if flag.xuexi==1 and score.party~="普通百姓" then
  107.          return checkxue()
  108.       end
  109.    
  110.    if hp.pot>=l_pot then
  111.           if skills["wuxiang-zhi"] then
  112.              if not flag.wxjz then flag.wxjz=0 end
  113.                  if flag.wxjz==0 and skills["finger"].lvl>skills["wuxiang-zhi"].lvl and skills["wuxiang-zhi"].lvl<hp.pot_max-100 then
  114.                     return wxjzFofa()
  115.                  end
  116.           end
  117.    end
  118.    end
  119.    return check_job()
  120.    
  121. end
复制代码

评分

1

查看全部评分

门派:天龙寺
发表于 2016-12-3 21:49:20 | 显示全部楼层
阿弥陀佛,欢迎大神进驻天龙!
这段代码对想补cuff的同学很有用处!
门派:不明
 楼主| 发表于 2016-12-3 21:50:11 | 显示全部楼层
我晕写错了,

if score.party~="普通百姓" and score.party ~= '天龙寺'  then  --------这里新增【and score.party ~= '天龙寺'】 跳出这个判断

这里应该是 score.party ~= '天龙寺'

笔误,笔误,还不能改,对不住!!
门派:姑苏慕容
发表于 2016-12-3 22:16:55 | 显示全部楼层
现在mush高手越来越多了啊
门派:古墓派
发表于 2016-12-3 22:27:01 | 显示全部楼层
这么好的东西不错               
门派:天龙寺
发表于 2016-12-3 22:35:11 | 显示全部楼层
支持对msuh有研究的大能来tls添砖加瓦
门派:丐帮
发表于 2016-12-3 23:24:04 | 显示全部楼层
天龙寺还要领悟拳法         
门派:丐帮
发表于 2016-12-3 23:24:29 | 显示全部楼层
天龙寺还要领悟拳法         
门派:不明
 楼主| 发表于 2016-12-3 23:54:29 | 显示全部楼层
sanguang@tj 发表于 2016-12-3 23:24
天龙寺还要领悟拳法

枯荣长老没cuff 啊,段家的只能学到200级,难道不需要?
门派:古墓派
发表于 2016-12-4 22:00:05 | 显示全部楼层
mmdntt@tj 发表于 2016-12-3 23:54
枯荣长老没cuff 啊,段家的只能学到200级,难道不需要?

什么时候还是帮古墓写点东西啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-24 04:21 , Processed in 0.026058 second(s), 26 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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