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

绝情谷水潭判断负重代码

[复制链接]
门派:明教
发表于 2017-12-23 14:17:25 | 显示全部楼层 |阅读模式
  1. function Togudi()
  2.     exe('cuo shupi;cuo shupi;cuo shupi;cuo shupi;cuo shupi;cuo shupi;cuo shupi;cuo shupi;cuo shupi;bang song;pa down')
  3.     locate()
  4.     return check_busy(Goyadi,1)
  5. end
  6. function Goyadi()
  7.     if string.find(locl.room,'谷底') then
  8.     return walk_wait()
  9.        elseif string.find(locl.room,'崖壁') then
  10.                        exe("pa down")
  11.             locate()
  12.     return check_busy(Goyadi,1)
  13.         end
  14. end
  15. function Toqiaobi()
  16.     exe('pa yabi')
  17.     locate()
  18.     return check_busy(Goqiaobi,1)
  19. end
  20. function Goqiaobi()
  21.     if string.find(locl.room,'峭壁') then
  22.                 return walk_wait()
  23.     elseif string.find(locl.room,'崖壁') then
  24.             exe("pa up")
  25.             locate()
  26.                 return check_busy(Goqiaobi,1)
  27.         end
  28. end

  29. function Totanan()
  30.     DeleteTriggerGroup("qqs")
  31.     create_trigger_t('qqs1','^>*\\s*你要往哪里潜?

  32. ,'','qQydok')
  33.     create_trigger_t('qqs2','^>*\\s*由于重力不够,你无法继续下潜!

  34. ,'','qQyderorr')
  35.     SetTriggerOption("qqs1","group","qqs")
  36.     SetTriggerOption("qqs2","group","qqs")
  37.     EnableTriggerGroup("qqs",true)   
  38.         exe('#10(jian shi)')
  39.         checkBags()
  40.         return check_busy(totanan_checkencumbrance,0.7)       
  41. end
  42. function totanan_checkencumbrance()
  43.         if Bag["ENCB"].value > 100 then
  44.                 exe('#10(drop stone)')               
  45.                 checkBags()
  46.                 return check_busy(totanan_checkencumbrance,0.7)
  47.         elseif Bag["ENCB"].value > 50 then
  48.                 exe('tiao tan')
  49.                 return create_timer_s('gotanan',1,'qQianshui')
  50.         else
  51.                 exe('#5(jian shi)')
  52.                 checkBags()
  53.                 return check_busy(totanan_checkencumbrance,0.7)
  54.         end
  55. end
  56. function qQianshui()
  57.     exe('qian down')
  58. end
  59. function qQyderorr()
  60.         dis_all()
  61.         wait.make(function()
  62.                 wait.time(2)
  63.                 exe('pa up;#6(drop shitou);#6(drop e);#10(jian shi);tiao tan')
  64.                 create_timer_s('gotanan',1,'qQianshui')
  65.     end)
  66. end
  67. function qQydok()
  68.     DeleteTriggerGroup("qqs")
  69.     DeleteTimer('gotanan')       
  70.         checkBags()       
  71.         return check_busy(qQyd_dropstone)       
  72. end

  73. function qQyd_dropstone()
  74.         if not Bag["ENCB"].value then
  75.                 exe('#25(drop stone)')
  76.         end
  77.         if Bag['大石块'] and Bag['大石块'].cnt then
  78.                 exe('#' .. Bag['大石块'].cnt .. '(drop da shikuai)')               
  79.         end
  80.         if Bag['鹅卵石'] and Bag['鹅卵石'].cnt then
  81.                 exe('#' .. Bag['鹅卵石'].cnt .. '(drop e luanshi)')               
  82.         end
  83.         if Bag['小石头'] and Bag['小石头'].cnt then
  84.                 exe('#' .. Bag['小石头'].cnt .. '(drop xiao shitou)')               
  85.         end
  86.         checkBags()       
  87.         return check_busy(totanan_check_qqup_encumbrance,0.7)
  88. end
  89. function totanan_check_qqup_encumbrance()
  90.         if Bag["ENCB"].value < 40 then               
  91.                 exe('qian zuoshang')
  92.                 return check_busy(qQup,1)
  93.         else
  94.                 exe('#5(drop stone)')
  95.                 checkBags()
  96.                 return check_busy(totanan_check_qqup_encumbrance,0.7)
  97.         end
  98. end
  99. function qQup()
  100.      exe("qian up")
  101.     return check_busy(qQsover,1)
  102. end
  103. function qQsover()
  104.     exe("pa up")
  105.     exe("#5(drop stone)")
  106.         return walk_wait()
  107. end
  108. function Hgudi()   
  109.         exe("#15(jian shi)")
  110.         checkBags()
  111.         return check_busy(Hgudi_checkencumbrance,0.7)   
  112. end
  113. function Hgudi_checkencumbrance()
  114.         if Bag["ENCB"].value > 100 then
  115.                 exe('#20(drop stone)')               
  116.                 checkBags()
  117.                 return check_busy(Hgudi_checkencumbrance,0.7)
  118.         elseif Bag["ENCB"].value > 50 then
  119.                 exe('tiao tan')
  120.                 fastLocate()
  121.                 return check_busy(Hyadi,1)
  122.         else
  123.                 exe('#5(jian shi)')
  124.                 checkBags()
  125.                 return check_busy(Hgudi_checkencumbrance,0.7)
  126.         end
  127. end

  128. function Hyadi()
  129.     if string.find(locl.room,'谷底水潭') then
  130.                 if Bag['大石块'] and Bag['大石块'].cnt then
  131.                         exe('#' .. Bag['大石块'].cnt .. '(drop da shikuai)')               
  132.                 end
  133.                 if Bag['鹅卵石'] and Bag['鹅卵石'].cnt then
  134.                         exe('#' .. Bag['鹅卵石'].cnt .. '(drop e luanshi)')               
  135.                 end
  136.                 if Bag['小石头'] and Bag['小石头'].cnt then
  137.                         exe('#' .. Bag['小石头'].cnt .. '(drop xiao shitou)')               
  138.                 end
  139.                 checkBags()
  140.                 exe('qian up')               
  141.                 DeleteTriggerGroup("qqs")
  142.                 create_trigger_t('qqs1','^>*\\s*你要往哪里潜?

  143. ,'','hhqok')
  144.                 SetTriggerOption("qqs1","group","qqs")
  145.                 EnableTriggerGroup("qqs",true)
  146.                 create_timer_s('hyadi',1,'hQianshui')
  147.     elseif string.find(locl.room,'水底通道') or string.find(locl.room,'水潭表面') then
  148.                 exe('qian down')
  149.                 DeleteTriggerGroup("qqs")
  150.                 create_trigger_t('qqs1','^>*\\s*你要往哪里潜?

  151. ,'','hhqok')
  152.                 create_trigger_t('qqs2','^>*\\s*由于重力不够,你无法继续下潜!

  153. ,'','hQyderror')
  154.                 SetTriggerOption("qqs1","group","qqs")
  155.                 SetTriggerOption("qqs2","group","qqs")
  156.                 EnableTriggerGroup("qqs",true)
  157.                 fastLocate()
  158.                 checkBags()
  159.                 return check_busy(Hyadi,1)
  160.     end
  161. end
  162. function hQyderror()
  163.         dis_all()
  164.         wait.make(function()
  165.                 wait.time(2)
  166.                 exe('halt;pa up;#10(jian shi);tiao tan')
  167.                 create_timer_s('hyadi',1,'Hyadi')
  168.     end)   
  169. end
  170. function hQianshui()       
  171.     exe('qian up')
  172. end
  173. function hhqok()
  174.     DeleteTriggerGroup("hqs")
  175.     DeleteTimer('hyadi')
  176.     return check_halt(hhqok2)
  177. end
  178. function hhqok2()
  179.         exe('pa up')
  180.         return walk_wait()
  181. end
  182. function Fqy()
  183.     exe("enter")
  184.         return walk_wait()
  185. end
  186. function Inwdj()
  187.     exe("northup")
  188.         return walk_wait()
  189. end
复制代码


评分

2

查看全部评分

门派:桃花岛
发表于 2017-12-23 17:15:22 | 显示全部楼层
怎么用这个代码? 不知道怎们修改
门派:少林派
发表于 2017-12-23 18:41:39 来自手机 | 显示全部楼层
好像我的绝情谷不会出问题
门派:天龙寺
发表于 2017-12-23 23:35:12 | 显示全部楼层
MARK一下,等出问题了再改
门派:古墓派
发表于 2017-12-24 00:37:53 | 显示全部楼层
不错,mark一下.                        
门派:天龙寺
发表于 2017-12-24 00:50:26 | 显示全部楼层
请问是在lujing.lua里面修改吗?
门派:武当派
发表于 2017-12-24 11:18:48 | 显示全部楼层
高手 风神有空 更新一版吧 新的lujing room kezhiwugong
门派:武当派
发表于 2017-12-24 11:35:33 | 显示全部楼层
咋修改啊。。。我也在杨过那发呆了。
门派:桃花岛
发表于 2017-12-24 11:42:54 | 显示全部楼层
belloc@tj 发表于 2017-12-24 11:35
咋修改啊。。。我也在杨过那发呆了。

道长和我一样是小白啊  我请教过袭人
是把lujing 里面找到这段代码 全部替换了就行了
需要注意的是 我出错过一次,是因为断行了(先把代码复制到txt文件里,仔细检查一下没有断行的情况的话,再开始替换)
门派:丐帮
发表于 2017-12-24 16:01:02 | 显示全部楼层
这个代码好几处都断行了吧。      
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-6 18:18 , Processed in 0.032043 second(s), 28 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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