|
论坛里没有mush版的明教巡逻机器,目前明教人才凋零,作为刚拜码头的明教小师弟,为明教做点小贡献
本机器是在公版机器上基础上开发的任务模块,完全兼容,特点就是没有特点,你会用公版就能用这个机器。
因为没有重复造轮子,利用了公版的lujing模块,除了把附件xunluo.lua放在mushclient安装路径中的lua文件夹外,需要在shujian.lua,lujing.lua、xuncheng.lua模块做如下修改:
一、在shujian.lua中:
1.找到函数 check_job,添加下面红色部分
function check_job()
if hp.exp>800000 and hp.exp<2000000 and score.party=='明教' then
return check_halt(weaponUcheck)
end
if xcexp==0 and hp.exp<1000000 then
print('巡城到1M')
kdummy=0
return xunCheng()
end
......
......
2.找到函数 checkJob,添加下面红色部分
function checkJob()
if hp.exp>800000 and hp.exp<2000000 and score.party=='明教' then return xunluo() end
if job.zuhe["songxin2"] then
job.zuhe["songxin2"]=nil
job.zuhe["songxin"]=true
flag.sx2=true
end
......
......
二、在lujing.lua中:
1.找到函数walk_goon,把 return searchFunc()替换成下面红色部分
function walk_goon()
EnableTriggerGroup("walk",false)
EnableTimer('walkwait',false)
EnableTrigger("hp12",false)
if tmp.find then
return check_halt(searchFunc)
end
EnableTrigger("hp12",true)
create_timer_s('roadWait',road.wait,'path_start')
end
2.找到函数searchFunc,添加下面红色部分
function searchFunc(path)
--Note("run searchFunc")
if flag.find==1 then return end
if flag.wait==1 then return end
road.pathset = road.pathset or {}
if path then
road.pathset=utils.split(path,";")
for i=1,table.getn(road.pathset) do
for p=1, table.getn(road.pathset) do
if isNil(road.pathset[p]) or road.pathset[p]=="halt" then
table.remove(road.pathset,p)
break
end
end
end
end
if table.getn(road.pathset)==0 and job.xunluonpc then
return check_halt(xunluoHuayin)
end
if table.getn(road.pathset)==0 then
return searchStart()
end
......
......
三、在xuncheng.lua中:
找到函数xuncheng_checkpot,把return xuncheng_start()替换成下面红色部分
function xuncheng_checkpot()
if hp.pot>=hp.pot_max*6/7 then
if hp.jingli>100 then
if score.gold and skills["literate"] and score.gold>300 and skills["literate"].lvl<hp.pot_max-50 then
--return literate()
return xuexi()
end
return go(check_xuexi,"大理城","茶馆")
--return go(xuexi,"大理城","茶馆")
else
return checkWait(xuncheng_check,5)
end
else
if hp.exp>800000 and hp.exp<2000000 and score.party=='明教' then
return xunluo()
else
return xuncheng_start()
end
end
end
好了,设置完毕,重新启动后就可以正常挂机了
友情提醒:
1.请设置好武功克制,不然极其没效率,可以用公版的kezhiwugong.lua模块
2.请学会七伤拳后再挂,不然打attacker遇到克制的你会想死
3.本机器目前设置只考虑了明教2M以前挂机,当然也可以无缝组合主流任务,不过暂时看还不需要,有需要再升级设置吧
顺便吐槽下:
1、要找七个npc画印,画印等待时间敢不敢再长点。
2、遇到attacker的数量敢不敢再多点,非洲人表示我要打十个。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
评分
-
2
查看全部评分
-
|