|
本帖最后由 dbm@ts2 于 2024-6-9 15:17 编辑
1、生活技能220以下只测试了触发,使用了shujian.lua中的原有函数,这部分没测试
2、worker.lua中的,ggoff函数如果缺少,改为你自己的关闭鬼谷的函数,或者将worker.lua最下方注释的函数取消注释
3、添加了按钮,点选按钮后输入技能,输入为技能的英文名称(duanzao,zhizao,nongsang,caikuang),你可以自己尝试设置为list
4、自动使用七窍玲珑玉,没玉了,没钱了,自动关闭学习功能
2024.5.13 220级前学习加入鬼谷,修正了部分错误,只更新了worker.lua
shujian.lua
require "guanfu"
require "taohuazhen"
require "worker" --dbm 生活技能
check_step_time=os.clock()
quick_locate=0
need_worker=0 --dbm 生活技能(默认为关,需要默认开need_worker=1)
main()
function main()
needdolost=0
autopk=0
setAlias()
delete_all_triggers()
worker_skills_choose() --dbm 生活技能
delete_all_timers()
function check_pot(p_cmd)
下面涂红部分替换就行了
if score.party=="普通百姓" and skills["force"].lvl==101 then
exe('fangqi force 1;y;y;y')
return huxi()
end
if score.party=="普通百姓" and skills["shenzhao-jing"] and skills["shenzhao-jing"].lvl<200 then
return learnSzj()
end
end
worker_skills=GetVariable("worker_skills")
if score.party~="普通百姓" and hp.pot>=l_pot and flag.autoxuexi and flag.autoxuexi==1 then
if score.gold and skills["literate"] and score.gold>50 and skills["literate"].lvl<hp.pot_max-100 then
return literate()
end
if score.gold and score.gold>1000 and need_worker==1 and (worker_skills=="duanzao" or worker_skills=="zhizao" or worker_skills=="caikuang" or worker_skills=="nongsang") then --dbm 生活技能
return worker()
end
if score.party~="普通百姓" then
for p in pairs(skills) do
local q=qrySkillEnable(p)
if q and q['force'] and perform.force and p==perform.force and skills[p].lvl<100 and hp.pot>=l_pot then
if skills[p].mstlvl and skills[p].mstlvl<=skills[p].lvl then
else
return checkxue()
end
end
end
function getVariable()
if GetVariable("performxiqi") then
perform.xiqi=GetVariable("performxiqi")
end
if GetVariable("worker_skills") then
worker_skills=GetVariable("worker_skills") --dbm 生活技能
end
if GetVariable("jobzuhe") then
tmp.job=utils.split(GetVariable("jobzuhe"),'_')
for _,p in pairs(tmp.job) do
job.zuhe[p]=true
end
end
lujing.lua
searchPre函数在
if job.name=='zhuacaishen' or job.name=='dolost' then
l_distance = 6
end
下方添加
if job.name and job.name=="cgdz" then
l_distance = 12
end
机器版原来有权限更新,这个确实不错,适合我这粗心的人
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
评分
-
1
查看全部评分
-
|