|
很多软件都实现软件自动更新。我在想mush 机器人是否也能实现这个功能呢?
可以利用mush luasocket 的 ftp.lua功能。
首先需要建立一个ftp 服务器,将最新的机器人放在ftp服务器上,提供自动下载。
当插件检查到服务器上 AutoUpdate_config.txt 中文件更新内容 和 本地需要更新的文件md5不一致 就会开始自动下载覆盖更新。
--插件源代码
name="rbt_update"
author="叶知秋"
id="5c589f1ca4fd208978a46254"
language="Lua"
purpose="书剑机器人自动更新"
date_written="2016-01-27 18:22:02"
requires="4.73"
version="1.0"
>
---利用 插件up:create命令 来创建AutoUpdate_config.txt 文件
--update_log.txt 文件 的内容
{
map={
path="",
ftp="ftp://112.65.143.178//mushclient//map.lua",
md5="",
filename="map.lua",
description="地图引擎",
log="地图累积更新,塔林bug修正",
},
alias={
path="",
ftp="ftp://112.65.143.178//mushclient//alias.lua",
md5="",
filename="alias.lua",
description="迷宫处理",
log="地图累积更新,塔林bug修正",
},
database={
path="",
ftp="ftp://112.65.143.178//mushclient//sjcentury.db",
md5="",
filename="sjcentury.db",
description="地图数据库",
log="地图累积更新",
},
mapper={
path="lua\\",
ftp="ftp://112.65.143.178//mushclient//lua/mapper.lua",
md5="",
filename="mapper.lua",
description="地图显示",
log="地图累积更新",
},
movewindow2={
path="lua\\",
ftp="ftp://112.65.143.178//mushclient//movewindow2.lua",
md5="",
filename="movewindow2.lua",
description="窗体模块",
log="",
},
songshan={
path="",
ftp="ftp://112.65.143.178//mushclient//songshan.lua",
md5="",
filename="songshan.lua",
description="嵩山任务",
log="",
},
wudang={
path="",
ftp="ftp://112.65.143.178//mushclient//wudang.lua",
md5="",
filename="wudang.lua",
description="武当任务",
log="",
},
huashan={
path="",
ftp="ftp://112.65.143.178//mushclient//huashan.lua",
md5="",
filename="huashan.lua",
description="华山任务",
log="",
},
xueshan={
path="",
ftp="ftp://112.65.143.178//mushclient//xueshan.lua",
md5="",
filename="xueshan.lua",
description="雪山任务",
log="",
},
teachmonk={
path="",
ftp="ftp://112.65.143.178//mushclient//teachmonk.lua",
md5="",
filename="teachmonk.lua",
description="少林教和尚任务",
log="",
},
tiaoshui={
path="",
ftp="ftp://112.65.143.178//mushclient//tiaoshui.lua",
md5="",
filename="tiaoshui.lua",
description="挑水任务",
log="",
},
huxi={
path="",
ftp="ftp://112.65.143.178//mushclient//huxi.lua",
md5="",
filename="huxi.lua",
description="呼吸",
log="",
},
learn={
path="",
ftp="ftp://112.65.143.178//mushclient//learn.lua",
md5="",
filename="learn.lua",
description="学习模块",
log="",
},
wuguan={
path="",
ftp="ftp://112.65.143.178//mushclient//wuguan.lua",
md5="",
filename="wuguan.lua",
description="武馆模块",
log="更新自动问答",
},
rest={
path="",
ftp="ftp://112.65.143.178//mushclient//rest.lua",
md5="",
filename="rest.lua",
description="休息模块",
log="",
},
hp={
path="",
ftp="ftp://112.65.143.178//mushclient//hp.lua",
md5="",
filename="hp.lua",
description="气血显示模块",
log="",
},
xiulian={
path="",
ftp="ftp://112.65.143.178//mushclient//xiulian.lua",
md5="",
filename="xiulian.lua",
description="打坐吐纳模块",
log="新增吸星大法描述",
},
xuncheng={
path="",
ftp="ftp://112.65.143.178//mushclient//xuncheng.lua",
md5="",
filename="xuncheng.lua",
description="巡城模块",
log="",
},
changle={
path="",
ftp="ftp://112.65.143.178//mushclient//changle.lua",
md5="",
filename="changle.lua",
description="长乐帮模块",
log="",
},
songxin={
path="",
ftp="ftp://112.65.143.178//mushclient//songxin.lua",
md5="",
filename="songxin.lua",
description="送信模块",
},
tiandi={
path="",
ftp="ftp://112.65.143.178//mushclient//tiandi.lua",
md5="",
filename="tiandi.lua",
description="天地会模块",
log="",
},
sj_mini_win={
path="",
ftp="ftp://112.65.143.178//mushclient//sj_mini_win.lua",
md5="",
filename="sj_mini_win.lua",
description="书剑迷你窗体",
log="",
},
wait={
path="lua\\",
ftp="ftp://112.65.143.178//mushclient//lua//wait.lua",
md5="",
filename="wait.lua",
description="wait模块",
log="",
},
jiaohua={
path="",
ftp="ftp://112.65.143.178//mushclient//jiaohua.lua",
md5="",
filename="jiaohua.lua",
description="浇花模块",
log="",
},
hqg={
path="",
ftp="ftp://112.65.143.178//mushclient//hqg.lua",
md5="",
filename="hqg.lua",
description="洪七公做菜模块",
log="",
},
cond={
path="",
ftp="ftp://112.65.143.178//mushclient//cond.lua",
md5="",
filename="cond.lua",
description="状态模块",
log="",
},
special_item={
path="",
ftp="ftp://112.65.143.178//mushclient//special_item.lua",
md5="",
filename="special_item.lua",
description="特殊物品模块",
log="",
},
touxue={
path="",
ftp="ftp://112.65.143.178//mushclient//touxue.lua",
md5="",
filename="touxue.lua",
description="慕容偷学模块",
log="",
},
gaibang={
path="",
ftp="ftp://112.65.143.178//mushclient//gaibang.lua",
md5="",
filename="gaibang.lua",
description="丐帮任务模块",
log="",
},
fish={
path="",
ftp="ftp://112.65.143.178//mushclient//fish.lua",
md5="",
filename="fish.lua",
description="钓鱼模块",
log="",
},
lingwu={
path="",
ftp="ftp://112.65.143.178//mushclient//lingwu.lua",
md5="",
filename="lingwu.lua",
description="领悟模块",
log="",
},
exps={
path="",
ftp="ftp://112.65.143.178//mushclient//exps.lua",
md5="",
filename="exps.lua",
description="经验奖励模块",
log="",
},
gold={
path="",
ftp="ftp://112.65.143.178//mushclient//gold.lua",
md5="",
filename="gold.lua",
description="杀金模块",
log="",
},
fight={
path="",
ftp="ftp://112.65.143.178//mushclient//fight.lua",
md5="",
filename="fight.lua",
description="战斗模块",
log="增加金刀黑剑的提示",
},
sj={
path="",
ftp="ftp://112.65.143.178//mushclient//sj.lua",
md5="",
filename="sj.lua",
description="书剑全局模块",
log="",
},
wizard={
path="",
ftp="ftp://112.65.143.178//mushclient//wizard.lua",
md5="",
filename="wizard.lua",
description="设置向导模块",
log="新增若干job的设置向导",
},
equipments={
path="",
ftp="ftp://112.65.143.178//mushclient//equipments.lua",
md5="",
filename="equipments.lua",
description="装备检查模块",
log="新增对【+1】武器支持",
},
jobtimes={
path="",
ftp="ftp://112.65.143.178//mushclient//jobtimes.lua",
md5="",
filename="jobtimes.lua",
description="工作状态模块",
log="",
},
suoming={
path="",
ftp="ftp://112.65.143.178//mushclient//suoming.lua",
md5="",
filename="suoming.lua",
description="神龙岛索命模块",
log="",
}, --神龙岛索命
zhuashe={
path="",
ftp="ftp://112.65.143.178//mushclient//zhuashe.lua",
md5="",
filename="zhuashe.lua",
description="抓蛇模块",
log="",
},
aozhou={
path="",
ftp="ftp://112.65.143.178//mushclient//aozhou.lua",
md5="",
filename="aozhou.lua",
description="熬粥模块",
log="",
},
caikuang={
path="",
ftp="ftp://112.65.143.178//mushclient//caikuang.lua",
md5="",
filename="caikuang.lua",
description="采矿模块",
log="",
},
xunluo={
path="",
ftp="ftp://112.65.143.178//mushclient//xunluo.lua",
md5="",
filename="xunluo.lua",
description="明教巡逻模块",
log="",
},
shoumu={
path="",
ftp="ftp://112.65.143.178//mushclient//shoumu.lua",
md5="",
filename="shoumu.lua",
description="桃花守墓模块",
log="",
},
duicao={
path="",
ftp="ftp://112.65.143.178//mushclient//duicao.lua",
md5="",
filename="duicao.lua",
description="堆草模块",
log="",
},
jiuyuan={
path="",
ftp="ftp://112.65.143.178//mushclient//jiuyuan.lua",
md5="",
filename="jiuyuan.lua",
description="少林救援模块",
log="对若干大师follow 更新",
},
taishan={
path="",
ftp="ftp://112.65.143.178//mushclient//taishan.lua",
md5="",
filename="taishan.lua",
description="泰山任务模块",
log="",
},
wdj={
path="",
ftp="ftp://112.65.143.178//mushclient//wdj.lua",
md5="",
filename="wdj.lua",
description="五毒教模块",
log="杀蜘蛛自动jifa none",
},
zhuachong={
path="",
ftp="ftp://112.65.143.178//mushclient//zhuachong.lua",
md5="",
filename="zhuachong.lua",
description="抓虫模块",
log="自动炼毒",
},
qiangjie={
path="",
ftp="ftp://112.65.143.178//mushclient//qiangjie.lua",
md5="",
filename="qiangjie.lua",
description="抢劫模块",
log="",
},
liandu={
path="",
ftp="ftp://112.65.143.178//mushclient//liandu.lua",
md5="",
filename="liandu.lua",
description="炼毒模块",
log="增加对炼毒内力不足的触发",
},
ouyangke={
path="",
ftp="ftp://112.65.143.178//mushclient//ouyangke.lua",
md5="",
filename="ouyangke.lua",
description="欧阳克模块",
log="",
},
lian={
path="",
ftp="ftp://112.65.143.178//mushclient//lian.lua",
md5="",
filename="lian.lua",
description="练技能模块",
},
fb={
path="",
ftp="ftp://112.65.143.178//mushclient//fb.lua",
md5="",
filename="fb.lua",
description="副本模块",
log="",
},
hubiao={
path="",
ftp="ftp://112.65.143.178//mushclient//hubiao.lua",
md5="",
filename="hubiao.lua",
description="护镖模块",
log="未完善",
},
ckns2={
path="",
ftp="ftp://112.65.143.178//mushclient//ckns2.lua",
md5="",
filename="ckns2.lua",
description="采矿任务模块",
log="",
},
}
北大侠客行MUD,中国最好的MUD |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|