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

越改越崩溃了

[复制链接]
门派:天龙寺
发表于 2019-3-9 12:35:23 | 显示全部楼层
友情提示:修改机器前请做好备份,报错后查看原因,如果自己不太明白,就还原回去,再到机器版块向人求助
门派:昆仑派
发表于 2019-3-9 14:46:10 | 显示全部楼层
都有这个过程的 加油 ~~~
门派:明教
发表于 2019-3-9 16:14:36 | 显示全部楼层
reboot_before是我之前加的,忘记给删掉了,主要作用是在周四重启前,停止做任务,免得重启后任务失败!

你在shujian.lua文件的最下方,添加函数——

function reboot_before()
        if locl.weekday == '四' and (locl.hour ==7 ) and locl.min<=58 then
                Note('快重启服务器了!')
        return check_food()
        end
end

其实也没啥太大意义,就是不做任务去检查吃喝而已,将来也许在里边可以继续完善一下,比如去抓个任飞燕,拿个金钗啊!或者去找程灵素要个丹啊!之类的。

总之重启前是可以做一些琐碎准备工作的。。。
门派:峨嵋派
发表于 2019-3-9 22:12:16 | 显示全部楼层
kkfromch@tj 发表于 2019-3-9 16:14
reboot_before是我之前加的,忘记给删掉了,主要作用是在周四重启前,停止做任务,免得重启后任务失败!

...

论坛应该有个功能 可以follow一个人的所有发言啊
门派:明教
发表于 2019-3-9 22:18:32 | 显示全部楼层
alphago@tj 发表于 2019-3-9 22:12
论坛应该有个功能 可以follow一个人的所有发言啊

没办法,机器人我是天天改,又没有文档日志记录改了啥?

很多我自己改过的东西,过几个月翻出来看,我都记不起当初改了啥了?

所以给大家分享一些code,经常也是忘记和公版区别在哪里了?
门派:桃花岛
 楼主| 发表于 2019-3-9 22:36:38 | 显示全部楼层
freely@tj 发表于 2019-3-9 12:03
把函数songxin_trigger()里的内容贴出来

function songxin_trigger()
    DeleteTriggerGroup("songxin_find")
    DeleteTriggerGroup("songxin_ask")
    create_trigger_t('songxin_ask1',"^>*\\s*你向褚万里打听",'','songxin_ask')
    create_trigger_t('songxin_ask2',"^>*\\s*这里没有这个人。$",'','songxin_nobody')
    SetTriggerOption("songxin_ask1","group","songxin_ask")
    SetTriggerOption("songxin_ask2","group","songxin_ask")
    EnableTriggerGroup("songxin_ask",false)
    DeleteTriggerGroup("songxin_accept")
    create_trigger_t('songxin_accept1',"^>*\\s*褚万里\\D*说道:「\\D*,你不是本王府随从,此话从何说起?",'','songxin_join')
    create_trigger_t('songxin_accept2',"^>*\\s*褚万里\\D*说道:「(你先去休息一会吧!|现在暂时没有给你的任务,)",'','songxin_busy')
    create_trigger_t('songxin_accept3',"^>*\\s*褚万里\\D*说道:「既然\\D*做不了,也就罢了。",'','songxin_fangqi_heal')
    create_trigger_t('songxin_accept4',"^>*\\s*褚万里\\D*说道:「你不是已经领了送信的任务吗?还不快去做。",'','songxin_xin')
    create_trigger_t('songxin_accept5',"^>*\\s*褚万里\\D*说道:「你刚做完大理送信任务,还是去休息一会吧。",'','songxin_rest')
    create_trigger_t('songxin_accept6',"^>*\\s*褚万里交给你一封密函。",'','songxin_xin')
    SetTriggerOption("songxin_accept1","group","songxin_accept")
    SetTriggerOption("songxin_accept2","group","songxin_accept")
    SetTriggerOption("songxin_accept3","group","songxin_accept")
    SetTriggerOption("songxin_accept4","group","songxin_accept")
    SetTriggerOption("songxin_accept5","group","songxin_accept")
    SetTriggerOption("songxin_accept6","group","songxin_accept")
    EnableTriggerGroup("songxin_accept",false)
    DeleteTriggerGroup("songxin_letter")
    create_trigger_t('songxin_letter1',"^>*\\s*「(\\D*) (\\D*)」 亲启。",'','songxin_consider')
    SetTriggerOption("songxin_letter1","group","songxin_letter")
    EnableTriggerGroup("songxin_letter",false)
    DeleteTriggerGroup("songxin_killer")
    create_trigger_t('songxin_killer1',"^>*\\s*你隐约感觉到有人围了过来。",'','songxin_killer')
    create_trigger_t('songxin_killer2',"^>*\\s*(\\D*)说道:「小子,乖乖把密函交出来吧!!!」",'','songxin_killer_1')
    create_trigger_t('songxin_killer3',"^>*\\s*糟糕,又冲上来了个人!",'','songxin_killer_2')
    create_trigger_t('songxin_killer4',"^>*\\s*(\\D*)说道:「师兄,点子硬得很,我来帮你!!!」",'','songxin_killer_3')
    SetTriggerOption("songxin_killer1","group","songxin_killer")
    SetTriggerOption("songxin_killer2","group","songxin_killer")
    SetTriggerOption("songxin_killer3","group","songxin_killer")
    SetTriggerOption("songxin_killer4","group","songxin_killer")
    EnableTriggerGroup("songxin_killer",false)
    DeleteTriggerGroup("songxin2_check")
    create_trigger_t('songxin2_check1',"(> )*\\D*在你的耳边悄声说道:你赶紧把它送到「(\\D*)」的「(\\D*)」手上。",'','songxin2_target')
    create_trigger_t('songxin2_check2',"(> )*\\D*在你的耳边悄声说道:可能有个武功和你相比(\\D*)的家伙要来抢你",'','songxin2_level')
    SetTriggerOption("songxin2_check1","group","songxin2_check")
    SetTriggerOption("songxin2_check2","group","songxin2_check")
    EnableTriggerGroup("songxin2_check",false)
    DeleteTriggerGroup("songxin2_killer")
    create_trigger_t('songxin2_killer1',"^>*\\s*你定睛一看,原来是(\\D*),而且此人\\D*,似乎用的是(\\D*)的(\\D*)!",'','songxin2_check')
    create_trigger_t('songxin2_killer2',"^(> )*卧室不能(吐纳|打坐),会影响别人休息。",'','songxin2_refuse')
    create_trigger_t('songxin2_killer3',"^(> )*(你正要有所动作|你无法静下心来修炼|你还是专心拱猪吧)",'','songxin2_refuse')
    create_trigger_t('songxin2_killer4',"^(> )*这里不准战斗,也不准(吐纳|打坐)。",'','songxin2_refuse')
    SetTriggerOption("songxin2_killer1","group","songxin2_killer")
    SetTriggerOption("songxin2_killer2","group","songxin2_killer")
    SetTriggerOption("songxin2_killer3","group","songxin2_killer")
    SetTriggerOption("songxin2_killer4","group","songxin2_killer")
    EnableTriggerGroup("songxin2_killer",false)
    create_trigger_t('letteryichang1',"^>*\\s*你紧张起来,不由一摸衣袋,不好!信被偷了!",'','sx2over')
    create_trigger_t('letteryichang2',"^>*\\s*你看了看信,决定还是不去了。",'','sx2overok')
    SetTriggerOption("letteryichang1","group","sx2refuse")
    SetTriggerOption("letteryichang2","group","sx2refuse")
    EnableTriggerGroup("sx2refuse",false)
end
function songxin_triggerDel()
    kezhiwugongclose()
        DeleteTriggerGroup("songxin_find_begin")
    DeleteTriggerGroup("songxin_find")
    DeleteTriggerGroup("songxin_ask")
    DeleteTriggerGroup("songxin_accept")
    DeleteTriggerGroup("songxin_letter")
    DeleteTriggerGroup("songxin_killer")
    DeleteTriggerGroup("songxin2_check")
    DeleteTriggerGroup("songxin2_killer")
    DeleteTriggerGroup("songxin_fight")
    DeleteTriggerGroup("sx2refuse")
    DeleteTriggerGroup("sx1lian")
    DeleteTriggerGroup("sx_fight")
       sx1wait=0
       sx1zhen=0
       sx1miao=0
       sx1rou=0
       sx1xian=0
       sx1kuai=0
       sx1man=0
       sx1gang=0
       sx1qi=0
       sx2zhen=0
       sx2miao=0
       sx2rou=0
       sx2xian=0
       sx2kuai=0
       sx2man=0
       sx2gang=0
       sx2qi=0
end
门派:桃花岛
 楼主| 发表于 2019-3-9 22:39:23 | 显示全部楼层
zhaoziyu@tj 发表于 2019-3-9 12:35
友情提示:修改机器前请做好备份,报错后查看原因,如果自己不太明白,就还原回去,再到机器版块向人求助

备份了之前正常的,但还是有问题。
我有点怀疑是不是网速的影响。前两天刚到国外,游戏速度慢了很多。
是不是哪里的节奏不一致了,比如说timer 步数啥的。。。?郁闷搞不懂了
门派:桃花岛
 楼主| 发表于 2019-3-9 22:40:32 | 显示全部楼层
yunny@tj 发表于 2019-3-9 14:46
都有这个过程的 加油 ~~~

多谢啊。。。。。。。。。。。。。
门派:桃花岛
 楼主| 发表于 2019-3-9 22:42:16 | 显示全部楼层
kkfromch@tj 发表于 2019-3-9 16:14
reboot_before是我之前加的,忘记给删掉了,主要作用是在周四重启前,停止做任务,免得重启后任务失败!

...

好的,多谢版主,我再看看行不行
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-8 17:22 , Processed in 0.034796 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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