mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-23 07:55:55 +02:00
Updated to OTCv8 3.1 rev 157
This commit is contained in:
65
modules/game_bot/default_configs/vBot_4.5/_Loader.lua
Normal file
65
modules/game_bot/default_configs/vBot_4.5/_Loader.lua
Normal file
@@ -0,0 +1,65 @@
|
||||
-- load all otui files, order doesn't matter
|
||||
local configName = modules.game_bot.contentsPanel.config:getCurrentOption().text
|
||||
|
||||
local configFiles = g_resources.listDirectoryFiles("/bot/" .. configName .. "/vBot", true, false)
|
||||
for i, file in ipairs(configFiles) do
|
||||
local ext = file:split(".")
|
||||
if ext[#ext]:lower() == "ui" or ext[#ext]:lower() == "otui" then
|
||||
g_ui.importStyle(file)
|
||||
end
|
||||
end
|
||||
|
||||
local function loadScript(name)
|
||||
return dofile("/vBot/" .. name .. ".lua")
|
||||
end
|
||||
|
||||
-- here you can set manually order of scripts
|
||||
-- libraries should be loaded first
|
||||
local luaFiles = {
|
||||
"main",
|
||||
"items",
|
||||
"vlib",
|
||||
"new_cavebot_lib",
|
||||
"configs", -- do not change this and above
|
||||
"extras",
|
||||
"cavebot",
|
||||
"playerlist",
|
||||
"BotServer",
|
||||
"alarms",
|
||||
"Conditions",
|
||||
"Equipper",
|
||||
"pushmax",
|
||||
"combo",
|
||||
"HealBot",
|
||||
"new_healer",
|
||||
"AttackBot", -- last of major modules
|
||||
"ingame_editor",
|
||||
"Dropper",
|
||||
"Containers",
|
||||
"quiver_manager",
|
||||
"quiver_label",
|
||||
"tools",
|
||||
"antiRs",
|
||||
"depot_withdraw",
|
||||
"cast_food",
|
||||
"eat_food",
|
||||
"equip",
|
||||
"exeta",
|
||||
"analyzer",
|
||||
"spy_level",
|
||||
"supplies",
|
||||
"depositer_config",
|
||||
"npc_talk",
|
||||
"xeno_menu",
|
||||
"hold_target",
|
||||
"cavebot_control_panel"
|
||||
}
|
||||
|
||||
for i, file in ipairs(luaFiles) do
|
||||
loadScript(file)
|
||||
end
|
||||
|
||||
setDefaultTab("Main")
|
||||
UI.Separator()
|
||||
UI.Label("Private Scripts:")
|
||||
UI.Separator()
|
Reference in New Issue
Block a user