1 Star 1 Fork 13

雅琪罗/e7Helper

forked from boluo/e7Helper 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.lua 3.44 KB
一键复制 编辑 原始数据 按行查看 历史
boluo 提交于 2023-09-16 20:30 . 2023.09.16 20:30 更新文档
-- 系统时间
time = systemTime
update_source = 'https://gitee.com/boluokk/e7-helper/raw/master/release/'
update_source_fallback = update_source
-- apk level 限制
is_apk_old = function() return getApkVerInt() < 0 end
apk_old_warning = "怎么还有人用" .. getApkVerInt()
release_date = "09.16 20:29"
release_content = '修复出售装备问题'
-- 获取workPath
root_path = getWorkPath() .. '/'
-- 禁止热更新
hotupdate_disabled = true
-- log 日志显示在左下角
-- true stoat 打印
-- false print 打印
logger_display_left_bottom = true
-- 打印当前执行到哪里了(会输出某个图色名)
detail_log_message = not logger_display_left_bottom
-- 禁用测试
disable_test = true
-- 截图延迟
capture_interval = 0
-- 游戏代理识图间隔
game_running_capture_interval = 3
-- 所有配置文件名称
fileNames = {'config.txt', 'fightConfig.txt', 'bagConfig.txt'}
-- 点击延迟
tap_interval = 0
-- app运行时间
app_is_run = time()
--server pkg name
server_pkg_name = {
["国服"] = 'com.zlongame.cn.epicseven',
['B服'] = 'com.zlongame.cn.epicseven.bilibili',
['国际服'] = 'com.stove.epic7.google',
}
-- 当前服务器
current_server = "国服"
-- wait 间隔
wait_interval = .7
-- 是否异常退出
is_exception_quit = false
-- UI配置完毕
ui_config_finish = false
-- 已经进入过游戏首页
isBack = false
-- loggerID
logger_ID = nil
-- 获取状态码
sgetNumberConfig = function (key, defval) return tonumber(getNumberConfig(key, defval)) end
-- 是否是刷书签
is_refresh_book_tag = sgetNumberConfig('is_refresh_book_tag', 0)
-- 当前任务
current_task_index = sgetNumberConfig("current_task_index", 0)
-- 异常退出次数
exception_count = sgetNumberConfig('exception_count', 1)
-- 当前账号任务
current_task = {}
-- 检查游戏状态 10s
check_game_status_interval = 10000
-- 检查图色识别时间
getMillisecond = function (secound) return secound * 1000 end
-- 单位秒
check_game_identify_timeout = getMillisecond(20)
-- 其他ssleep间隔
other_ssleep_interval = 1
-- 单任务休息时间
single_task_rest_time = 5
-- 开源说明手册地址
open_resource_doc = 'https://boluokk.gitee.io/e7-helper'
-- 全局关卡次数(用来代理的时候提示: 代理中 1/100)
global_stage_count = 0
-- 打印配置信息
print_config_info = false
require("point")
require('path')
require("util")
require("userinterface")
require("test")
-- 分辨率提示
-- DPI 320
-- 分辨率 720x1280
-- 或者 1280x720
local disPlayDPI = 320
displaySizeWidth, displaySizeHeight = getDisplaySize()
-- 异常处理
setEventCallBack()
local scriptStatus = sgetNumberConfig("scriptStatus", 0)
-- 热更新开始
if scriptStatus == 0 then
consoleInit()
initLocalState()
slog('最近更新时间: '..release_date)
slog('最近更新内容: '..release_content or '暂无')
if not hotupdate_disabled then hotUpdate() end
sui.show()
else
setNumberConfig("scriptStatus", 0)
-- 多次异常关闭脚本
-- 退出游戏还是重启游戏?
if exception_count > 3 then
slog('连续3次异常退出')
setNumberConfig("exception_count", 1)
exit()
else
setNumberConfig("exception_count", exception_count + 1)
end
-- 加载本地配置
-- current_task = read('config.txt', true)
current_task = uiConfigUnion(fileNames)
if is_refresh_book_tag == 1 then
path.刷书签(sgetNumberConfig("refresh_book_tag_count", 0))
elseif is_refresh_book_tag == 2 then
path.3星狗粮()
else
path.游戏开始()
end
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yachiro/e7-helper.git
git@gitee.com:yachiro/e7-helper.git
yachiro
e7-helper
e7Helper
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385