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

自动把矿石换成魄

[复制链接]
门派:桃花岛
发表于 2017-4-15 11:45:54 | 显示全部楼层
都是大神啊!!
门派:少林派
发表于 2017-9-25 18:31:50 | 显示全部楼层
本帖最后由 ntns@tj 于 2017-9-25 18:33 编辑




也坏?Timer 函数 "wait_timer_set" 或者之前发生过错误。
桃花搬出个大茶壶来,将桌上的大碗茶倒满.
找不到 Trigger 函数 "resetWait" 或者之前发生过错误。
桃花拿出一碟新鲜的水蜜桃,放在桌上.
找不到 Trigger 函数 "resetWait" 或者之前发生过错误。
欧冶子捡起一碟水蜜桃。
找不到 Trigger 函数 "resetWait" 或者之前发生过错误。
欧冶子拿起水蜜桃咬了几口。
找不到 Trigger 函数 "resetWait" 或者之前发生过错误。
欧冶子捡起一杯大碗茶。
找不到 Trigger 函数 "resetWait" 或者之前发生过错误。
欧冶子拿起大碗茶咕噜噜地喝了几口茶水。
找不到 Trigger 函数 "resetWait" 或者之前发生过错误。
欧冶子丢下一杯大碗茶。
找不到 Trigger 函数 "resetWait" 或者之前发生过错误。
欧冶子丢下一碟水蜜桃。
找不到 Trigger 函数 "resetWait" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。
在精英之技的作用下,你感觉做任何事都是事半功倍。
找不到 Trigger 函数 "resetWait" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。
找不到 Timer 函数 "wait_timer_set" 或者之前发生过错误。




我放到JOB .lua里面   就成这样了   我放全文件的最后边了
门派:武当派
发表于 2017-12-25 14:11:16 | 显示全部楼层
fqyy@tj 发表于 2017-4-12 16:28
1楼我是试验过的,肯定好用,

function Brefine()
    DeleteTriggerGroup("refine")
     create_trigger_t('hp24',"^(> )*(\\D*)矿石在炉火中化为一块\\D*落在地上,被你拣起收进背囊。",'','refine')
    SetTriggerOption("hp24","group","hp")
    create_trigger_t('refine1',"^(> )*你没有足够的金矿石。",'','refineOK')
    SetTriggerOption("refine1","group","refine")
    EnableTriggerGroup("refine",true)
     exe('refine jinkuang shi')
   create_timer_s('refine',2,'refine')
end
function refine(n,l,w)
          if w[2] == '铁' then
                 return check_busy(function() exe("refine tiekuang shi") end)
         elseif w[2] == '金' then
                 return check_busy(function() exe("refine jinkuang shi") end)
         elseif w[2] == '银' then
                 return check_busy(function() exe("refine yinkuang shi") end)
         elseif w[2] == '铜' then
                 return check_busy(function() exe("refine tongkuang shi") end)
         end
end

大神问问,这样改,错误在哪里呢?
门派:明教
发表于 2017-12-25 14:28:05 | 显示全部楼层
你 是说不执行吗?
试试把 if w[2] == '铁' 改成 if string.find(w[2],'铁')
门派:明教
发表于 2017-12-25 14:28:55 | 显示全部楼层
belloc@tj 发表于 2017-12-25 14:11
function Brefine()
    DeleteTriggerGroup("refine")
     create_trigger_t('hp24',"^(> )*(\\D*)矿 ...


你 是说不执行吗?
试试把 if w[2] == '铁' 改成 if string.find(w[2],'铁')
门派:武当派
发表于 2017-12-25 14:34:11 | 显示全部楼层
xiren@tj 发表于 2017-12-25 14:28
你 是说不执行吗?
试试把 if w[2] == '铁' 改成 if string.find(w[2],'铁')

好的,谢谢,是有报错,大概意思就是提示w【2】找不到的
门派:武当派
发表于 2017-12-25 15:04:11 | 显示全部楼层
xiren@tj 发表于 2017-12-25 14:28
你 是说不执行吗?
试试把 if w[2] == '铁' 改成 if string.find(w[2],'铁')




刚刚试过了,有这个报错。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
门派:桃花岛
发表于 2017-12-25 16:12:08 | 显示全部楼层
收藏一下 还没更新来看
门派:武当派
发表于 2017-12-25 16:36:01 | 显示全部楼层
总算好了,感谢各位大神的帮助。      
门派:丐帮
发表于 2019-7-26 09:06:22 | 显示全部楼层
我把这贴顶上来,大家赶紧看看自己的robot吧     
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-8 18:57 , Processed in 0.025731 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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